Browse Source

字典分类问题修复

master_hella_20240701
ljlong_2630 8 months ago
parent
commit
39982f710b
  1. 1
      src/components/Detail/src/DetailQmsCode.vue
  2. 5
      src/views/qms/basicDataManage/dynamicRule/dynamicRule.data.ts
  3. 2
      src/views/qms/basicDataManage/dynamicRule/index.vue
  4. 4
      src/views/system/dict/index.vue

1
src/components/Detail/src/DetailQmsCode.vue

@ -699,7 +699,6 @@ const openForm = async (type: string, row?: number) => {
} }
// form // form
const submitForm = async (formType, data) => { const submitForm = async (formType, data) => {
debugger
try { try {
// detailValidate // detailValidate
const rs = (await props.detailValidate) ? await props.detailValidate(data) : true const rs = (await props.detailValidate) ? await props.detailValidate(data) : true

5
src/views/qms/basicDataManage/dynamicRule/dynamicRule.data.ts

@ -12,7 +12,10 @@ const trueFalse = [{
// 表单校验 // 表单校验
export const DynamicRuleRules = reactive({ export const DynamicRuleRules = reactive({
description: [required] description: [
required,
{ max: 1024, message: '不得超过1024个字符', trigger: 'blur' },
]
}) })
export const DynamicRule = useCrudSchemas(reactive<CrudSchema[]>([ export const DynamicRule = useCrudSchemas(reactive<CrudSchema[]>([

2
src/views/qms/basicDataManage/dynamicRule/index.vue

@ -131,7 +131,7 @@ const { getList, setSearchParams } = tableMethods
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'qms:dynamic-rule:create'}), // defaultButtons.defaultAddBtn({hasPermi:'qms:dynamic-rule:create'}), //
// defaultButtons.defaultImportBtn({hasPermi:'qms:dynamic-rule:import'}), // // defaultButtons.defaultImportBtn({hasPermi:'qms:dynamic-rule:import'}), //
// defaultButtons.defaultExportBtn({hasPermi:'qms:dynamic-rule:export'}), // defaultButtons.defaultExportBtn({hasPermi:'qms:dynamic-rule:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //

4
src/views/system/dict/index.vue

@ -12,7 +12,7 @@
</el-form-item> </el-form-item>
<el-form-item label="字典分类" prop="classes"> <el-form-item label="字典分类" prop="classes">
<el-select v-model="queryParams.classes" class="!w-240px" clearable placeholder="请选择字典分类"> <el-select v-model="queryParams.classes" class="!w-240px" clearable placeholder="请选择字典分类">
<el-option v-for="dict in getIntDictOptions(DICT_TYPE.DICTIONARY_CLASS)" :key="dict.value" :label="dict.label" <el-option v-for="dict in getStrDictOptions(DICT_TYPE.DICTIONARY_CLASS)" :key="dict.value" :label="dict.label"
:value="dict.value" /> :value="dict.value" />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -96,7 +96,7 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' import { DICT_TYPE, getIntDictOptions,getStrDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as DictTypeApi from '@/api/system/dict/dict.type' import * as DictTypeApi from '@/api/system/dict/dict.type'
import DictTypeForm from './DictTypeForm.vue' import DictTypeForm from './DictTypeForm.vue'

Loading…
Cancel
Save