From 143b2710f6e171ab4de443cee3569bfe47ba10f0 Mon Sep 17 00:00:00 2001 From: laozt <2721205210@qq.com> Date: Wed, 20 Dec 2023 15:50:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/AddDialog/index.vue | 2 +- src/views/components/AddDialog/tab1.vue | 3 ++- src/views/components/AddDialog/tab2.vue | 20 +++++++++++++++++--- src/views/components/AddDialog/tab3.vue | 13 ++++++++++++- 4 files changed, 32 insertions(+), 6 deletions(-) diff --git a/src/views/components/AddDialog/index.vue b/src/views/components/AddDialog/index.vue index a5fe2cb..e08ca5f 100644 --- a/src/views/components/AddDialog/index.vue +++ b/src/views/components/AddDialog/index.vue @@ -88,7 +88,7 @@ export default { console.log(index); this.activeTab = index; if (index == 2) { - this.$refs.tabs.getList(); + this.$refs.tabs.reList(); } }, // 打开 diff --git a/src/views/components/AddDialog/tab1.vue b/src/views/components/AddDialog/tab1.vue index e111160..23b9546 100644 --- a/src/views/components/AddDialog/tab1.vue +++ b/src/views/components/AddDialog/tab1.vue @@ -228,7 +228,7 @@ export default { lawLevel: null, lawHierarchy: null, plannedMonth: null, - status: 1, + status: 0, checkStatus: null, checkId: null, checkAgeing: null, @@ -243,6 +243,7 @@ export default { 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(); diff --git a/src/views/components/AddDialog/tab2.vue b/src/views/components/AddDialog/tab2.vue index b71eab7..ed8c34b 100644 --- a/src/views/components/AddDialog/tab2.vue +++ b/src/views/components/AddDialog/tab2.vue @@ -228,7 +228,7 @@ export default { lawLevel: null, lawHierarchy: null, plannedMonth: null, - status: 1, + status: 0, checkStatus: null, checkId: null, checkAgeing: null, @@ -240,6 +240,11 @@ 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(); }, @@ -265,8 +270,15 @@ export default { }, // 加入草稿箱 handleAddDrafts(row) { - // console.log("1", row); this.resetPlanEnterprise(); + + let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO")); + // console.log(userInfo.lawSort); + + this.formPlanEnterprise.lawSort = userInfo.lawSort; + this.formPlanEnterprise.lawAreas = userInfo.lawAreas; + this.formPlanEnterprise.lawLevel = userInfo.lawLevel; + this.formPlanEnterprise.lawHierarchy = userInfo.userName; this.formPlanEnterprise.plannedYear = this.$moment(new Date()).format( "yyyy" ); @@ -331,7 +343,9 @@ export default { }, // 获取行政区划树 quhuadizhi(district) { - this.option = district; + // console.log(">>>>>>>>"); + // console.log(district); + // console.log(">>>>>>>>"); }, // 匹配行政区划 componendDistrict(district) { diff --git a/src/views/components/AddDialog/tab3.vue b/src/views/components/AddDialog/tab3.vue index b46d117..9accff3 100644 --- a/src/views/components/AddDialog/tab3.vue +++ b/src/views/components/AddDialog/tab3.vue @@ -142,7 +142,11 @@ export default { }; }, created() { - this.getList(); + this.$nextTick(() => { + let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO")); + this.queryParams.district = userInfo.permissionCode; + this.getList(); + }); }, methods: { // 编辑月份 @@ -175,6 +179,13 @@ export default { }); }); }, + reList() { + this.$nextTick(() => { + let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO")); + this.queryParams.district = userInfo.permissionCode; + this.getList(); + }); + }, /** 查询计划企业列表 */ getList() { this.loading = true;