|
@@ -272,7 +272,7 @@ const modalOpts = reactive({
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
const { title: modalTitle, emptyFormData, formItems } = toRefs(modalOpts)
|
|
const { title: modalTitle, emptyFormData, formItems } = toRefs(modalOpts)
|
|
|
-const form = ref(emptyFormData)
|
|
|
|
|
|
|
+const form = ref(emptyFormData.value)
|
|
|
function reset() {
|
|
function reset() {
|
|
|
form.value = emptyFormData.value
|
|
form.value = emptyFormData.value
|
|
|
}
|
|
}
|
|
@@ -336,7 +336,6 @@ function submitForm() {
|
|
|
if (form.value.roleId) {
|
|
if (form.value.roleId) {
|
|
|
form.value.roleIds = [form.value.roleId]
|
|
form.value.roleIds = [form.value.roleId]
|
|
|
}
|
|
}
|
|
|
- console.log("---", form.value)
|
|
|
|
|
if (form.value.userId != undefined) {
|
|
if (form.value.userId != undefined) {
|
|
|
apis.system.userApi.updateUser(form.value).then(() => {
|
|
apis.system.userApi.updateUser(form.value).then(() => {
|
|
|
message.msgSuccess("修改成功")
|
|
message.msgSuccess("修改成功")
|
|
@@ -433,11 +432,10 @@ function submitAuthRole() {
|
|
|
const roleIds = authRoleRef.value.getSelectedRoleIds()
|
|
const roleIds = authRoleRef.value.getSelectedRoleIds()
|
|
|
console.log("ROLEIDS", roleIds)
|
|
console.log("ROLEIDS", roleIds)
|
|
|
}
|
|
}
|
|
|
-loadOrg()
|
|
|
|
|
-// onMounted(() => {
|
|
|
|
|
|
|
|
|
|
-// //console.log("PROXY", proxy?.$refs)
|
|
|
|
|
-// })
|
|
|
|
|
|
|
+onMounted(() => {
|
|
|
|
|
+ loadOrg()
|
|
|
|
|
+})
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|