From b88b8587f2b15240010455c5b8ddfe5cf3d36ce4 Mon Sep 17 00:00:00 2001 From: zhangyanan Date: Fri, 17 Oct 2025 16:09:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main/scrhidedata/addForm.vue | 14 +++++++++++- src/views/main/scrhidedata/editForm.vue | 17 ++++++++++++-- src/views/main/scrhidedata/index.vue | 5 +++++ src/views/main/scrworktask/addForm.vue | 26 ++++++++++++++++++++- src/views/main/scrworktask/editForm.vue | 30 +++++++++++++++++++++++-- src/views/main/scrworktask/index.vue | 16 ++++++++++--- 6 files changed, 99 insertions(+), 9 deletions(-) diff --git a/src/views/main/scrhidedata/addForm.vue b/src/views/main/scrhidedata/addForm.vue index dd49dc7..e690e45 100644 --- a/src/views/main/scrhidedata/addForm.vue +++ b/src/views/main/scrhidedata/addForm.vue @@ -41,6 +41,15 @@ > + + + {{ item.name }} + + @@ -62,7 +71,8 @@ }, visible: false, confirmLoading: false, - form: this.$form.createForm(this) + form: this.$form.createForm(this), + workPlaceData: [] } }, methods: { @@ -70,6 +80,8 @@ // 初始化方法 add (record) { this.visible = true + const workPlaceOption = this.$options + this.workPlaceData = workPlaceOption.filters['dictData']('work_place') }, /** * 提交表单 diff --git a/src/views/main/scrhidedata/editForm.vue b/src/views/main/scrhidedata/editForm.vue index f8feff5..b290122 100644 --- a/src/views/main/scrhidedata/editForm.vue +++ b/src/views/main/scrhidedata/editForm.vue @@ -42,6 +42,15 @@ > + + + {{ item.name }} + + @@ -63,7 +72,8 @@ }, visible: false, confirmLoading: false, - form: this.$form.createForm(this) + form: this.$form.createForm(this), + workPlaceData: [] } }, methods: { @@ -71,13 +81,16 @@ // 初始化方法 edit (record) { this.visible = true + const workPlaceOption = this.$options + this.workPlaceData = workPlaceOption.filters['dictData']('work_place') setTimeout(() => { this.form.setFieldsValue( { id: record.id, yhsl: record.yhsl, yzg: record.yzg, - wzg: record.wzg + wzg: record.wzg, + workPlace: record.workPlace } ) }, 100) diff --git a/src/views/main/scrhidedata/index.vue b/src/views/main/scrhidedata/index.vue index 215a36c..e5e1050 100644 --- a/src/views/main/scrhidedata/index.vue +++ b/src/views/main/scrhidedata/index.vue @@ -90,6 +90,11 @@ title: '未整改', align: 'center', dataIndex: 'wzg' + }, + { + title: '施工地点', + align: 'center', + dataIndex: 'workPlace' } ], tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' }, diff --git a/src/views/main/scrworktask/addForm.vue b/src/views/main/scrworktask/addForm.vue index 5e062ff..ba91a72 100644 --- a/src/views/main/scrworktask/addForm.vue +++ b/src/views/main/scrworktask/addForm.vue @@ -34,6 +34,24 @@ > + + + {{ item.name }} + + + + + {{ item.name }} + + @@ -56,7 +74,9 @@ nameData: [], visible: false, confirmLoading: false, - form: this.$form.createForm(this) + form: this.$form.createForm(this), + workPlaceData: [], + levelData: [] } }, methods: { @@ -66,6 +86,10 @@ this.visible = true const nameOption = this.$options this.nameData = nameOption.filters['dictData']('work_task_type') + const workPlaceOption = this.$options + this.workPlaceData = workPlaceOption.filters['dictData']('work_place') + const levelOption = this.$options + this.levelData = levelOption.filters['dictData']('work_level') }, /** * 提交表单 diff --git a/src/views/main/scrworktask/editForm.vue b/src/views/main/scrworktask/editForm.vue index d5f7a42..efbd38e 100644 --- a/src/views/main/scrworktask/editForm.vue +++ b/src/views/main/scrworktask/editForm.vue @@ -35,6 +35,24 @@ > + + + {{ item.name }} + + + + + {{ item.name }} + + @@ -57,7 +75,9 @@ nameData: [], visible: false, confirmLoading: false, - form: this.$form.createForm(this) + form: this.$form.createForm(this), + workPlaceData: [], + levelData: [] } }, methods: { @@ -67,12 +87,18 @@ this.visible = true const nameOption = this.$options this.nameData = nameOption.filters['dictData']('work_task_type') + const workPlaceOption = this.$options + this.workPlaceData = workPlaceOption.filters['dictData']('work_place') + const levelOption = this.$options + this.levelData = levelOption.filters['dictData']('work_level') setTimeout(() => { this.form.setFieldsValue( { id: record.id, name: record.name, - totalNum: record.totalNum + totalNum: record.totalNum, + workPlace: record.workPlace, + level: record.level } ) }, 100) diff --git a/src/views/main/scrworktask/index.vue b/src/views/main/scrworktask/index.vue index fda8b4d..071bb94 100644 --- a/src/views/main/scrworktask/index.vue +++ b/src/views/main/scrworktask/index.vue @@ -12,9 +12,9 @@ - - - + + + @@ -98,6 +98,16 @@ title: '数量', align: 'center', dataIndex: 'totalNum' + }, + { + title: '施工地点', + align: 'center', + dataIndex: 'workPlace' + }, + { + title: '级别', + align: 'center', + dataIndex: 'level' } ], tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },