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 43fe8b4d
authored
Jun 27, 2019
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
hebign
2 parents
dab08b87
057ecd78
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
15 deletions
src/api/businessGroupDetail.js
src/api/bussinessListApi.js
src/views/customer/businessDetails/index.vue
src/views/customer/businessList/index.vue
src/api/businessGroupDetail.js
View file @
43fe8b4
const
path
=
'glsx.accounts.admin.merchant.'
const
path
=
'glsx.accounts.admin.merchant.'
const
path2
=
'glsx.accounts.admin.'
const
methods
=
{
const
methods
=
{
Create
:
`
${
path
}
group.relation.create`
,
// 分组新增商户
Create
:
`
${
path
}
group.relation.create`
,
// 分组新增商户
Search
:
`
${
path
}
group.search`
,
Search
:
`
${
path
}
group.search`
,
...
@@ -7,10 +6,7 @@ const methods = {
...
@@ -7,10 +6,7 @@ const methods = {
SearchChildList
:
`
${
path
}
group.search.param`
,
// 子商户根据商户号或者商户名搜索商户列表
SearchChildList
:
`
${
path
}
group.search.param`
,
// 子商户根据商户号或者商户名搜索商户列表
SearchList
:
`
${
path
}
group.search.parampar`
,
// 父商户根据商户号或者商户名搜索商户列表
SearchList
:
`
${
path
}
group.search.parampar`
,
// 父商户根据商户号或者商户名搜索商户列表
GetTree
:
`
${
path
}
group.merchant.tree`
,
GetTree
:
`
${
path
}
group.merchant.tree`
,
GroupSearchMerchant
:
`
${
path
}
group.search.merchant`
,
GroupSearchMerchant
:
`
${
path
}
group.search.merchant`
MerchantModify
:
`
${
path
}
modify`
,
MerchantEnable
:
`
${
path2
}
enable.merchant`
,
MerchantDisable
:
`
${
path2
}
disable.merchant`
}
}
export
{
export
{
methods
methods
...
...
src/api/bussinessListApi.js
View file @
43fe8b4
const
path
=
'glsx.accounts.admin.merchant.'
const
path
=
'glsx.accounts.admin.merchant.'
const
path2
=
'glsx.accounts.admin.'
const
methods
=
{
const
methods
=
{
Search
:
`
${
path
}
search`
,
Search
:
`
${
path
}
search`
,
Detail
:
`
${
path
}
detail`
,
Detail
:
`
${
path
}
detail`
,
Personal
:
`
${
path
}
personal`
,
Personal
:
`
${
path
}
personal`
,
Group
:
`
${
path
}
group`
,
Group
:
`
${
path
}
group`
,
Create
:
`
${
path
}
create`
,
Create
:
`
${
path
}
create`
,
GroupLevel
:
`
${
path
}
group.level`
GroupLevel
:
`
${
path
}
group.level`
,
MerchantModify
:
`
${
path
}
modify`
,
MerchantEnable
:
`
${
path2
}
enable.merchant`
,
MerchantDisable
:
`
${
path2
}
disable.merchant`
}
}
export
{
export
{
methods
methods
...
...
src/views/customer/businessDetails/index.vue
View file @
43fe8b4
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
v-if=
"isEdit"
v-if=
"isEdit"
class=
"upload-demo"
class=
"upload-demo"
name=
"file"
name=
"file"
:action=
"uploadAction
"
action=
"http://192.168.3.217:9220/file/upstring
"
:limit=
"2"
:limit=
"2"
:before-upload=
"beforeUpload"
:before-upload=
"beforeUpload"
:on-success=
"handleSuccess"
:on-success=
"handleSuccess"
...
@@ -170,7 +170,7 @@
...
@@ -170,7 +170,7 @@
<
script
>
<
script
>
import
VueAMap
from
'vue-amap'
import
VueAMap
from
'vue-amap'
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
businessManagenMethods
,
bizMethods
,
groupDetailMethods
,
request
}
from
'@/api'
import
{
businessManagenMethods
,
bizMethods
,
request
}
from
'@/api'
import
notice
from
'@/common/notice'
import
notice
from
'@/common/notice'
var
marker
=
[]
var
marker
=
[]
const
amapManager
=
new
VueAMap
.
AMapManager
()
const
amapManager
=
new
VueAMap
.
AMapManager
()
...
@@ -392,9 +392,10 @@ export default {
...
@@ -392,9 +392,10 @@ export default {
const
element
=
document
.
querySelector
(
'.detail-basic'
)
const
element
=
document
.
querySelector
(
'.detail-basic'
)
element
.
style
.
height
=
parseInt
(
this
.
$client_height
()
-
70
)
+
'px'
element
.
style
.
height
=
parseInt
(
this
.
$client_height
()
-
70
)
+
'px'
this
.
hasLocation
=
false
this
.
hasLocation
=
false
this
.
uploadAction
=
`
${
// this.uploadAction = `${
this
.
$get_session_common_config
().
axios
.
fileUploadURL
// this.$get_session_common_config().axios.fileUploadURL
}
/gps/
common
/
uploadFile
`
// }/gps/common/uploadFile`
// this.uploadAction = 'http://192.168.3.217:9220/file/upstring'
this
.
$root
.
eventBus
.
$on
(
'params'
,
(
params
)
=>
{
this
.
$root
.
eventBus
.
$on
(
'params'
,
(
params
)
=>
{
this
.
activeName
=
'first'
this
.
activeName
=
'first'
this
.
isVisible
=
false
this
.
isVisible
=
false
...
@@ -428,7 +429,7 @@ export default {
...
@@ -428,7 +429,7 @@ export default {
console
.
log
(
'调保存接口--'
)
console
.
log
(
'调保存接口--'
)
console
.
log
(
this
.
merchantInfo
)
console
.
log
(
this
.
merchantInfo
)
const
params
=
this
.
merchantInfo
const
params
=
this
.
merchantInfo
params.method =
groupDetail
Methods.MerchantModify
params
.
method
=
biz
Methods
.
MerchantModify
console
.
log
(
params
)
console
.
log
(
params
)
request
.
req
(
params
).
then
(
res
=>
{
request
.
req
(
params
).
then
(
res
=>
{
this
.
isEdit
=
!
this
.
isEdit
this
.
isEdit
=
!
this
.
isEdit
...
...
src/views/customer/businessList/index.vue
View file @
43fe8b4
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<
script
>
<
script
>
import
SearchDialog
from
'./SearchDialog'
import
SearchDialog
from
'./SearchDialog'
import
AddDialog
from
'./AddDialog'
import
AddDialog
from
'./AddDialog'
import
{
bizMethods
,
groupDetailMethods
,
request
}
from
'@/api'
import
{
bizMethods
,
request
}
from
'@/api'
import
{
resetSearch
}
from
'@/common/common'
import
{
resetSearch
}
from
'@/common/common'
import
notice
from
'@/common/notice'
import
notice
from
'@/common/notice'
export
default
{
export
default
{
...
@@ -144,10 +144,13 @@ export default {
...
@@ -144,10 +144,13 @@ export default {
return
cellValue
.
merchantStatus
<
1
?
'停用'
:
'启动'
return
cellValue
.
merchantStatus
<
1
?
'停用'
:
'启动'
},
},
callback
:
(
index
,
rows
)
=>
{
callback
:
(
index
,
rows
)
=>
{
// console.log(rows[index])
// 调接口
// 调接口
const
params
=
{}
const
params
=
{}
params
.
personnelId
=
this
.
$get_session_config
().
user
.
id
if
(
this
.
ListTableData
.
data
[
index
].
merchantStatus
)
{
if
(
this
.
ListTableData
.
data
[
index
].
merchantStatus
)
{
params
.
method
=
groupDetailMethods
.
MerchantEnable
params
.
method
=
bizMethods
.
MerchantEnable
params
.
merchantId
=
rows
[
index
].
merchantId
request
.
req
(
params
).
then
(
res
=>
{
request
.
req
(
params
).
then
(
res
=>
{
this
.
ListTableData
.
data
[
index
].
merchantStatus
=
0
this
.
ListTableData
.
data
[
index
].
merchantStatus
=
0
this
.
$set
(
rows
[
index
],
'merchantStatus'
,
this
.
ListTableData
.
data
[
index
].
merchantStatus
)
this
.
$set
(
rows
[
index
],
'merchantStatus'
,
this
.
ListTableData
.
data
[
index
].
merchantStatus
)
...
@@ -155,7 +158,8 @@ export default {
...
@@ -155,7 +158,8 @@ export default {
notice
.
errorTips
(
err
)
notice
.
errorTips
(
err
)
})
})
}
else
{
}
else
{
params
.
method
=
groupDetailMethods
.
MerchantDisable
params
.
method
=
bizMethods
.
MerchantDisable
params
.
merchantId
=
rows
[
index
].
merchantId
request
.
req
(
params
).
then
(
res
=>
{
request
.
req
(
params
).
then
(
res
=>
{
this
.
ListTableData
.
data
[
index
].
merchantStatus
=
1
this
.
ListTableData
.
data
[
index
].
merchantStatus
=
1
this
.
$set
(
rows
[
index
],
'merchantStatus'
,
this
.
ListTableData
.
data
[
index
].
merchantStatus
)
this
.
$set
(
rows
[
index
],
'merchantStatus'
,
this
.
ListTableData
.
data
[
index
].
merchantStatus
)
...
...
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