Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
7c59d68f
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1436
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看板
提交
7c59d68f
编写于
3月 27, 2022
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
CRM客户来源修改
上级
7b594848
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
42 addition
and
37 deletion
+42
-37
crm/src/main/resources/template/js/crmcustomerfrom/crmcustomerfromadd.js
...sources/template/js/crmcustomerfrom/crmcustomerfromadd.js
+1
-1
crm/src/main/resources/template/js/crmcustomerfrom/crmcustomerfromedit.js
...ources/template/js/crmcustomerfrom/crmcustomerfromedit.js
+2
-2
crm/src/main/resources/template/js/crmcustomerfrom/crmcustomerfromlist.js
...ources/template/js/crmcustomerfrom/crmcustomerfromlist.js
+38
-33
crm/src/main/resources/template/tpl/crmcustomerfrom/crmcustomerfromlist.html
...ces/template/tpl/crmcustomerfrom/crmcustomerfromlist.html
+1
-1
未找到文件。
crm/src/main/resources/template/js/crmcustomerfrom/crmcustomerfromadd.js
浏览文件 @
7c59d68f
...
...
@@ -17,7 +17,7 @@ layui.config({
var
params
=
{
typeName
:
$
(
"
#typeName
"
).
val
()
};
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
crmcustomerfrom002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
AjaxPostUtil
.
request
({
url
:
flowable
BasePath
+
"
crmcustomerfrom002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
...
...
crm/src/main/resources/template/js/crmcustomerfrom/crmcustomerfromedit.js
浏览文件 @
7c59d68f
...
...
@@ -12,7 +12,7 @@ layui.config({
showGrid
({
id
:
"
showForm
"
,
url
:
req
BasePath
+
"
crmcustomerfrom003
"
,
url
:
flowable
BasePath
+
"
crmcustomerfrom003
"
,
params
:
{
rowId
:
parent
.
rowId
},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/crmcustomerfrom/crmcustomerfromeditTemplate.tpl
'
),
...
...
@@ -27,7 +27,7 @@ layui.config({
rowId
:
parent
.
rowId
,
typeName
:
$
(
"
#typeName
"
).
val
()
};
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
crmcustomerfrom004
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
AjaxPostUtil
.
request
({
url
:
flowable
BasePath
+
"
crmcustomerfrom004
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
...
...
crm/src/main/resources/template/js/crmcustomerfrom/crmcustomerfromlist.js
浏览文件 @
7c59d68f
...
...
@@ -6,7 +6,6 @@ layui.config({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
table
=
layui
.
table
;
...
...
@@ -16,8 +15,8 @@ layui.config({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
req
BasePath
+
'
crmcustomerfrom001
'
,
where
:
{
typeName
:
$
(
"
#typeName
"
).
val
(),
state
:
$
(
"
#state
"
).
val
()}
,
url
:
flowable
BasePath
+
'
crmcustomerfrom001
'
,
where
:
getTableParams
()
,
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
...
...
@@ -47,36 +46,18 @@ layui.config({
table
.
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
edit
'
)
{
//编辑
if
(
layEvent
===
'
edit
'
)
{
//
编辑
edit
(
data
);
}
else
if
(
layEvent
===
'
delete
'
){
//删除
}
else
if
(
layEvent
===
'
delete
'
){
//
删除
del
(
data
);
}
else
if
(
layEvent
===
'
up
'
)
{
//上线
}
else
if
(
layEvent
===
'
up
'
)
{
//
上线
up
(
data
);
}
else
if
(
layEvent
===
'
down
'
)
{
//下线
}
else
if
(
layEvent
===
'
down
'
)
{
//
下线
down
(
data
);
}
});
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#formSearch
"
,
function
(){
refreshTable
();
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
(){
loadTable
();
});
function
loadTable
(){
table
.
reload
(
"
messageTable
"
,
{
where
:
{
typeName
:
$
(
"
#typeName
"
).
val
(),
state
:
$
(
"
#state
"
).
val
()}});
}
function
refreshTable
(){
table
.
reload
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
{
typeName
:
$
(
"
#typeName
"
).
val
(),
state
:
$
(
"
#state
"
).
val
()}});
}
//新增
//
新增
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
(){
_openNewWindows
({
url
:
"
../../tpl/crmcustomerfrom/crmcustomerfromadd.html
"
,
...
...
@@ -93,7 +74,7 @@ layui.config({
}});
});
//编辑
//
编辑
function
edit
(
data
){
rowId
=
data
.
id
;
_openNewWindows
({
...
...
@@ -111,11 +92,11 @@ layui.config({
}});
}
//删除
//
删除
function
del
(
data
,
obj
){
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
]},
function
(
index
){
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
crmcustomerfrom005
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
){
AjaxPostUtil
.
request
({
url
:
flowable
BasePath
+
"
crmcustomerfrom005
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
...
...
@@ -126,12 +107,12 @@ layui.config({
});
}
//上线
//
上线
function
up
(
data
,
obj
){
var
msg
=
obj
?
'
确认将【
'
+
obj
.
data
.
typeName
+
'
】上线吗?
'
:
'
确认将选中数据上线吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
客户来源上线
'
},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
crmcustomerfrom006
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
){
AjaxPostUtil
.
request
({
url
:
flowable
BasePath
+
"
crmcustomerfrom006
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
winui
.
window
.
msg
(
"
上线成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
...
...
@@ -142,12 +123,12 @@ layui.config({
});
}
//下线
//
下线
function
down
(
data
,
obj
){
var
msg
=
obj
?
'
确认将【
'
+
obj
.
data
.
typeName
+
'
】下线吗?
'
:
'
确认将选中数据下线吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
客户来源下线
'
},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
crmcustomerfrom007
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
){
AjaxPostUtil
.
request
({
url
:
flowable
BasePath
+
"
crmcustomerfrom007
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
winui
.
window
.
msg
(
"
下线成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
...
...
@@ -157,6 +138,30 @@ 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
();
});
function
loadTable
(){
table
.
reload
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
(){
return
{
typeName
:
$
(
"
#typeName
"
).
val
(),
state
:
$
(
"
#state
"
).
val
()
};
}
exports
(
'
crmcustomerfromlist
'
,
{});
});
\ No newline at end of file
crm/src/main/resources/template/tpl/crmcustomerfrom/crmcustomerfromlist.html
浏览文件 @
7c59d68f
...
...
@@ -25,7 +25,7 @@
</select>
</div>
<button
type=
"reset"
class=
"layui-btn layui-btn-primary list-form-search"
><language
showName=
"com.skyeye.reset"
></language></button>
<button
class=
"layui-btn list-form-search"
type=
"button"
id
=
"formSearch"
><language
showName=
"com.skyeye.search2"
></language></button>
<button
class=
"layui-btn list-form-search"
lay-submit
lay-filter
=
"formSearch"
><language
showName=
"com.skyeye.search2"
></language></button>
</div>
</div>
</form>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录