Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
杨明
/
scrm-micro-config
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 95526d49
authored
Nov 23, 2021
by
yangming
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
method
1 parent
14629b40
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
71 additions
and
67 deletions
package.json
src/api/modules/baseInfo.js
src/api/modules/employee.js
src/api/modules/merchant.js
src/api/modules/role.js
src/api/modules/store.js
src/views/account/components/selectProduct.vue
src/views/account/detailAccount.vue
src/views/account/editAccount.vue
src/views/role/components/selectProduct.vue
src/views/role/create.vue
package.json
View file @
95526d4
...
@@ -11,8 +11,9 @@
...
@@ -11,8 +11,9 @@
"axios"
:
"^0.21.1"
,
"axios"
:
"^0.21.1"
,
"core-js"
:
"^3.4.4"
,
"core-js"
:
"^3.4.4"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-common"
:
"^1.4.6"
,
"
vue"
:
"^2.6.11
"
,
"
glsx-components"
:
"^1.1.8
"
,
"glsx-table"
:
"^1.0.9"
,
"glsx-table"
:
"^1.0.9"
,
"vue"
:
"^2.6.11"
,
"vue-amap"
:
"^0.5.10"
"vue-amap"
:
"^0.5.10"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
...
...
src/api/modules/baseInfo.js
View file @
95526d4
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*/
*/
import
{
http_config
}
from
'@/main'
import
{
http_config
}
from
'@/main'
const
getMerchantTree
=
params
=>
{
const
getMerchantTree
=
params
=>
{
params
.
method
=
'
org.ore
.api.common.findMerchantTreeByMerchantNo.list'
params
.
method
=
'
entmicro
.api.common.findMerchantTreeByMerchantNo.list'
return
http_config
({
return
http_config
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -17,7 +17,7 @@ const getMerchantTree = params => {
...
@@ -17,7 +17,7 @@ const getMerchantTree = params => {
})
})
}
}
const
getDepartment
=
params
=>
{
const
getDepartment
=
params
=>
{
params
.
method
=
'
cn.com.glsx.entmicro
.department.listDepartmentTree'
params
.
method
=
'
entmicro.api
.department.listDepartmentTree'
return
http_config
({
return
http_config
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -26,7 +26,7 @@ const getDepartment = params => {
...
@@ -26,7 +26,7 @@ const getDepartment = params => {
})
})
}
}
const
toGL
=
params
=>
{
const
toGL
=
params
=>
{
params
.
method
=
'
org.ore
.api.common.relevanceEntmicro.list'
params
.
method
=
'
entmicro
.api.common.relevanceEntmicro.list'
return
http_config
({
return
http_config
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -35,7 +35,7 @@ const toGL = params => {
...
@@ -35,7 +35,7 @@ const toGL = params => {
})
})
}
}
const
merchantInfo
=
params
=>
{
const
merchantInfo
=
params
=>
{
params
.
method
=
'
org.ore
.api.common.findMerchantInfoByMerchantNo.list'
params
.
method
=
'
entmicro
.api.common.findMerchantInfoByMerchantNo.list'
return
http_config
({
return
http_config
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
...
src/api/modules/employee.js
View file @
95526d4
import
{
http
}
from
'@/main'
import
{
http
}
from
'@/main'
var
defaultPath
=
'
cn.com.glsx.merchants
.'
var
defaultPath
=
'
merchants.api
.'
const
getListApi
=
params
=>
{
const
getListApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
staff.findStaffByPage`
params
.
method
=
`
${
defaultPath
}
staff.findStaffByPage`
...
@@ -22,7 +22,7 @@ const getAllMerchantListApi = params => {
...
@@ -22,7 +22,7 @@ const getAllMerchantListApi = params => {
}
}
const
getRoleListApi
=
params
=>
{
const
getRoleListApi
=
params
=>
{
params
.
method
=
'
org.ore
.api.role.list'
params
.
method
=
'
merchants
.api.role.list'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
...
src/api/modules/merchant.js
View file @
95526d4
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
import
{
http
}
from
'@/main'
import
{
http
}
from
'@/main'
export
function
getThirdTable
(
params
)
{
export
function
getThirdTable
(
params
)
{
params
.
method
=
'
cn.com.glsx.merchants
.menu.findLog'
params
.
method
=
'
merchants.api
.menu.findLog'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
...
@@ -19,7 +19,7 @@ export function getThirdTable(params) {
...
@@ -19,7 +19,7 @@ export function getThirdTable(params) {
})
})
}
}
// const getThirdTable =(params)=>{
// const getThirdTable =(params)=>{
// params.method = '
cn.com.glsx.merchants
.menu.findLog'
// params.method = '
merchants.api
.menu.findLog'
// return http({
// return http({
// url: '/rop-merchants/router',
// url: '/rop-merchants/router',
...
@@ -31,7 +31,7 @@ export function getThirdTable(params) {
...
@@ -31,7 +31,7 @@ export function getThirdTable(params) {
// }
// }
//获取功能权限树
//获取功能权限树
const
findMenuFunTreeByMerId
=
params
=>
{
const
findMenuFunTreeByMerId
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.merchant.findMenuFunTreeByMerId'
params
.
method
=
'
merchants.api
.merchant.findMenuFunTreeByMerId'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
...
@@ -42,7 +42,7 @@ const findMenuFunTreeByMerId = params => {
...
@@ -42,7 +42,7 @@ const findMenuFunTreeByMerId = params => {
}
}
//获取商户信息
//获取商户信息
const
getFirstInfo
=
params
=>
{
const
getFirstInfo
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.merchant.findMerchantDetail'
params
.
method
=
'
merchants.api
.merchant.findMerchantDetail'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
...
@@ -53,7 +53,7 @@ const getFirstInfo = params => {
...
@@ -53,7 +53,7 @@ const getFirstInfo = params => {
}
}
//获取上下级信息
//获取上下级信息
const
getSecondInfo
=
params
=>
{
const
getSecondInfo
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.menu.findSubordinateRelationship'
params
.
method
=
'
merchants.api
.menu.findSubordinateRelationship'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
...
@@ -63,7 +63,7 @@ const getSecondInfo = params => {
...
@@ -63,7 +63,7 @@ const getSecondInfo = params => {
})
})
}
}
const
getSecondTree
=
params
=>
{
const
getSecondTree
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.merchant.findMerchantTree'
params
.
method
=
'
merchants.api
.merchant.findMerchantTree'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
...
@@ -73,7 +73,7 @@ const getSecondTree = params => {
...
@@ -73,7 +73,7 @@ const getSecondTree = params => {
})
})
}
}
const
getSecondTable
=
params
=>
{
const
getSecondTable
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.staff.findMerchantStaffList'
params
.
method
=
'
merchants.api
.staff.findMerchantStaffList'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
...
...
src/api/modules/role.js
View file @
95526d4
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*/
*/
import
{
http
}
from
'@/main'
import
{
http
}
from
'@/main'
const
roleDataList
=
params
=>
{
const
roleDataList
=
params
=>
{
params
.
method
=
'
org.ore
.api.role.page'
params
.
method
=
'
merchants
.api.role.page'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -17,7 +17,7 @@ const roleDataList = params => {
...
@@ -17,7 +17,7 @@ const roleDataList = params => {
})
})
}
}
const
merchantDataList
=
params
=>
{
const
merchantDataList
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.menu.findAllMerchant'
params
.
method
=
'
merchants.api
.menu.findAllMerchant'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -26,7 +26,7 @@ const merchantDataList = params => {
...
@@ -26,7 +26,7 @@ const merchantDataList = params => {
})
})
}
}
const
roleInfoData
=
params
=>
{
const
roleInfoData
=
params
=>
{
params
.
method
=
'
org.ore
.api.role.getById'
params
.
method
=
'
merchants
.api.role.getById'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -35,7 +35,7 @@ const roleInfoData = params => {
...
@@ -35,7 +35,7 @@ const roleInfoData = params => {
})
})
}
}
const
roleTreeDataById
=
params
=>
{
const
roleTreeDataById
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.merchant.findMenuFunTreeByRoleId'
params
.
method
=
'
merchants.api
.merchant.findMenuFunTreeByRoleId'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -44,7 +44,7 @@ const roleTreeDataById = params => {
...
@@ -44,7 +44,7 @@ const roleTreeDataById = params => {
})
})
}
}
const
merchantRootById
=
params
=>
{
const
merchantRootById
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.merchant.findMenuFunTreeByMerId'
params
.
method
=
'
merchants.api
.merchant.findMenuFunTreeByMerId'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -53,7 +53,7 @@ const merchantRootById = params => {
...
@@ -53,7 +53,7 @@ const merchantRootById = params => {
})
})
}
}
const
createRole
=
params
=>
{
const
createRole
=
params
=>
{
params
.
method
=
'
org.ore
.api.role.insert'
params
.
method
=
'
merchants
.api.role.insert'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -62,7 +62,7 @@ const createRole = params => {
...
@@ -62,7 +62,7 @@ const createRole = params => {
})
})
}
}
const
updateRole
=
params
=>
{
const
updateRole
=
params
=>
{
params
.
method
=
'
org.ore
.api.role.update'
params
.
method
=
'
merchants
.api.role.update'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -71,7 +71,7 @@ const updateRole = params => {
...
@@ -71,7 +71,7 @@ const updateRole = params => {
})
})
}
}
const
deleteRole
=
params
=>
{
const
deleteRole
=
params
=>
{
params
.
method
=
'
org.ore
.api.role.deleteById'
params
.
method
=
'
merchants
.api.role.deleteById'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
...
src/api/modules/store.js
View file @
95526d4
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*/
*/
import
{
http
}
from
'@/main'
import
{
http
}
from
'@/main'
const
findMerchantByPage
=
params
=>
{
const
findMerchantByPage
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.menu.findMerchantByPage'
params
.
method
=
'
merchants.api
.menu.findMerchantByPage'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -17,7 +17,7 @@ const findMerchantByPage = params => {
...
@@ -17,7 +17,7 @@ const findMerchantByPage = params => {
})
})
}
}
const
findAllDictData
=
params
=>
{
const
findAllDictData
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.menu.findAllDictData'
params
.
method
=
'
merchants.api
.menu.findAllDictData'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -27,7 +27,7 @@ const findAllDictData = params => {
...
@@ -27,7 +27,7 @@ const findAllDictData = params => {
}
}
//主营品牌
//主营品牌
const
getCarbrandTree
=
params
=>
{
const
getCarbrandTree
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.merchantCommon.getCarbrandTree'
params
.
method
=
'
merchants.api
.merchantCommon.getCarbrandTree'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -37,7 +37,7 @@ const getCarbrandTree = params => {
...
@@ -37,7 +37,7 @@ const getCarbrandTree = params => {
}
}
//详情
//详情
const
findMerchantDetail
=
params
=>
{
const
findMerchantDetail
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.merchant.findMerchantDetail'
params
.
method
=
'
merchants.api
.merchant.findMerchantDetail'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -47,7 +47,7 @@ const findMerchantDetail = params => {
...
@@ -47,7 +47,7 @@ const findMerchantDetail = params => {
}
}
//下一步
//下一步
const
saveMerchant
=
params
=>
{
const
saveMerchant
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.merchant.saveMerchant'
params
.
method
=
'
merchants.api
.merchant.saveMerchant'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -56,7 +56,7 @@ const saveMerchant = params => {
...
@@ -56,7 +56,7 @@ const saveMerchant = params => {
})
})
}
}
const
updateMerchant
=
params
=>
{
const
updateMerchant
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.merchant.updateMerchant'
params
.
method
=
'
merchants.api
.merchant.updateMerchant'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -65,7 +65,7 @@ const updateMerchant = params => {
...
@@ -65,7 +65,7 @@ const updateMerchant = params => {
})
})
}
}
const
accountTypeSearchRequest
=
params
=>
{
const
accountTypeSearchRequest
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.merchant.accountTypeSearchRequest'
params
.
method
=
'
merchants.api
.merchant.accountTypeSearchRequest'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -75,7 +75,7 @@ const accountTypeSearchRequest = params => {
...
@@ -75,7 +75,7 @@ const accountTypeSearchRequest = params => {
}
}
//功能权限
//功能权限
const
findPermissionsByMerId
=
params
=>
{
const
findPermissionsByMerId
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.merchant.findPermissionsByMerId'
params
.
method
=
'
merchants.api
.merchant.findPermissionsByMerId'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -85,7 +85,7 @@ const findPermissionsByMerId = params => {
...
@@ -85,7 +85,7 @@ const findPermissionsByMerId = params => {
}
}
//功能权限
//功能权限
const
findMenuFunTreeByMerId
=
params
=>
{
const
findMenuFunTreeByMerId
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.merchant.findMenuFunTreeByMerId'
params
.
method
=
'
merchants.api
.merchant.findMenuFunTreeByMerId'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -95,7 +95,7 @@ const findMenuFunTreeByMerId = params => {
...
@@ -95,7 +95,7 @@ const findMenuFunTreeByMerId = params => {
}
}
//草稿保存
//草稿保存
const
updatePermissions
=
params
=>
{
const
updatePermissions
=
params
=>
{
params
.
method
=
'
cn.com.glsx.merchants
.merchant.updatePermissions'
params
.
method
=
'
merchants.api
.merchant.updatePermissions'
return
http
({
return
http
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
...
src/views/account/components/selectProduct.vue
View file @
95526d4
...
@@ -178,7 +178,9 @@ export default {
...
@@ -178,7 +178,9 @@ export default {
}
else
{
}
else
{
account
=
"accountTypeSearchRequest"
;
account
=
"accountTypeSearchRequest"
;
}
}
let
tabMenu
=
await
this
.
$apis
.
store
[
account
](
params
);
this
.
$apis
.
store
[
account
](
params
).
then
((
res
)
=>
{
console
.
log
(
res
);
let
tabMenu
=
res
;
this
.
accountList
=
tabMenu
.
map
((
item
)
=>
{
this
.
accountList
=
tabMenu
.
map
((
item
)
=>
{
return
{
return
{
productsArr
:
[],
productsArr
:
[],
...
@@ -189,9 +191,7 @@ export default {
...
@@ -189,9 +191,7 @@ export default {
// productId: ''
// productId: ''
};
};
});
});
this
.
$nextTick
(()
=>
{
this
.
addStyle
();
});
console
.
log
(
this
.
accountList
);
console
.
log
(
this
.
accountList
);
this
.
accountTypes
=
tabMenu
.
map
((
item
)
=>
{
this
.
accountTypes
=
tabMenu
.
map
((
item
)
=>
{
return
{
return
{
...
@@ -200,9 +200,8 @@ export default {
...
@@ -200,9 +200,8 @@ export default {
};
};
});
});
this
.
tabMenu_s
=
util
.
deepClone
(
this
.
accountList
);
this
.
tabMenu_s
=
util
.
deepClone
(
this
.
accountList
);
// this.tabName = this.tabMenu[0].accounttypeId
this
.
findPermissionsByMerId
(
params
.
merchantId
?
params
.
merchantId
:
params
.
id
);
this
.
findPermissionsByMerId
(
params
.
merchantId
?
params
.
merchantId
:
params
.
id
);
return
this
.
accountList
;
})
;
},
},
// 获取已选择的权限
// 获取已选择的权限
findPermissionsByMerId
(
id
)
{
findPermissionsByMerId
(
id
)
{
...
@@ -226,6 +225,7 @@ export default {
...
@@ -226,6 +225,7 @@ export default {
this
.
$refs
[
this
.
$refs
[
`tree_
${
itm
.
accounttypeId
}
_
${
j
.
productId
}
`
`tree_
${
itm
.
accounttypeId
}
_
${
j
.
productId
}
`
][
0
].
setCheckedKeys
(
i
.
menuIds
);
][
0
].
setCheckedKeys
(
i
.
menuIds
);
this
.
addStyle
();
});
});
}
}
});
});
...
@@ -285,7 +285,8 @@ export default {
...
@@ -285,7 +285,8 @@ export default {
addStyle
()
{
addStyle
()
{
const
nodes
=
document
.
getElementsByClassName
(
"fun-tree-node"
);
const
nodes
=
document
.
getElementsByClassName
(
"fun-tree-node"
);
for
(
let
i
=
0
;
i
<
nodes
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
nodes
.
length
;
i
++
)
{
const
parentNode
=
nodes
[
i
].
parentNode
;
const
parentNode
=
nodes
[
i
].
parentNode
.
parentNode
;
console
.
log
(
parentNode
);
parentNode
.
style
.
float
=
"left"
;
parentNode
.
style
.
float
=
"left"
;
}
}
},
},
...
...
src/views/account/detailAccount.vue
View file @
95526d4
...
@@ -177,15 +177,7 @@
...
@@ -177,15 +177,7 @@
</span>
</span>
</el-tree>
</el-tree>
</div>
</div>
<!-- <form class="layui-form" action="">
<div class="layui-inline">
<div class="layui-input-inline" style="width: 232px">
<input class="layui-input" id="treeInput" placeholder="请输入" name="nameVal" />
</div>
<button type="button" id="merchantBtn" class="layui-btn">查询</button>
</div>
</form>
<ul id="merchantTree" class="ztree wrapper-tree"></ul> -->
</div>
</div>
<div
class=
"merchant-right"
>
<div
class=
"merchant-right"
>
<div>
<div>
...
@@ -200,6 +192,7 @@
...
@@ -200,6 +192,7 @@
<el-button
type=
"primary"
id=
"tableSearch"
size=
"small"
@
click=
"getSecondTable"
>
查询
</el-button>
<el-button
type=
"primary"
id=
"tableSearch"
size=
"small"
@
click=
"getSecondTable"
>
查询
</el-button>
</div>
</div>
</div>
</div>
<!-- :height="'350px'" -->
<GLTable
ref=
"subMerchantTable"
:tableTotal=
"subMerchantTableTotal"
:hasPage=
"false"
:tableData=
"subMerchantTableList"
:hasNum=
"true"
:pageConf=
"pageConf"
:tableParams=
"secondtableParams"
@
refreshTable=
"getSecondTable"
></GLTable>
<GLTable
ref=
"subMerchantTable"
:tableTotal=
"subMerchantTableTotal"
:hasPage=
"false"
:tableData=
"subMerchantTableList"
:hasNum=
"true"
:pageConf=
"pageConf"
:tableParams=
"secondtableParams"
@
refreshTable=
"getSecondTable"
></GLTable>
</div>
</div>
</div>
</div>
...
@@ -432,12 +425,14 @@ export default {
...
@@ -432,12 +425,14 @@ export default {
let
data
=
this
.
formateNullFieldData
(
res
)
let
data
=
this
.
formateNullFieldData
(
res
)
this
.
subMerchantTableList
=
data
this
.
subMerchantTableList
=
data
// this.subMerchantTableList = res
this
.
subMerchantTableTotal
=
res
.
length
this
.
subMerchantTableTotal
=
res
.
length
}
}
if
(
res
&&
res
.
length
==
0
)
{
// total > 50?calc(100vh - '199px'): calc(100vh - '152px')
this
.
$refs
.
subMerchantTable
.
setTableHeightFun
()
this
.
$refs
.
subMerchantTable
.
tableHeightValues
=
`calc(100vh - 300px)`
}
// if (res && res.length == 0) {
// this.$refs.subMerchantTable.setTableHeightFun()
// }
})
})
},
},
getThirdTable
()
{
getThirdTable
()
{
...
@@ -570,6 +565,8 @@ export default {
...
@@ -570,6 +565,8 @@ export default {
//
line-height
:
20px
;
//
line-height
:
20px
;
display
:
inline-block
;
display
:
inline-block
;
width
:
calc
(
100%
-
200px
);
width
:
calc
(
100%
-
200px
);
word-wrap
:
break-word
;
line-height
:
initial
;
}
}
.account-type-span
{
.account-type-span
{
display
:
inline-block
;
display
:
inline-block
;
...
@@ -662,7 +659,9 @@ export default {
...
@@ -662,7 +659,9 @@ export default {
.merchant-left
{
.merchant-left
{
padding-top
:
15px
;
padding-top
:
15px
;
padding-left
:
20px
;
padding-left
:
20px
;
min-height
:
calc
(
100vh
-
200px
);
//
min-height
:
calc
(
100vh
-
200px
);
//
max-height
:
100vh
;
background-color
:
#fff
;
background-color
:
#fff
;
width
:
360px
;
width
:
360px
;
margin-right
:
20px
;
margin-right
:
20px
;
...
@@ -714,6 +713,8 @@ export default {
...
@@ -714,6 +713,8 @@ export default {
}
}
.secondTreeWrap
{
.secondTreeWrap
{
margin-top
:
20px
;
margin-top
:
20px
;
height
:
calc
(
100vh
-
350px
);
overflow-y
:
auto
;
}
}
}
}
//
.ztree
.wrapper-tree
{
//
.ztree
.wrapper-tree
{
...
...
src/views/account/editAccount.vue
View file @
95526d4
...
@@ -267,13 +267,13 @@ export default {
...
@@ -267,13 +267,13 @@ export default {
methods
:
{
methods
:
{
hanleTab
(
status
)
{
hanleTab
(
status
)
{
if
(
this
.
editStatus
)
{
if
(
this
.
editStatus
)
{
this
.
$confirm
(
"
离开将不保存本页修改
"
,
"提示"
,
{
this
.
$confirm
(
"
是否保存修改信息?
"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
type
:
"warning"
,
})
})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
handleNext
(
status
);
status
==
1
?
this
.
handleNext
(
status
):
this
.
handleSave
(
status
);
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
tabCancel
(
status
);
this
.
tabCancel
(
status
);
...
@@ -306,7 +306,7 @@ export default {
...
@@ -306,7 +306,7 @@ export default {
this
.
$router
.
push
(
"/account/index"
);
this
.
$router
.
push
(
"/account/index"
);
},
},
//保存
//保存
handleSave
()
{
handleSave
(
status
)
{
let
product
=
this
.
$refs
.
productForm
.
getSelectInfo
();
let
product
=
this
.
$refs
.
productForm
.
getSelectInfo
();
if
(
product
&&
product
.
every
((
item
)
=>
item
.
products
.
length
==
0
))
{
if
(
product
&&
product
.
every
((
item
)
=>
item
.
products
.
length
==
0
))
{
this
.
$message
.
error
(
"请选择产品"
);
this
.
$message
.
error
(
"请选择产品"
);
...
@@ -320,7 +320,7 @@ export default {
...
@@ -320,7 +320,7 @@ export default {
};
};
this
.
$apis
.
store
.
updatePermissions
(
params
).
then
((
res
)
=>
{
this
.
$apis
.
store
.
updatePermissions
(
params
).
then
((
res
)
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
$router
.
push
(
"/account/index"
);
status
?
this
.
handleTabs
(
status
)
:
this
.
$router
.
push
(
"/account/index"
);
}
}
});
});
},
},
...
@@ -417,13 +417,13 @@ export default {
...
@@ -417,13 +417,13 @@ export default {
para
=
{
para
=
{
id
:
this
.
accountAddForm
.
id
,
id
:
this
.
accountAddForm
.
id
,
parentId
:
res
.
parentId
,
parentId
:
res
.
parentId
,
account
L
evel
:
res
.
merchantAccountLevel
,
account
l
evel
:
res
.
merchantAccountLevel
,
};
};
}
else
{
}
else
{
para
=
{
para
=
{
ids
:
res
.
accountType
,
ids
:
res
.
accountType
,
merchantId
:
res
.
id
,
merchantId
:
res
.
id
,
account
L
evel
:
res
.
merchantAccountLevel
,
account
l
evel
:
res
.
merchantAccountLevel
,
};
};
}
}
this
.
$refs
.
productForm
.
accountTypeSearchRequest
(
para
,
res
.
parentMerchant
);
this
.
$refs
.
productForm
.
accountTypeSearchRequest
(
para
,
res
.
parentMerchant
);
...
...
src/views/role/components/selectProduct.vue
View file @
95526d4
This diff is collapsed.
Click to expand it.
src/views/role/create.vue
View file @
95526d4
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</el-form-item>
</el-form-item>
<!--
<el-form-item
label=
"角色权限"
prop=
"roleRoot"
>
<!--
<el-form-item
label=
"角色权限"
prop=
"roleRoot"
>
<div
class=
"custom_element"
>
<div
class=
"custom_element"
>
<template
v-for=
"(item, index) in accountList"
>
<template
v-for=
"(item, index) in accountList
Select
"
>
<div
:key=
"index"
class=
"wrap"
>
<div
:key=
"index"
class=
"wrap"
>
<AutoButton
@
getBtnStatus=
"selectCurAccount(item, index)"
:typeStatus=
"item.select"
:btnLabel=
"item.accounttypeName"
></AutoButton>
<AutoButton
@
getBtnStatus=
"selectCurAccount(item, index)"
:typeStatus=
"item.select"
:btnLabel=
"item.accounttypeName"
></AutoButton>
</div>
</div>
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<auto-button v-for="(item, index) in accountDetail.accountTypes" :key="index" :btnLabel="item.accounttypeName" :btnValue="item.accounttypeId" :stopClick="nextStatus" @getBtnStatus="getBtnStatus"></auto-button>
<auto-button v-for="(item, index) in accountDetail.accountTypes" :key="index" :btnLabel="item.accounttypeName" :btnValue="item.accounttypeId" :stopClick="nextStatus" @getBtnStatus="getBtnStatus"></auto-button>
</div> -->
</div> -->
<div
class=
"custom_element"
>
<div
class=
"custom_element"
>
<
template
v-for=
"(item, index) in accountList"
>
<
template
v-for=
"(item, index) in accountList
Select
"
>
<div
:key=
"index"
class=
"wrap"
>
<div
:key=
"index"
class=
"wrap"
>
<AutoButton
@
getBtnStatus=
"selectCurAccount(item, index)"
:typeStatus=
"item.select"
:btnLabel=
"item.accounttypeName"
></AutoButton>
<AutoButton
@
getBtnStatus=
"selectCurAccount(item, index)"
:typeStatus=
"item.select"
:btnLabel=
"item.accounttypeName"
></AutoButton>
</div>
</div>
...
@@ -106,7 +106,7 @@ export default {
...
@@ -106,7 +106,7 @@ export default {
pageName
:
'新增角色'
,
pageName
:
'新增角色'
,
roleInfo
:
null
,
roleInfo
:
null
,
pageType
:
'create'
,
pageType
:
'create'
,
accountList
:
[],
accountList
Select
:
[],
//商户
//商户
merchantList
:
[],
merchantList
:
[],
// tree数据
// tree数据
...
@@ -145,7 +145,8 @@ export default {
...
@@ -145,7 +145,8 @@ export default {
}
}
}
}
}
}
this
.
accountList
=
res
this
.
accountListSelect
=
res
console
.
log
(
this
.
accountListSelect
)
})
})
},
},
getMerchantName
()
{
getMerchantName
()
{
...
@@ -168,18 +169,18 @@ export default {
...
@@ -168,18 +169,18 @@ export default {
// 选择商户----获取权限
// 选择商户----获取权限
async
selectMerchant
(
id
)
{
async
selectMerchant
(
id
)
{
let
res
=
await
this
.
$refs
.
productFrom
.
findMenuFunTreeByMerId
({
id
})
let
res
=
await
this
.
$refs
.
productFrom
.
findMenuFunTreeByMerId
({
id
})
this
.
accountList
=
res
.
map
(
item
=>
{
this
.
accountList
Select
=
res
.
map
(
item
=>
{
item
.
select
=
false
item
.
select
=
false
return
item
return
item
})
})
// this.rootList = this.accountList
// this.rootList = this.accountList
Select
},
},
// 选择商户权限
// 选择商户权限
selectCurAccount
(
item
,
index
)
{
selectCurAccount
(
item
,
index
)
{
this
.
roleRootRules
=
false
this
.
roleRootRules
=
false
this
.
accountList
[
index
].
select
=
!
item
.
select
this
.
accountList
Select
[
index
].
select
=
!
item
.
select
this
.
curRootIndex
=
0
this
.
curRootIndex
=
0
if
(
this
.
accountList
[
index
].
select
)
{
if
(
this
.
accountList
Select
[
index
].
select
)
{
this
.
rootList
.
push
(
item
)
this
.
rootList
.
push
(
item
)
}
else
{
}
else
{
let
arr
=
this
.
rootList
.
filter
(
el
=>
{
let
arr
=
this
.
rootList
.
filter
(
el
=>
{
...
...
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