diff --git a/src/components/menu_tree/index.vue b/src/components/menu_tree/index.vue index b3a255d4ce163a3930499ab7e3ff120a338d71cf..4bd300e12a7cd7bf5bc25c494d9e7e17d1bfe1c9 100644 --- a/src/components/menu_tree/index.vue +++ b/src/components/menu_tree/index.vue @@ -5,7 +5,6 @@ checkable :replaceFields="replaceFields" :tree-data="treeData" - style="max-height:400px" class="tw-overflow-y-auto" :expandedKeys.sync="expandedKeys" v-bind="$attrs" diff --git a/src/components/table/drawer.vue b/src/components/table/drawer.vue new file mode 100644 index 0000000000000000000000000000000000000000..ec7afca98deb994fea5f5b5ff65b414a097b82cb --- /dev/null +++ b/src/components/table/drawer.vue @@ -0,0 +1,69 @@ + + + diff --git a/src/components/table/index.vue b/src/components/table/index.vue index 29b8d60e6fc4f1367f0fe139a2e543d8733c61ae..cd6351007833dc5c0ef9f248391e884fd843a2dd 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -58,7 +58,7 @@ :width="(addBtn && addBtn.width) || 600" destroyOnClose > -
+
@@ -179,6 +179,8 @@ export default { add() { this.addVisible = true; + this.type = 0; + this.noFooter = false; }, addDrawerClose() { this.addVisible = false; diff --git a/src/components/table/table.vue b/src/components/table/table.vue new file mode 100644 index 0000000000000000000000000000000000000000..d3b657032b8ba7e6ed164222d01f20f287d671aa --- /dev/null +++ b/src/components/table/table.vue @@ -0,0 +1,99 @@ + + + diff --git a/src/pages/system/view/role/form.vue b/src/pages/system/view/role/form.vue index ca4208ba03cad8cd721b18ebd1ecca2e7324d101..9df4648e6984aaa6b38db019196dc2d42ce1bf1f 100644 --- a/src/pages/system/view/role/form.vue +++ b/src/pages/system/view/role/form.vue @@ -38,10 +38,17 @@ export default { defaultCheckedKeys: [], }; }, - computed: {}, methods: { submit() { - const query = { ...this.form, functionAuthority: this.checkedKeys.map(i => i.toString()) }; + const query = { + ...this.form, + authorityList: this.$refs['menuTree'].get().map(i => ({ + ...i, + nodeId: i.menuId, + parentNodeId: i.parentMenuId, + nodeType: i.menuType, + })), + }; return this.isEdit ? updateRoleApi(query) : addRoleApi(query); }, setData(data, type) { diff --git a/src/pages/user/components/message.vue b/src/pages/user/components/message.vue index 487eee8e8dbb1770fc6f68200f0000d345e4397f..e3be9beb491beb25db68b35904c7b3ad59d52b92 100644 --- a/src/pages/user/components/message.vue +++ b/src/pages/user/components/message.vue @@ -1,8 +1,33 @@