From 5baca05809de7e56f9fb29fd9fa7d167873a1098 Mon Sep 17 00:00:00 2001 From: laozt <2721205210@qq.com> Date: Fri, 22 Dec 2023 15:57:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/AddDialog/index.vue | 19 ++++++++------ src/views/components/AddDialog/tab1.vue | 32 ++++++++++++++++-------- src/views/components/AddDialog/tab2.vue | 17 +++++++------ src/views/components/AddDialog/tab3.vue | 4 +-- src/views/yingji/planManage.vue | 2 +- 5 files changed, 46 insertions(+), 28 deletions(-) diff --git a/src/views/components/AddDialog/index.vue b/src/views/components/AddDialog/index.vue index efc15b9..f7b7f9c 100644 --- a/src/views/components/AddDialog/index.vue +++ b/src/views/components/AddDialog/index.vue @@ -48,13 +48,13 @@
- +
- +
- +
@@ -85,19 +85,24 @@ export default { created() {}, methods: { selectTab(index) { - console.log(index); + // console.log(index); this.activeTab = index; - if (index == 2) { + if (index == 0) { + this.$refs.tabs1.refreshList(); + } else if (index == 1) { + this.$refs.tabs2.refreshList(); + } else if (index == 2) { this.$refs.tabs.reList(); } }, // 打开 - openDialog(item, dept) { + openDialog() { + this.activeTab = 0; this.dialogVisible = true; }, // 关闭 closeDialog() { - this.$emit("closeDialog") + this.$emit("closeDialog"); this.dialogVisible = false; }, }, diff --git a/src/views/components/AddDialog/tab1.vue b/src/views/components/AddDialog/tab1.vue index 3eff287..3838205 100644 --- a/src/views/components/AddDialog/tab1.vue +++ b/src/views/components/AddDialog/tab1.vue @@ -39,7 +39,7 @@ clearable /> - + { diff --git a/src/views/components/AddDialog/tab2.vue b/src/views/components/AddDialog/tab2.vue index 4fbfa2c..afe8fa0 100644 --- a/src/views/components/AddDialog/tab2.vue +++ b/src/views/components/AddDialog/tab2.vue @@ -278,15 +278,18 @@ export default { }; }, created() { - let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO")); - if (userInfo.lawLevel == "县级" || userInfo.lawLevel == "镇级") { - this.queryParams.district = userInfo.permissionCode; - this.queryPlanEnterpriseParams.district = userInfo.permissionCode; - } - this.getList(); - this.getPlanEnterpriseList(); + this.refreshList(); }, methods: { + refreshList() { + let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO")); + if (userInfo.lawLevel == "县级" || userInfo.lawLevel == "镇级") { + this.queryParams.district = userInfo.permissionCode; + this.queryPlanEnterpriseParams.district = userInfo.permissionCode; + } + this.getList(); + this.getPlanEnterpriseList(); + }, /** 查询计划企业列表 */ getPlanEnterpriseList() { listEnterprise(this.queryPlanEnterpriseParams).then((response) => { diff --git a/src/views/components/AddDialog/tab3.vue b/src/views/components/AddDialog/tab3.vue index 3d7ef5f..fc7d1cd 100644 --- a/src/views/components/AddDialog/tab3.vue +++ b/src/views/components/AddDialog/tab3.vue @@ -42,7 +42,7 @@ @@ -190,7 +190,7 @@ export default { .then(({ value }) => { // 调用接口 if (row.id != null) { - row.createTime = null; + // row.createTime = null; row.plannedMonth = value; updateEnterprise(row).then((response) => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/yingji/planManage.vue b/src/views/yingji/planManage.vue index bef4926..96efd55 100644 --- a/src/views/yingji/planManage.vue +++ b/src/views/yingji/planManage.vue @@ -388,7 +388,7 @@ export default { }, /** 新增按钮操作 */ handleAdd() { - this.$refs.addDialog.openDialog("newlyIncreased", this.dept); + this.$refs.addDialog.openDialog(); }, /** 详情按钮操作 */ handleInfo(row) {