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
0f1469c4
Commit
0f1469c4
authored
Jun 21, 2022
by
Nguyễn Đức Thắng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6924f609
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
99 additions
and
18 deletions
+99
-18
quasar.conf.js
quasar.conf.js
+2
-2
configurations.example.ts
src/assets/configurations.example.ts
+5
-4
index.vue
src/pages/bai-viet/index.vue
+2
-2
index.vue
src/pages/banner/index.vue
+2
-2
index.vue
src/pages/cau-hinh-doi-tac-truyen-thong/index.vue
+2
-2
index.vue
src/pages/cau-hinh-san-pham-noi-bat/index.vue
+2
-2
index.vue
src/pages/cau-hinh-tin-tuc/index.vue
+2
-2
index.vue
src/pages/khach-hang/index.vue
+80
-0
index.vue
src/pages/thong-tin-chung/index.vue
+2
-2
No files found.
quasar.conf.js
View file @
0f1469c4
...
...
@@ -79,10 +79,10 @@ module.exports = configure(function (ctx) {
// Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
devServer
:
{
host
:
'0.0.0.0'
,
https
:
false
,
port
:
10706
,
public
:
'http://0.0.0.0:10706'
,
open
:
true
,
// opens browser window automatically
},
...
...
src/assets/configurations.example.ts
View file @
0f1469c4
export
const
config
=
{
// API_ENDPOINT: 'https://cms.vab.xteldev.com/api/',
API_ENDPOINT
:
'http://103.147.34.34:10700/api/'
,
API_IMAGE_ENDPOINT
:
'http://103.147.34.34:10700/api/upload/'
,
//
API_IMAGE_ENDPOINT: 'https://cms.vab.xteldev.com/file/upload/',
API_ENDPOINT
:
'https://cms.vab.xteldev.com/api/'
,
//test
// API_ENDPOINT:'http://103.147.34.34:10700/api/'
,
// API_IMAGE_ENDPOINT: 'http://103.147.34.34:10700/api/upload/' , // test
API_IMAGE_ENDPOINT
:
'https://cms.vab.xteldev.com/file/upload/'
,
API_RES_CODE
:
{
OK
:
{
...
...
@@ -62,6 +62,7 @@ export enum API_PATHS {
listCustomerLevel
=
'customerLevel'
,
addCustomer
=
'customer/add'
,
deleteCustomer
=
'customer/delete'
,
browserCustomer
=
'customer/accountBrowsing'
,
getListCustomersRank
=
'customerLevel'
,
deleteCustomerRank
=
'customerLevel/delete'
,
addCustomerRank
=
'customerLevel/add'
,
...
...
src/pages/bai-viet/index.vue
View file @
0f1469c4
...
...
@@ -461,8 +461,8 @@ export default defineComponent({
bodyFormData
.
append
(
'file'
,
file
);
const
response
=
(
await
api
({
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
// url: 'https://cms.vab.xteldev.com/file/upload/',
url
:
'http://103.147.34.34:10700/api/upload/'
,
url
:
'https://cms.vab.xteldev.com/file/upload/'
,
// test
// url:'http://103.147.34.34:10700/api/upload/', // pro
method
:
'POST'
,
data
:
bodyFormData
,
}))
as
AxiosResponse
<
BaseResponseBody
<
FileUploadType
>>
;
...
...
src/pages/banner/index.vue
View file @
0f1469c4
...
...
@@ -400,8 +400,8 @@ export default defineComponent({
bodyFormData
.
append
(
'file'
,
file
);
const
response
=
(
await
api
({
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
// url: 'https://cms.vab.xteldev.com/file/upload/',
url
:
'http://103.147.34.34:10700/api/upload/'
,
url
:
'https://cms.vab.xteldev.com/file/upload/'
,
//test
// url:'http://103.147.34.34:10700/api/upload/', // pro
method
:
'POST'
,
data
:
bodyFormData
,
}))
as
AxiosResponse
<
BaseResponseBody
<
FileUploadType
>>
;
...
...
src/pages/cau-hinh-doi-tac-truyen-thong/index.vue
View file @
0f1469c4
...
...
@@ -408,8 +408,8 @@ export default defineComponent({
bodyFormData
.
append
(
'file'
,
file
);
const
response
=
(
await
api
({
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
// url: 'https://cms.vab.xteldev.com/file/upload/',
url
:
'http://103.147.34.34:10700/api/upload/'
,
url
:
'https://cms.vab.xteldev.com/file/upload/'
,
// test
// url:'http://103.147.34.34:10700/api/upload/', // pro
method
:
'POST'
,
data
:
bodyFormData
,
}))
as
AxiosResponse
<
BaseResponseBody
<
FileUploadType
>>
;
...
...
src/pages/cau-hinh-san-pham-noi-bat/index.vue
View file @
0f1469c4
...
...
@@ -468,8 +468,8 @@ export default defineComponent({
bodyFormData
.
append
(
'file'
,
file
);
const
response
=
(
await
api
({
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
// url: 'https://cms.vab.xteldev.com/file/upload/',
url
:
'http://103.147.34.34:10700/api/upload/'
,
url
:
'https://cms.vab.xteldev.com/file/upload/'
,
// test
// url:'http://103.147.34.34:10700/api/upload/', //pro
method
:
'POST'
,
data
:
bodyFormData
,
}))
as
AxiosResponse
<
BaseResponseBody
<
FileUploadType
>>
;
...
...
src/pages/cau-hinh-tin-tuc/index.vue
View file @
0f1469c4
...
...
@@ -413,8 +413,8 @@ export default defineComponent({
bodyFormData
.
append
(
'file'
,
file
);
const
response
=
(
await
api
({
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
// url: 'https://cms.vab.xteldev.com/file/upload/',
url
:
'http://103.147.34.34:10700/api/upload/'
,
url
:
'https://cms.vab.xteldev.com/file/upload/'
,
// test
// url:'http://103.147.34.34:10700/api/upload/', // pro
method
:
'POST'
,
data
:
bodyFormData
,
}))
as
AxiosResponse
<
BaseResponseBody
<
FileUploadType
>>
;
...
...
src/pages/khach-hang/index.vue
View file @
0f1469c4
...
...
@@ -88,6 +88,15 @@
<q-tooltip
:offset=
"[20, 10]"
>
{{
$t
(
'customer.toolTipMessage.updateCustomerInfo'
)
}}
</q-tooltip>
</q-btn>
<q-btn
flat
round
color=
"primary"
icon=
"mdi-check-circle-outline"
@
click=
"confirmBrowserCustomer(rowData.row.id)"
>
<q-tooltip
:offset=
"[20, 10]"
>
Duyệt tài khoản
</q-tooltip>
</q-btn>
<q-btn
flat
...
...
@@ -119,6 +128,24 @@
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-approvalStatus=
"rowData"
>
<q-td>
<div
align=
"center"
>
<q-chip
:color=
"rowData.value === 1 ? 'positive' : 'orange'"
text-color=
"white"
size=
"sm"
>
{{
rowData
.
value
===
1
?
'Đã duyệt'
:
'Chờ duyệt'
}}
</q-chip>
</div>
</q-td>
</
template
>
</q-table>
<div
class=
"col-12 q-mt-sm"
>
<Pagination
...
...
@@ -251,6 +278,14 @@ export default defineComponent({
label
:
i18n
.
global
.
t
(
'customer.tableColumnsCustomer.status'
),
align
:
'center'
,
sortable
:
false
,
},
{
name
:
'approvalStatus'
,
field
:
'approvalStatus'
,
required
:
true
,
label
:
'T.thái duyệt'
,
align
:
'center'
,
sortable
:
false
,
},
{
name
:
'action'
,
...
...
@@ -334,6 +369,50 @@ export default defineComponent({
void
deleteCustomer
(
id
);
});
};
const
confirmBrowserCustomer
=
(
id
:
number
)
=>
{
Dialog
.
create
({
title
:
i18n
.
global
.
t
(
'customer.confirmActionsTitle.confirmDeleteUserTitle'
),
message
:
'Bạn có chắc muốn duyệt khách hàng này không?'
,
// i18n.global.t(
// 'customer.confirmActionsTitle.confirmDeleteUserContent'
// ),
cancel
:
i18n
.
global
.
t
(
'customer.confirmActionsTitle.confirmDeleteUserCancelBtnLabel'
),
color
:
'negative'
,
}).
onOk
(()
=>
{
// void deleteCustomer(id);
void
browserCustomer
(
id
);
});
};
const
browserCustomer
=
async
(
id
:
number
)
=>
{
try
{
const
browserResult
=
(
await
api
({
url
:
API_PATHS
.
browserCustomer
,
method
:
'POST'
,
data
:
{
id
:
id
,
isCustomer
:
1
,
approvalStatus
:
1
},
}))
as
AxiosResponse
<
BaseResponseBody
<
unknown
>>
;
if
(
browserResult
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
Notify
.
create
({
type
:
'positive'
,
message
:
'Duyệt thành công'
,
actions
:
[{
icon
:
'close'
,
color
:
'white'
}],
});
void
getListCustomers
();
}
}
catch
(
error
)
{
}
}
const
deleteCustomer
=
async
(
id
:
number
)
=>
{
try
{
const
deleteResult
=
(
await
api
({
...
...
@@ -503,6 +582,7 @@ export default defineComponent({
changePageSize
,
getCustomerLevelOptions
,
confirmDeleteCustomer
,
confirmBrowserCustomer
,
customerInfo
,
};
},
...
...
src/pages/thong-tin-chung/index.vue
View file @
0f1469c4
...
...
@@ -284,8 +284,8 @@ export default defineComponent({
bodyFormData
.
append
(
'file'
,
file
);
const
response
=
(
await
api
({
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
// url: 'https://cms.vab.xteldev.com/file/upload/',
url
:
'http://103.147.34.34:10700/api/upload/'
,
url
:
'https://cms.vab.xteldev.com/file/upload/'
,
// test
// url:'http://103.147.34.34:10700/api/upload/', // pro
method
:
'POST'
,
data
:
bodyFormData
,
}))
as
AxiosResponse
<
BaseResponseBody
<
FileUploadType
>>
;
...
...
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