From f0039b39c1fc71162d5b6020a2bda840578d229a Mon Sep 17 00:00:00 2001 From: X_Rian <904416525@qq.com> Date: Sat, 27 Jul 2024 15:58:03 +0800 Subject: [PATCH] =?UTF-8?q?flx=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=AE=89?= =?UTF-8?q?=E5=85=A8=E8=B4=A8=E9=87=8F=E9=80=89=E6=8B=A9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 4 ++-- pages/projectEnd/qualityManage/addIssue.vue | 6 ++++++ pages/projectEnd/safeSame/addIssue.vue | 8 +++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index ce875ab9..0357a3c4 100644 --- a/main.js +++ b/main.js @@ -38,9 +38,9 @@ if (process.env.NODE_ENV === 'development') { // 开发环境 console.log('开发环境') // Vue.prototype.url_config = 'http://47.93.215.234:9809/' // 鞍钢正式地址(弃用) - // Vue.prototype.url_config = 'http://42.180.188.17:9809/' // 鞍钢正式地址 + Vue.prototype.url_config = 'http://42.180.188.17:9809/' // 鞍钢正式地址 // Vue.prototype.url_config = 'http://42.180.188.17:11211/' // 鞍钢测试地址 - Vue.prototype.url_config = 'http://182.90.224.237:51234/' //雄哥内网穿透地址 + // Vue.prototype.url_config = 'http://182.90.224.237:51234/' //雄哥内网穿透地址 // Vue.prototype.url_config = 'http://jxj.zhgdyun.com:61212/' //杰哥内网穿透地址 // Vue.prototype.url_config = 'http://192.168.34.221:28888/' //郭圣雄本地 // Vue.prototype.url_config = 'http://192.168.34.221:9111/' //郭圣雄本地 diff --git a/pages/projectEnd/qualityManage/addIssue.vue b/pages/projectEnd/qualityManage/addIssue.vue index 9ddd53ad..13847320 100644 --- a/pages/projectEnd/qualityManage/addIssue.vue +++ b/pages/projectEnd/qualityManage/addIssue.vue @@ -934,12 +934,15 @@ console.log(e) //type ==1 问题等级;2紧急情况;3检查人;4 检查时间;5整改时限; 6整改人; 7复查人; 8核验人; if (type == 1) { + if(this.issueGradeList.length == 0) return; this.issueGradeIndex = e.detail.value; this.form.level = this.issueGradeList[e.detail.value].value; } else if (type == 2) { + if(this.urgencyList.length == 0) return; this.urgencyIndex = e.detail.value; this.form.urgentLevel = this.urgencyList[e.detail.value].value; } else if (type == 3) { + if(this.personList.length == 0) return; this.inspectManIndex = e.detail.value; this.form.inspectManId = this.personList[e.detail.value].userId } else if (type == 'startTime') { @@ -947,13 +950,16 @@ } else if (type == 'startTime2') { this.form.changeLimitTime = `${e.f1} ${e.f8}`; } else if (type == 6) { + if(this.personUpdateList.length == 0) return; this.changePeopleIndex = e.detail.value; this.form.changeId = this.personUpdateList[e.detail.value].userId; console.log(this.changePeopleIndex, this.form.changeId) } else if (type == 7) { + if(this.reviewList.length == 0) return; this.reviewIndex = e.detail.value; this.form.reviewId = this.reviewList[e.detail.value].userId; } else if (type == 8) { + if(this.personList.length == 0) return; this.verifyManIndex = e.detail.value; this.form.verifyManId = this.personList[e.detail.value].userId; } diff --git a/pages/projectEnd/safeSame/addIssue.vue b/pages/projectEnd/safeSame/addIssue.vue index 099dfc56..ce802f2b 100644 --- a/pages/projectEnd/safeSame/addIssue.vue +++ b/pages/projectEnd/safeSame/addIssue.vue @@ -938,15 +938,18 @@ //下拉选择回显 bindPickerChange(e, type) { - console.log(e) + console.log(e, e.detail.value, type) //type ==1 问题等级;2紧急情况;3检查人;4 检查时间;5整改时限; 6整改人; 7复查人; 8核验人; if (type == 1) { + if(this.issueGradeList.length == 0) return; this.issueGradeIndex = e.detail.value; this.form.level = this.issueGradeList[e.detail.value].value; } else if (type == 2) { + if(this.urgencyList.length == 0) return; this.urgencyIndex = e.detail.value; this.form.urgentLevel = this.urgencyList[e.detail.value].value; } else if (type == 3) { + if(this.personList.length == 0) return; this.inspectManIndex = e.detail.value; this.form.inspectManId = this.personList[e.detail.value].userId } else if (type == 'startTime') { @@ -954,13 +957,16 @@ } else if (type == 'startTime2') { this.form.changeLimitTime = `${e.f1} ${e.f8}`; } else if (type == 6) { + if(this.personUpdateList.length == 0) return; this.changePeopleIndex = e.detail.value; this.form.changeId = this.personUpdateList[e.detail.value].userId; console.log(this.changePeopleIndex, this.form.changeId) } else if (type == 7) { + if(this.reviewList.length == 0) return; this.reviewIndex = e.detail.value; this.form.reviewId = this.reviewList[e.detail.value].userId; } else if (type == 8) { + if(this.personList.length == 0) return; this.verifyManIndex = e.detail.value; this.form.verifyManId = this.personList[e.detail.value].userId; }