mirror of
https://gitee.com/log4j/pig-ui.git
synced 2025-01-03 23:42:23 +08:00
feat: 优化代码结构
This commit is contained in:
parent
18c0941817
commit
780c69459f
@ -94,7 +94,6 @@ const menuData = ref([]);
|
||||
const dataRules = ref({
|
||||
name: [{ required: true, message: 'name不能为空', trigger: 'blur' }],
|
||||
code: [{ required: true, message: 'code不能为空', trigger: 'blur' }],
|
||||
tenantDomain: [{ required: true, message: 'tenantDomain不能为空', trigger: 'blur' }],
|
||||
startTime: [{ required: true, message: '开始时间不能为空', trigger: 'blur' }],
|
||||
endTime: [{ required: true, message: '结束时间不能为空', trigger: 'blur' }],
|
||||
status: [{ required: true, message: 'status不能为空', trigger: 'blur' }],
|
||||
|
@ -42,13 +42,14 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="tenant-menu-form">
|
||||
import { treemenu, addObj, putObj } from '/@/api/admin/tenant-menu';
|
||||
import { useMessage } from '/@/hooks/message';
|
||||
import { getObj } from '/@/api/admin/tenant-menu';
|
||||
import { useDict } from '/@/hooks/dict';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
const { status_type } = useDict('status_type');
|
||||
const { t } = useI18n();
|
||||
import { treemenu, addObj, putObj } from '/@/api/admin/tenant-menu';
|
||||
import { useMessage } from '/@/hooks/message';
|
||||
|
||||
const emit = defineEmits(['refresh']);
|
||||
|
||||
const dataFormRef = ref();
|
||||
@ -57,7 +58,7 @@ const menuTreeRef = ref();
|
||||
|
||||
const form = reactive({
|
||||
id: '',
|
||||
status: '',
|
||||
status: '0',
|
||||
name: '',
|
||||
menuIds: '',
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user