Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quasar-web-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Hải Sơn
quasar-web-base
Commits
eb5aea7c
Commit
eb5aea7c
authored
May 17, 2021
by
Tình Trương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
291d84f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
index.vue
...components/units-manager/add-update-unit-dialog/index.vue
+8
-3
index.ts
src/i18n/vi/index.ts
+2
-0
No files found.
src/components/units-manager/add-update-unit-dialog/index.vue
View file @
eb5aea7c
...
...
@@ -511,9 +511,8 @@ export default defineComponent({
const
updateArtistDialogIsOpened
=
ref
(
false
);
const
fieldsAddOptions
:
Ref
<
FieldType
[]
>
=
ref
([]);
const
artistOptions
:
Ref
<
ArtistInfoType
[]
>
=
ref
([]);
const
artistField
:
Ref
<
{
id
:
number
;
name
:
string
}
|
undefined
>
=
ref
(
undefined
);
const
artistField
:
Ref
<
{
id
:
number
;
name
:
string
}
|
undefined
>
=
ref
(
undefined
);
const
artistName
:
Ref
<
ArtistInfoType
|
undefined
>
=
ref
(
undefined
);
const
artistStatus
=
ref
(
1
);
const
contractTimeFrom
=
ref
(
''
);
...
...
@@ -537,11 +536,17 @@ export default defineComponent({
(
val
?:
string
)
=>
(
val
&&
val
.
trim
().
length
)
||
i18n
.
global
.
t
(
'managingUnit.validateMessages.requireCode'
),
(
val
?:
string
)
=>
(
val
&&
val
.
trim
().
length
<
20
)
||
i18n
.
global
.
t
(
'managingUnit.validateMessages.requireLengthCode'
),
];
const
nameRules
=
[
(
val
?:
string
)
=>
(
val
&&
val
.
trim
().
length
)
||
i18n
.
global
.
t
(
'managingUnit.validateMessages.requireName'
),
(
val
?:
string
)
=>
(
val
&&
val
.
trim
().
length
<
30
)
||
i18n
.
global
.
t
(
'managingUnit.validateMessages.requireLengthName'
),
];
const
representativeRules
=
[
(
val
?:
string
)
=>
...
...
src/i18n/vi/index.ts
View file @
eb5aea7c
...
...
@@ -182,6 +182,8 @@ export default {
},
validateMessages
:
{
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ị'
,
requireRepresentative
:
'Vui lòng nhập Người đại diện'
,
requireFields
:
'Vui lòng chọn Lĩnh vực'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment