From dafeebdf7460060f44abfde12b436e38e7220a59 Mon Sep 17 00:00:00 2001 From: xzt <1113240624@qq.com> Date: Tue, 11 Mar 2025 17:24:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A0=87=E5=87=86=E8=A1=8C?= =?UTF-8?q?=E4=B8=BA=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projectInfo/projectWarning/list.vue | 77 +++- .../src/views/standard/bad/index.vue | 427 +++++++----------- .../src/views/standard/good/index.vue | 420 +++++++---------- 3 files changed, 408 insertions(+), 516 deletions(-) diff --git a/jwtech-admin-page/src/views/building/projectInfo/projectWarning/list.vue b/jwtech-admin-page/src/views/building/projectInfo/projectWarning/list.vue index 4a659bfe..ea6cade6 100644 --- a/jwtech-admin-page/src/views/building/projectInfo/projectWarning/list.vue +++ b/jwtech-admin-page/src/views/building/projectInfo/projectWarning/list.vue @@ -94,8 +94,8 @@ - - + + @@ -171,8 +171,8 @@ - - + + @@ -207,19 +207,50 @@ /> - + - + + - + + + - + + + @@ -308,21 +339,21 @@ export default { { required: true, message: "请输入时间节点", - trigger: "blur", + trigger: "change", }, ], conYear: [ { required: true, message: "请输入年度", - trigger: "blur", + trigger: "change", }, ], conRule: [ { required: true, message: "请输入约束条件", - trigger: "blur", + trigger: "change", }, ], ruleMsg: [ @@ -334,7 +365,9 @@ export default { ], }, activeName: 'regular', - formData: {} + formData: {}, + yearOptions: [], + constraintOption: [] } }, watch: { @@ -348,6 +381,7 @@ export default { } }, created() { + this.getDictList() this.queryParams.data.proNo = this.$route.query.proNo this.handleJudgeTab() this.getProjectInfo() @@ -375,6 +409,23 @@ export default { this.loading = false; }); }, + // 获取字典信息 + getDictList() { + this.getDicts("sl_year").then((response) => { + this.yearOptions = response.data; + }) + this.getDicts("sl_constraint").then((response) => { + this.constraintOption = response.data; + }) + }, + // 菜单状态字典翻译 + yearFormat(row, column) { + return this.selectDictLabel(this.yearOptions, row.conYear); + }, + // 菜单状态字典翻译 + constraintFormat(row, column) { + return this.selectDictLabel(this.constraintOption, row.conRule); + }, handleJudgeTab() { let tabNum = this.$route.query.tabNum if (tabNum === '1') { @@ -407,7 +458,7 @@ export default { updateUid: null, updateTime: null, remark: null, - status: "0" + status: null }; this.resetForm("form"); }, diff --git a/jwtech-admin-page/src/views/standard/bad/index.vue b/jwtech-admin-page/src/views/standard/bad/index.vue index 98e0b5f8..9d0dda3f 100644 --- a/jwtech-admin-page/src/views/standard/bad/index.vue +++ b/jwtech-admin-page/src/views/standard/bad/index.vue @@ -18,183 +18,7 @@ > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 搜索 重置 @@ -244,20 +68,30 @@ - - - - - - - - - - - - - + + + + + + + + + + {{ item.name }} + + + + - - + + - + - + - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - + + - + + + + + 点击上传 + + + 支持jpg/png/pdf/word/excel文件等 + +