diff --git a/src/views/capital/productstoreList.vue b/src/views/capital/productstoreList.vue index bf8001f..4588f73 100644 --- a/src/views/capital/productstoreList.vue +++ b/src/views/capital/productstoreList.vue @@ -1700,6 +1700,7 @@ export default { type: "success", }); this.fileList.push({path:response.data.path,name:response.data.filename}); + console.log('file ===>',this.fileList) } else { this.$message({ message: "上传失败", @@ -2406,6 +2407,11 @@ export default { if (this.rateRecords[i].id === row.companyId) { company = this.rateRecords[i].name; } + } + console.log('file edit ===============>',this.fileList) + if(this.fileList[0]){ + row.attach = this.fileList[0].path + row.attachName = this.fileList[0].name } let rows = { ...row, diff --git a/src/views/oiling/task.vue b/src/views/oiling/task.vue index ea31d3c..0aee3d4 100644 --- a/src/views/oiling/task.vue +++ b/src/views/oiling/task.vue @@ -709,8 +709,9 @@ - 停用 - 启用 + 未保养 + 已保养 + 不保养 {{projectForm.maintainType | maintainTypeName}} @@ -891,6 +892,7 @@ { this.tableData.map((item,index) =>{ - if(item.id == row.projectId){ + if(item.id == row.id){ this.$nextTick(() =>{ this.$refs.maintainTable.toggleRowSelection(this.tableData[index],true); }) @@ -1693,8 +1695,8 @@ export default { this.page[0].current = 1 this.$nextTick(() =>{ this.$refs.maintainTable.clearSelection(); + this.searchProject() }) - this.searchProject() // getProList({current:1,size:200}).then(res =>{ // this.tableData = res.data.data.records // this.showProjectDialog = true; diff --git a/src/views/purchasing/purchaseApply.vue b/src/views/purchasing/purchaseApply.vue index 707eaef..167b2e1 100644 --- a/src/views/purchasing/purchaseApply.vue +++ b/src/views/purchasing/purchaseApply.vue @@ -1015,6 +1015,7 @@ export default { if (valid) { this.checkForm.attach = this.fileList.length >= 1 ? this.fileList[0].path : '' this.checkForm.attachName = this.fileList.length >= 1 ? this.fileList[0].name : '' + console.log('form ===>',this.checkForm) saveCheck(this.checkForm).then(res =>{ console.log('submit ====>',res) if(res.data.code == 200){ @@ -1058,8 +1059,19 @@ export default { } }, handleRemove(file, fileList) { - this.lineNum = ""; - this.assetsFlag = false; + if(file.status == 'success'){ + if(file.response){ + if(file.response.code == 200){ + let arr = fileList.filter(item => item.path !== file.response.data.path) + this.fileList = arr + this.filesList = arr + } + }else{ + let arr = fileList.filter(item => item.path !== file.path) + this.fileList = arr + this.filesList = arr + } + } }, uploadSuccess(response, file, fileList) { if (response.code == 200) {