refactor: 添加部门默认排序值
Former-commit-id: 2de0add2e87bca143dd9bf63f4bd363c47b07702
This commit is contained in:
@@ -32,7 +32,8 @@ const deptOptions = ref<OptionType[]>();
|
||||
|
||||
const formData = reactive<DeptForm>({
|
||||
status: 1,
|
||||
parentId: 0
|
||||
parentId: 0,
|
||||
sort: 1
|
||||
});
|
||||
|
||||
const rules = reactive({
|
||||
@@ -177,6 +178,7 @@ function resetForm() {
|
||||
formData.id = undefined;
|
||||
formData.parentId = 0;
|
||||
formData.status = 1;
|
||||
formData.sort = 1;
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
Reference in New Issue
Block a user