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 81eeb91c
authored
Jan 05, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改重置
1 parent
351a52fd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
3 deletions
html/employee/index.html
html/merchant/index.html
html/role/index.html
html/employee/index.html
View file @
81eeb91
...
...
@@ -90,8 +90,8 @@
</div>
<div
class=
"layui-inline"
style=
"float: right"
pane
>
<button
id=
"employeeReset"
class=
"layui-btn"
>
重置
</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>
</div>
</div>
...
...
@@ -333,6 +333,16 @@
go
(
'employee'
,
'add'
)
})
// 重置
$
(
'#employeeReset'
).
on
(
'click'
,
function
()
{
$
(
".layui-form"
)[
0
].
reset
()
layui
.
form
.
render
();
merchantNameSelect
.
setValue
([])
// form.render('select')
getTabelList
(
employeeTable
)
return
false
})
// 导出
$
(
'#employeeExport'
).
on
(
'click'
,
function
()
{
var
searchData
=
getSearch
()
...
...
html/merchant/index.html
View file @
81eeb91
...
...
@@ -221,8 +221,8 @@
</div>
<div
class=
"layui-inline searchInputBtn"
style=
"float: right;"
>
<button
class=
"layui-btn"
id=
"merchantReset"
>
重置
</button>
<button
class=
"layui-btn"
lay-submit
lay-filter=
"searchSubmit"
>
查询
</button>
<button
type=
"reset"
class=
"layui-btn"
>
重置
</button>
</div>
</div>
</form>
...
...
@@ -521,6 +521,7 @@
table
.
on
(
'tool(merchant-table-filter)'
,
function
(
obj
)
{
var
eventName
=
obj
.
event
var
row
=
obj
.
data
console
.
log
(
row
)
switch
(
eventName
)
{
// 查看
case
'handleDetail'
:
...
...
@@ -644,6 +645,12 @@
return
false
})
$
(
'#merchantReset'
).
on
(
'click'
,
function
()
{
$
(
".layui-form"
)[
0
].
reset
()
layui
.
form
.
render
();
getTabelList
(
true
)
return
false
})
// 查询
function
handleSearch
()
{
getTabelList
(
true
)
...
...
html/role/index.html
View file @
81eeb91
...
...
@@ -75,8 +75,8 @@
</div>
<div
class=
"layui-inline"
style=
"float: right"
pane
>
<button
id=
"roleReset"
class=
"layui-btn"
>
重置
</button>
<button
type=
"button"
class=
"layui-btn layui-btn-normal"
id=
"roleSearch"
>
查询
</button>
<button
type=
"reset"
class=
"layui-btn"
>
重置
</button>
</div>
</div>
</form>
...
...
@@ -251,6 +251,14 @@
var
searchData
=
form
.
val
(
'roleForm'
)
getTabelList
(
roleTable
,
searchData
,
true
)
})
// 重置
$
(
'#roleReset'
).
on
(
'click'
,
function
()
{
$
(
".layui-form"
)[
0
].
reset
()
layui
.
form
.
render
();
merchantNameSelect
.
setValue
([])
getTabelList
(
roleTable
)
return
false
})
})
</script>
<script
type=
"text/html"
id=
"roleBar"
>
...
...
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