Loading src/views/riskProject/add/addCurrent.vue +4 −2 Original line number Diff line number Diff line Loading @@ -1038,8 +1038,7 @@ export default { const currentFloor = floors.find(x=>x.id===data) console.log(floors,currentFloor); if(currentFloor){ this.form.floorId = currentFloor.id; this.form.floorName = currentFloor.text this.saveSlectfloor(currentFloor); } }) } Loading Loading @@ -1343,6 +1342,9 @@ export default { this.ShowfloorList = false; }, saveSlectfloor(data) { if(this.form.floorId!=data.id){ this.form.roomName = '' } this.form.floorId = data.id; this.form.floorName = data.text; this.ShowfloorList = false; Loading src/views/riskProject/add/addInherent.vue +4 −3 Original line number Diff line number Diff line Loading @@ -860,8 +860,7 @@ export default { const floors=[].concat(this.floorSource.map(x=>x.children).flat()) const currentFloor = floors.find(x=>x.id===data) if(currentFloor){ this.form.floorId = currentFloor.id; this.form.floorName = currentFloor.name this.saveSlectfloor(currentFloor); } }) } Loading Loading @@ -981,7 +980,6 @@ export default { getFloor() { return getFun(`/risk/plan/floor/list/${this.form.buildingIds}`) .then(res => { debugger // this.$toast.clear(); // this.showSource = true; Loading Loading @@ -1058,6 +1056,9 @@ export default { this.ShowfloorList = false; }, saveSlectfloor(data) { if(this.form.floorId!=data.id){ this.form.roomName = '' } this.form.floorId = data.id; this.form.floorName = data.text; this.ShowfloorList = false; Loading src/views/riskProject/assess/model/step2.vue +3 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,9 @@ import { getFun, postFun } from "@/service/table"; }, methods:{ getName(item){ return item.factorItemsList.find(x=>x.id===item.value)?.indicatorItem||'' const name = item.factorItemsList.find(x=>x.id===item.value) // return ?.indicatorItem||'' return name?name.indicatorItem:'' }, // 根据ids获取列表 getList(){ Loading Loading
src/views/riskProject/add/addCurrent.vue +4 −2 Original line number Diff line number Diff line Loading @@ -1038,8 +1038,7 @@ export default { const currentFloor = floors.find(x=>x.id===data) console.log(floors,currentFloor); if(currentFloor){ this.form.floorId = currentFloor.id; this.form.floorName = currentFloor.text this.saveSlectfloor(currentFloor); } }) } Loading Loading @@ -1343,6 +1342,9 @@ export default { this.ShowfloorList = false; }, saveSlectfloor(data) { if(this.form.floorId!=data.id){ this.form.roomName = '' } this.form.floorId = data.id; this.form.floorName = data.text; this.ShowfloorList = false; Loading
src/views/riskProject/add/addInherent.vue +4 −3 Original line number Diff line number Diff line Loading @@ -860,8 +860,7 @@ export default { const floors=[].concat(this.floorSource.map(x=>x.children).flat()) const currentFloor = floors.find(x=>x.id===data) if(currentFloor){ this.form.floorId = currentFloor.id; this.form.floorName = currentFloor.name this.saveSlectfloor(currentFloor); } }) } Loading Loading @@ -981,7 +980,6 @@ export default { getFloor() { return getFun(`/risk/plan/floor/list/${this.form.buildingIds}`) .then(res => { debugger // this.$toast.clear(); // this.showSource = true; Loading Loading @@ -1058,6 +1056,9 @@ export default { this.ShowfloorList = false; }, saveSlectfloor(data) { if(this.form.floorId!=data.id){ this.form.roomName = '' } this.form.floorId = data.id; this.form.floorName = data.text; this.ShowfloorList = false; Loading
src/views/riskProject/assess/model/step2.vue +3 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,9 @@ import { getFun, postFun } from "@/service/table"; }, methods:{ getName(item){ return item.factorItemsList.find(x=>x.id===item.value)?.indicatorItem||'' const name = item.factorItemsList.find(x=>x.id===item.value) // return ?.indicatorItem||'' return name?name.indicatorItem:'' }, // 根据ids获取列表 getList(){ Loading