删除租户模块废弃代码
This commit is contained in:
parent
d9c02bb067
commit
57e2f1bb63
@ -103,12 +103,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { getTenantDetail, tenantAdd, tenantUpdate } from '@/api/system/tenant';
|
||||
import { onMounted, reactive, shallowRef } from "vue";
|
||||
import { getRoleAllList } from '@/api/system/role';
|
||||
import { getDeptList } from '@/api/system/dept';
|
||||
import { getLevelAllList } from '@/api/system/level';
|
||||
import { getPositionAllList } from '@/api/system/position';
|
||||
import UploadImg from "@/components/Upload/Image.vue";
|
||||
import {buildTree } from "@/utils/auth";
|
||||
import { FormInstance } from "element-plus";
|
||||
|
||||
const formRef = shallowRef<FormInstance>();
|
||||
@ -144,17 +139,6 @@ const formData = reactive({
|
||||
status: 0,
|
||||
number: ''
|
||||
});
|
||||
const passwordConfirmValidator = (
|
||||
rule: object,
|
||||
value: string,
|
||||
callback: any
|
||||
) => {
|
||||
if (formData.password) {
|
||||
if (!value) callback(new Error("请再次输入密码"));
|
||||
if (value !== formData.password) callback(new Error("两次输入密码不一致!"));
|
||||
}
|
||||
callback();
|
||||
};
|
||||
|
||||
const dialogClose = () => {
|
||||
emit("update:visible", false);
|
||||
@ -186,33 +170,7 @@ const handleSubmit = async () => {
|
||||
|
||||
const { isLock: subLoading, lockFn: submit } = useLockFn(handleSubmit);
|
||||
|
||||
const optionData = reactive({
|
||||
roleList: [],
|
||||
deptList: [],
|
||||
levelList: [],
|
||||
positionList: []
|
||||
});
|
||||
|
||||
function uploadChange(data: string[]) {
|
||||
formData.avatar = data.fileUrl;
|
||||
formData.avatarName =data.fileName
|
||||
}
|
||||
const handleDelete =async(file)=>{
|
||||
console.log(file)
|
||||
}
|
||||
|
||||
const getAllDict = async () => {
|
||||
let list = await getRoleAllList();
|
||||
optionData.roleList = list ? list : [];
|
||||
list = await getDeptList();
|
||||
optionData.deptList = list ? buildTree(list) : [];
|
||||
list = await getLevelAllList();
|
||||
optionData.levelList = list ? list : [];
|
||||
list = await getPositionAllList();
|
||||
optionData.positionList = list ? list : [];
|
||||
};
|
||||
onMounted(() => {
|
||||
getAllDict()
|
||||
if (props.tenantId) {
|
||||
setFormData({ tenantId: props.tenantId });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user