diff --git a/pages/investigation/components/investigation-item.vue b/pages/investigation/components/investigation-item.vue index 512c7da..070d2e2 100644 --- a/pages/investigation/components/investigation-item.vue +++ b/pages/investigation/components/investigation-item.vue @@ -1,293 +1,280 @@ - - - - - - + + + + + + \ No newline at end of file diff --git a/pages/investigation/components/investigation-item2.vue b/pages/investigation/components/investigation-item2.vue index 2f32ad4..bf166c2 100644 --- a/pages/investigation/components/investigation-item2.vue +++ b/pages/investigation/components/investigation-item2.vue @@ -1,314 +1,300 @@ - - - - - - - \ No newline at end of file + + + + + + \ No newline at end of file diff --git a/pages/investigation/components/problem-tree-item.vue b/pages/investigation/components/problem-tree-item.vue index 70c8371..17f4120 100644 --- a/pages/investigation/components/problem-tree-item.vue +++ b/pages/investigation/components/problem-tree-item.vue @@ -50,7 +50,8 @@ export default { $: this.$, originList: [], problemTreeSelect: null, - problemTreeSelectList: [], + problemTreeSelectList: [], + problemTreeSelectAllList: [], problemTreeSelectConfirmList: [], }; }, @@ -74,14 +75,15 @@ export default { .globalRequest("/hiddenDanger/highDanger/getDangerItems", {}, "GET") .then((res) => { if (res.code == 200) { - this.originList = res.result; - this.problemTreeSelectList = res.result; - if(this.hiddenDangerList2.length>0) { - this.problemTreeSelectConfirmList = this.hiddenDangerList2 - console.log(this.hiddenDangerList2) - this.problemTreeSelectList = this.hiddenDangerList2[1].children - this.problemTreeSelect = this.hiddenDangerList2[2].id - } + this.originList =JSON.parse(JSON.stringify( res.result)); + this.problemTreeSelectList =JSON.parse(JSON.stringify( res.result)); + this.problemTreeSelectAllList=JSON.parse(JSON.stringify( res.result)) + // if(this.hiddenDangerList2.length>0) { + // // this.problemTreeSelectConfirmList = this.hiddenDangerList2 + // console.log(this.hiddenDangerList2) + // this.problemTreeSelectList = this.hiddenDangerList2[1].children + // this.problemTreeSelect = this.hiddenDangerList2[2].id + // } } }); }, @@ -89,7 +91,8 @@ export default { skipPage(even) { this.$.open(even); }, - handleSelectProblem(item, index) { + handleSelectProblem(item, index) { + console.log(11111) this.problemTreeSelectConfirmList[Number(item.nlevel) - 1] = item; if (item.children && item.children.length > 0) { this.problemTreeSelectList = item.children; diff --git a/pages/investigation/task.vue b/pages/investigation/task.vue index 6a626b1..4de9cab 100644 --- a/pages/investigation/task.vue +++ b/pages/investigation/task.vue @@ -376,7 +376,7 @@ 存在隐患 @@ -386,7 +386,7 @@ {{ item.dangerProblem }} - + - - {{ this.hiddenDangerList2[0].itemname }}/{{ - this.hiddenDangerList2[1].itemname - }}/{{ this.hiddenDangerList2[2].itemname }}{{ hiddenDangerList2[0].itemname }}/{{ + hiddenDangerList2[1].itemname + }}/{{ hiddenDangerList2[2].itemname }} - {{ - this.dangerProblem + {{ + dangerProblem }} 请选择 @@ -474,7 +473,8 @@ label="隐患图片" label-position="top" label-width="200px" - /> + /> + 0){ + let form={ + bigCategory: this.hiddenDangerList2[0].id, + bigCategoryName: this.hiddenDangerList2[0].itemname, + smallCategory: this.hiddenDangerList2[1].id, + smallCategoryName: this.hiddenDangerList2[1].itemname, + hdTerm: this.hiddenDangerList2[2].id, + hdTermName: this.hiddenDangerList2[2].itemname, + hdDesc: this.describe.hdDesc, + hdPic: this.fileList.length>0?this.fileList[0].url:'', + hdInfo: this.describe.hdInfo, + dangerProblem:this.hiddenDangerList2[0].itemname+'/'+ this.hiddenDangerList2[1].itemname+'/'+ this.hiddenDangerList2[2].itemname + } + if(this.addInvestigationInfo.type=='add'){ + this.hiddenDangerList.push(form); + }else{ + this.$set(this.hiddenDangerList,this.addInvestigationInfo.index,form) + } + } + this.showProblem = false; }, investigationDetailHandle() { @@ -1003,7 +1034,8 @@ export default { result: resultInfo, url: resultInfo.result, }) - ); + ); + console.log(this[key]) } else { this.$.toast("上传失败"); this[key].splice( @@ -1019,7 +1051,13 @@ export default { submit(temporary) { console.log(this.formData); console.log(this.investigationSelectList); - console.log(this.hiddenDangerList); + console.log({ + ...this.formData, + businessId: this.businessId, + extraConfigs: extraConfigs, + describe: this.hiddenDangerList, + temporary, + }); let extraConfigs = []; this.investigationSelectList.map((r) => { r.extraConfigs.map((s) => { @@ -1309,7 +1347,9 @@ export default { .problem-box { width: 100%; padding: 20rpx; - box-sizing: border-box; + box-sizing: border-box; + max-height: calc(100vh - 100px); + overflow: auto; .detail-item { margin-bottom: 20rpx; } diff --git a/pages/logIn/logIn.vue b/pages/logIn/logIn.vue index 1def5de..9e1fb13 100644 --- a/pages/logIn/logIn.vue +++ b/pages/logIn/logIn.vue @@ -167,7 +167,7 @@ export default { this.isDisabled = true this.$request.globalRequest(url, datas, 'POST').then(res => { if(res.code === 200){ - this.$.toast('成功') + this.$.toast('登录成功') this.$.setData('token',res.result) this.$.setData('userInfo', { username: res.result }) setTimeout(() => {