|
@@ -524,11 +524,12 @@
|
|
|
this.loading = false
|
|
|
throw new Error()
|
|
|
}
|
|
|
- for await (let item of result) {
|
|
|
- this.$refs.batchTable.insertAt(item)
|
|
|
- this.inputForm.cwFillingbatchProjects.push(item)
|
|
|
- this.tableKeyProject = Math.random()
|
|
|
- }
|
|
|
+ // for await (let item of result) {
|
|
|
+ // this.$refs.batchTable.insertAt(item)
|
|
|
+ // this.inputForm.cwFillingbatchProjects.push(item)
|
|
|
+ // this.tableKeyProject = Math.random()
|
|
|
+ // }
|
|
|
+ await this.detailPush(result)
|
|
|
this.importVisible = false
|
|
|
this.loading = false
|
|
|
}).catch(() => {
|
|
@@ -536,6 +537,18 @@
|
|
|
this.loading = false
|
|
|
})
|
|
|
},
|
|
|
+ async detailPush(data) {
|
|
|
+ if (this.commonJS.isNotEmpty(data)) {
|
|
|
+ await data.forEach(item => {
|
|
|
+ if (this.commonJS.isNotEmpty(item.cwFillingbatchFiles)){
|
|
|
+ this.getFile(item.cwFillingbatchFiles)
|
|
|
+ }
|
|
|
+ console.log('item',item)
|
|
|
+ })
|
|
|
+ this.getProgram(data)
|
|
|
+ }
|
|
|
+ this.$message.success('导入完成')
|
|
|
+ },
|
|
|
|
|
|
|
|
|
|