Bläddra i källkod

UI 修复更改状态无效的Bug(还需优化)

Yue 2 år sedan
förälder
incheckning
40963683ef

+ 1 - 0
UI/VAP.Vue/src/views/system/role/index.vue

@@ -366,6 +366,7 @@ function handleStatusChange(row: any) {
 			return apis.system.roleApi.changeRoleStatus(row.roleId, row.status)
 		})
 		.then(() => {
+			handleQuery()
 			message.msgSuccess(text + "成功")
 		})
 		.catch(function () {

+ 2 - 1
UI/VAP.Vue/src/views/system/user/index.vue

@@ -366,6 +366,7 @@ function handleStatusChange(row: any) {
 		})
 		.then(() => {
 			message.msgSuccess(text + "成功")
+			handleQuery()
 		})
 		.catch(function () {
 			row.status = row.status === "0" ? "1" : "0"
@@ -393,7 +394,7 @@ const authRoleModalRef = ref()
 const authRoleRef = ref()
 const authRoleUserId = ref()
 function handleAuthRole(row: any) {
-	console.log("AR==>", row)
+	//console.log("AR==>", row)
 	authRoleUserId.value = row.userId
 	authRoleModalRef.value.show()
 }