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
becda557
Commit
becda557
authored
May 04, 2021
by
Tình Trương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
36c9c625
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
201 additions
and
6 deletions
+201
-6
favicon.ico
public/favicon.ico
+0
-0
type.ts
src/assets/type.ts
+1
-1
NewManagingUnits.ts
...ingunits/add-new-managingunits-dialog/NewManagingUnits.ts
+2
-0
index.vue
...ents/managingunits/add-new-managingunits-dialog/index.vue
+55
-3
index.ts
src/i18n/vi/index.ts
+45
-0
ManagingUnit.ts
src/pages/don-vi-chu-quan/ManagingUnit.ts
+96
-2
index.vue
src/pages/don-vi-chu-quan/index.vue
+2
-0
No files found.
public/favicon.ico
View replaced file @
36c9c625
View file @
becda557
8.52 KB
|
W:
|
H:
2.64 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/type.ts
View file @
becda557
...
@@ -83,7 +83,7 @@ export type WorkType = {
...
@@ -83,7 +83,7 @@ export type WorkType = {
numIndex
:
number
;
numIndex
:
number
;
};
};
export
type
A
RTISTOWNER
=
{
export
type
A
rtistOwner
=
{
id
:
number
;
id
:
number
;
code
:
string
;
code
:
string
;
name
:
string
;
name
:
string
;
...
...
src/components/managingunits/add-new-managingunits-dialog/NewManagingUnits.ts
View file @
becda557
...
@@ -9,6 +9,8 @@ export default defineComponent({
...
@@ -9,6 +9,8 @@ export default defineComponent({
type
:
Boolean
,
type
:
Boolean
,
required
:
true
,
required
:
true
,
},
},
managingUnitAddTableRows
:
{
type
:
Array
,
required
:
true
},
managingUnitAddTableColumns
:
{
type
:
Array
,
required
:
true
},
fieldsOptions
:
{
type
:
Array
,
required
:
true
},
fieldsOptions
:
{
type
:
Array
,
required
:
true
},
fields
:
{
type
:
Number
,
required
:
true
},
fields
:
{
type
:
Number
,
required
:
true
},
code
:
{
type
:
String
,
required
:
true
},
code
:
{
type
:
String
,
required
:
true
},
...
...
src/components/managingunits/add-new-managingunits-dialog/index.vue
View file @
becda557
...
@@ -118,21 +118,73 @@
...
@@ -118,21 +118,73 @@
</div>
</div>
</div>
</div>
</q-card-section>
</q-card-section>
<div
class=
"col-auto text-h6 text-weight-regular flex q-ml-md"
>
{{
$t
(
'managingUnit.titleAdd'
)
<div
class=
"row"
>
}}
<span
style=
"color: red"
class=
"q-ml-xs"
>
*
</span>
<div
class=
"col-auto text-h6 text-weight-regular flex q-ml-md"
>
{{
$t
(
'managingUnit.titleAdd'
)
}}
<span
style=
"color: red"
class=
"q-ml-xs"
>
*
</span>
</div>
<q-space></q-space>
<div
class=
"col-auto"
>
<q-btn
color=
"primary"
no-caps
:label=
"$t('managingUnitAdd.AddmanagingUnit')"
class=
"q-mr-sm"
>
</q-btn>
</div>
</div>
</div>
<q-card-actions>
<q-card-actions>
<div
class=
"col-12 q-mt-sm"
>
<div
class=
"col-12 q-mt-sm"
>
<q-table
<q-table
:rows=
"managingUnitAddTableRows"
:columns=
"managingUnitAddTableColumns"
separator=
"cell"
separator=
"cell"
:no-data-label=
"$t('emptyData')"
:no-data-label=
"$t('emptyData')"
hide-pagination
hide-pagination
>
>
<template
v-slot:body-cell-action=
""
>
<q-td
style=
"padding: 0"
class=
"flex flex-center"
>
<q-btn
flat
round
color=
"primary"
icon=
"mdi-delete-outline"
>
<q-tooltip
:offset=
"[20, 10]"
>
{{
$t
(
'managingUnitAdd.toolTipMessage.delete'
)
}}
</q-tooltip>
</q-btn>
<q-btn
flat
round
color=
"primary"
icon=
"mdi-account-edit-outline"
>
<q-tooltip
:offset=
"[20, 10]"
>
{{
$t
(
'managingUnitAdd.toolTipMessage.updateInfo'
)
}}
</q-tooltip>
</q-btn>
</q-td>
</
template
>
<
template
v-slot:body-cell-status=
"rowData"
>
<q-td>
<div
align=
"center"
>
<q-chip
:color=
"rowData.value ? 'positive' : 'orange'"
text-color=
"white"
size=
"sm"
>
{{
rowData
.
value
?
$t
(
'managingUnitAdd.statusLabel.active'
)
:
$t
(
'managingUnitAdd.statusLabel.inactive'
)
}}
</q-chip>
</div>
</q-td>
</
template
>
</q-table>
</q-table>
</div>
</div>
</q-card-actions>
</q-card-actions>
<q-card-actions
align=
"right"
>
<q-card-actions
align=
"right"
>
<div>
<div>
<q-btn
<q-btn
...
...
src/i18n/vi/index.ts
View file @
becda557
...
@@ -193,6 +193,51 @@ export default {
...
@@ -193,6 +193,51 @@ export default {
// },
// },
},
},
//Add đơn vị chủ quản
managingUnitAdd
:
{
AddmanagingUnit
:
'Thêm nghệ sỹ'
,
tableColumns
:
{
sttAdd
:
'STT'
,
nameAdd
:
'Tên đơn vị'
,
myedityAdd
:
'Nghệ danh'
,
fieldsAdd
:
'Lĩnh vực'
,
timeAdd
:
'Thời gian hợp đồng'
,
status
:
'Trạng thái'
,
action
:
'Chức năng'
,
},
statusLabel
:
{
active
:
'Còn thời gian'
,
inactive
:
'Hết hợp đồng'
,
},
dialogLabel
:
{
title
:
{
add
:
'Thêm nghệ sỹ'
,
update
:
'Cập nhật nghệ sỹ'
,
},
fieldLabels
:
{
nameAdd
:
'Tên đơn vị *'
,
myedityAdd
:
'Nghệ danh *'
,
fieldsAdd
:
'Lĩnh vực *'
,
timeAdd
:
'Thời gian hợp đồng *'
,
status
:
'Trạng thái'
,
},
},
toolTipMessage
:
{
updateInfo
:
'Cập nhật'
,
delete
:
'Xóa nghệ sỹ'
,
},
crudActions
:
{
save
:
'Lưu'
,
cancel
:
'Đóng'
,
},
// validateMessages: {
// },
// confirmActionsTitle: {
// },
// actionMessages: {
// },
},
// khách hàng
// khách hàng
customer
:
{
customer
:
{
title
:
'Danh sách khách hàng'
,
title
:
'Danh sách khách hàng'
,
...
...
src/pages/don-vi-chu-quan/ManagingUnit.ts
View file @
becda557
...
@@ -6,7 +6,7 @@ import { AxiosResponse } from 'axios';
...
@@ -6,7 +6,7 @@ import { AxiosResponse } from 'axios';
import
{
api
,
BaseResponseBody
}
from
'src/boot/axios'
;
import
{
api
,
BaseResponseBody
}
from
'src/boot/axios'
;
import
{
import
{
PaginationResponse
,
PaginationResponse
,
A
RTISTOWNER
,
A
rtistOwner
,
}
from
'src/assets/type'
;
}
from
'src/assets/type'
;
import
{
config
}
from
'src/assets/configurations'
;
import
{
config
}
from
'src/assets/configurations'
;
import
AddNewManagingUnitsDialogComponent
from
'../../components/managingunits/add-new-managingunits-dialog/index.vue'
;
import
AddNewManagingUnitsDialogComponent
from
'../../components/managingunits/add-new-managingunits-dialog/index.vue'
;
...
@@ -110,7 +110,97 @@ export default defineComponent({
...
@@ -110,7 +110,97 @@ export default defineComponent({
sortable
:
false
,
sortable
:
false
,
},
},
];
];
const
managingUnitAddTableColumns
=
[
{
name
:
'sttAdd'
,
field
:
'sttAdd'
,
required
:
true
,
label
:
i18n
.
global
.
t
(
'managingUnitAdd.tableColumns.sttAdd'
),
align
:
'center'
,
sortable
:
false
,
},
{
name
:
'nameAdd'
,
field
:
'nameAdd'
,
required
:
true
,
label
:
i18n
.
global
.
t
(
'managingUnitAdd.tableColumns.nameAdd'
),
headerStyle
:
'text-align: center !important;'
,
align
:
'left'
,
sortable
:
false
,
},
{
name
:
'myedityAdd'
,
field
:
'myedityAdd'
,
required
:
true
,
label
:
i18n
.
global
.
t
(
'managingUnitAdd.tableColumns.myedityAdd'
),
headerStyle
:
'text-align: center !important;'
,
align
:
'left'
,
sortable
:
false
,
},
{
name
:
'fieldsAdd'
,
field
:
'fieldsAdd'
,
required
:
true
,
label
:
i18n
.
global
.
t
(
'managingUnitAdd.tableColumns.fieldsAdd'
),
headerStyle
:
'text-align: center !important;'
,
align
:
'left'
,
sortable
:
false
,
},
{
name
:
'timeAdd'
,
field
:
'timeAdd'
,
required
:
true
,
label
:
i18n
.
global
.
t
(
'managingUnitAdd.tableColumns.timeAdd'
),
headerStyle
:
'text-align: center !important;'
,
align
:
'left'
,
sortable
:
false
,
},
{
name
:
'status'
,
field
:
'status'
,
required
:
true
,
label
:
i18n
.
global
.
t
(
'managingUnitAdd.tableColumns.status'
),
headerStyle
:
'text-align: center !important;'
,
align
:
'center'
,
sortable
:
false
,
},
{
name
:
'action'
,
field
:
'action'
,
required
:
true
,
label
:
i18n
.
global
.
t
(
'managingUnitAdd.tableColumns.action'
),
headerStyle
:
'text-align: center !important;'
,
align
:
'center'
,
sortable
:
false
,
},
];
const
managingUnitTableRows
:
Ref
<
unknown
[]
>
=
ref
([]);
const
managingUnitTableRows
:
Ref
<
unknown
[]
>
=
ref
([]);
const
managingUnitAddTableRows
:
Ref
<
unknown
[]
>
=
ref
([]);
const
getListAddUnit
=
()
=>
{
// const response = (await api({
// url: API_PATHS.getListArtist,
// method: 'GET',
// params: {
// pageIndex: pageIndex.value,
// pageSize: pageSize.value,
// },
// })) as AxiosResponse<BaseResponseBody<unknown>>;
// const fakeData: unknown[] = [
// {
// id: 1,
// sttAdd: 1,
// nameAdd: 'Ưng Hoàng Phúc',
// myedityAdd: 'Ưng Hoàng Phúc',
// fieldsAdd: 'Âm nhạc',
// timeAdd: '05/05/2021 - 05/05/2022',
// status: 1,
// },
// ];
// managingUnitAddTableRows.value = fakeData;
};
const
showDialog
=
ref
(
false
);
const
showDialog
=
ref
(
false
);
const
code
:
Ref
<
string
|
undefined
>
=
ref
();
const
code
:
Ref
<
string
|
undefined
>
=
ref
();
const
name
:
Ref
<
string
|
undefined
>
=
ref
();
const
name
:
Ref
<
string
|
undefined
>
=
ref
();
...
@@ -141,7 +231,7 @@ export default defineComponent({
...
@@ -141,7 +231,7 @@ export default defineComponent({
pageSize
:
pageSize
.
value
,
pageSize
:
pageSize
.
value
,
},
},
}))
as
AxiosResponse
<
}))
as
AxiosResponse
<
BaseResponseBody
<
PaginationResponse
<
A
RTISTOWNER
>>
BaseResponseBody
<
PaginationResponse
<
A
rtistOwner
>>
>
;
>
;
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
managingUnitTableRows
.
value
=
response
.
data
.
data
.
data
;
managingUnitTableRows
.
value
=
response
.
data
.
data
.
data
;
...
@@ -184,8 +274,10 @@ export default defineComponent({
...
@@ -184,8 +274,10 @@ export default defineComponent({
onMounted
(()
=>
{
onMounted
(()
=>
{
void
getListUnits
();
void
getListUnits
();
void
getListAddUnit
();
});
});
return
{
return
{
getListAddUnit
,
openAddManagingUnitsDialog
,
openAddManagingUnitsDialog
,
addNewManagingUnits
,
addNewManagingUnits
,
showDialog
,
showDialog
,
...
@@ -200,6 +292,8 @@ export default defineComponent({
...
@@ -200,6 +292,8 @@ export default defineComponent({
representative
,
representative
,
managingUnitTableColumns
,
managingUnitTableColumns
,
managingUnitTableRows
,
managingUnitTableRows
,
managingUnitAddTableColumns
,
managingUnitAddTableRows
,
getListUnits
,
getListUnits
,
pageIndex
,
pageIndex
,
pageSize
,
pageSize
,
...
...
src/pages/don-vi-chu-quan/index.vue
View file @
becda557
...
@@ -106,6 +106,8 @@
...
@@ -106,6 +106,8 @@
v-model:phone-number=
"phoneNumber"
v-model:phone-number=
"phoneNumber"
v-model:status=
"status"
v-model:status=
"status"
v-model:fields=
"fields"
v-model:fields=
"fields"
v-model:managing-unit-add-table-rows=
"managingUnitAddTableRows"
v-model:managing-unit-add-table-columns=
"managingUnitAddTableColumns"
:fields-options=
"fieldsOptions"
:fields-options=
"fieldsOptions"
@
click:CloseBtn=
"showDialog = false"
@
click:CloseBtn=
"showDialog = false"
@
addNewManagingUnits=
"addNewManagingUnits"
@
addNewManagingUnits=
"addNewManagingUnits"
...
...
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