Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
3fbe28d2
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1433
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看板
提交
3fbe28d2
编写于
11月 06, 2018
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加事件
上级
98b740e0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
36 addition
and
28 deletion
+36
-28
skyeye-web/src/main/webapp/js/codemodelgroup/addcontenttohtmlorjs.js
...src/main/webapp/js/codemodelgroup/addcontenttohtmlorjs.js
+33
-25
skyeye-web/src/main/webapp/tpl/codemodelgroup/addcontenttohtmlorjs.html
.../main/webapp/tpl/codemodelgroup/addcontenttohtmlorjs.html
+2
-2
skyeye-web/src/main/webapp/tpl/template/checkbox-limit.tpl
skyeye-web/src/main/webapp/tpl/template/checkbox-limit.tpl
+1
-1
未找到文件。
skyeye-web/src/main/webapp/js/codemodelgroup/addcontenttohtmlorjs.js
浏览文件 @
3fbe28d2
...
...
@@ -15,6 +15,37 @@ layui.config({
showDataUseHandlebars
(
"
tableColumn
"
,
getFileContent
(
'
tpl/template/table-column.tpl
'
),
parent
.
tableColumn
);
form
.
render
(
'
select
'
);
form
.
on
(
'
select(tableColumn)
'
,
function
(
data
){
console
.
log
(
1
);
});
form
.
on
(
'
select(showModel)
'
,
function
(
data
){
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
dsform007
"
,
params
:{
rowId
:
data
.
value
},
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
var
mode
=
returnModel
(
json
.
bean
.
htmlType
);
if
(
!
isNull
(
mode
.
length
))
{
htmlModelEditor
.
setOption
(
'
mode
'
,
mode
);
htmlSuccessEditor
.
setOption
(
'
mode
'
,
mode
);
}
htmlModelEditor
.
setValue
(
json
.
bean
.
htmlContent
);
mode
=
returnModel
(
json
.
bean
.
jsType
);
if
(
!
isNull
(
mode
.
length
))
{
jsModelEditor
.
setOption
(
'
mode
'
,
mode
);
jsSuccessEditor
.
setOption
(
'
mode
'
,
mode
);
}
jsModelEditor
.
setValue
(
json
.
bean
.
jsContent
);
}
else
{
top
.
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
}});
});
form
.
on
(
'
checkbox(checkboxLimit)
'
,
function
(
data
){
console
.
log
(
2
);
});
//展现形式
showGrid
({
id
:
"
showModel
"
,
...
...
@@ -25,7 +56,7 @@ layui.config({
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
json
){
form
.
render
(
'
select
'
);
//限制条件
showGrid
({
id
:
"
limitRequire
"
,
...
...
@@ -36,32 +67,9 @@ layui.config({
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
json
){
form
.
render
();
form
.
render
(
'
checkbox
'
);
}
});
form
.
on
(
'
select(selectParent)
'
,
function
(
data
){
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
dsform007
"
,
params
:{
rowId
:
data
.
value
},
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
var
mode
=
returnModel
(
json
.
bean
.
htmlType
);
if
(
!
isNull
(
mode
.
length
))
{
htmlModelEditor
.
setOption
(
'
mode
'
,
mode
);
htmlSuccessEditor
.
setOption
(
'
mode
'
,
mode
);
}
htmlModelEditor
.
setValue
(
json
.
bean
.
htmlContent
);
mode
=
returnModel
(
json
.
bean
.
jsType
);
if
(
!
isNull
(
mode
.
length
))
{
jsModelEditor
.
setOption
(
'
mode
'
,
mode
);
jsSuccessEditor
.
setOption
(
'
mode
'
,
mode
);
}
jsModelEditor
.
setValue
(
json
.
bean
.
jsContent
);
}
else
{
top
.
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
}});
});
}
});
...
...
skyeye-web/src/main/webapp/tpl/codemodelgroup/addcontenttohtmlorjs.html
浏览文件 @
3fbe28d2
...
...
@@ -16,14 +16,14 @@
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
表参数
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<select
id=
"tableColumn"
name=
"tableColumn"
class=
"layui-input"
win-verify=
"required"
>
<select
id=
"tableColumn"
name=
"tableColumn"
class=
"layui-input"
win-verify=
"required"
lay-filter=
"tableColumn"
>
</select>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
展现形式
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<select
id=
"showModel"
name=
"showModel"
class=
"layui-input"
win-verify=
"required"
lay-filter=
"s
electParent
"
>
<select
id=
"showModel"
name=
"showModel"
class=
"layui-input"
win-verify=
"required"
lay-filter=
"s
howModel
"
>
</select>
</div>
</div>
...
...
skyeye-web/src/main/webapp/tpl/template/checkbox-limit.tpl
浏览文件 @
3fbe28d2
{{
#
each
rows
}}
<input
type=
"checkbox"
name=
"limitrequire"
title=
"{
{
requireName
}
}"
formermation=
"{
{
formerRequirement
}
}"
aftermation=
"{
{
afterRequirement
}
}"
>
<input
type=
"checkbox"
name=
"limitrequire"
title=
"{
{
requireName
}
}"
formermation=
"{
{
formerRequirement
}
}"
aftermation=
"{
{
afterRequirement
}
}"
lay-filter=
"checkboxLimit"
/
>
{
{/
each
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录