Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
bbeca2c3
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1435
Star
162
Fork
130
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
bbeca2c3
编写于
2月 02, 2022
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
会员列表服务抽离
上级
e46f61d8
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
29 addition
and
38 deletion
+29
-38
erp/src/main/resources/template/js/member/memberlist.js
erp/src/main/resources/template/js/member/memberlist.js
+27
-37
web/src/main/resources/template/assets/lib/layui/layui.js
web/src/main/resources/template/assets/lib/layui/layui.js
+2
-1
未找到文件。
erp/src/main/resources/template/js/member/memberlist.js
浏览文件 @
bbeca2c3
...
...
@@ -16,16 +16,12 @@ layui.config({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
reqBasePath
+
'
member001
'
,
where
:
{
memberName
:
$
(
"
#memberName
"
).
val
(),
telephone
:
$
(
"
#telephone
"
).
val
(),
email
:
$
(
"
#email
"
).
val
(),
fax
:
$
(
"
#fax
"
).
val
(),
enabled
:
$
(
"
#enabled
"
).
val
()},
url
:
shopBasePath
+
'
member001
'
,
where
:
getTableParams
(),
even
:
true
,
page
:
true
,
limits
:
[
8
,
16
,
24
,
32
,
40
,
48
,
56
]
,
limit
:
8
,
limits
:
getLimits
()
,
limit
:
getLimit
()
,
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
memberName
'
,
title
:
'
会员名称
'
,
align
:
'
left
'
,
width
:
140
,
templet
:
function
(
d
){
...
...
@@ -75,15 +71,7 @@ layui.config({
}
});
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
loadTable
();
}
return
false
;
});
//编辑
// 编辑
function
editmember
(
data
){
rowId
=
data
.
id
;
_openNewWindows
({
...
...
@@ -101,7 +89,7 @@ layui.config({
}});
}
//删除会员
//
删除会员
function
deletemember
(
data
){
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
]},
function
(
index
){
layer
.
close
(
index
);
...
...
@@ -116,7 +104,7 @@ layui.config({
});
}
//设置启用状态
//
设置启用状态
function
editEnabled
(
data
){
layer
.
confirm
(
'
确认要更改该会员为启用状态吗?
'
,
{
icon
:
3
,
title
:
'
状态变更
'
},
function
(
index
)
{
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
member006
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
){
...
...
@@ -130,7 +118,7 @@ layui.config({
});
}
//设置禁用状态
//
设置禁用状态
function
editNotEnabled
(
data
){
layer
.
confirm
(
'
确认要更改该会员为禁用状态吗?
'
,
{
icon
:
3
,
title
:
'
状态变更
'
},
function
(
index
)
{
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
member007
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
){
...
...
@@ -144,7 +132,7 @@ layui.config({
});
}
//详情
//
详情
function
selectMember
(
data
){
rowId
=
data
.
id
;
_openNewWindows
({
...
...
@@ -174,29 +162,31 @@ layui.config({
}});
});
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
table
.
reload
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()})
}
return
false
;
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#formSearch
"
,
function
()
{
refreshTable
();
})
//刷新
// 刷新
function
loadTable
(){
table
.
reload
(
"
messageTable
"
,
{
where
:{
memberName
:
$
(
"
#memberName
"
).
val
(),
telephone
:
$
(
"
#telephone
"
).
val
(),
email
:
$
(
"
#email
"
).
val
(),
fax
:
$
(
"
#fax
"
).
val
(),
enabled
:
$
(
"
#enabled
"
).
val
()}});
table
.
reload
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
//搜索
function
refreshTable
(){
table
.
reload
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:{
memberName
:
$
(
"
#memberName
"
).
val
(),
telephone
:
$
(
"
#telephone
"
).
val
(),
email
:
$
(
"
#email
"
).
val
(),
fax
:
$
(
"
#fax
"
).
val
(),
enabled
:
$
(
"
#enabled
"
).
val
()}})
function
getTableParams
(){
return
{
memberName
:
$
(
"
#memberName
"
).
val
(),
telephone
:
$
(
"
#telephone
"
).
val
(),
email
:
$
(
"
#email
"
).
val
(),
fax
:
$
(
"
#fax
"
).
val
(),
enabled
:
$
(
"
#enabled
"
).
val
()
};
}
exports
(
'
memberlist
'
,
{});
...
...
web/src/main/resources/template/assets/lib/layui/layui.js
浏览文件 @
bbeca2c3
...
...
@@ -8,7 +8,8 @@
var
fileBasePath
=
"
http://127.0.0.1:8081/
"
;
// 接口请求地址
var
reqBasePath
=
"
http://127.0.0.1:8081/
"
;
var
reqBasePath
=
"
http://127.0.0.1:8081/
"
;
// 总项目
var
shopBasePath
=
"
http://127.0.0.1:8082/
"
;
// 商城项目
var
basePath
=
"
../../assets/lib/winui/
"
;
var
maskReqStr
=
'
<div class="mask-req-str"><div class="cent"><i class="fa fa-spin fa-spinner fa-fw"></i><br><br><font>数据请求中</font></div></div>
'
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录