Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
develop-platform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 056477cd
authored
Nov 11, 2020
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
服务4s店
1 parent
39bee501
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
5 deletions
src/api/serviceStore.js
src/plugin/axios/index.js
src/views/system/login/index.vue
src/views/systemConfig/serviceStore.vue
src/api/serviceStore.js
View file @
056477c
...
...
@@ -12,3 +12,9 @@ export function deleteMerchant(data) {
data
.
method
=
`
${
path
}
servicemerchantref.delete.byId`
return
request
(
data
)
}
// 获取商户列表
export
function
serviceGetMerchantList
(
data
)
{
data
.
method
=
`
${
path
}
merchant.page`
return
request
(
data
)
}
src/plugin/axios/index.js
View file @
056477c
...
...
@@ -92,8 +92,7 @@ service.interceptors.response.use(
const
ruleResult
=
baseConfig
.
axios
.
result
// 这个状态码是和后端约定的
// 有 code 代表这是一个后端接口 可以进行进一步的判断
console
.
log
(
'>>>>>>>>>>>>>>>>/////////////'
)
if
(
dataAxios
[
ruleResult
.
code_key
]
==
'21'
)
{
if
(
dataAxios
[
ruleResult
.
code_key
]
===
'21'
)
{
// await store.dispatch('d2admin/account/logout')
util
.
cookies
.
remove
(
'token'
)
router
.
replace
(
'/login'
)
...
...
src/views/system/login/index.vue
View file @
056477c
...
...
@@ -122,6 +122,7 @@ export default {
// 表单
formLogin
:
{
userName
:
'dongdao'
,
// userName: 'houlai',
password
:
'123456'
},
// 表单校验
...
...
src/views/systemConfig/serviceStore.vue
View file @
056477c
...
...
@@ -38,11 +38,19 @@
:data=
"scope.scope"
></auth-button>
</d2-table>
<relate-store-dialog
v-if=
"relateStoreVisible"
:relateStoreVisible=
"relateStoreVisible"
:storeApi=
"storeApi"
:storeSelected=
"storeSelected"
@
handleRelateStoreConfirm=
"handleRelateStoreConfirm"
@
handleRelateStoreClose=
"handleRelateStoreClose"
></relate-store-dialog>
</d2-container>
</
template
>
<
script
>
import
{
getList
,
deleteMerchant
}
from
'@api/serviceStore'
import
{
getList
,
deleteMerchant
,
serviceGetMerchantList
}
from
'@api/serviceStore'
import
{
mapActions
}
from
'vuex'
import
{
BaseData
,
userType
,
ghUserType
}
from
'@/common/constants.js'
export
default
{
...
...
@@ -98,6 +106,10 @@ export default {
}
}]
},
// 关联门店
relateStoreVisible
:
false
,
storeApi
:
serviceGetMerchantList
,
storeSelected
:
[],
baseData
:
{
channelType
:
[]
}
...
...
@@ -123,11 +135,21 @@ export default {
},
async
getBaseData
()
{
this
.
baseData
.
channelType
=
await
this
.
get
(
BaseData
.
CHANNELTYPE
)
console
.
log
(
this
.
baseData
.
channelType
)
},
handleReset
()
{
},
handleReset
()
{
this
.
searchForm
=
{
merchantName
:
''
}
},
handleAdd
()
{
// console.log(form)
this
.
relateStoreVisible
=
true
},
handleRelateStoreConfirm
()
{
this
.
relateStoreVisible
=
false
},
handleRelateStoreClose
()
{
this
.
relateStoreVisible
=
false
},
handleDelete
(
row
)
{
console
.
log
(
row
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment