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 de260d03
authored
Nov 11, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加商户
1 parent
240811bf
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
10 deletions
html/employee/add.html
html/employee/index.html
html/merchant/edit.html
html/merchant/index.html
html/employee/add.html
View file @
de260d0
...
@@ -318,7 +318,17 @@
...
@@ -318,7 +318,17 @@
$
(
'#addUpdateTitle'
).
text
(
'修改员工'
)
$
(
'#addUpdateTitle'
).
text
(
'修改员工'
)
$
(
'#merchantNameSelect'
).
addClass
(
'hide'
)
$
(
'#merchantNameSelect'
).
addClass
(
'hide'
)
}
}
findAllMerchant
(
function
(
result
)
{
})
findAllMerchant
(
function
(
result
)
{
if
(
accountInfo
&&
accountInfo
.
merchantAccountLevel
==
4
)
{
const
merchantName
=
result
[
0
].
merchantName
$
(
'#merchantIdText'
).
text
(
merchantName
)
merchantId
=
result
[
0
].
id
$
(
'#merchantIdText'
).
removeClass
(
'hide'
)
$
(
'#merchantIdText'
).
addClass
(
'show'
)
$
(
'#merchantNameSelect'
).
addClass
(
'hide'
)
getList
(
merchantId
)
}
})
}
}
...
@@ -496,7 +506,7 @@
...
@@ -496,7 +506,7 @@
// merchantName.append(new Option(item.merchantName, item.id))
// merchantName.append(new Option(item.merchantName, item.id))
// })
// })
// form.render('select')
// form.render('select')
callback
(
true
)
callback
(
result
.
data
)
}
}
})
})
}
}
...
...
html/employee/index.html
View file @
de260d0
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
{
field
:
'createdAccount'
,
title
:
'创建者'
,
align
:
'center'
},
{
field
:
'createdAccount'
,
title
:
'创建者'
,
align
:
'center'
},
{
field
:
'merchantName'
,
title
:
'商户名(商户号)'
,
align
:
'center'
,
width
:
160
},
{
field
:
'merchantName'
,
title
:
'商户名(商户号)'
,
align
:
'center'
,
width
:
160
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
90
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
90
},
{
title
:
'操作'
,
width
:
160
,
align
:
'
left
'
,
toolbar
:
'#employeeBar'
},
{
title
:
'操作'
,
width
:
160
,
align
:
'
center
'
,
toolbar
:
'#employeeBar'
},
{
field
:
'statusName'
,
title
:
'启用开关'
,
width
:
85
,
templet
:
'#switchTpl'
,
unresize
:
true
}
{
field
:
'statusName'
,
title
:
'启用开关'
,
width
:
85
,
templet
:
'#switchTpl'
,
unresize
:
true
}
]
]
var
colums
=
[
var
colums
=
[
...
@@ -159,7 +159,7 @@
...
@@ -159,7 +159,7 @@
{
field
:
'belongingEntmicroName'
,
title
:
'所属企微'
,
align
:
'center'
,
width
:
125
},
{
field
:
'belongingEntmicroName'
,
title
:
'所属企微'
,
align
:
'center'
,
width
:
125
},
{
field
:
'statusName'
,
title
:
'状态'
,
align
:
'center'
},
{
field
:
'statusName'
,
title
:
'状态'
,
align
:
'center'
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
180
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
180
},
{
title
:
'操作'
,
width
:
160
,
align
:
'
left
'
,
toolbar
:
'#employeeBar'
},
{
title
:
'操作'
,
width
:
160
,
align
:
'
center
'
,
toolbar
:
'#employeeBar'
},
{
field
:
'statusName'
,
title
:
'启用开关'
,
width
:
85
,
templet
:
'#switchTpl'
,
unresize
:
true
}
{
field
:
'statusName'
,
title
:
'启用开关'
,
width
:
85
,
templet
:
'#switchTpl'
,
unresize
:
true
}
]
]
//创建table实例
//创建table实例
...
...
html/merchant/edit.html
View file @
de260d0
...
@@ -1868,7 +1868,7 @@
...
@@ -1868,7 +1868,7 @@
})
})
function
submitAuth
()
{
function
submitAuth
()
{
if
(
!
accountInfo
&&
merchantAccountLevel
==
4
&&
!
merchantForm
.
effectiveStarttime
)
{
if
(
!
accountInfo
&&
merchantAccountLevel
==
4
&&
qs
(
'status'
)
==
1
&&
!
merchantForm
.
effectiveStarttime
)
{
layer
.
msg
(
'请去“修改基本信息”填写账户有效期'
,
{
layer
.
msg
(
'请去“修改基本信息”填写账户有效期'
,
{
icon
:
2
icon
:
2
})
})
...
...
html/merchant/index.html
View file @
de260d0
...
@@ -197,7 +197,12 @@
...
@@ -197,7 +197,12 @@
/>
/>
</div>
</div>
</div>
</div>
</div>
<div
id=
"parentMerchant"
class=
"layui-inline hide"
>
<label
class=
"layui-form-label"
>
上级商户:
</label>
<div
class=
"layui-input-inline"
style=
"width: 246px"
>
<input
class=
"layui-input"
type=
"text"
placeholder=
"请输入"
name=
"parentMerchant"
>
</div>
</div>
</div>
<div
class=
"layui-inline searchInputBtn"
style=
"float: right;"
>
<div
class=
"layui-inline searchInputBtn"
style=
"float: right;"
>
<button
class=
"layui-btn"
lay-submit
lay-filter=
"searchSubmit"
>
查询
</button>
<button
class=
"layui-btn"
lay-submit
lay-filter=
"searchSubmit"
>
查询
</button>
...
@@ -414,7 +419,7 @@
...
@@ -414,7 +419,7 @@
field
:
'merchantLoginAccount'
,
field
:
'merchantLoginAccount'
,
title
:
'登录账户'
,
title
:
'登录账户'
,
align
:
'center'
,
align
:
'center'
,
width
:
1
08
width
:
1
80
},
},
{
{
field
:
'accountLevelName'
,
field
:
'accountLevelName'
,
...
@@ -450,10 +455,10 @@
...
@@ -450,10 +455,10 @@
field
:
'updatedTime'
,
field
:
'updatedTime'
,
title
:
'更新时间'
,
title
:
'更新时间'
,
align
:
'center'
,
align
:
'center'
,
width
:
9
0
width
:
18
0
},
},
{
{
align
:
'
left
'
,
align
:
'
center
'
,
title
:
'操作'
,
title
:
'操作'
,
toolbar
:
'#merchantBtns'
,
toolbar
:
'#merchantBtns'
,
width
:
150
,
width
:
150
,
...
@@ -833,7 +838,7 @@
...
@@ -833,7 +838,7 @@
$
(
'#relevancyEl'
).
removeClass
(
'hide'
)
$
(
'#relevancyEl'
).
removeClass
(
'hide'
)
$
(
'#relevancyEl'
).
addClass
(
'show'
)
$
(
'#relevancyEl'
).
addClass
(
'show'
)
}
}
if
(
accountInfo
.
merchantAccountLevel
==
4
)
{
if
(
accountInfo
.
merchantAccountLevel
==
4
)
{
$
(
'#relevancySearch'
).
addClass
(
'hide'
)
$
(
'#relevancySearch'
).
addClass
(
'hide'
)
}
}
// $('#relevancySearch').addClass('show')
// $('#relevancySearch').addClass('show')
...
@@ -850,6 +855,8 @@
...
@@ -850,6 +855,8 @@
// $('#relevancySearch').remove()
// $('#relevancySearch').remove()
$
(
'#model'
).
addClass
(
'show'
)
$
(
'#model'
).
addClass
(
'show'
)
$
(
'#accountType'
).
addClass
(
'show'
)
$
(
'#accountType'
).
addClass
(
'show'
)
$
(
'#parentMerchant'
).
addClass
(
'show'
)
$
(
'#parentMerchant'
).
removeClass
(
'hide'
)
}
}
// 运营平台
// 运营平台
...
...
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