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
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
31 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 @@
$
(
'#addUpdateTitle'
).
text
(
'修改员工'
)
$
(
'#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 @@
// merchantName.append(new Option(item.merchantName, item.id))
// })
// form.render('select')
callback
(
true
)
callback
(
result
.
data
)
}
})
}
...
...
html/employee/index.html
View file @
de260d0
...
...
@@ -144,7 +144,7 @@
{
field
:
'createdAccount'
,
title
:
'创建者'
,
align
:
'center'
},
{
field
:
'merchantName'
,
title
:
'商户名(商户号)'
,
align
:
'center'
,
width
:
160
},
{
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
}
]
var
colums
=
[
...
...
@@ -159,7 +159,7 @@
{
field
:
'belongingEntmicroName'
,
title
:
'所属企微'
,
align
:
'center'
,
width
:
125
},
{
field
:
'statusName'
,
title
:
'状态'
,
align
:
'center'
},
{
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
}
]
//创建table实例
...
...
html/merchant/edit.html
View file @
de260d0
...
...
@@ -1868,7 +1868,7 @@
})
function
submitAuth
()
{
if
(
!
accountInfo
&&
merchantAccountLevel
==
4
&&
!
merchantForm
.
effectiveStarttime
)
{
if
(
!
accountInfo
&&
merchantAccountLevel
==
4
&&
qs
(
'status'
)
==
1
&&
!
merchantForm
.
effectiveStarttime
)
{
layer
.
msg
(
'请去“修改基本信息”填写账户有效期'
,
{
icon
:
2
})
...
...
html/merchant/index.html
View file @
de260d0
...
...
@@ -149,25 +149,25 @@
</select>
</div>
</div>
<div
class=
"layui-inline loginName"
style=
"margin-left: 40px;"
>
<div
class=
"layui-input-inline updateSelectAngle"
style=
"width: 120px"
>
<select
name=
"accountOrPhone"
lay-filter=
"nameFilter"
>
<option
value=
"0"
>
登录账号名
</option>
<option
value=
"1"
>
手机号
</option>
</select>
</div>
<!-- margin-left: -5px -->
<div
class=
"layui-input-inline"
style=
"width: 246px; margin-left: -4px"
>
<input
class=
"layui-input"
type=
"text"
placeholder=
"请输入"
name=
"merchantLoginAccount"
id=
"updateCircleAngle"
onkeydown=
"if (event.keyCode == 13) {event.keyCode = 0;event.returnValue = false;}"
/>
<div
class=
"layui-inline loginName"
style=
"margin-left: 40px;"
>
<div
class=
"layui-input-inline updateSelectAngle"
style=
"width: 120px"
>
<select
name=
"accountOrPhone"
lay-filter=
"nameFilter"
>
<option
value=
"0"
>
登录账号名
</option>
<option
value=
"1"
>
手机号
</option>
</select>
</div>
<!-- margin-left: -5px -->
<div
class=
"layui-input-inline"
style=
"width: 246px; margin-left: -4px"
>
<input
class=
"layui-input"
type=
"text"
placeholder=
"请输入"
name=
"merchantLoginAccount"
id=
"updateCircleAngle"
onkeydown=
"if (event.keyCode == 13) {event.keyCode = 0;event.returnValue = false;}"
/>
</div>
</div>
</div>
<div
id=
"accountType"
class=
"layui-inline hide"
>
<label
class=
"layui-form-label"
>
账户类型:
</label>
<div
class=
"layui-input-inline"
style=
"width: 246px;"
>
...
...
@@ -197,12 +197,17 @@
/>
</div>
</div>
</div>
<div
class=
"layui-inline searchInputBtn"
style=
"float: right;"
>
<button
class=
"layui-btn"
lay-submit
lay-filter=
"searchSubmit"
>
查询
</button>
<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;"
>
<button
class=
"layui-btn"
lay-submit
lay-filter=
"searchSubmit"
>
查询
</button>
</div>
</div>
</form>
<div
class=
"table-page merchantTable"
>
<table
class=
"layui-table"
id=
"merchantTable"
lay-filter=
"merchant-table-filter"
></table>
...
...
@@ -414,7 +419,7 @@
field
:
'merchantLoginAccount'
,
title
:
'登录账户'
,
align
:
'center'
,
width
:
1
08
width
:
1
80
},
{
field
:
'accountLevelName'
,
...
...
@@ -450,10 +455,10 @@
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
9
0
width
:
18
0
},
{
align
:
'
left
'
,
align
:
'
center
'
,
title
:
'操作'
,
toolbar
:
'#merchantBtns'
,
width
:
150
,
...
...
@@ -833,7 +838,7 @@
$
(
'#relevancyEl'
).
removeClass
(
'hide'
)
$
(
'#relevancyEl'
).
addClass
(
'show'
)
}
if
(
accountInfo
.
merchantAccountLevel
==
4
)
{
if
(
accountInfo
.
merchantAccountLevel
==
4
)
{
$
(
'#relevancySearch'
).
addClass
(
'hide'
)
}
// $('#relevancySearch').addClass('show')
...
...
@@ -850,6 +855,8 @@
// $('#relevancySearch').remove()
$
(
'#model'
).
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