优化后台属性创建交互

This commit is contained in:
pushuo 2023-01-06 15:14:55 +08:00
parent c05b21efc7
commit 2852732891
10 changed files with 36 additions and 3 deletions

View File

@ -145,9 +145,15 @@
}
$http.post('attributes', this.dialog.form).then((res) => {
this.$message.success(res.message);
this.loadData();// this.customers.data.push(res.data);
this.dialog.show = false
this.loadData();
setTimeout(() => this.dialog.show = false, 100)
this.$confirm('{{ __('admin/attribute.to_info_values') }}', '{{ __('common.created_success') }}', {
distinguishCancelAndClose: true,
confirmButtonText: '{{ __('admin/attribute.btn_at') }}',
cancelButtonText: '{{ __('admin/attribute.btn_later') }}',
}).then(() => {
location = this.linkEdit(res.data.id);
}).catch(()=>{})
})
});
},

View File

@ -17,4 +17,7 @@ return [
'set_attribute' => 'Konfigurationsattribut',
'add_attribute' => 'Attributwert hinzufügen',
'before_attribute' => 'Bitte zuerst das linke Attribut auswählen',
'btn_at' => 'Jetzt gehen',
'btn_later' => 'Später gehen',
'to_info_values' => 'Bitte gehen Sie zur Detailseite, um Attributwerte zu bearbeiten',
];

View File

@ -17,4 +17,7 @@ return [
'set_attribute' => 'Configuration attribute',
'add_attribute' => 'Add attribute value',
'before_attribute' => 'Please select the left attribute first',
'btn_at' => 'Go now',
'btn_later' => 'Later',
'to_info_values' => 'Please go to the details page to edit attribute values',
];

View File

@ -17,4 +17,7 @@ return [
'set_attribute' => 'atributo de configuración',
'add_attribute' => 'agregar valor de atributo',
'before_attribute' => 'Seleccione primero el atributo de la izquierda',
'btn_at' => 'Ir ahora',
'btn_later' => 'más tarde',
'to_info_values' => 'Por favor, vaya a la página de detalles para editar los valores de los atributos',
];

View File

@ -17,4 +17,7 @@ return [
'set_attribute' => 'attribut de configuration',
'add_attribute' => 'ajouter une valeur d\'attribut',
'before_attribute' => 'Veuillez d\'abord sélectionner l\'attribut de gauche',
'btn_at' => 'Aller maintenant',
'btn_later' => 'plus tard',
'to_info_values' => 'Veuillez accéder à la page de détails pour modifier les valeurs des attributs',
];

View File

@ -17,4 +17,7 @@ return [
'set_attribute' => 'attributo di configurazione',
'add_attribute' => 'aggiungi valore attributo',
'before_attribute' => 'Si prega di selezionare prima l\'attributo di sinistra',
'btn_at' => 'Vai ora',
'btn_later' => 'più tardi',
'to_info_values' => 'Vai alla pagina dei dettagli per modificare i valori degli attributi',
];

View File

@ -17,4 +17,7 @@ return [
'set_attribute' => '構成属性',
'add_attribute' => '属性値を追加',
'before_attribute' => '最初に左の属性を選択してください',
'btn_at' => '今すぐ行く',
'btn_later' => '後で',
'to_info_values' => '詳細ページに移動して属性値を編集してください',
];

View File

@ -17,4 +17,7 @@ return [
'set_attribute' => 'атрибут конфигурации',
'add_attribute' => 'добавить значение атрибута',
'before_attribute' => 'Сначала выберите левый атрибут',
'btn_at' => 'Иди сейчас',
'btn_later' => 'позже',
'to_info_values' => 'Пожалуйста, перейдите на страницу сведений, чтобы изменить значения атрибутов',
];

View File

@ -17,4 +17,7 @@ return [
'set_attribute' => '配置属性',
'add_attribute' => '添加属性值',
'before_attribute' => '请先选择左边属性',
'btn_at' => '立即前往',
'btn_later' => '稍后再去',
'to_info_values' => '请前往详情页编辑属性值',
];

View File

@ -17,4 +17,7 @@ return [
'set_attribute' => '配置屬性',
'add_attribute' => '添加屬性值',
'before_attribute' => '請先選擇左邊屬性',
'btn_at' => '立即前往',
'btn_later' => '稍後',
'to_info_values' => '請前往詳情頁編輯屬性值',
];