Commit eb5aea7c authored by Tình Trương's avatar Tình Trương

update

parent 291d84f5
...@@ -511,9 +511,8 @@ export default defineComponent({ ...@@ -511,9 +511,8 @@ export default defineComponent({
const updateArtistDialogIsOpened = ref(false); const updateArtistDialogIsOpened = ref(false);
const fieldsAddOptions: Ref<FieldType[]> = ref([]); const fieldsAddOptions: Ref<FieldType[]> = ref([]);
const artistOptions: Ref<ArtistInfoType[]> = ref([]); const artistOptions: Ref<ArtistInfoType[]> = ref([]);
const artistField: Ref<{ id: number; name: string } | undefined> = ref( const artistField: Ref<{ id: number; name: string } | undefined> =
undefined ref(undefined);
);
const artistName: Ref<ArtistInfoType | undefined> = ref(undefined); const artistName: Ref<ArtistInfoType | undefined> = ref(undefined);
const artistStatus = ref(1); const artistStatus = ref(1);
const contractTimeFrom = ref(''); const contractTimeFrom = ref('');
...@@ -537,11 +536,17 @@ export default defineComponent({ ...@@ -537,11 +536,17 @@ export default defineComponent({
(val?: string) => (val?: string) =>
(val && val.trim().length) || (val && val.trim().length) ||
i18n.global.t('managingUnit.validateMessages.requireCode'), i18n.global.t('managingUnit.validateMessages.requireCode'),
(val?: string) =>
(val && val.trim().length < 20) ||
i18n.global.t('managingUnit.validateMessages.requireLengthCode'),
]; ];
const nameRules = [ const nameRules = [
(val?: string) => (val?: string) =>
(val && val.trim().length) || (val && val.trim().length) ||
i18n.global.t('managingUnit.validateMessages.requireName'), i18n.global.t('managingUnit.validateMessages.requireName'),
(val?: string) =>
(val && val.trim().length < 30) ||
i18n.global.t('managingUnit.validateMessages.requireLengthName'),
]; ];
const representativeRules = [ const representativeRules = [
(val?: string) => (val?: string) =>
......
...@@ -182,6 +182,8 @@ export default { ...@@ -182,6 +182,8 @@ export default {
}, },
validateMessages: { validateMessages: {
requireCode: 'Vui lòng nhập Mã đơn vị', requireCode: 'Vui lòng nhập Mã đơn vị',
requireLengthCode: 'Mã đơn vị không vượt quá 20 ký tự',
requireLengthName: 'Tên đơn vị không vượt quá 30 ký tự',
requireName: 'Vui lòng nhập Tên đơn vị', requireName: 'Vui lòng nhập Tên đơn vị',
requireRepresentative: 'Vui lòng nhập Người đại diện', requireRepresentative: 'Vui lòng nhập Người đại diện',
requireFields: 'Vui lòng chọn Lĩnh vực', requireFields: 'Vui lòng chọn Lĩnh vực',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment