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
bf463eee
Commit
bf463eee
authored
May 07, 2021
by
hong-IT-99
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.147.34.20:30081/son.nguyen/quasar-web-base
parents
c49d4e95
7445bb82
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
52 deletions
+30
-52
NewManagingUnits.ts
...ingunits/add-new-managingunits-dialog/NewManagingUnits.ts
+17
-22
index.vue
...ents/managingunits/add-new-managingunits-dialog/index.vue
+1
-1
NewUpdateArtist.ts
...gunits-dialog/update-new-artist-dialog/NewUpdateArtist.ts
+1
-1
index.vue
...w-managingunits-dialog/update-new-artist-dialog/index.vue
+0
-1
NewUpdateArtist.ts
...gunits-dialog/update-new-artist-dialog/NewUpdateArtist.ts
+11
-11
ManagingUnit.ts
src/pages/don-vi-chu-quan/ManagingUnit.ts
+0
-16
No files found.
src/components/managingunits/add-new-managingunits-dialog/NewManagingUnits.ts
View file @
bf463eee
...
...
@@ -3,7 +3,7 @@ import { i18n } from 'src/boot/i18n';
import
{
isEmail
}
from
'../../../boot/functions'
;
import
{
isMobilePhone
}
from
'../../../boot/functions'
;
import
AddNewArtistDialog
from
'components/managingunits/add-new-managingunits-dialog/add-new-artist-dialog/index.vue'
;
import
UpdateNewArtistDialog
from
'components/managingunits/
update
-new-managingunits-dialog/update-new-artist-dialog/index.vue'
;
import
UpdateNewArtistDialog
from
'components/managingunits/
add
-new-managingunits-dialog/update-new-artist-dialog/index.vue'
;
import
{
API_PATHS
}
from
'src/assets/configurations.example'
;
import
{
AxiosResponse
}
from
'axios'
;
import
{
api
,
BaseResponseBody
}
from
'src/boot/axios'
;
...
...
@@ -37,34 +37,26 @@ export default defineComponent({
const
openUpdateArtistDialog
=
ref
(
false
);
const
UpdateArtistDialog
=
(
item
:
{
row
:
{
id
:
number
;
name
:
string
;
fullName
:
string
;
artistId
:
number
;
artistName
:
string
;
contractFrom
:
string
;
contractTo
:
string
;
field
:
string
;
fullName
:
string
;
status
:
number
;
timeAdd
:
string
;
};
})
=>
{
console
.
log
(
item
,
'aa'
)
;
openUpdateArtistDialog
.
value
=
true
;
fieldsUpdate
.
value
.
name
=
item
.
row
.
field
;
nameUpdate
.
value
.
fullName
=
item
.
row
.
fullName
;
openUpdateArtistDialog
.
value
=
true
;
timeUpdateForm
.
value
.
contractFrom
=
item
.
row
.
contractFrom
;
timeUpdateTo
.
value
.
contractTo
=
item
.
row
.
contractTo
;
statusUpdate
.
value
.
status
=
item
.
row
.
status
;
};
const
updateNewManagingUnitsArtist
=
(
timeUpdateTo
:
string
,
timeUpdateForm
:
string
)
=>
{
managingUnitUpdateTableRows
.
value
.
push
({
contractFrom
:
timeUpdateForm
,
contractTo
:
timeUpdateTo
,
timeAdd
:
timeUpdateTo
+
' - '
+
timeUpdateForm
,
status
:
statusUpdate
,
artistId
:
nameAdd
.
value
.
id
,
artistName
:
nameAdd
.
value
.
artistName
,
fullName
:
nameAdd
.
value
.
fullName
,
field
:
nameAdd
.
value
.
field
,
});
const
updateNewManagingUnitsArtist
=
()
=>
{
managingUnitUpdateTableRows
.
value
.
push
({});
};
//add
...
...
@@ -161,8 +153,11 @@ export default defineComponent({
id
:
0
,
name
:
''
,
});
const
statusUpdate
:
Ref
<
number
>
=
ref
(
1
);
const
statusUpdate
:
Ref
<
{
status
:
number
}
>
=
ref
({
status
:
1
});
const
timeUpdateForm
:
Ref
<
{
contractFrom
:
string
}
>
=
ref
({
contractFrom
:
''
,
});
const
timeUpdateTo
:
Ref
<
{
contractTo
:
string
}
>
=
ref
({
contractTo
:
''
});
watch
(
()
=>
fieldsAdd
.
value
,
(
value
)
=>
{
...
...
src/components/managingunits/add-new-managingunits-dialog/index.vue
View file @
bf463eee
...
...
@@ -154,7 +154,7 @@
v-model:status-update=
"statusUpdate"
:fields-add-options=
"fieldsAddOptions"
:name-add-options=
"nameAddOptions"
@
click:CloseBtn=
"openUpdateArtistDialog = false"
@
click:CloseBtn=
"openUpdateArtistDialog
Add
= false"
@
updateNewManagingUnitsArtist=
"updateNewManagingUnitsArtist"
/>
...
...
src/components/managingunits/add-new-managingunits-dialog/update-new-artist-dialog/NewUpdateArtist.ts
View file @
bf463eee
...
...
@@ -41,7 +41,7 @@ export default defineComponent({
const
timeUpdateFormRules
=
[
(
val
?:
string
)
=>
(
val
&&
val
.
trim
().
length
)
||
i18n
.
global
.
t
(
'managingUnitAdd.validateMessages.requireTimeUpdate
Form
'
),
i18n
.
global
.
t
(
'managingUnitAdd.validateMessages.requireTimeUpdate'
),
];
const
timeUpdateToRules
=
[
(
val
?:
string
)
=>
...
...
src/components/managingunits/add-new-managingunits-dialog/update-new-artist-dialog/index.vue
View file @
bf463eee
...
...
@@ -96,7 +96,6 @@
:rules=
"nameUpdateRules"
hide-bottom-space
map-options
emit-value
option-value=
"id"
option-label=
"fullName"
class=
"q-my-sm"
...
...
src/components/managingunits/update-new-managingunits-dialog/update-new-artist-dialog/NewUpdateArtist.ts
View file @
bf463eee
...
...
@@ -7,10 +7,10 @@ export default defineComponent({
type
:
Boolean
,
required
:
true
,
},
fieldsAddOptions
:
{
type
:
Array
,
required
:
true
},
fieldsUpdate
:
{
type
:
Number
,
required
:
true
},
fieldsAddOptions
:
{
type
:
Array
,
required
:
true
},
fieldsUpdate
:
{
type
:
Number
,
required
:
true
},
nameUpdate
:
{
type
:
Number
,
required
:
true
},
nameUpdateOptions
:
{
type
:
Array
,
required
:
true
},
nameUpdateOptions
:
{
type
:
Array
,
required
:
true
},
timeUpdateTo
:
{
type
:
String
,
required
:
true
},
timeUpdate
:
{
type
:
String
,
required
:
true
},
statusUpdate
:
{
type
:
Boolean
,
required
:
true
},
...
...
@@ -27,20 +27,20 @@ export default defineComponent({
i18n
.
global
.
t
(
'managingUnitAdd.validateMessages.requireTimeUpdateTo'
),
];
const
fieldsUpdateRules
=
[
(
val
?:
number
)
=>
val
!==
undefined
||
i18n
.
global
.
t
(
'managingUnitAdd.validateMessages.requireFieldsUpdate'
),
];
(
val
?:
number
)
=>
val
!==
undefined
||
i18n
.
global
.
t
(
'managingUnitAdd.validateMessages.requireFieldsUpdate'
),
];
const
timeUpdateRules
=
[
(
val
?:
string
)
=>
(
val
&&
val
.
trim
().
length
)
||
i18n
.
global
.
t
(
'managingUnitAdd.validateMessages.requireTimeUpdate'
),
];
return
{
nameUpdateRules
,
timeUpdateToRules
,
fieldsUpdateRules
,
timeUpdateRules
,
nameUpdateRules
,
timeUpdateToRules
,
fieldsUpdateRules
,
timeUpdateRules
,
};
},
emits
:
[
...
...
src/pages/don-vi-chu-quan/ManagingUnit.ts
View file @
bf463eee
...
...
@@ -108,14 +108,6 @@ export default defineComponent({
//Add nghệ sỹ
const
managingUnitAddTableColumns
=
[
// {
// name: 'sttAdd',
// field: 'sttAdd',
// required: true,
// label: i18n.global.t('managingUnitAdd.tableColumns.sttAdd'),
// align: 'center',
// sortable: false,
// },
{
name
:
'nameAdd'
,
field
:
'fullName'
,
...
...
@@ -174,14 +166,6 @@ export default defineComponent({
//Update nghệ sỹ
const
managingUnitUpdateTableColumns
=
[
// {
// name: 'sttAdd',
// field: 'sttAdd',
// required: true,
// label: i18n.global.t('managingUnitAdd.tableColumns.sttAdd'),
// align: 'center',
// sortable: false,
// },
{
name
:
'nameAdd'
,
field
:
'fullName'
,
...
...
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