|
@@ -80,11 +80,6 @@ import { arrToId, downloadBlob, formValidate, getArrValue, getObjValue } from 'j
|
|
|
import { add, getExportExcel, getList, getUser, remove, resetPassword, update } from '~api/system/user.js'
|
|
|
import { getRoleTree } from '~api/system/role.js'
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
onMounted(()=>{
|
|
|
getTableData()
|
|
|
})
|
|
@@ -149,7 +144,7 @@ const getTableData = async () => {
|
|
|
} else {
|
|
|
tableData.value = []
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
//分页被点击
|
|
|
const pageChange = ({ current, size }) => {
|
|
@@ -223,7 +218,7 @@ const getExportExcelClick = async () => {
|
|
|
//批量下载
|
|
|
downloadLoading.value = true
|
|
|
const { error, disposition, res } = await getExportExcel({
|
|
|
-
|
|
|
+
|
|
|
})
|
|
|
//处理数据
|
|
|
downloadLoading.value = false
|
|
@@ -248,7 +243,7 @@ const modalSave = async ()=>{
|
|
|
|
|
|
addsaveLoading.value = true
|
|
|
console.log(baseForm.value, 'baseForm.value')
|
|
|
-
|
|
|
+
|
|
|
if (modalTitle.value === '编辑') {
|
|
|
const { error, code, msg } = await update({
|
|
|
...baseForm.value,
|
|
@@ -267,7 +262,7 @@ const modalSave = async ()=>{
|
|
|
const { error, code, msg } = await add({
|
|
|
...baseForm.value,
|
|
|
roleId:roleIdArr.value.join(','),
|
|
|
-
|
|
|
+
|
|
|
})
|
|
|
//判断状态
|
|
|
addsaveLoading.value = false
|
|
@@ -278,8 +273,6 @@ const modalSave = async ()=>{
|
|
|
window.$message.error(msg ?? '操作失败')
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
const roleOptions = ref([])
|
|
|
const defaultProps = {
|
|
@@ -294,7 +287,7 @@ const getRoleOptions = async () => {
|
|
|
} else {
|
|
|
roleOptions.value = []
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
</script>
|