diff --git a/src/manager/Data/CarouselManagement.vue b/src/manager/Data/CarouselManagement.vue index 13c68f8..c8c8ffe 100644 --- a/src/manager/Data/CarouselManagement.vue +++ b/src/manager/Data/CarouselManagement.vue @@ -1,3 +1,413 @@ + \ No newline at end of file +
+
+ + 用户名: + + 电话号: + + + + + +
+ +
+ + + + + + + + +
+
+ +
+ + +
+ + +
+ +
+
+ + 用户名: + + + + +
+
+ + 性别: + + + + + + + 角色: + + +
+ +
邮箱:
+ +
地址:
+ +
简介:
+
+
+ + + +

请问是否要删除xxx数据

+
+ + +
+
用户名:
+
密码:
+
地址:
+
电话:
+
邮箱:
+
性别: + + +
+
年龄:
+ + + +
+
+
+ +
+ + + \ No newline at end of file diff --git a/src/manager/Data/RoleManage.vue b/src/manager/Data/RoleManage.vue index 9bb84ed..6135d81 100644 --- a/src/manager/Data/RoleManage.vue +++ b/src/manager/Data/RoleManage.vue @@ -19,10 +19,10 @@
- 用户名: - - 电话号: - + 角色id: + + + @@ -65,37 +65,27 @@ title="编辑" @on-ok="editOk" @on-cancel="editCancel"> -
-
+
+
- 用户名: + 角色名称: - - - -
-
- - 性别: - - - +
+ + + +
+
+
+ + 状态: + + + - - 角色: - - -
- -
邮箱:
- -
地址:
- -
简介:
-
+
+
@@ -104,22 +94,13 @@ title="删除" @on-ok="deleteOk" @on-cancel="deleteCancel"> -

请问是否要删除xxx数据

+

请问是否要删除数据

- +
-
用户名:
-
密码:
-
地址:
-
电话:
-
邮箱:
-
性别: - - -
-
年龄:
- +
角色名称:
+
解释:
@@ -196,40 +177,15 @@ const states = reactive({ data:[] }) const loadingTable = ref(true) -const sex = ref('男') +const lock = ref('正常') const roleSingle = ref(1) const updateData = reactive({ id: 0, - username: '', - address: '', - phone: '', - email: '', - age: '', - signature: '', - sex: '', - avatar: '', - nickname: '', - description: '', - enabled: true, - isExpired: false, - passwordExpired: false, - recommend: false, - isLocked: false + name: '', + displayName: '', + }) -const cityList= reactive([ - { - value: 1, - label: '管理员' - }, - { - value: 2, - label: '老师' - }, - { - value: 3, - label: '学生' - } -]) + const userLock = reactive({ id: -1, isLock: 1 @@ -286,25 +242,22 @@ function handlePageChange(newPage) { } const addData = reactive({ - username: '', - password: '', - address: '', - phone: '', - email: '', - sex: 1, - age: '' + // id:'', + // roleName:'', + name:'', + displayName:'', + // createdAt:'', + // updatedAt:'', + }) function showAddDialog(){ addDialog.value = true } function addOk () { - if (sex.value === '男') { - addData.sex = 1 - }else { - addData.sex = 0 - } - requests.userAdd(addData, token).then((res)=>{ + + requests.roleAdd(addData, token).then((res)=>{ + console.log(res.data) if (res.data.code===200) { message.success('新增成功') getAll() @@ -346,26 +299,14 @@ function deleteCancel(){ function showEditDialog(index, row){ editDialog.value = true updateData.id = row.id - updateData.username = row.username - updateData.address = row.address - updateData.phone = row.phone - updateData.email = row.email - updateData.age = row.age - updateData.signature = row.signature - updateData.sex = row.sex - updateData.avatar = row.avatar - updateData.nickname = row.nickname - updateData.description = row.description - if (row.sex === 1) { - sex.value = '男' - }else { - sex.value = '女' - } + updateData.name = row.roleName + updateData.displayName = row.displayName + } function editOk(){ loadingTable.value = true editDialog.value = false; - requests.userEdit(updateData,token).then((res)=>{ + requests.roleEdit(updateData,token).then((res)=>{ console.log("editResult:",res) console.log("updateData:",updateData) if (res.data.code === 200) {