zhengyiming
13 小时以前 d7c8a3a9e1fc5c8e596a17cdadb7079d20e52297
src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue
@@ -6,7 +6,7 @@
    destroy-on-close
    draggable
  >
    <ProForm :model="form" ref="dialogForm" label-width="90px">
    <ProForm :model="form" ref="dialogForm" label-width="120px">
      <ProFormItemV2
        label="行业类型:"
        prop="field1"
@@ -40,9 +40,18 @@
        <ProFormText v-model.trim="form.code" :disabled="!!form.id"></ProFormText>
      </ProFormItemV2>
      <ProFormItemV2
        label="参数字段名:"
        prop="field3"
        :check-rules="[{ message: '请输入参数字段名' }]"
        v-if="category?.data?.code === CategoryCode.ElectronSignParam"
      >
        <ProFormText v-model.trim="form.field3"></ProFormText>
      </ProFormItemV2>
      <ProFormItemV2
        label="图片:"
        prop="field2"
        v-if="category?.data?.code === CategoryCode.Welfare"
        :check-rules="[{ type: 'upload', message: '请上传图片' }]"
      >
        <ProFormImageUpload v-model:file-url="form.field2" :limitFileCount="1"></ProFormImageUpload>
      </ProFormItemV2>
@@ -95,6 +104,7 @@
  isDisabled: boolean;
  field1?: string;
  field2?: UploadUserFile[];
  field3?: string;
};
const form = defineModel<Form>('form');