Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
冷月半明
Skyeye
提交
7b594848
S
Skyeye
项目概览
冷月半明
/
Skyeye
与 Fork 源项目一致
Fork自
doc_wei / Skyeye
通知
1
Star
1
Fork
0
代码
文件
提交
分支
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7b594848
编写于
3月 26, 2022
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
微服务拆分测试
上级
0ef1b32d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
20 addition
and
9 deletion
+20
-9
crm/src/main/resources/template/js/customertype/customertypeadd.js
...ain/resources/template/js/customertype/customertypeadd.js
+1
-1
crm/src/main/resources/template/js/customertype/customertypeedit.js
...in/resources/template/js/customertype/customertypeedit.js
+2
-2
crm/src/main/resources/template/js/customertype/customertypelist.js
...in/resources/template/js/customertype/customertypelist.js
+6
-6
web/src/main/resources/template/assets/lib/layui/custom.js
web/src/main/resources/template/assets/lib/layui/custom.js
+2
-0
web/src/main/resources/template/assets/lib/layui/customer/ajaxPostUtil.js
...ources/template/assets/lib/layui/customer/ajaxPostUtil.js
+9
-0
未找到文件。
crm/src/main/resources/template/js/customertype/customertypeadd.js
浏览文件 @
7b594848
...
...
@@ -17,7 +17,7 @@ layui.config({
var
params
=
{
typeName
:
$
(
"
#typeName
"
).
val
()
};
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
customertype002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
AjaxPostUtil
.
request
({
url
:
flowable
BasePath
+
"
customertype002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
...
...
crm/src/main/resources/template/js/customertype/customertypeedit.js
浏览文件 @
7b594848
...
...
@@ -12,7 +12,7 @@ layui.config({
showGrid
({
id
:
"
showForm
"
,
url
:
req
BasePath
+
"
customertype003
"
,
url
:
flowable
BasePath
+
"
customertype003
"
,
params
:
{
rowId
:
parent
.
rowId
},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/customertype/customertypeeditTemplate.tpl
'
),
...
...
@@ -27,7 +27,7 @@ layui.config({
rowId
:
parent
.
rowId
,
typeName
:
$
(
"
#typeName
"
).
val
()
};
AjaxPostUtil
.
request
({
url
:
req
BasePath
+
"
customertype004
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
AjaxPostUtil
.
request
({
url
:
flowable
BasePath
+
"
customertype004
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
...
...
crm/src/main/resources/template/js/customertype/customertypelist.js
浏览文件 @
7b594848
...
...
@@ -16,7 +16,7 @@ layui.config({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
req
BasePath
+
'
customertype001
'
,
url
:
flowable
BasePath
+
'
customertype001
'
,
where
:
{
typeName
:
$
(
"
#typeName
"
).
val
(),
state
:
$
(
"
#state
"
).
val
()},
even
:
true
,
page
:
true
,
...
...
@@ -115,7 +115,7 @@ 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
+
"
customertype005
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
){
AjaxPostUtil
.
request
({
url
:
flowable
BasePath
+
"
customertype005
"
,
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 +126,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
+
"
customertype006
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
){
AjaxPostUtil
.
request
({
url
:
flowable
BasePath
+
"
customertype006
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
winui
.
window
.
msg
(
"
上线成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
...
...
@@ -142,12 +142,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
+
"
customertype007
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
){
AjaxPostUtil
.
request
({
url
:
flowable
BasePath
+
"
customertype007
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
winui
.
window
.
msg
(
"
下线成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
...
...
web/src/main/resources/template/assets/lib/layui/custom.js
浏览文件 @
7b594848
...
...
@@ -47,6 +47,7 @@ var fileBasePath;
// 接口请求地址
var
reqBasePath
;
// 总项目
var
shopBasePath
;
// 商城项目
var
flowableBasePath
;
// 工作流相关功能的项目
var
webSocketPath
;
//聊天socket-开发
...
...
@@ -56,6 +57,7 @@ function initBaseParams(){
reqBasePath
=
sysMainMation
.
reqBasePath
;
shopBasePath
=
sysMainMation
.
shopBasePath
;
webSocketPath
=
sysMainMation
.
webSocketPath
;
flowableBasePath
=
sysMainMation
.
flowableBasePath
;
}
// 编辑加载自定义的js文件
...
...
web/src/main/resources/template/assets/lib/layui/customer/ajaxPostUtil.js
浏览文件 @
7b594848
...
...
@@ -99,6 +99,15 @@ var AjaxPostUtil = {
}
else
{
this
.
options
.
callback
.
call
(
this
);
}
}
else
if
(
xmlhttp
.
readyState
==
4
&&
(
xmlhttp
.
status
==
404
))
{
// 移除请求遮罩层
layui
.
$
(
"
body
"
).
find
(
"
.mask-req-str
"
).
remove
();
returnValue
=
eval
(
'
(
'
+
'
{"returnMessage":"接口请求:404","returnCode":-9999,"total":0,"rows":"","bean":""}
'
+
'
)
'
);
if
(
returnValue
)
{
this
.
options
.
callback
.
call
(
this
,
returnValue
);
}
else
{
this
.
options
.
callback
.
call
(
this
);
}
}
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录