diff --git a/src/manager/Data/Index.vue b/src/manager/Data/Index.vue
new file mode 100644
index 0000000..5737a87
--- /dev/null
+++ b/src/manager/Data/Index.vue
@@ -0,0 +1,3 @@
+
+ 这是首页
+
\ No newline at end of file
diff --git a/src/manager/Data/UserManage.vue b/src/manager/Data/UserManage.vue
index 174e0a0..237022f 100644
--- a/src/manager/Data/UserManage.vue
+++ b/src/manager/Data/UserManage.vue
@@ -1,3 +1,4 @@
+
@@ -7,11 +8,16 @@
用户名称:
-
+
+
+ Content of dialog
+ Content of dialog
+ Content of dialog
+
-
+
{{ row.name }}
@@ -20,8 +26,9 @@
-
@@ -35,6 +42,9 @@ export default {
data() {
return {
value: "", // 添加一个属性来绑定输入框的值
+ currentPage: 1, // 当前页码
+ pageSize: 10, // 每页显示的数据条数
+ modal: false,
columns: [
{
type: "selection",
@@ -108,24 +118,17 @@ export default {
age: 26,
address: "Ottawa No. 2 Lake Park",
date: "2016-10-04"
- },
- {
- name: "Jon Snow",
- age: 26,
- address: "Ottawa No. 2 Lake Park",
- date: "2016-10-04"
- },
- {
- name: "Jon Snow",
- age: 26,
- address: "Ottawa No. 2 Lake Park",
- date: "2016-10-04"
- }, {
- name: "Jon Snow",
- age: 26,
- address: "Ottawa No. 2 Lake Park",
- date: "2016-10-04"
- }
+ },{
+ name: "Jon Snow",
+ age: 26,
+ address: "Ottawa No. 2 Lake Park",
+ date: "2016-10-04"
+ },{
+ name: "Jon Snow",
+ age: 26,
+ address: "Ottawa No. 2 Lake Park",
+ date: "2016-10-04"
+ }
]
};
},
@@ -133,6 +136,9 @@ export default {
handleSelectAll(status) {
this.$refs.selection.selectAll(status);
},
+ setRowClassName(row, index) {
+ return 'custom-row';
+ },
show(index) {
this.$Modal.info({
title: "编辑用户信息",
@@ -141,7 +147,16 @@ export default {
},
remove(index) {
this.data.splice(index, 1);
- }
- }
+ }, // ... (现有的方法)
+ handlePageChange(newPage) {
+ this.currentPage = newPage; // 更新当前页码
+ },
+ },
+ ok () {
+ this.$Message.info('Clicked ok');
+ },
+ cancel () {
+ this.$Message.info('Clicked cancel');
+ },
};
\ No newline at end of file
diff --git a/src/manager/LeftBar.vue b/src/manager/LeftBar.vue
index 739e959..4d852d2 100644
--- a/src/manager/LeftBar.vue
+++ b/src/manager/LeftBar.vue
@@ -7,6 +7,11 @@
overflow: hidden;
color:red;
}
+Submenu>MenuItem{
+ text-align: center;
+ left:-10px;
+
+}
@@ -15,51 +20,41 @@
-
diff --git a/src/router/index.js b/src/router/index.js
index e9db148..d58722d 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -29,6 +29,10 @@ const router = createRouter({
name:'manager',
component:()=>import('../manager/manager.vue'),
children:[{
+ path:'/manager',
+ component:()=>import('../manager/Data/Index.vue')
+ },
+ {
path:'/manager/UserManage',
component:()=>import('../manager/Data/UserManage.vue')
},