From d2d51c6ea1ec0fbcbbe013b444874b936e5e80ae Mon Sep 17 00:00:00 2001 From: laozt <2721205210@qq.com> Date: Fri, 22 Dec 2023 10:50:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/AddDialog/index.vue | 5 +++-- src/views/components/AddDialog/tab3.vue | 13 ++++++------- src/views/yingji/planManage.vue | 19 ++++++++----------- 3 files changed, 17 insertions(+), 20 deletions(-) diff --git a/src/views/components/AddDialog/index.vue b/src/views/components/AddDialog/index.vue index e08ca5f..efc15b9 100644 --- a/src/views/components/AddDialog/index.vue +++ b/src/views/components/AddDialog/index.vue @@ -54,7 +54,7 @@
- +
@@ -96,7 +96,8 @@ export default { this.dialogVisible = true; }, // 关闭 - closeDialog(item) { + closeDialog() { + this.$emit("closeDialog") this.dialogVisible = false; }, }, diff --git a/src/views/components/AddDialog/tab3.vue b/src/views/components/AddDialog/tab3.vue index 4e44d85..5a9143a 100644 --- a/src/views/components/AddDialog/tab3.vue +++ b/src/views/components/AddDialog/tab3.vue @@ -155,14 +155,13 @@ export default { }, methods: { onSubmit() { - console.log(); - let ids = [] - this.enterpriseList.map(item=>{ - ids.push( item.id) - - }) - updateIdList(ids.join(',')).then((response) => { + let ids = []; + this.enterpriseList.map((item) => { + ids.push(item.id); + }); + updateIdList(ids.join(",")).then((response) => { this.$modal.msgSuccess("提交成功"); + this.$emit("closeDialogtabs"); this.getList(); }); }, diff --git a/src/views/yingji/planManage.vue b/src/views/yingji/planManage.vue index 74f691b..ddb8c4e 100644 --- a/src/views/yingji/planManage.vue +++ b/src/views/yingji/planManage.vue @@ -54,7 +54,7 @@ - - + --> @@ -133,7 +133,9 @@ /> @@ -174,7 +176,7 @@ /> - + @@ -195,7 +197,6 @@ import AddDialog from "@/views/components/AddDialog/index.vue"; import InfoDialog from "./planmanage/components/infoDialog.vue"; import EditDialog from "./planmanage/components/editDialog.vue"; import executive from "./echarts/executive.vue"; -import { mapState } from "vuex"; export default { components: { AddDialog, InfoDialog, executive, EditDialog }, @@ -320,7 +321,7 @@ export default { this.queryParams.plannedMonth = e.join(","); }, // 关闭对话框刷新页面 - closeAddDialog() { + closeDialog() { this.getList(); }, /** 查询计划企业列表 */ @@ -328,6 +329,7 @@ export default { this.loading = true; listEnterprise(this.queryParams).then((response) => { this.enterpriseList = response.data; + // console.log(this.enterpriseList); this.total = response.data.length; this.loading = false; }); @@ -456,11 +458,6 @@ export default { return ""; }, }, - computed: { - ...mapState({ - dept: (state) => state.user.dept, - }), - }, created() { let treeData = JSON.parse(localStorage.getItem("TREE_DATA")); this.myDistrict = treeData;