|
|
@ -51,9 +51,9 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="班组类型" prop="classType">
<el-select v-model="formData.classType" clearable placeholder="请选择班组类型">
<el-option
v-for="dict in getIntDictOptions(DICT_TYPE.REQUEST_APPLY)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="班组类型" prop="classType">
<el-select v-model="formData.classType" clearable placeholder="请选择班组类型">
<el-option
v-for="dict in getStrDictOptions(DICT_TYPE.CLASS_TYPE)"
:key="dict.value" |
|
|
|
:label="dict.label" |
|
|
|
:value="dict.value"
/>
</el-select>
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<template #footer> |
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
|
|
@ -62,7 +62,7 @@ |
|
|
|
</Dialog> |
|
|
|
</template> |
|
|
|
<script lang="ts" setup> |
|
|
|
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' |
|
|
|
import { DICT_TYPE, getIntDictOptions,getStrDictOptions } from '@/utils/dict' |
|
|
|
import { defaultProps, handleTree } from '@/utils/tree' |
|
|
|
import * as DeptApi from '@/api/system/dept' |
|
|
|
import * as UserApi from '@/api/system/user' |
|
|
@ -104,6 +104,16 @@ const formRef = ref() // 表单 Ref |
|
|
|
const deptTree = ref() // 树形结构 |
|
|
|
const userList = ref<UserApi.UserVO[]>([]) // 用户列表 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(getIntDictOptions(DICT_TYPE.DEVICE_MOLD_TYPE)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 打开弹窗 */ |
|
|
|
const open = async (type: string, id?: number) => { |
|
|
|
dialogVisible.value = true |
|
|
|