From 992b14d4c5e0ebba87d3ae8fb1ca9d06c0bdc6e9 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期五, 14 三月 2025 16:20:39 +0800 Subject: [PATCH] qx --- src/views/system/tijian/index.vue | 3 ++- src/layout/components/Sidebar/index.vue | 22 ++++++++++++++++++++-- src/views/system/package/index.vue | 2 +- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 1d23080..e067122 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -4,7 +4,7 @@ <el-scrollbar :class="settings.sideTheme" wrap-class="scrollbar-wrapper"> <!-- :default-openeds="['/tijian']" --> <el-menu - + :default-openeds="defaultOpeneds" :default-active="activeMenu" :collapse="isCollapse" :background-color="settings.sideTheme === 'theme-dark' ? variables.menuBackground : variables.menuLightBackground" @@ -26,6 +26,7 @@ </template> <script> +import { getRouters } from '@/api/menu' import { mapGetters, mapState } from "vuex"; import Logo from "./Logo"; import SidebarItem from "./SidebarItem"; @@ -33,9 +34,16 @@ export default { components: { SidebarItem, Logo }, + data() { + return { + defaultActive: '', + defaultOpeneds: [] + }; + }, computed: { ...mapState(["settings"]), ...mapGetters(["sidebarRouters", "sidebar"]), + activeMenu() { const route = this.$route; const { meta, path } = route; @@ -54,6 +62,16 @@ isCollapse() { return !this.sidebar.opened; } - } + }, + created() { + this.route(); + }, + methods: { + route(){ + getRouters().then(res => { + this.defaultOpeneds = [res.data[0].path] + }) + }, + }, }; </script> diff --git a/src/views/system/package/index.vue b/src/views/system/package/index.vue index 58136e7..19ccdde 100644 --- a/src/views/system/package/index.vue +++ b/src/views/system/package/index.vue @@ -364,7 +364,7 @@ </template> </el-table-column>--> </el-table> - <!-- <h3 style="font-weight: 600">鍚堣锛歿{ pics }}鍏�</h3> --> + <h4 style="font-weight: 600;padding-left:20px">涓�鍏遍�変腑{{DataList.length}}椤癸紝鍚堣锛歿{ form.xianprice }}鍏�</h4> </div> </el-col> </el-row> diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue index 52c3914..af5f1cd 100644 --- a/src/views/system/tijian/index.vue +++ b/src/views/system/tijian/index.vue @@ -1727,6 +1727,7 @@ addCustomer(formData).then((response) => { this.responseList = response.data; + this.form.tjType = this.dict.type.dict_team[0].value; this.$modal.msgSuccess("鏂板鎴愬姛"); _this.tcShow = true; _this.isDisabled = true; @@ -1772,7 +1773,7 @@ if (this.form.reservationId != null) { if (this.form.groupingId) { this.form.firmName = this.form.compName; - this.form.tjType = "1"; + this.form.tjType = this.dict.type.dict_team[2].value; this.CompanyList.forEach((item) => { if (item.cnName == this.form.firmName) { this.form.firmId = item.drugManufacturerId; -- Gitblit v1.8.0