From 2cc4dfef234b47bef364edf798b5051a25f33217 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期五, 30 八月 2024 10:58:56 +0800 Subject: [PATCH] 1 --- WIDESEAWCS_Client/src/views/system/Sys_Menu.vue | 40 ++++++++++++++++++++-------------------- 1 files changed, 20 insertions(+), 20 deletions(-) diff --git a/WIDESEAWCS_Client/src/views/system/Sys_Menu.vue b/WIDESEAWCS_Client/src/views/system/Sys_Menu.vue index b56c380..93feed5 100644 --- a/WIDESEAWCS_Client/src/views/system/Sys_Menu.vue +++ b/WIDESEAWCS_Client/src/views/system/Sys_Menu.vue @@ -176,7 +176,7 @@ tigger = true; let menuId = this.fields.menuId; this.http - .post("/api/menu/delMenu?menuId=" + menuId, {}, "姝e湪鍒犻櫎鏁版嵁....") + .post("/api/Sys_Menu/delMenu?menuId=" + menuId, {}, "姝e湪鍒犻櫎鏁版嵁....") .then((x) => { if (!x.status) return this.$Message.error(x.message); this.$refs.form.reset(); @@ -227,6 +227,7 @@ orderNo: this.fields.orderNo, parentId: this.fields.parentId, }); + console.log(this.tree) }); }); }, @@ -247,6 +248,9 @@ this.getTreeItem(node[node.length > 1 ? node.length - 1 : 0]); } }, + created(){ + + }, setup() { const tree = ref([]); const actionValues = ref([]); @@ -257,8 +261,8 @@ { text: "缂栬緫", value: "Update" }, { text: "瀵煎叆", value: "Import" }, { text: "瀵煎嚭", value: "Export" }, - { text: "涓婁紶", value: "Upload" }, - { text: "瀹℃牳", value: "Audit" }, + // { text: "涓婁紶", value: "Upload" }, + // { text: "瀹℃牳", value: "Audit" }, ]); const actions = ref([]); actionValues.value = action.value.map((x) => { @@ -268,9 +272,6 @@ http.post("/api/Sys_Menu/getMenu", {}, true).then((x) => { x.forEach(item => { item.icon = 'el-icon-menu'; - if (item.menuType == 1 && !item.parentId) { - // item.name="(app)"+item.name; - } }) tree.value = x; @@ -293,7 +294,6 @@ icon: "", orderNo: "", enable: 1, - menuType: null, createDate: "", creator: "", modifyDate: "", @@ -379,19 +379,19 @@ { key: 0, value: "绂佺敤" }, ], }, - { - // 2022.03.26澧炵Щ鍔ㄧ鍔犺彍鍗曠被鍨� - title: "鑿滃崟绫诲瀷", - field: "menuType", - required: true, - type: "select", - colSize: 4, - data: [ - { key: 1, value: "WCS鑿滃崟" }, - { key: 0, value: "WMS鑿滃崟" }, - { key: 99, value: "鍏辩敤" } - ], - }, + // { + // // 2022.03.26澧炵Щ鍔ㄧ鍔犺彍鍗曠被鍨� + // title: "鑿滃崟绫诲瀷", + // field: "menuType", + // required: true, + // type: "select", + // colSize: 4, + // data: [ + // { key: 1, value: "WCS鑿滃崟" }, + // { key: 0, value: "WMS鑿滃崟" }, + // { key: 99, value: "鍏辩敤" } + // ], + // }, { title: "鍥炬爣Icon", field: "icon", -- Gitblit v1.9.3