Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
47a5b647
authored
Apr 26, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
刷新逻辑
parent
8b9fbce5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletions
resources/views/script/SupplierApplyListScript.blade.php
resources/views/web.blade.php
resources/views/web/SupplierApplyList.blade.php
resources/views/script/SupplierApplyListScript.blade.php
View file @
47a5b647
...
...
@@ -9,6 +9,15 @@
let
whereCondition
=
initCondition
;
let
type
=
'all'
;
//这个是页面点击刷新方法,隐藏起来是为了页面切换回这个列表的时候触发的
$
(
'#refreshWindow'
).
click
(
function
()
{
//判断当前是否有layui弹窗窗口,有的话不刷新
let
hasLayerIframe
=
$
(
'.layui-layer'
).
size
()
>
0
;
if
(
!
hasLayerIframe
)
{
$
(
'#getSupplierApplyListButton'
).
click
();
}
});
let
cols
=
[
{
type
:
'checkbox'
},
{
field
:
'supplier_name'
,
title
:
'供应商名称'
,
align
:
'center'
,
width
:
200
},
...
...
resources/views/web.blade.php
View file @
47a5b647
...
...
@@ -87,6 +87,11 @@
admin
.
putTempData
(
"needFreshDetail_"
+
supplierFlag
,
null
);
}
}
if
(
d
.
layId
.
search
(
'SupplierApplyList'
)
!==
-
1
)
{
setTimeout
(
function
()
{
$
(
'.admin-iframe'
).
contents
().
find
(
'#refreshWindow'
).
click
()
},
10
);
}
});
});
</script>
...
...
resources/views/web/SupplierApplyList.blade.php
View file @
47a5b647
...
...
@@ -36,7 +36,7 @@
</div>
</div>
<div
class=
"layui-row"
style=
"margin-top:10px;margin-bottom: 10px;margin-left: 20px;"
>
<button
class=
"layui-btn layui-btn-sm layui-btn load"
lay-submit=
""
<button
class=
"layui-btn layui-btn-sm layui-btn load"
lay-submit=
""
id=
"getSupplierApplyListButton"
lay-filter=
"load"
>
查询
</button>
<button
type=
"button"
class=
"layui-btn layui-btn-sm layui-btn"
lay-submit=
""
lay-filter=
"reset"
>
重置
...
...
@@ -46,6 +46,7 @@
</div>
<div
style=
"margin-left: 20px;margin-right: 20px"
>
<div
class=
"layui-btn-group demoTable"
style=
"margin-top: 15px"
>
<button
type=
"button"
id=
"refreshWindow"
style=
"display: none"
>
刷新页面
</button>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"audit_supplier_apply"
>
审核
</button>
</div>
<table
class=
"layui-table"
id=
"supplierApplyList"
lay-filter=
"supplierApplyList"
></table>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment