@@ -1391,6 +1391,7 @@ export default {
this.showProjectDialog = true;
this.page[0].current = 1
this.searchProject()
+ this.$refs.maintainTable.clearSelection();
},
// 删除保养项目
removeSpecimen(index, row){
diff --git a/src/views/inspection/setting/points.vue b/src/views/inspection/setting/points.vue
index 04de175..b885c19 100644
--- a/src/views/inspection/setting/points.vue
+++ b/src/views/inspection/setting/points.vue
@@ -736,8 +736,8 @@
-
+
+
@@ -1161,9 +1161,18 @@ export default {
// this.fileList.push({url:response.data})
},
handleRemove(file, fileList){
+ console.log('file ===>',file)
+ console.log('imgList ===>',this.imgList)
+ console.log('fileList ===>',this.fileList)
if(file.status == "success"){
- this.imgList = this.imgList.filter(item => item != file.url)
- this.fileList = this.imgList.filter(item => item.url != file.url)
+ if(file.response){
+ this.imgList = this.imgList.filter(item => item != file.response.data)
+ this.fileList = this.imgList.filter(item => item.url != file.response.data)
+ }else{
+ this.imgList = this.imgList.filter(item => item != file.url)
+ this.fileList = this.imgList.filter(item => item.url != file.url)
+ }
+
}
},
// 切换周期
@@ -1242,6 +1251,7 @@ export default {
this.showProjectDialog = true;
this.page[0].current = 1
this.searchProject()
+ this.$refs.maintainTable.clearSelection();
// getProList({current:1,size:200}).then(res =>{
// this.tableData = res.data.data.records
@@ -1359,8 +1369,10 @@ export default {
console.log('res ============>',res)
this.addForm = res.data.data;
this.addForm.orderList = this.addForm.checkItemList
- this.imgList.push(process.env.NODE_ENV == 'development' ? this.addForm.picture.replace('127.0.0.1','192.168.1.104') : this.addForm.picture)
- this.fileList = [{url:process.env.NODE_ENV == 'development' ? this.addForm.picture.replace('127.0.0.1','192.168.1.104') : this.addForm.picture}]
+ this.addForm.picture ? this.imgList.push(process.env.NODE_ENV == 'development' ? this.addForm.picture.replace('127.0.0.1','192.168.1.104') : this.addForm.picture) : this.imgList = []
+ this.fileList = this.addForm.picture ? [{url:process.env.NODE_ENV == 'development' ? this.addForm.picture.replace('127.0.0.1','192.168.1.104') : this.addForm.picture}] : []
+ console.log('file ===>',this.fileList)
+ console.log('omg ===>',this.imgList)
this.title = '编辑巡检点位'
this.showAddDialog = true;
this.$nextTick(() =>{
diff --git a/src/views/limsConfig/equipmentManage.vue b/src/views/limsConfig/equipmentManage.vue
index c13f7c8..6f25f61 100644
--- a/src/views/limsConfig/equipmentManage.vue
+++ b/src/views/limsConfig/equipmentManage.vue
@@ -332,7 +332,7 @@ export default {
},
methods: {
editDecive(row,index){
- row.runStatus = row.runStatus + ''
+ row.runStatus = row.runStatus ? row.runStatus + '' : ''
this.$refs.crud.rowEdit(row, index)
},
diff --git a/src/views/limsConfig/maintenance.vue b/src/views/limsConfig/maintenance.vue
index 221e6f2..1a4b021 100644
--- a/src/views/limsConfig/maintenance.vue
+++ b/src/views/limsConfig/maintenance.vue
@@ -253,6 +253,7 @@ export default {
if(file.response.code == 200){
this.imgList = this.imgList.filter(item => item.url != file.response.data)
}
+ console.log('img ===>',this.imgList)
},
/**
* 取当前用户的的信息
diff --git a/src/views/oiling/plan.vue b/src/views/oiling/plan.vue
index 6fde0f8..a12a659 100644
--- a/src/views/oiling/plan.vue
+++ b/src/views/oiling/plan.vue
@@ -1161,6 +1161,7 @@ export default {
this.showProjectDialog = true;
this.page[0].current = 1
this.searchProject()
+ this.$refs.maintainTable.clearSelection();
// getProList({current:1,size:200}).then(res =>{
// this.tableData = res.data.data.records
diff --git a/src/views/oiling/task.vue b/src/views/oiling/task.vue
index a08e7ba..ea31d3c 100644
--- a/src/views/oiling/task.vue
+++ b/src/views/oiling/task.vue
@@ -1592,8 +1592,10 @@ export default {
if(this.addForm.orderList.length !== 0){
this.addForm.orderList.forEach(row => {
this.tableData.map((item,index) =>{
- if(item.id == row.id){
- this.$refs.maintainTable.toggleRowSelection(this.tableData[index],true);
+ if(item.id == row.projectId){
+ this.$nextTick(() =>{
+ this.$refs.maintainTable.toggleRowSelection(this.tableData[index],true);
+ })
}
})
});
@@ -1689,6 +1691,9 @@ export default {
addSpecimen() {
this.showProjectDialog = true;
this.page[0].current = 1
+ this.$nextTick(() =>{
+ this.$refs.maintainTable.clearSelection();
+ })
this.searchProject()
// getProList({current:1,size:200}).then(res =>{
// this.tableData = res.data.data.records
@@ -1830,7 +1835,7 @@ export default {
handleUpload(row, index) {
this.showResultDialog = true;
this.resultForm = row;
- this.resultForm.status = 0
+ // this.resultForm.status = 0
},
handleResult(){
console.log('res ===>',this.resultForm)