|
@@ -27,8 +27,7 @@ export const REGULATION_FORM_CONFIG: FormConfig[] = [
|
|
|
component: 'ElInput',
|
|
component: 'ElInput',
|
|
|
componentProps: {
|
|
componentProps: {
|
|
|
type: 'textarea',
|
|
type: 'textarea',
|
|
|
- rows: 5,
|
|
|
|
|
- maxlength: 1000,
|
|
|
|
|
|
|
+ autosize: { minRows: 3 },
|
|
|
showWordLimit: true,
|
|
showWordLimit: true,
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -52,7 +51,7 @@ export const REGULATION_FORM_DATA = {
|
|
|
|
|
|
|
|
export const REGULATION_FORM_RULES = {
|
|
export const REGULATION_FORM_RULES = {
|
|
|
name: [{ required: true, message: '请输入管理规定的标题', trigger: 'blur' }],
|
|
name: [{ required: true, message: '请输入管理规定的标题', trigger: 'blur' }],
|
|
|
- regulationFiles: [{ required: true, message: '请上传规定文件', trigger: 'change' }],
|
|
|
|
|
|
|
+ attachment: [{ required: true, message: '请上传规定文件', trigger: 'change' }],
|
|
|
isPush: [{ required: true, message: '请选择是否推送', trigger: 'change' }],
|
|
isPush: [{ required: true, message: '请选择是否推送', trigger: 'change' }],
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -73,7 +72,7 @@ export const NOTICE_FORM_CONFIG: FormConfig[] = [
|
|
|
component: 'ElInput',
|
|
component: 'ElInput',
|
|
|
componentProps: {
|
|
componentProps: {
|
|
|
type: 'textarea',
|
|
type: 'textarea',
|
|
|
- rows: 5,
|
|
|
|
|
|
|
+ autosize: { minRows: 3 },
|
|
|
maxlength: 1000,
|
|
maxlength: 1000,
|
|
|
showWordLimit: true,
|
|
showWordLimit: true,
|
|
|
},
|
|
},
|
|
@@ -94,8 +93,7 @@ export const NOTICE_FORM_CONFIG: FormConfig[] = [
|
|
|
component: 'ElInput',
|
|
component: 'ElInput',
|
|
|
componentProps: {
|
|
componentProps: {
|
|
|
type: 'textarea',
|
|
type: 'textarea',
|
|
|
- rows: 5,
|
|
|
|
|
- maxlength: 1000,
|
|
|
|
|
|
|
+ autosize: { minRows: 3 },
|
|
|
showWordLimit: true,
|
|
showWordLimit: true,
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|