| | |
| | | tigger = true; |
| | | let menuId = this.fields.menuId; |
| | | this.http |
| | | .post("/api/menu/delMenu?menuId=" + menuId, {}, "正在删除数据....") |
| | | .post("/api/Sys_Menu/delMenu?menuId=" + menuId, {}, "正在删除数据....") |
| | | .then((x) => { |
| | | if (!x.status) return this.$Message.error(x.message); |
| | | this.$refs.form.reset(); |
| | |
| | | orderNo: this.fields.orderNo, |
| | | parentId: this.fields.parentId, |
| | | }); |
| | | console.log(this.tree) |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | this.getTreeItem(node[node.length > 1 ? node.length - 1 : 0]); |
| | | } |
| | | }, |
| | | created(){ |
| | | |
| | | }, |
| | | setup() { |
| | | const tree = ref([]); |
| | | const actionValues = ref([]); |
| | |
| | | { 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) => { |
| | |
| | | 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; |
| | |
| | | icon: "", |
| | | orderNo: "", |
| | | enable: 1, |
| | | menuType: null, |
| | | createDate: "", |
| | | creator: "", |
| | | modifyDate: "", |
| | |
| | | { 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", |