|
@@ -295,6 +295,10 @@
|
|
|
<!-- 导入确认框 -->
|
|
|
<div>
|
|
|
<a-modal :visible="visible" title="是否继续导入" @ok="handleOk" @cancel="handleCancel">
|
|
|
+ <template #footer>
|
|
|
+ <a-button @click="handleCancel" style="margin-left: 8px;">取消</a-button>
|
|
|
+ <a-button type="primary" @click="handleOk" :disabled="handleOkButton">确定</a-button>
|
|
|
+ </template>
|
|
|
<ul>
|
|
|
<li v-for="(item,index) in message" :key="index">{{item}}</li>
|
|
|
</ul>
|
|
@@ -327,6 +331,7 @@ export default {
|
|
|
rangeMode:['date','date'],
|
|
|
timeRange:'',
|
|
|
selectedNumber:0,//已选择条数
|
|
|
+ handleOkButton:false,
|
|
|
// 表头
|
|
|
adPaListClothesColumns: [
|
|
|
{
|
|
@@ -738,6 +743,7 @@ export default {
|
|
|
})},
|
|
|
//继续导入
|
|
|
handleOk(){
|
|
|
+ this.handleOkButton = true
|
|
|
const formData = new FormData()
|
|
|
formData.append('file', this.file.file)
|
|
|
upload(formData).then(res => {
|
|
@@ -745,6 +751,7 @@ export default {
|
|
|
if (res.success) {
|
|
|
this.getadPaListClothes()
|
|
|
this.$message.success('导入成功')
|
|
|
+ this.handleOkButton = false
|
|
|
}else{
|
|
|
this.loading = false
|
|
|
this.$message.error(res.message);
|