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 628edfbd
authored
Oct 20, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
f226a8bf
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
12 deletions
html/employee/detail.html
html/employee/index.html
html/merchant/add.html
html/merchant/addSubMerchant.html
html/merchant/edit.html
html/employee/detail.html
View file @
628edfb
...
@@ -125,6 +125,12 @@
...
@@ -125,6 +125,12 @@
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
企微号:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"entmicroName"
></div>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
职务:
</label>
<label
class=
"layui-form-label"
>
职务:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"staffJob"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"staffJob"
></div>
...
@@ -199,7 +205,7 @@
...
@@ -199,7 +205,7 @@
var
table
=
layui
.
table
var
table
=
layui
.
table
var
laypage
=
layui
.
laypage
var
laypage
=
layui
.
laypage
var
merchantId
=
qs
(
'merchantId'
)
var
merchantId
=
qs
(
'merchantId'
)
var
basicArr
=
[
'staffName'
,
'staffPhone'
,
'staffJob'
,
'roleName'
,
'roleCode'
,
'merchantName'
,
'createdAccount'
]
var
basicArr
=
[
'staffName'
,
'staffPhone'
,
'
entmicroName'
,
'
staffJob'
,
'roleName'
,
'roleCode'
,
'merchantName'
,
'createdAccount'
]
var
employeeData
=
{}
var
employeeData
=
{}
var
visibleInferiorMerName
=
$
(
'#visibleInferiorMerName'
)
var
visibleInferiorMerName
=
$
(
'#visibleInferiorMerName'
)
...
...
html/employee/index.html
View file @
628edfb
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
{
field
:
'merchantName'
,
title
:
'商户名(商户号)'
,
align
:
'center'
,
width
:
160
},
{
field
:
'merchantName'
,
title
:
'商户名(商户号)'
,
align
:
'center'
,
width
:
160
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
110
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
110
},
{
title
:
'操作'
,
width
:
220
,
align
:
'left'
,
toolbar
:
'#employeeBar'
},
{
title
:
'操作'
,
width
:
220
,
align
:
'left'
,
toolbar
:
'#employeeBar'
},
{
field
:
'statusName'
,
title
:
'启用开关'
,
width
:
85
,
templet
:
'#switchTpl'
,
unresize
:
true
}
{
fi
xed
:
'right'
,
fi
eld
:
'statusName'
,
title
:
'启用开关'
,
width
:
85
,
templet
:
'#switchTpl'
,
unresize
:
true
}
]
]
var
colums
=
[
var
colums
=
[
//表头
//表头
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
{
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
:
220
,
align
:
'left'
,
toolbar
:
'#employeeBar'
},
{
title
:
'操作'
,
width
:
220
,
align
:
'left'
,
toolbar
:
'#employeeBar'
},
{
field
:
'statusName'
,
title
:
'启用开关'
,
width
:
85
,
templet
:
'#switchTpl'
,
unresize
:
true
}
{
fi
xed
:
'right'
,
fi
eld
:
'statusName'
,
title
:
'启用开关'
,
width
:
85
,
templet
:
'#switchTpl'
,
unresize
:
true
}
]
]
//创建table实例
//创建table实例
var
employeeTable
=
table
.
render
({
var
employeeTable
=
table
.
render
({
...
...
html/merchant/add.html
View file @
628edfb
...
@@ -421,7 +421,7 @@
...
@@ -421,7 +421,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item hide"
id=
"effectiveShowEl"
>
<
!-- <
div class="layui-form-item hide" id="effectiveShowEl">
<label class="layui-form-label">账户有效期:</label>
<label class="layui-form-label">账户有效期:</label>
<div class="layui-inline">
<div class="layui-inline">
<div class="layui-input-inline">
<div class="layui-input-inline">
...
@@ -435,7 +435,7 @@
...
@@ -435,7 +435,7 @@
<button id="oneyear" type="button" class="layui-btn btn-no-border">续1年</button>
<button id="oneyear" type="button" class="layui-btn btn-no-border">续1年</button>
<button id="twoyears" type="button" class="layui-btn btn-no-border">续2年</button>
<button id="twoyears" type="button" class="layui-btn btn-no-border">续2年</button>
</div>
</div>
</div>
</div>
-->
<div
class=
"layui-col-md6"
>
<div
class=
"layui-col-md6"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label required"
>
登录账户名:
</label>
<label
class=
"layui-form-label required"
>
登录账户名:
</label>
...
@@ -1091,10 +1091,6 @@
...
@@ -1091,10 +1091,6 @@
parentMerchantId
=
qs
(
'parentId'
)
parentMerchantId
=
qs
(
'parentId'
)
}
}
$
(
'#validPeriodEl'
).
attr
(
'disabled'
,
true
)
$
(
'#validPeriodEl'
).
attr
(
'disabled'
,
true
)
if
(
merchantAccountLevel
==
4
)
{
$
(
'#effectiveShowEl'
).
removeClass
(
'hide'
)
$
(
'#effectiveShowEl'
).
addClass
(
'show'
)
}
// $('#channelEl').attr('disabled', true)
// $('#channelEl').attr('disabled', true)
if
(
editLevel
==
3
||
(
editLevel
==
2
&&
!
merchantId
))
{
if
(
editLevel
==
3
||
(
editLevel
==
2
&&
!
merchantId
))
{
getParentInfo
()
getParentInfo
()
...
...
html/merchant/addSubMerchant.html
View file @
628edfb
...
@@ -686,7 +686,9 @@
...
@@ -686,7 +686,9 @@
// select 选择触发
// select 选择触发
form
.
on
(
'select(accountLevel)'
,
function
(
data
)
{
form
.
on
(
'select(accountLevel)'
,
function
(
data
)
{
console
.
log
(
data
.
value
)
var
accountInfo
=
helper
.
store
.
get
(
'accountInfo'
)
console
.
log
(
data
.
value
,
accountInfo
)
if
(
!
accountInfo
)
{
if
(
data
.
value
==
4
)
{
if
(
data
.
value
==
4
)
{
$
(
'#effectiveShowEl'
).
removeClass
(
'hide'
)
$
(
'#effectiveShowEl'
).
removeClass
(
'hide'
)
$
(
'#effectiveShowEl'
).
addClass
(
'show'
)
$
(
'#effectiveShowEl'
).
addClass
(
'show'
)
...
@@ -697,6 +699,7 @@
...
@@ -697,6 +699,7 @@
$
(
'#effectiveShowEl'
).
addClass
(
'hide'
)
$
(
'#effectiveShowEl'
).
addClass
(
'hide'
)
$
(
'#effectiveStarttime'
).
removeAttr
(
'lay-verify'
)
$
(
'#effectiveStarttime'
).
removeAttr
(
'lay-verify'
)
}
}
}
})
})
form
.
on
(
'submit(handleFirstSubmit)'
,
function
(
data
)
{
form
.
on
(
'submit(handleFirstSubmit)'
,
function
(
data
)
{
...
...
html/merchant/edit.html
View file @
628edfb
...
@@ -1015,8 +1015,8 @@
...
@@ -1015,8 +1015,8 @@
// baseIsShow(false)
// baseIsShow(false)
// treeIsShow(true)
// treeIsShow(true)
}
}
console
.
log
(
helper
.
store
.
get
(
'accountInfo'
))
console
.
log
(
helper
.
store
.
get
(
'accountInfo'
)
,
qs
(
'status'
),
isFactory
)
if
(
qs
(
'status'
)
&&
!
helper
.
store
.
get
(
'accountInfo'
)
)
{
if
(
qs
(
'status'
)
==
1
&&
!
helper
.
store
.
get
(
'accountInfo'
)
&&
isFactory
)
{
$
(
'#merchantModel'
).
removeClass
(
'hide'
)
$
(
'#merchantModel'
).
removeClass
(
'hide'
)
$
(
'#merchantModel'
).
addClass
(
'show'
)
$
(
'#merchantModel'
).
addClass
(
'show'
)
}
}
...
...
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