|
@@ -101,6 +101,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
|
|
+import type { FormInstance } from 'wot-design-uni/components/wd-form/types'
|
|
|
import type { DictData } from '@/api/system/dict/data'
|
|
import type { DictData } from '@/api/system/dict/data'
|
|
|
import { computed, onMounted, ref } from 'vue'
|
|
import { computed, onMounted, ref } from 'vue'
|
|
|
import { useToast } from 'wot-design-uni'
|
|
import { useToast } from 'wot-design-uni'
|
|
@@ -143,7 +144,7 @@ const formRules = {
|
|
|
sort: [{ required: true, message: '显示排序不能为空' }],
|
|
sort: [{ required: true, message: '显示排序不能为空' }],
|
|
|
status: [{ required: true, message: '状态不能为空' }],
|
|
status: [{ required: true, message: '状态不能为空' }],
|
|
|
}
|
|
}
|
|
|
-const formRef = ref()
|
|
|
|
|
|
|
+const formRef = ref<FormInstance>()
|
|
|
|
|
|
|
|
/** 字典类型选项 */
|
|
/** 字典类型选项 */
|
|
|
const dictTypeOptions = ref<{ label: string, value: string }[]>([])
|
|
const dictTypeOptions = ref<{ label: string, value: string }[]>([])
|