Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
cb0a6671
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1431
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看板
提交
cb0a6671
编写于
12月 31, 2022
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
属性表格展示的类型新增自定义名称功能
上级
5e21f5c1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
13 deletion
+22
-13
base-server/src/main/resources/template/js/processAttr/processAttrAdd.js
.../main/resources/template/js/processAttr/processAttrAdd.js
+11
-6
base-server/src/main/resources/template/js/processAttr/processAttrEdit.js
...main/resources/template/js/processAttr/processAttrEdit.js
+11
-6
web/src/main/resources/template/assets/lib/winui/css/winui.css
...rc/main/resources/template/assets/lib/winui/css/winui.css
+0
-1
未找到文件。
base-server/src/main/resources/template/js/processAttr/processAttrAdd.js
浏览文件 @
cb0a6671
...
@@ -65,7 +65,7 @@ layui.config({
...
@@ -65,7 +65,7 @@ layui.config({
},
},
cols
:
[[
cols
:
[[
{
type
:
'
checkbox
'
,
align
:
'
center
'
},
{
type
:
'
checkbox
'
,
align
:
'
center
'
},
{
field
:
'
attrKey
'
,
title
:
'
属性
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
{
field
:
'
attrKey
'
,
title
:
'
属性
<i class="red">*</i>
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
var
_html
=
`<select lay-filter="tableSelect" lay-search="" id="attrKey
${
d
.
id
}
" cus-id="
${
d
.
id
}
" win-verify="required"><option value="">全部</option>`
;
var
_html
=
`<select lay-filter="tableSelect" lay-search="" id="attrKey
${
d
.
id
}
" cus-id="
${
d
.
id
}
" win-verify="required"><option value="">全部</option>`
;
$
.
each
(
childAttr
,
function
(
i
,
item
)
{
$
.
each
(
childAttr
,
function
(
i
,
item
)
{
if
(
item
.
attrKey
==
d
.
attrKey
)
{
if
(
item
.
attrKey
==
d
.
attrKey
)
{
...
@@ -77,7 +77,11 @@ layui.config({
...
@@ -77,7 +77,11 @@ layui.config({
_html
+=
`</select>`
;
_html
+=
`</select>`
;
return
_html
;
return
_html
;
}},
}},
{
field
:
'
align
'
,
title
:
'
对齐方式
'
,
align
:
'
left
'
,
width
:
120
,
templet
:
function
(
d
)
{
{
field
:
'
name
'
,
title
:
'
名称
'
,
align
:
'
left
'
,
width
:
120
,
templet
:
function
(
d
)
{
return
`<input type="text" id="name
${
d
.
id
}
" placeholder="请填写名称" cus-id="
${
d
.
id
}
" class="layui-input tableInput" `
+
`value="`
+
(
isNull
(
d
.
name
)
?
""
:
d
.
name
)
+
`"/>`
;
}},
{
field
:
'
align
'
,
title
:
'
对齐方式<i class="red">*</i>
'
,
align
:
'
left
'
,
width
:
120
,
templet
:
function
(
d
)
{
var
_html
=
`<select lay-filter="tableSelect" lay-search="" id="align
${
d
.
id
}
" cus-id="
${
d
.
id
}
" win-verify="required"><option value="">全部</option>`
;
var
_html
=
`<select lay-filter="tableSelect" lay-search="" id="align
${
d
.
id
}
" cus-id="
${
d
.
id
}
" win-verify="required"><option value="">全部</option>`
;
$
.
each
(
alignmentData
.
rows
,
function
(
i
,
item
)
{
$
.
each
(
alignmentData
.
rows
,
function
(
i
,
item
)
{
if
(
item
.
id
==
d
.
align
)
{
if
(
item
.
id
==
d
.
align
)
{
...
@@ -89,11 +93,11 @@ layui.config({
...
@@ -89,11 +93,11 @@ layui.config({
_html
+=
`</select>`
;
_html
+=
`</select>`
;
return
_html
;
return
_html
;
}},
}},
{
field
:
'
width
'
,
title
:
'
宽度
'
,
align
:
'
left
'
,
width
:
120
,
templet
:
function
(
d
)
{
{
field
:
'
width
'
,
title
:
'
宽度
<i class="red">*</i>
'
,
align
:
'
left
'
,
width
:
120
,
templet
:
function
(
d
)
{
return
`<input type="text" id="width
${
d
.
id
}
" placeholder="请填写宽度" cus-id="
${
d
.
id
}
" class="layui-input tableInput" win-verify="required|number" `
+
return
`<input type="text" id="width
${
d
.
id
}
" placeholder="请填写宽度" cus-id="
${
d
.
id
}
" class="layui-input tableInput" win-verify="required|number" `
+
`value="`
+
(
isNull
(
d
.
width
)
?
""
:
d
.
width
)
+
`"/>`
;
`value="`
+
(
isNull
(
d
.
width
)
?
""
:
d
.
width
)
+
`"/>`
;
}},
}},
{
field
:
'
templet
'
,
title
:
'
脚本
'
,
align
:
'
left
'
,
width
:
24
0
,
templet
:
function
(
d
)
{
{
field
:
'
templet
'
,
title
:
'
脚本
'
,
align
:
'
left
'
,
width
:
30
0
,
templet
:
function
(
d
)
{
return
`<input type="text" id="templet
${
d
.
id
}
" placeholder="请填写脚本" cus-id="
${
d
.
id
}
" class="layui-input tableInput" `
+
return
`<input type="text" id="templet
${
d
.
id
}
" placeholder="请填写脚本" cus-id="
${
d
.
id
}
" class="layui-input tableInput" `
+
`value="`
+
(
isNull
(
d
.
templet
)
?
""
:
d
.
templet
)
+
`"/>`
;
`value="`
+
(
isNull
(
d
.
templet
)
?
""
:
d
.
templet
)
+
`"/>`
;
}},
}},
...
@@ -138,17 +142,18 @@ layui.config({
...
@@ -138,17 +142,18 @@ layui.config({
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
if
(
$
(
"
#showType
"
).
val
()
==
5
)
{
if
(
$
(
"
#showType
"
).
val
()
==
5
)
{
if
(
table
DataList
.
length
==
0
)
{
if
(
table
.
cache
.
messageTable
.
length
==
0
)
{
winui
.
window
.
msg
(
'
请选择表格属性.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
请选择表格属性.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
}
}
$
.
each
(
table
DataList
,
function
(
i
,
item
)
{
$
.
each
(
table
.
cache
.
messageTable
,
function
(
i
,
item
)
{
item
.
id
=
null
;
item
.
id
=
null
;
item
.
className
=
childServiceClassName
;
item
.
className
=
childServiceClassName
;
item
.
parentAttrKey
=
$
(
"
#attrKey
"
).
val
();
item
.
parentAttrKey
=
$
(
"
#attrKey
"
).
val
();
item
.
orderBy
=
i
+
1
;
item
.
orderBy
=
i
+
1
;
item
.
actFlowId
=
parent
.
$
(
"
#actFlowId
"
).
val
();
item
.
actFlowId
=
parent
.
$
(
"
#actFlowId
"
).
val
();
});
});
tableDataList
=
[].
concat
(
table
.
cache
.
messageTable
);
}
else
{
}
else
{
tableDataList
=
new
Array
();
tableDataList
=
new
Array
();
}
}
...
...
base-server/src/main/resources/template/js/processAttr/processAttrEdit.js
浏览文件 @
cb0a6671
...
@@ -44,17 +44,18 @@ layui.config({
...
@@ -44,17 +44,18 @@ layui.config({
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
if
(
$
(
"
#showType
"
).
val
()
==
5
)
{
if
(
$
(
"
#showType
"
).
val
()
==
5
)
{
if
(
table
DataList
.
length
==
0
)
{
if
(
table
.
cache
.
messageTable
.
length
==
0
)
{
winui
.
window
.
msg
(
'
请选择表格属性.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
请选择表格属性.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
}
}
$
.
each
(
table
DataList
,
function
(
i
,
item
)
{
$
.
each
(
table
.
cache
.
messageTable
,
function
(
i
,
item
)
{
item
.
id
=
null
;
item
.
id
=
null
;
item
.
className
=
childServiceClassName
;
item
.
className
=
childServiceClassName
;
item
.
parentAttrKey
=
$
(
"
#attrKey
"
).
val
();
item
.
parentAttrKey
=
$
(
"
#attrKey
"
).
val
();
item
.
orderBy
=
i
+
1
;
item
.
orderBy
=
i
+
1
;
item
.
actFlowId
=
parent
.
$
(
"
#actFlowId
"
).
val
();
item
.
actFlowId
=
parent
.
$
(
"
#actFlowId
"
).
val
();
});
});
tableDataList
=
[].
concat
(
table
.
cache
.
messageTable
);
}
else
{
}
else
{
tableDataList
=
new
Array
();
tableDataList
=
new
Array
();
}
}
...
@@ -119,7 +120,7 @@ layui.config({
...
@@ -119,7 +120,7 @@ layui.config({
},
},
cols
:
[[
cols
:
[[
{
type
:
'
checkbox
'
,
align
:
'
center
'
},
{
type
:
'
checkbox
'
,
align
:
'
center
'
},
{
field
:
'
attrKey
'
,
title
:
'
属性
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
{
field
:
'
attrKey
'
,
title
:
'
属性
<i class="red">*</i>
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
var
_html
=
`<select lay-filter="tableSelect" lay-search="" id="attrKey
${
d
.
id
}
" cus-id="
${
d
.
id
}
" win-verify="required"><option value="">全部</option>`
;
var
_html
=
`<select lay-filter="tableSelect" lay-search="" id="attrKey
${
d
.
id
}
" cus-id="
${
d
.
id
}
" win-verify="required"><option value="">全部</option>`
;
$
.
each
(
childAttr
,
function
(
i
,
item
)
{
$
.
each
(
childAttr
,
function
(
i
,
item
)
{
if
(
item
.
attrKey
==
d
.
attrKey
)
{
if
(
item
.
attrKey
==
d
.
attrKey
)
{
...
@@ -131,7 +132,11 @@ layui.config({
...
@@ -131,7 +132,11 @@ layui.config({
_html
+=
`</select>`
;
_html
+=
`</select>`
;
return
_html
;
return
_html
;
}},
}},
{
field
:
'
align
'
,
title
:
'
对齐方式
'
,
align
:
'
left
'
,
width
:
120
,
templet
:
function
(
d
)
{
{
field
:
'
name
'
,
title
:
'
名称
'
,
align
:
'
left
'
,
width
:
120
,
templet
:
function
(
d
)
{
return
`<input type="text" id="name
${
d
.
id
}
" placeholder="请填写名称" cus-id="
${
d
.
id
}
" class="layui-input tableInput" `
+
`value="`
+
(
isNull
(
d
.
name
)
?
""
:
d
.
name
)
+
`"/>`
;
}},
{
field
:
'
align
'
,
title
:
'
对齐方式<i class="red">*</i>
'
,
align
:
'
left
'
,
width
:
120
,
templet
:
function
(
d
)
{
var
_html
=
`<select lay-filter="tableSelect" lay-search="" id="align
${
d
.
id
}
" cus-id="
${
d
.
id
}
" win-verify="required"><option value="">全部</option>`
;
var
_html
=
`<select lay-filter="tableSelect" lay-search="" id="align
${
d
.
id
}
" cus-id="
${
d
.
id
}
" win-verify="required"><option value="">全部</option>`
;
$
.
each
(
alignmentData
.
rows
,
function
(
i
,
item
)
{
$
.
each
(
alignmentData
.
rows
,
function
(
i
,
item
)
{
if
(
item
.
id
==
d
.
align
)
{
if
(
item
.
id
==
d
.
align
)
{
...
@@ -143,11 +148,11 @@ layui.config({
...
@@ -143,11 +148,11 @@ layui.config({
_html
+=
`</select>`
;
_html
+=
`</select>`
;
return
_html
;
return
_html
;
}},
}},
{
field
:
'
width
'
,
title
:
'
宽度
'
,
align
:
'
left
'
,
width
:
120
,
templet
:
function
(
d
)
{
{
field
:
'
width
'
,
title
:
'
宽度
<i class="red">*</i>
'
,
align
:
'
left
'
,
width
:
120
,
templet
:
function
(
d
)
{
return
`<input type="text" id="width
${
d
.
id
}
" placeholder="请填写宽度" cus-id="
${
d
.
id
}
" class="layui-input tableInput" win-verify="required|number" `
+
return
`<input type="text" id="width
${
d
.
id
}
" placeholder="请填写宽度" cus-id="
${
d
.
id
}
" class="layui-input tableInput" win-verify="required|number" `
+
`value="`
+
(
isNull
(
d
.
width
)
?
""
:
d
.
width
)
+
`"/>`
;
`value="`
+
(
isNull
(
d
.
width
)
?
""
:
d
.
width
)
+
`"/>`
;
}},
}},
{
field
:
'
templet
'
,
title
:
'
脚本
'
,
align
:
'
left
'
,
width
:
24
0
,
templet
:
function
(
d
)
{
{
field
:
'
templet
'
,
title
:
'
脚本
'
,
align
:
'
left
'
,
width
:
30
0
,
templet
:
function
(
d
)
{
return
`<input type="text" id="templet
${
d
.
id
}
" placeholder="请填写脚本" cus-id="
${
d
.
id
}
" class="layui-input tableInput" `
+
return
`<input type="text" id="templet
${
d
.
id
}
" placeholder="请填写脚本" cus-id="
${
d
.
id
}
" class="layui-input tableInput" `
+
`value='`
+
(
isNull
(
d
.
templet
)
?
""
:
d
.
templet
)
+
`'/>`
;
`value='`
+
(
isNull
(
d
.
templet
)
?
""
:
d
.
templet
)
+
`'/>`
;
}},
}},
...
...
web/src/main/resources/template/assets/lib/winui/css/winui.css
浏览文件 @
cb0a6671
...
@@ -474,7 +474,6 @@ body .layer-ext-winconfirm .layui-layer-content {
...
@@ -474,7 +474,6 @@ body .layer-ext-winconfirm .layui-layer-content {
.red
{
.red
{
color
:
#fb5553
;
color
:
#fb5553
;
font-size
:
16px
;
font-size
:
16px
;
font-family
:
fangsong
;
}
}
.yl
{
.yl
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录