|
|
@@ -55,6 +55,12 @@
|
|
|
},
|
|
|
onSubmit() {
|
|
|
if (this.allData == "") return;
|
|
|
+ const loading = ElementPlus.ElLoading.service({
|
|
|
+ lock: true,
|
|
|
+ text: '请等待...',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)',
|
|
|
+ })
|
|
|
+
|
|
|
let arr = Object.values(this.allData).flat(Infinity)
|
|
|
Yunqi.ajax.post('goods/import_list/specs', { ids: Yunqi.data.row.id, all_data: arr }, false, false, true).then(res => {
|
|
|
// console.log(res)
|
|
|
@@ -63,10 +69,12 @@
|
|
|
//倒计时刷新窗口
|
|
|
setTimeout(() => {
|
|
|
Yunqi.api.closelayer(Yunqi.app.window.id, true);
|
|
|
+ loading.close()
|
|
|
}, 1000);
|
|
|
|
|
|
} else {
|
|
|
Yunqi.alert(__('请选择规格'), __('温馨提示'), { type: 'error' });
|
|
|
+ loading.close()
|
|
|
}
|
|
|
});
|
|
|
},
|