Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-merchant-data
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 a2e738aa
authored
Mar 28, 2019
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/glsx-web/glsx-oss-merchant-data
2 parents
5eca6a69
7d2740d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
src/views/customer/businessDetails/index.vue
src/views/customer/businessDetails/index.vue
View file @
a2e738a
...
@@ -54,13 +54,13 @@
...
@@ -54,13 +54,13 @@
label=
'员工信息'
label=
'员工信息'
name=
'second'
name=
'second'
>
>
<gl-table
:table=
"staffTableData"
></gl-table>
<gl-table
v-loading=
"staffLoading"
:table=
"staffTableData"
></gl-table>
</gl-tab-pane>
</gl-tab-pane>
<gl-tab-pane
<gl-tab-pane
label=
'分组信息'
label=
'分组信息'
name=
'third'
name=
'third'
>
>
<gl-table
:table=
"groupTableData"
>
<gl-table
v-loading=
"groupLoading"
:table=
"groupTableData"
>
<gl-table-column
align=
"center"
v-for=
"(i, index) in groupTableData.column"
:key=
"index"
:label=
'i.label'
:prop=
'i.prop'
>
<gl-table-column
align=
"center"
v-for=
"(i, index) in groupTableData.column"
:key=
"index"
:label=
'i.label'
:prop=
'i.prop'
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<template
v-if=
'i.prop === "groupName"'
>
<template
v-if=
'i.prop === "groupName"'
>
...
@@ -135,8 +135,8 @@ export default {
...
@@ -135,8 +135,8 @@ export default {
// loading标记
// loading标记
// loading: [0, 0, 0],
// loading: [0, 0, 0],
// basicLoading: false,
// basicLoading: false,
//
staffLoading: false,
staffLoading
:
false
,
//
groupLoading: false,
groupLoading
:
false
,
// 标记merchantId是否改变
// 标记merchantId是否改变
IdChange
:
[
0
,
0
,
0
],
IdChange
:
[
0
,
0
,
0
],
activeName
:
'first'
,
activeName
:
'first'
,
...
@@ -331,9 +331,11 @@ export default {
...
@@ -331,9 +331,11 @@ export default {
this
.
IdChange
[
0
]
&&
this
.
getBasicInfo
()
this
.
IdChange
[
0
]
&&
this
.
getBasicInfo
()
break
break
case
'second'
:
case
'second'
:
this
.
staffLoading
=
this
.
IdChange
[
1
]
this
.
IdChange
[
1
]
&&
this
.
getStaffInfo
()
this
.
IdChange
[
1
]
&&
this
.
getStaffInfo
()
break
break
case
'third'
:
case
'third'
:
this
.
groupLoading
=
this
.
IdChange
[
2
]
this
.
IdChange
[
2
]
&&
this
.
getGroupInfo
()
this
.
IdChange
[
2
]
&&
this
.
getGroupInfo
()
break
break
}
}
...
@@ -375,10 +377,12 @@ export default {
...
@@ -375,10 +377,12 @@ export default {
request
.
req
(
params
).
then
(
res
=>
{
request
.
req
(
params
).
then
(
res
=>
{
this
.
staffTableData
.
data
=
res
.
merchantPersonals
this
.
staffTableData
.
data
=
res
.
merchantPersonals
this
.
IdChange
[
1
]
=
0
this
.
IdChange
[
1
]
=
0
console
.
log
(
this
.
IdChange
[
1
])
this
.
staffLoading
=
false
notice
.
okTips
()
// console.log(this.IdChange[1])
// notice.okTips()
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
IdChange
[
1
]
=
0
this
.
IdChange
[
1
]
=
0
this
.
staffLoading
=
false
notice
.
errorTips
(
err
)
notice
.
errorTips
(
err
)
})
})
},
},
...
@@ -389,10 +393,12 @@ export default {
...
@@ -389,10 +393,12 @@ export default {
request
.
req
(
params
).
then
(
res
=>
{
request
.
req
(
params
).
then
(
res
=>
{
this
.
groupTableData
.
data
=
res
.
merchantGroups
this
.
groupTableData
.
data
=
res
.
merchantGroups
this
.
IdChange
[
2
]
=
0
this
.
IdChange
[
2
]
=
0
console
.
log
(
this
.
IdChange
[
2
])
this
.
groupLoading
=
false
notice
.
okTips
()
// console.log(this.IdChange[2])
// notice.okTips()
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
IdChange
[
2
]
=
0
this
.
IdChange
[
2
]
=
0
this
.
groupLoading
=
false
notice
.
errorTips
(
err
)
notice
.
errorTips
(
err
)
})
})
},
},
...
@@ -404,8 +410,8 @@ export default {
...
@@ -404,8 +410,8 @@ export default {
this
.
detailVisible
()
this
.
detailVisible
()
request
.
req
(
params
).
then
(
res
=>
{
request
.
req
(
params
).
then
(
res
=>
{
// console.log([res.parentMerchantLevel])
// console.log([res.parentMerchantLevel])
this
.
parentLevelTableData
.
data
=
[
res
.
parentMerchantLevel
]
res
.
parentMerchantLevel
&&
(
this
.
parentLevelTableData
.
data
=
[
res
.
parentMerchantLevel
])
this
.
childLevelTableData
.
data
=
res
.
childMerchantLevels
res
.
childMerchantLevels
&&
(
this
.
childLevelTableData
.
data
=
res
.
childMerchantLevels
)
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
// console.log(err)
// console.log(err)
notice
.
errorTips
(
err
)
notice
.
errorTips
(
err
)
...
...
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