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 351a52fd
authored
Jan 02, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加全选和重置
1 parent
b7a489c1
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
59 deletions
html/employee/index.html
html/merchant/add.html
html/merchant/addSubMerchant.html
html/merchant/edit.html
html/merchant/index.html
html/role/index.html
html/employee/index.html
View file @
351a52f
...
@@ -91,6 +91,7 @@
...
@@ -91,6 +91,7 @@
<div
class=
"layui-inline"
style=
"float: right"
pane
>
<div
class=
"layui-inline"
style=
"float: right"
pane
>
<button
type=
"button"
class=
"layui-btn layui-btn-normal searchInputBtn"
id=
"employeeSearch"
>
查询
</button>
<button
type=
"button"
class=
"layui-btn layui-btn-normal searchInputBtn"
id=
"employeeSearch"
>
查询
</button>
<button
type=
"reset"
class=
"layui-btn"
>
重置
</button>
<button
type=
"button"
class=
"layui-btn layui-btn-normal exportInputBtn"
id=
"employeeExport"
>
导出
</button>
<button
type=
"button"
class=
"layui-btn layui-btn-normal exportInputBtn"
id=
"employeeExport"
>
导出
</button>
</div>
</div>
</div>
</div>
...
...
html/merchant/add.html
View file @
351a52f
...
@@ -682,9 +682,6 @@
...
@@ -682,9 +682,6 @@
if
(
!
/^
(?=
.*
\d)(?=
.*
[
a-zA-Z
])[\s\S]{6,20}
$/
.
test
(
value
))
{
if
(
!
/^
(?=
.*
\d)(?=
.*
[
a-zA-Z
])[\s\S]{6,20}
$/
.
test
(
value
))
{
return
'您输入的密码格式不正确,必须同时包含字母、数字。'
return
'您输入的密码格式不正确,必须同时包含字母、数字。'
}
}
// if (!validator.checkPassWord(value)) {
// return '您输入的密码格式不正确,密码必须同时包含字母、数字'
// }
}
}
},
},
...
@@ -1805,11 +1802,29 @@
...
@@ -1805,11 +1802,29 @@
}
}
return
false
return
false
})
})
util
.
event
(
'lay-active'
,
{
checkAll
:
function
(
othis
)
{
const
id
=
othis
.
context
.
dataset
.
id
const
accounttypeId
=
id
.
split
(
'_'
)[
1
]
const
productId
=
id
.
split
(
'_'
)[
2
]
treeData
[
accounttypeId
][
productId
].
treeObj
.
checkAllNodes
(
true
)
},
cancelCheckedAll
:
function
(
othis
)
{
const
id
=
othis
.
context
.
dataset
.
id
const
accounttypeId
=
id
.
split
(
'_'
)[
1
]
const
productId
=
id
.
split
(
'_'
)[
2
]
treeData
[
accounttypeId
][
productId
].
treeObj
.
checkAllNodes
(
false
)
}
})
})
})
</script>
</script>
<script
type=
"text/html"
id=
"treeAuth"
>
<script
type=
"text/html"
id=
"treeAuth"
>
<!--
<
button
class
=
"layui-btn"
data
-
type
=
"d.id"
id
=
"checkedAll"
>
全选
<
/button
>
<
div
style
=
"float: right; margin: 10px;"
>
<
button
class
=
"layui-btn"
id
=
"cancelCheckedAll"
>
取消全选
<
/button> --
>
<
button
class
=
"layui-btn layui-btn-sm"
data
-
id
=
"{{d.id}}"
lay
-
active
=
"checkAll"
>
全选
<
/button
>
<
button
class
=
"layui-btn layui-btn-sm"
data
-
id
=
"{{d.id}}"
lay
-
active
=
"cancelCheckedAll"
>
取消全选
<
/button
>
<
/div
>
<
ul
id
=
"tree_{{d.id}}"
class
=
"ztree wrapper-tree"
><
/ul
>
<
ul
id
=
"tree_{{d.id}}"
class
=
"ztree wrapper-tree"
><
/ul
>
<
div
class
=
"layui-no-data show"
id
=
"nomenu{{d.id}}"
>
<
div
class
=
"layui-no-data show"
id
=
"nomenu{{d.id}}"
>
<
div
class
=
"no-data"
>
<
div
class
=
"no-data"
>
...
...
html/merchant/addSubMerchant.html
View file @
351a52f
...
@@ -1818,11 +1818,29 @@
...
@@ -1818,11 +1818,29 @@
}
}
return
false
return
false
})
})
util
.
event
(
'lay-active'
,
{
checkAll
:
function
(
othis
)
{
const
id
=
othis
.
context
.
dataset
.
id
const
accounttypeId
=
id
.
split
(
'_'
)[
1
]
const
productId
=
id
.
split
(
'_'
)[
2
]
treeData
[
accounttypeId
][
productId
].
treeObj
.
checkAllNodes
(
true
)
},
cancelCheckedAll
:
function
(
othis
)
{
const
id
=
othis
.
context
.
dataset
.
id
const
accounttypeId
=
id
.
split
(
'_'
)[
1
]
const
productId
=
id
.
split
(
'_'
)[
2
]
treeData
[
accounttypeId
][
productId
].
treeObj
.
checkAllNodes
(
false
)
}
})
})
})
</script>
</script>
<script
type=
"text/html"
id=
"treeAuth"
>
<script
type=
"text/html"
id=
"treeAuth"
>
<!--
<
button
class
=
"layui-btn"
data
-
type
=
"d.id"
id
=
"checkedAll"
>
全选
<
/button
>
<
div
style
=
"float: right; margin: 10px;"
>
<
button
class
=
"layui-btn"
id
=
"cancelCheckedAll"
>
取消全选
<
/button> --
>
<
button
class
=
"layui-btn layui-btn-sm"
data
-
id
=
"{{d.id}}"
lay
-
active
=
"checkAll"
>
全选
<
/button
>
<
button
class
=
"layui-btn layui-btn-sm"
data
-
id
=
"{{d.id}}"
lay
-
active
=
"cancelCheckedAll"
>
取消全选
<
/button
>
<
/div
>
<
ul
id
=
"tree_{{d.id}}"
class
=
"ztree wrapper-tree"
><
/ul
>
<
ul
id
=
"tree_{{d.id}}"
class
=
"ztree wrapper-tree"
><
/ul
>
<
div
class
=
"layui-no-data show"
id
=
"nomenu{{d.id}}"
>
<
div
class
=
"layui-no-data show"
id
=
"nomenu{{d.id}}"
>
<
div
class
=
"no-data"
>
<
div
class
=
"no-data"
>
...
...
html/merchant/edit.html
View file @
351a52f
...
@@ -10,9 +10,6 @@
...
@@ -10,9 +10,6 @@
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,帐户管理,员工管理"
/>
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,帐户管理,员工管理"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<style>
<style>
/* body {
height:auto;
} */
.grayBgWrap
{
.grayBgWrap
{
padding-bottom
:
100px
;
padding-bottom
:
100px
;
}
}
...
@@ -22,7 +19,6 @@
...
@@ -22,7 +19,6 @@
background-color
:
#fff
;
background-color
:
#fff
;
}
}
/* .contentGrayBg */
.contentGrayBg
.layui-this
{
.contentGrayBg
.layui-this
{
background-color
:
#fff
;
background-color
:
#fff
;
border
:
2px
solid
#fff
;
border
:
2px
solid
#fff
;
...
@@ -500,11 +496,12 @@
...
@@ -500,11 +496,12 @@
<script
src=
"/js/load.js"
></script>
<script
src=
"/js/load.js"
></script>
<script
src=
"/js/validator.js"
></script>
<script
src=
"/js/validator.js"
></script>
<script>
<script>
layui
.
use
([
'gtree'
,
'request'
,
'helper'
,
'layer'
,
'laydate'
,
'element'
,
'xmSelect'
,
'laytpl'
,
'validator'
],
function
()
{
layui
.
use
([
'gtree'
,
'request'
,
'helper'
,
'layer'
,
'laydate'
,
'element'
,
'xmSelect'
,
'laytpl'
,
'validator'
,
'util'
],
function
()
{
var
tree
=
layui
.
gtree
var
tree
=
layui
.
gtree
var
request
=
layui
.
request
var
request
=
layui
.
request
var
form
=
layui
.
form
var
form
=
layui
.
form
var
laydate
=
layui
.
laydate
var
laydate
=
layui
.
laydate
var
util
=
layui
.
util
var
$
=
layui
.
$
var
$
=
layui
.
$
var
validator
=
layui
.
validator
var
validator
=
layui
.
validator
var
helper
=
layui
.
helper
var
helper
=
layui
.
helper
...
@@ -844,38 +841,12 @@
...
@@ -844,38 +841,12 @@
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
// if (editLevel == 3) {
layer
.
msg
(
'操作成功'
,
{
layer
.
msg
(
'操作成功'
,
{
icon
:
1
icon
:
1
})
})
if
(
!
functionClick
)
{
if
(
!
functionClick
)
{
go
(
'merchant'
,
'index'
)
go
(
'merchant'
,
'index'
)
}
}
// } else {
// if (!merchantId) {
// merchantId = res.data
// }
// merchantForm.merchantAccountLevel = parseInt(merchantForm.merchantAccountLevel)
// getMerchantApi(merchantId, function(respone) {
// form.val('merchantForm', respone.data)
// merchantForm = respone.data
// if (merchantForm.merchantAddress) {
// $('#addrEl').text(merchantForm.merchantAddress)
// }
// accountTypeVisible = true
// var el = $('#accountTypeEl')
// el.empty()
// recoveryFile()
// getAccountType()
// // baseIsShow(false)
// // treeIsShow(true)
// if (isFreshSecond) {
// getById()
// isFreshSecond = false
// }
// })
// }
}
}
})
})
return
false
return
false
...
@@ -1107,29 +1078,8 @@
...
@@ -1107,29 +1078,8 @@
}
}
})
})
// function baseIsShow(isShow) {
// if (isShow) {
// $('#basicForm').show()
// } else {
// $('#basicForm').hide()
// }
// }
// function treeIsShow(isShow) {
// if (isShow) {
// $('#authorityTree').show()
// } else {
// $('#authorityTree').hide()
// }
// }
function
init
()
{
function
init
()
{
// var index = layer.load(2, {
// shade: true,
// time: 10 * 1000
// }); //又换了种风格,并且设定最长等待10秒
//关闭
// layer.close(index);
if
(
step
==
1
)
{
if
(
step
==
1
)
{
getPeriod
()
getPeriod
()
...
@@ -1874,6 +1824,21 @@
...
@@ -1874,6 +1824,21 @@
submitAuth
()
submitAuth
()
})
})
util
.
event
(
'lay-active'
,
{
checkAll
:
function
(
othis
)
{
const
id
=
othis
.
context
.
dataset
.
id
const
accounttypeId
=
id
.
split
(
'_'
)[
1
]
const
productId
=
id
.
split
(
'_'
)[
2
]
treeData
[
accounttypeId
][
productId
].
treeObj
.
checkAllNodes
(
true
)
},
cancelCheckedAll
:
function
(
othis
)
{
const
id
=
othis
.
context
.
dataset
.
id
const
accounttypeId
=
id
.
split
(
'_'
)[
1
]
const
productId
=
id
.
split
(
'_'
)[
2
]
treeData
[
accounttypeId
][
productId
].
treeObj
.
checkAllNodes
(
false
)
}
})
function
submitAuth
()
{
function
submitAuth
()
{
if
(
!
accountInfo
&&
merchantAccountLevel
==
4
&&
qs
(
'status'
)
==
1
&&
!
merchantForm
.
effectiveStarttime
)
{
if
(
!
accountInfo
&&
merchantAccountLevel
==
4
&&
qs
(
'status'
)
==
1
&&
!
merchantForm
.
effectiveStarttime
)
{
layer
.
msg
(
'请去“修改基本信息”填写账户有效期'
,
{
layer
.
msg
(
'请去“修改基本信息”填写账户有效期'
,
{
...
@@ -1915,6 +1880,10 @@
...
@@ -1915,6 +1880,10 @@
})
})
</script>
</script>
<script
type=
"text/html"
id=
"treeAuth"
>
<script
type=
"text/html"
id=
"treeAuth"
>
<
div
style
=
"float: right; margin: 10px;"
>
<
button
class
=
"layui-btn layui-btn-sm"
data
-
id
=
"{{d.id}}"
lay
-
active
=
"checkAll"
>
全选
<
/button
>
<
button
class
=
"layui-btn layui-btn-sm"
data
-
id
=
"{{d.id}}"
lay
-
active
=
"cancelCheckedAll"
>
取消全选
<
/button
>
<
/div
>
<
ul
id
=
"tree_{{d.id}}"
class
=
"ztree wrapper-tree"
><
/ul
>
<
ul
id
=
"tree_{{d.id}}"
class
=
"ztree wrapper-tree"
><
/ul
>
<
div
class
=
"layui-no-data show"
id
=
"nomenu{{d.id}}"
>
<
div
class
=
"layui-no-data show"
id
=
"nomenu{{d.id}}"
>
<
div
class
=
"no-data"
>
<
div
class
=
"no-data"
>
...
...
html/merchant/index.html
View file @
351a52f
...
@@ -222,6 +222,7 @@
...
@@ -222,6 +222,7 @@
<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>
<button
type=
"reset"
class=
"layui-btn"
>
重置
</button>
</div>
</div>
</div>
</div>
</form>
</form>
...
...
html/role/index.html
View file @
351a52f
...
@@ -76,6 +76,7 @@
...
@@ -76,6 +76,7 @@
<div
class=
"layui-inline"
style=
"float: right"
pane
>
<div
class=
"layui-inline"
style=
"float: right"
pane
>
<button
type=
"button"
class=
"layui-btn layui-btn-normal"
id=
"roleSearch"
>
查询
</button>
<button
type=
"button"
class=
"layui-btn layui-btn-normal"
id=
"roleSearch"
>
查询
</button>
<button
type=
"reset"
class=
"layui-btn"
>
重置
</button>
</div>
</div>
</div>
</div>
</form>
</form>
...
...
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