Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
account
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 c3f2a154
authored
Nov 23, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改method前缀
1 parent
ffdf3189
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
75 additions
and
75 deletions
html/components/header.html
html/employee/add.html
html/employee/detail.html
html/employee/index.html
html/employee/validPeriod.html
html/merchant/add.html
html/merchant/addSubMerchant.html
html/merchant/detail.html
html/merchant/edit.html
html/merchant/index.html
html/merchant/validPeriodForm.html
html/role/add.html
html/role/detail.html
html/role/index.html
login.html
html/components/header.html
View file @
c3f2a15
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
var
sessionId
=
layui
.
store
.
get
(
'token'
)
var
sessionId
=
layui
.
store
.
get
(
'token'
)
request
({
request
({
sessionId
:
sessionId
,
sessionId
:
sessionId
,
method
:
'
org.ore
.api.example.logout'
method
:
'
entmicro
.api.example.logout'
},
function
(
result
)
{
},
function
(
result
)
{
goLogin
()
goLogin
()
})
})
...
...
html/employee/add.html
View file @
c3f2a15
...
@@ -318,8 +318,8 @@
...
@@ -318,8 +318,8 @@
$
(
'#addUpdateTitle'
).
text
(
'修改员工'
)
$
(
'#addUpdateTitle'
).
text
(
'修改员工'
)
$
(
'#merchantNameSelect'
).
addClass
(
'hide'
)
$
(
'#merchantNameSelect'
).
addClass
(
'hide'
)
}
}
findAllMerchant
(
function
(
result
)
{
findAllMerchant
(
function
(
result
)
{
if
(
accountInfo
&&
accountInfo
.
merchantAccountLevel
==
4
)
{
if
(
accountInfo
&&
accountInfo
.
merchantAccountLevel
==
4
)
{
const
merchantName
=
result
[
0
].
merchantName
const
merchantName
=
result
[
0
].
merchantName
$
(
'#merchantIdText'
).
text
(
merchantName
)
$
(
'#merchantIdText'
).
text
(
merchantName
)
merchantId
=
result
[
0
].
id
merchantId
=
result
[
0
].
id
...
@@ -419,9 +419,9 @@
...
@@ -419,9 +419,9 @@
}
}
if
(
id
)
{
if
(
id
)
{
otherParams
.
id
=
id
otherParams
.
id
=
id
otherParams
.
method
=
'
cn.com.glsx.merchants
.staff.updateStaff'
otherParams
.
method
=
'
merchants.api
.staff.updateStaff'
}
else
{
}
else
{
otherParams
.
method
=
'
cn.com.glsx.merchants
.staff.saveStaff'
otherParams
.
method
=
'
merchants.api
.staff.saveStaff'
}
}
var
params
=
helper
.
clone
(
true
,
data
.
field
,
otherParams
)
var
params
=
helper
.
clone
(
true
,
data
.
field
,
otherParams
)
delete
params
.
merhcnatImg
delete
params
.
merhcnatImg
...
@@ -456,7 +456,7 @@
...
@@ -456,7 +456,7 @@
// 可见商户
// 可见商户
function
getVisibleMerchant
(
merchantId
)
{
function
getVisibleMerchant
(
merchantId
)
{
var
visibleMerchantParams
=
{
id
:
merchantId
,
method
:
'
cn.com.glsx.merchants
.merchant.findMerchantTree'
}
var
visibleMerchantParams
=
{
id
:
merchantId
,
method
:
'
merchants.api
.merchant.findMerchantTree'
}
request
(
visibleMerchantParams
,
function
(
res
)
{
request
(
visibleMerchantParams
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
if
(
id
)
{
if
(
id
)
{
...
@@ -493,7 +493,7 @@
...
@@ -493,7 +493,7 @@
// 查询所有商户
// 查询所有商户
function
findAllMerchant
(
callback
)
{
function
findAllMerchant
(
callback
)
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.menu.findAllMerchant'
}
var
params
=
{
method
:
'
merchants.api
.menu.findAllMerchant'
}
request
(
params
,
function
(
result
)
{
request
(
params
,
function
(
result
)
{
if
(
result
.
code
==
'0'
)
{
if
(
result
.
code
==
'0'
)
{
merchantNameSelect
.
update
({
merchantNameSelect
.
update
({
...
@@ -515,7 +515,7 @@
...
@@ -515,7 +515,7 @@
// 查询角色权限列表
// 查询角色权限列表
function
findRoleList
(
merchantId
)
{
function
findRoleList
(
merchantId
)
{
var
params
=
{
method
:
'
org.ore
.api.role.list'
,
id
:
merchantId
,
delFlag
:
0
}
var
params
=
{
method
:
'
merchants
.api.role.list'
,
id
:
merchantId
,
delFlag
:
0
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
var
list
=
res
.
data
var
list
=
res
.
data
...
@@ -531,7 +531,7 @@
...
@@ -531,7 +531,7 @@
function
getById
(
callback
)
{
function
getById
(
callback
)
{
// 查询员工详情
// 查询员工详情
var
params
=
{
id
:
id
,
method
:
'
cn.com.glsx.merchants
.staff.staffSearchRequest'
}
var
params
=
{
id
:
id
,
method
:
'
merchants.api
.staff.staffSearchRequest'
}
pwd
.
attr
(
'readonly'
,
true
)
pwd
.
attr
(
'readonly'
,
true
)
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
...
...
html/employee/detail.html
View file @
c3f2a15
...
@@ -333,7 +333,7 @@
...
@@ -333,7 +333,7 @@
/** 定义方法 */
/** 定义方法 */
// 查询员工详情
// 查询员工详情
function
getById
()
{
function
getById
()
{
var
params
=
{
id
:
id
,
method
:
'
cn.com.glsx.merchants
.staff.staffSearchRequest'
}
var
params
=
{
id
:
id
,
method
:
'
merchants.api
.staff.staffSearchRequest'
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
employeeData
=
helper
.
clone
(
true
,
res
.
data
)
employeeData
=
helper
.
clone
(
true
,
res
.
data
)
...
@@ -390,7 +390,7 @@
...
@@ -390,7 +390,7 @@
moduleName
:
'员工模块'
,
moduleName
:
'员工模块'
,
pageNum
:
recordPage
.
pageNum
,
pageNum
:
recordPage
.
pageNum
,
pageSize
:
recordPage
.
pageSize
,
pageSize
:
recordPage
.
pageSize
,
method
:
'
cn.com.glsx.merchants
.menu.findLog'
method
:
'
merchants.api
.menu.findLog'
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
var
data
=
res
.
data
var
data
=
res
.
data
...
...
html/employee/index.html
View file @
c3f2a15
...
@@ -249,7 +249,7 @@
...
@@ -249,7 +249,7 @@
layer
.
confirm
(
'是否确认删除该员工?'
,
{
title
:
''
,
closeBtn
:
0
},
function
(
index
)
{
layer
.
confirm
(
'是否确认删除该员工?'
,
{
title
:
''
,
closeBtn
:
0
},
function
(
index
)
{
// obj.del() //删除对应行(tr)的DOM结构,并更新缓存
// obj.del() //删除对应行(tr)的DOM结构,并更新缓存
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.staff.deleteStaff'
,
method
:
'
merchants.api
.staff.deleteStaff'
,
id
:
data
.
id
id
:
data
.
id
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
@@ -301,7 +301,7 @@
...
@@ -301,7 +301,7 @@
id
:
obj
.
elem
.
dataset
.
id
,
id
:
obj
.
elem
.
dataset
.
id
,
status
:
obj
.
elem
.
checked
?
0
:
2
status
:
obj
.
elem
.
checked
?
0
:
2
}
}
var
params
=
helper
.
clone
(
false
,
{
method
:
'
cn.com.glsx.merchants
.staff.updateStatus'
},
param
)
var
params
=
helper
.
clone
(
false
,
{
method
:
'
merchants.api
.staff.updateStatus'
},
param
)
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
layer
.
msg
(
'操作成功'
,
{
layer
.
msg
(
'操作成功'
,
{
...
@@ -329,7 +329,7 @@
...
@@ -329,7 +329,7 @@
// 导出
// 导出
$
(
'#employeeExport'
).
on
(
'click'
,
function
()
{
$
(
'#employeeExport'
).
on
(
'click'
,
function
()
{
var
searchData
=
getSearch
()
var
searchData
=
getSearch
()
var
params
=
helper
.
clone
(
false
,
{
method
:
'
cn.com.glsx.merchants
.staff.exportData'
},
searchData
)
var
params
=
helper
.
clone
(
false
,
{
method
:
'
merchants.api
.staff.exportData'
},
searchData
)
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
window
.
open
(
res
.
data
)
window
.
open
(
res
.
data
)
...
@@ -353,7 +353,7 @@
...
@@ -353,7 +353,7 @@
{
{
pageNum
:
page
.
pageNum
,
pageNum
:
page
.
pageNum
,
pageSize
:
page
.
pageSize
,
pageSize
:
page
.
pageSize
,
method
:
'
cn.com.glsx.merchants
.staff.findStaffByPage'
method
:
'
merchants.api
.staff.findStaffByPage'
},
},
search
search
)
)
...
@@ -373,7 +373,7 @@
...
@@ -373,7 +373,7 @@
// 查询所有商户
// 查询所有商户
function
findAllMerchant
()
{
function
findAllMerchant
()
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.menu.findAllMerchant'
}
var
params
=
{
method
:
'
merchants.api
.menu.findAllMerchant'
}
request
(
params
,
function
(
result
)
{
request
(
params
,
function
(
result
)
{
if
(
result
.
code
==
'0'
)
{
if
(
result
.
code
==
'0'
)
{
if
(
accountInfo
&&
accountInfo
.
merchantAccountLevel
==
4
)
{
if
(
accountInfo
&&
accountInfo
.
merchantAccountLevel
==
4
)
{
...
@@ -391,7 +391,7 @@
...
@@ -391,7 +391,7 @@
// 查询角色权限列表
// 查询角色权限列表
function
findRoleList
(
merchantId
)
{
function
findRoleList
(
merchantId
)
{
var
params
=
{
method
:
'
org.ore
.api.role.list'
,
id
:
merchantId
,
delFlag
:
0
}
var
params
=
{
method
:
'
merchants
.api.role.list'
,
id
:
merchantId
,
delFlag
:
0
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
var
list
=
res
.
data
var
list
=
res
.
data
...
@@ -426,7 +426,7 @@
...
@@ -426,7 +426,7 @@
function
findAllDictData
()
{
function
findAllDictData
()
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.menu.findAllDictData'
,
method
:
'
merchants.api
.menu.findAllDictData'
,
dictType
:
'staff_status'
dictType
:
'staff_status'
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
...
html/employee/validPeriod.html
View file @
c3f2a15
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
form
.
on
(
'submit(periodSubmit)'
,
function
(
data
)
{
form
.
on
(
'submit(periodSubmit)'
,
function
(
data
)
{
// 调接口
// 调接口
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.staff.updateValPerByStaffId'
,
method
:
'
merchants.api
.staff.updateValPerByStaffId'
,
effectiveTime
:
data
.
field
.
effectiveTime
,
effectiveTime
:
data
.
field
.
effectiveTime
,
id
:
vaildData
.
id
id
:
vaildData
.
id
}
}
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
function
getVaildPeriod
()
{
function
getVaildPeriod
()
{
request
(
request
(
{
{
method
:
'
cn.com.glsx.merchants
.menu.findAllDictData'
,
method
:
'
merchants.api
.menu.findAllDictData'
,
dictType
:
'staff_validity_period'
dictType
:
'staff_validity_period'
},
},
function
(
res
)
{
function
(
res
)
{
...
...
html/merchant/add.html
View file @
c3f2a15
...
@@ -817,14 +817,14 @@
...
@@ -817,14 +817,14 @@
if
(
!
isFactory
)
{
if
(
!
isFactory
)
{
params
.
parentId
=
parentInfo
.
parentId
params
.
parentId
=
parentInfo
.
parentId
}
}
params
.
method
=
'
cn.com.glsx.merchants
.merchant.updateMerchant'
params
.
method
=
'
merchants.api
.merchant.updateMerchant'
}
else
if
(
editLevel
==
1
)
{
}
else
if
(
editLevel
==
1
)
{
params
.
method
=
'
cn.com.glsx.merchants
.merchant.saveMerchant'
params
.
method
=
'
merchants.api
.merchant.saveMerchant'
}
else
if
(
editLevel
==
2
)
{
}
else
if
(
editLevel
==
2
)
{
if
(
!
isFactory
)
{
if
(
!
isFactory
)
{
params
.
parentId
=
parentInfo
.
parentId
params
.
parentId
=
parentInfo
.
parentId
}
}
params
.
method
=
'
cn.com.glsx.merchants
.merchant.saveMerchant'
params
.
method
=
'
merchants.api
.merchant.saveMerchant'
}
}
// 保存状态 1.草稿 2.发布 3.注销 4.过期
// 保存状态 1.草稿 2.发布 3.注销 4.过期
if
(
merchantForm
.
status
)
{
if
(
merchantForm
.
status
)
{
...
@@ -1151,7 +1151,7 @@
...
@@ -1151,7 +1151,7 @@
function
getMerchantApi
(
id
,
fn
)
{
function
getMerchantApi
(
id
,
fn
)
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.findMerchantDetail'
,
method
:
'
merchants.api
.merchant.findMerchantDetail'
,
id
:
id
id
:
id
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
@@ -1232,7 +1232,7 @@
...
@@ -1232,7 +1232,7 @@
// 品牌
// 品牌
function
getCarBrandTree
()
{
function
getCarBrandTree
()
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.merchantCommon.getCarbrandTree'
method
:
'
merchants.api
.merchantCommon.getCarbrandTree'
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
baseData
.
carBrandTreeList
=
res
.
data
baseData
.
carBrandTreeList
=
res
.
data
...
@@ -1256,7 +1256,7 @@
...
@@ -1256,7 +1256,7 @@
// 获取字典数据
// 获取字典数据
function
getDictData
(
dictType
,
fn
)
{
function
getDictData
(
dictType
,
fn
)
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.menu.findAllDictData'
,
method
:
'
merchants.api
.menu.findAllDictData'
,
dictType
:
dictType
dictType
:
dictType
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
@@ -1598,14 +1598,14 @@
...
@@ -1598,14 +1598,14 @@
var
params
=
{}
var
params
=
{}
if
(
parentMerchantId
)
{
if
(
parentMerchantId
)
{
params
=
{
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.findMenuFunTreeByMerId'
,
method
:
'
merchants.api
.merchant.findMenuFunTreeByMerId'
,
id
:
merchantId
,
id
:
merchantId
,
parentId
:
parentMerchantId
,
parentId
:
parentMerchantId
,
accountlevel
:
merchantForm
.
merchantAccountLevel
accountlevel
:
merchantForm
.
merchantAccountLevel
}
}
}
else
{
}
else
{
params
=
{
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.accountTypeSearchRequest'
,
method
:
'
merchants.api
.merchant.accountTypeSearchRequest'
,
ids
:
merchantForm
.
accountType
,
ids
:
merchantForm
.
accountType
,
merchantId
:
merchantId
,
merchantId
:
merchantId
,
accountLevel
:
merchantForm
.
merchantAccountLevel
accountLevel
:
merchantForm
.
merchantAccountLevel
...
@@ -1642,7 +1642,7 @@
...
@@ -1642,7 +1642,7 @@
// 根据id获取角色详情
// 根据id获取角色详情
function
getById
()
{
function
getById
()
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.findPermissionsByMerId'
,
method
:
'
merchants.api
.merchant.findPermissionsByMerId'
,
id
:
merchantId
id
:
merchantId
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
@@ -1735,7 +1735,7 @@
...
@@ -1735,7 +1735,7 @@
var
params
=
{
var
params
=
{
merchantId
:
merchantId
,
merchantId
:
merchantId
,
// accountTypes: JSON.stringify(requestList),
// accountTypes: JSON.stringify(requestList),
method
:
'
cn.com.glsx.merchants
.merchant.updatePermissions'
,
method
:
'
merchants.api
.merchant.updatePermissions'
,
status
:
merchantForm
.
status
status
:
merchantForm
.
status
}
}
if
(
requestList
.
length
!=
0
)
{
if
(
requestList
.
length
!=
0
)
{
...
@@ -1770,7 +1770,7 @@
...
@@ -1770,7 +1770,7 @@
merchantId
:
merchantId
,
merchantId
:
merchantId
,
accountTypes
:
JSON
.
stringify
(
requestList
)
accountTypes
:
JSON
.
stringify
(
requestList
)
}
}
params
.
method
=
'
cn.com.glsx.merchants
.merchant.updatePermissions'
params
.
method
=
'
merchants.api
.merchant.updatePermissions'
// 草稿
// 草稿
if
(
merchantForm
.
status
==
1
)
{
if
(
merchantForm
.
status
==
1
)
{
params
.
status
=
2
params
.
status
=
2
...
...
html/merchant/addSubMerchant.html
View file @
c3f2a15
...
@@ -841,15 +841,15 @@
...
@@ -841,15 +841,15 @@
params
.
parentId
=
parentInfo
.
parentId
params
.
parentId
=
parentInfo
.
parentId
params
.
merchantModel
=
parentInfo
.
merchantModel
params
.
merchantModel
=
parentInfo
.
merchantModel
}
}
params
.
method
=
'
cn.com.glsx.merchants
.merchant.updateMerchant'
params
.
method
=
'
merchants.api
.merchant.updateMerchant'
}
else
if
(
editLevel
==
1
)
{
}
else
if
(
editLevel
==
1
)
{
params
.
method
=
'
cn.com.glsx.merchants
.merchant.saveMerchant'
params
.
method
=
'
merchants.api
.merchant.saveMerchant'
}
else
if
(
editLevel
==
2
)
{
}
else
if
(
editLevel
==
2
)
{
if
(
!
isFactory
)
{
if
(
!
isFactory
)
{
params
.
parentId
=
parentInfo
.
parentId
params
.
parentId
=
parentInfo
.
parentId
params
.
merchantModel
=
parentInfo
.
merchantModel
params
.
merchantModel
=
parentInfo
.
merchantModel
}
}
params
.
method
=
'
cn.com.glsx.merchants
.merchant.saveMerchant'
params
.
method
=
'
merchants.api
.merchant.saveMerchant'
}
}
// 保存状态 1.草稿 2.发布 3.注销 4.过期
// 保存状态 1.草稿 2.发布 3.注销 4.过期
if
(
merchantForm
.
status
)
{
if
(
merchantForm
.
status
)
{
...
@@ -1173,7 +1173,7 @@
...
@@ -1173,7 +1173,7 @@
function
getMerchantApi
(
id
,
fn
)
{
function
getMerchantApi
(
id
,
fn
)
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.findMerchantDetail'
,
method
:
'
merchants.api
.merchant.findMerchantDetail'
,
id
:
id
id
:
id
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
@@ -1255,7 +1255,7 @@
...
@@ -1255,7 +1255,7 @@
// 品牌
// 品牌
function
getCarBrandTree
()
{
function
getCarBrandTree
()
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.merchantCommon.getCarbrandTree'
method
:
'
merchants.api
.merchantCommon.getCarbrandTree'
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
baseData
.
carBrandTreeList
=
res
.
data
baseData
.
carBrandTreeList
=
res
.
data
...
@@ -1279,7 +1279,7 @@
...
@@ -1279,7 +1279,7 @@
// 获取字典数据
// 获取字典数据
function
getDictData
(
dictType
,
fn
)
{
function
getDictData
(
dictType
,
fn
)
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.menu.findAllDictData'
,
method
:
'
merchants.api
.menu.findAllDictData'
,
dictType
:
dictType
dictType
:
dictType
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
@@ -1621,14 +1621,14 @@
...
@@ -1621,14 +1621,14 @@
var
params
=
{}
var
params
=
{}
if
(
parentMerchantId
)
{
if
(
parentMerchantId
)
{
params
=
{
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.findMenuFunTreeByMerId'
,
method
:
'
merchants.api
.merchant.findMenuFunTreeByMerId'
,
id
:
merchantId
,
id
:
merchantId
,
parentId
:
parentMerchantId
,
parentId
:
parentMerchantId
,
accountlevel
:
merchantForm
.
merchantAccountLevel
accountlevel
:
merchantForm
.
merchantAccountLevel
}
}
}
else
{
}
else
{
params
=
{
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.accountTypeSearchRequest'
,
method
:
'
merchants.api
.merchant.accountTypeSearchRequest'
,
ids
:
merchantForm
.
accountType
,
ids
:
merchantForm
.
accountType
,
merchantId
:
merchantId
,
merchantId
:
merchantId
,
accountLevel
:
merchantForm
.
merchantAccountLevel
accountLevel
:
merchantForm
.
merchantAccountLevel
...
@@ -1665,7 +1665,7 @@
...
@@ -1665,7 +1665,7 @@
// 根据id获取角色详情
// 根据id获取角色详情
function
getById
()
{
function
getById
()
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.findPermissionsByMerId'
,
method
:
'
merchants.api
.merchant.findPermissionsByMerId'
,
id
:
merchantId
id
:
merchantId
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
@@ -1758,7 +1758,7 @@
...
@@ -1758,7 +1758,7 @@
var
params
=
{
var
params
=
{
merchantId
:
merchantId
,
merchantId
:
merchantId
,
// accountTypes: JSON.stringify(requestList),
// accountTypes: JSON.stringify(requestList),
method
:
'
cn.com.glsx.merchants
.merchant.updatePermissions'
,
method
:
'
merchants.api
.merchant.updatePermissions'
,
status
:
merchantForm
.
status
status
:
merchantForm
.
status
}
}
if
(
requestList
.
length
!=
0
)
{
if
(
requestList
.
length
!=
0
)
{
...
@@ -1790,7 +1790,7 @@
...
@@ -1790,7 +1790,7 @@
merchantId
:
merchantId
,
merchantId
:
merchantId
,
accountTypes
:
JSON
.
stringify
(
requestList
)
accountTypes
:
JSON
.
stringify
(
requestList
)
}
}
params
.
method
=
'
cn.com.glsx.merchants
.merchant.updatePermissions'
params
.
method
=
'
merchants.api
.merchant.updatePermissions'
// 草稿
// 草稿
if
(
merchantForm
.
status
==
1
)
{
if
(
merchantForm
.
status
==
1
)
{
params
.
status
=
2
params
.
status
=
2
...
...
html/merchant/detail.html
View file @
c3f2a15
...
@@ -667,7 +667,7 @@
...
@@ -667,7 +667,7 @@
function
getFirstInfo
()
{
function
getFirstInfo
()
{
var
params
=
{
var
params
=
{
id
:
merchantId
,
id
:
merchantId
,
method
:
'
cn.com.glsx.merchants
.merchant.findMerchantDetail'
method
:
'
merchants.api
.merchant.findMerchantDetail'
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
// businessScopeCustomize
// businessScopeCustomize
...
@@ -704,7 +704,7 @@
...
@@ -704,7 +704,7 @@
// 获取功能权限树
// 获取功能权限树
function
findMenuFunTreeByMerId
()
{
function
findMenuFunTreeByMerId
()
{
const
params
=
{
const
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.findMenuFunTreeByMerId'
,
method
:
'
merchants.api
.merchant.findMenuFunTreeByMerId'
,
id
:
merchantId
id
:
merchantId
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
@@ -747,7 +747,7 @@
...
@@ -747,7 +747,7 @@
function
getSecondInfo
()
{
function
getSecondInfo
()
{
request
(
request
(
{
{
method
:
'
cn.com.glsx.merchants
.menu.findSubordinateRelationship'
,
method
:
'
merchants.api
.menu.findSubordinateRelationship'
,
id
:
merchantId
id
:
merchantId
},
},
function
(
res
)
{
function
(
res
)
{
...
@@ -769,7 +769,7 @@
...
@@ -769,7 +769,7 @@
function
getSecondTree
()
{
function
getSecondTree
()
{
var
treeParams
=
{
var
treeParams
=
{
id
:
merchantId
,
id
:
merchantId
,
method
:
'
cn.com.glsx.merchants
.merchant.findMerchantTree'
method
:
'
merchants.api
.merchant.findMerchantTree'
}
}
request
(
treeParams
,
function
(
res
)
{
request
(
treeParams
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
...
@@ -871,7 +871,7 @@
...
@@ -871,7 +871,7 @@
var
params
=
helper
.
clone
(
var
params
=
helper
.
clone
(
false
,
false
,
{
{
method
:
'
cn.com.glsx.merchants
.staff.findMerchantStaffList'
,
method
:
'
merchants.api
.staff.findMerchantStaffList'
,
merchantId
:
merchantId
merchantId
:
merchantId
},
},
search
search
...
@@ -893,7 +893,7 @@
...
@@ -893,7 +893,7 @@
moduleName
:
'商户模块'
,
moduleName
:
'商户模块'
,
pageNum
:
recordPage
.
pageNum
,
pageNum
:
recordPage
.
pageNum
,
pageSize
:
recordPage
.
pageSize
,
pageSize
:
recordPage
.
pageSize
,
method
:
'
cn.com.glsx.merchants
.menu.findLog'
method
:
'
merchants.api
.menu.findLog'
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
var
data
=
res
.
data
var
data
=
res
.
data
...
...
html/merchant/edit.html
View file @
c3f2a15
...
@@ -820,14 +820,14 @@
...
@@ -820,14 +820,14 @@
if
(
!
isFactory
)
{
if
(
!
isFactory
)
{
params
.
parentId
=
parentInfo
.
parentId
params
.
parentId
=
parentInfo
.
parentId
}
}
params
.
method
=
'
cn.com.glsx.merchants
.merchant.updateMerchant'
params
.
method
=
'
merchants.api
.merchant.updateMerchant'
}
else
if
(
editLevel
==
1
)
{
}
else
if
(
editLevel
==
1
)
{
params
.
method
=
'
cn.com.glsx.merchants
.merchant.saveMerchant'
params
.
method
=
'
merchants.api
.merchant.saveMerchant'
}
else
if
(
editLevel
==
2
)
{
}
else
if
(
editLevel
==
2
)
{
if
(
!
isFactory
)
{
if
(
!
isFactory
)
{
params
.
parentId
=
parentInfo
.
parentId
params
.
parentId
=
parentInfo
.
parentId
}
}
params
.
method
=
'
cn.com.glsx.merchants
.merchant.saveMerchant'
params
.
method
=
'
merchants.api
.merchant.saveMerchant'
}
}
// 保存状态 1.草稿 2.发布 3.注销 4.过期
// 保存状态 1.草稿 2.发布 3.注销 4.过期
if
(
merchantForm
.
status
)
{
if
(
merchantForm
.
status
)
{
...
@@ -1223,7 +1223,7 @@
...
@@ -1223,7 +1223,7 @@
function
getMerchantApi
(
id
,
fn
)
{
function
getMerchantApi
(
id
,
fn
)
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.findMerchantDetail'
,
method
:
'
merchants.api
.merchant.findMerchantDetail'
,
id
:
id
id
:
id
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
@@ -1295,7 +1295,7 @@
...
@@ -1295,7 +1295,7 @@
// 品牌
// 品牌
function
getCarBrandTree
()
{
function
getCarBrandTree
()
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.merchantCommon.getCarbrandTree'
method
:
'
merchants.api
.merchantCommon.getCarbrandTree'
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
baseData
.
carBrandTreeList
=
res
.
data
baseData
.
carBrandTreeList
=
res
.
data
...
@@ -1319,7 +1319,7 @@
...
@@ -1319,7 +1319,7 @@
// 获取字典数据
// 获取字典数据
function
getDictData
(
dictType
,
fn
)
{
function
getDictData
(
dictType
,
fn
)
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.menu.findAllDictData'
,
method
:
'
merchants.api
.menu.findAllDictData'
,
dictType
:
dictType
dictType
:
dictType
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
@@ -1675,14 +1675,14 @@
...
@@ -1675,14 +1675,14 @@
var
params
=
{}
var
params
=
{}
if
(
parentMerchantId
)
{
if
(
parentMerchantId
)
{
params
=
{
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.findMenuFunTreeByMerId'
,
method
:
'
merchants.api
.merchant.findMenuFunTreeByMerId'
,
id
:
merchantId
,
id
:
merchantId
,
parentId
:
parentMerchantId
,
parentId
:
parentMerchantId
,
accountlevel
:
merchantForm
.
merchantAccountLevel
accountlevel
:
merchantForm
.
merchantAccountLevel
}
}
}
else
{
}
else
{
params
=
{
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.accountTypeSearchRequest'
,
method
:
'
merchants.api
.merchant.accountTypeSearchRequest'
,
ids
:
merchantForm
.
accountType
,
ids
:
merchantForm
.
accountType
,
merchantId
:
merchantId
,
merchantId
:
merchantId
,
accountLevel
:
merchantForm
.
merchantAccountLevel
accountLevel
:
merchantForm
.
merchantAccountLevel
...
@@ -1745,7 +1745,7 @@
...
@@ -1745,7 +1745,7 @@
// 根据id获取角色详情
// 根据id获取角色详情
function
getById
()
{
function
getById
()
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.findPermissionsByMerId'
,
method
:
'
merchants.api
.merchant.findPermissionsByMerId'
,
id
:
merchantId
id
:
merchantId
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
@@ -1839,7 +1839,7 @@
...
@@ -1839,7 +1839,7 @@
var
params
=
{
var
params
=
{
merchantId
:
merchantId
,
merchantId
:
merchantId
,
accountTypes
:
JSON
.
stringify
(
requestList
),
accountTypes
:
JSON
.
stringify
(
requestList
),
method
:
'
cn.com.glsx.merchants
.merchant.updatePermissions'
,
method
:
'
merchants.api
.merchant.updatePermissions'
,
status
:
merchantForm
.
status
status
:
merchantForm
.
status
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
@@ -1880,7 +1880,7 @@
...
@@ -1880,7 +1880,7 @@
merchantId
:
merchantId
,
merchantId
:
merchantId
,
accountTypes
:
JSON
.
stringify
(
requestList
)
accountTypes
:
JSON
.
stringify
(
requestList
)
}
}
params
.
method
=
'
cn.com.glsx.merchants
.merchant.updatePermissions'
params
.
method
=
'
merchants.api
.merchant.updatePermissions'
// 草稿
// 草稿
if
(
merchantForm
.
status
==
1
)
{
if
(
merchantForm
.
status
==
1
)
{
params
.
status
=
2
params
.
status
=
2
...
...
html/merchant/index.html
View file @
c3f2a15
...
@@ -637,7 +637,7 @@
...
@@ -637,7 +637,7 @@
var
params
=
{
var
params
=
{
pageNum
:
page
.
pageNum
,
pageNum
:
page
.
pageNum
,
pageSize
:
page
.
pageSize
,
pageSize
:
page
.
pageSize
,
method
:
'
cn.com.glsx.merchants
.menu.findMerchantByPage'
method
:
'
merchants.api
.menu.findMerchantByPage'
}
}
var
searchData
=
$
(
'#searchForm [name]'
).
serializeArray
()
var
searchData
=
$
(
'#searchForm [name]'
).
serializeArray
()
$
.
each
(
searchData
,
function
()
{
$
.
each
(
searchData
,
function
()
{
...
@@ -773,7 +773,7 @@
...
@@ -773,7 +773,7 @@
function
getDictData
(
dictType
,
fn
)
{
function
getDictData
(
dictType
,
fn
)
{
request
(
request
(
{
{
method
:
'
cn.com.glsx.merchants
.menu.findAllDictData'
,
method
:
'
merchants.api
.menu.findAllDictData'
,
dictType
:
dictType
dictType
:
dictType
},
},
function
(
res
)
{
function
(
res
)
{
...
...
html/merchant/validPeriodForm.html
View file @
c3f2a15
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
if
(
merchantAccountLevel
==
4
)
{
if
(
merchantAccountLevel
==
4
)
{
if
(
data
.
field
.
effectiveStarttime
&&
data
.
field
.
expireDate
)
{
if
(
data
.
field
.
effectiveStarttime
&&
data
.
field
.
expireDate
)
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.updateValPerByMerId'
,
method
:
'
merchants.api
.merchant.updateValPerByMerId'
,
id
:
vaildData
.
id
,
id
:
vaildData
.
id
,
effectiveStarttime
:
new
Date
(
data
.
field
.
effectiveStarttime
),
effectiveStarttime
:
new
Date
(
data
.
field
.
effectiveStarttime
),
expireDate
:
new
Date
(
data
.
field
.
expireDate
)
expireDate
:
new
Date
(
data
.
field
.
expireDate
)
...
@@ -189,7 +189,7 @@
...
@@ -189,7 +189,7 @@
}
else
{
}
else
{
if
(
data
.
field
.
effectiveTime
)
{
if
(
data
.
field
.
effectiveTime
)
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.updateValPerByMerId'
,
method
:
'
merchants.api
.merchant.updateValPerByMerId'
,
id
:
vaildData
.
id
,
id
:
vaildData
.
id
,
effectiveTime
:
data
.
field
.
effectiveTime
effectiveTime
:
data
.
field
.
effectiveTime
}
}
...
...
html/role/add.html
View file @
c3f2a15
...
@@ -608,9 +608,9 @@
...
@@ -608,9 +608,9 @@
// otherParams.requestList = JSON.stringify([])
// otherParams.requestList = JSON.stringify([])
if
(
roleid
)
{
if
(
roleid
)
{
otherParams
.
id
=
roleid
otherParams
.
id
=
roleid
otherParams
.
method
=
'
org.ore
.api.role.update'
otherParams
.
method
=
'
merchants
.api.role.update'
}
else
{
}
else
{
otherParams
.
method
=
'
org.ore
.api.role.insert'
otherParams
.
method
=
'
merchants
.api.role.insert'
}
}
var
params
=
helper
.
clone
(
true
,
formVal
,
otherParams
)
var
params
=
helper
.
clone
(
true
,
formVal
,
otherParams
)
delete
params
.
select
delete
params
.
select
...
@@ -627,7 +627,7 @@
...
@@ -627,7 +627,7 @@
// 查询商户的菜单权限树
// 查询商户的菜单权限树
function
findMenuFunTreeByMerId
(
merchantId
)
{
function
findMenuFunTreeByMerId
(
merchantId
)
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.findMenuFunTreeByMerId'
,
method
:
'
merchants.api
.merchant.findMenuFunTreeByMerId'
,
id
:
merchantId
id
:
merchantId
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
@@ -726,7 +726,7 @@
...
@@ -726,7 +726,7 @@
// 根据id获取角色详情
// 根据id获取角色详情
function
getById
(
id
)
{
function
getById
(
id
)
{
var
params
=
{
var
params
=
{
method
:
'
org.ore
.api.role.getById'
,
method
:
'
merchants
.api.role.getById'
,
id
:
id
id
:
id
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
@@ -830,7 +830,7 @@
...
@@ -830,7 +830,7 @@
// 查询所有商户
// 查询所有商户
function
findAllMerchant
()
{
function
findAllMerchant
()
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.menu.findAllMerchant'
}
var
params
=
{
method
:
'
merchants.api
.menu.findAllMerchant'
}
request
(
params
,
function
(
result
)
{
request
(
params
,
function
(
result
)
{
if
(
result
.
code
==
'0'
)
{
if
(
result
.
code
==
'0'
)
{
merchantNameSelect
.
update
({
merchantNameSelect
.
update
({
...
@@ -852,7 +852,7 @@
...
@@ -852,7 +852,7 @@
$
(
'#merchantSelect'
).
removeClass
(
'hide'
)
$
(
'#merchantSelect'
).
removeClass
(
'hide'
)
$
(
'#merchantSelect'
).
addClass
(
'show'
)
$
(
'#merchantSelect'
).
addClass
(
'show'
)
}
}
// var list = result.data
// var list = result.data
// list.unshift('')
// list.unshift('')
// $.each(list, function(index, item) {
// $.each(list, function(index, item) {
...
...
html/role/detail.html
View file @
c3f2a15
...
@@ -161,7 +161,7 @@
...
@@ -161,7 +161,7 @@
})
})
function
getById
()
{
function
getById
()
{
var
params
=
{
id
:
roleid
,
method
:
'
org.ore
.api.role.getById'
}
var
params
=
{
id
:
roleid
,
method
:
'
merchants
.api.role.getById'
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
roleData
=
helper
.
clone
(
true
,
res
.
data
)
roleData
=
helper
.
clone
(
true
,
res
.
data
)
...
@@ -175,7 +175,7 @@
...
@@ -175,7 +175,7 @@
function
findMenuFunTreeByRoleId
()
{
function
findMenuFunTreeByRoleId
()
{
var
params
=
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.merchant.findMenuFunTreeByRoleId'
,
method
:
'
merchants.api
.merchant.findMenuFunTreeByRoleId'
,
id
:
roleid
id
:
roleid
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
...
html/role/index.html
View file @
c3f2a15
...
@@ -178,7 +178,7 @@
...
@@ -178,7 +178,7 @@
{
{
pageNum
:
page
.
pageNum
,
pageNum
:
page
.
pageNum
,
pageSize
:
page
.
pageSize
,
pageSize
:
page
.
pageSize
,
method
:
'
org.ore
.api.role.page'
method
:
'
merchants
.api.role.page'
},
},
search
search
)
)
...
@@ -198,7 +198,7 @@
...
@@ -198,7 +198,7 @@
}
}
// 查询所有商户
// 查询所有商户
function
findAllMerchant
()
{
function
findAllMerchant
()
{
var
params
=
{
method
:
'
cn.com.glsx.merchants
.menu.findAllMerchant'
}
var
params
=
{
method
:
'
merchants.api
.menu.findAllMerchant'
}
request
(
params
,
function
(
result
)
{
request
(
params
,
function
(
result
)
{
if
(
result
.
code
==
'0'
)
{
if
(
result
.
code
==
'0'
)
{
merchantNameSelect
.
update
({
merchantNameSelect
.
update
({
...
@@ -229,7 +229,7 @@
...
@@ -229,7 +229,7 @@
layer
.
confirm
(
'是否确认删除该角色?'
,
function
(
index
)
{
layer
.
confirm
(
'是否确认删除该角色?'
,
function
(
index
)
{
// obj.del() //删除对应行(tr)的DOM结构,并更新缓存
// obj.del() //删除对应行(tr)的DOM结构,并更新缓存
var
params
=
{
var
params
=
{
method
:
'
org.ore
.api.role.deleteById'
,
method
:
'
merchants
.api.role.deleteById'
,
id
:
data
.
id
id
:
data
.
id
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
...
login.html
View file @
c3f2a15
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
//监听提交
//监听提交
form
.
on
(
'submit(formLogin)'
,
function
(
data
)
{
form
.
on
(
'submit(formLogin)'
,
function
(
data
)
{
var
params
=
helper
.
clone
(
false
,
{
var
params
=
helper
.
clone
(
false
,
{
method
:
'
org.ore
.api.example.login'
method
:
'
entmicro
.api.example.login'
},
data
.
field
)
},
data
.
field
)
request
(
params
,
function
(
result
)
{
request
(
params
,
function
(
result
)
{
if
(
result
.
code
==
'0'
)
{
if
(
result
.
code
==
'0'
)
{
...
...
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