@@ -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 @@
-
+
+
+
+
+
+
+
+
+
+
+ 已读
+ 未读
+
+
+
+
-
+