Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
9db63136
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1195
Star
154
Fork
127
代码
文件
提交
分支
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看板
提交
9db63136
编写于
7月 04, 2024
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
报表设计器修改
上级
21345738
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
85 addition
and
57 deletion
+85
-57
report/src/main/resources/template/assets/report/js/skyeyeReportDesigner.js
...sources/template/assets/report/js/skyeyeReportDesigner.js
+77
-48
report/src/main/resources/template/assets/report/json/skyeyeEditor.json
...n/resources/template/assets/report/json/skyeyeEditor.json
+2
-2
report/src/main/resources/template/js/reportPage/reportPageShow.js
...c/main/resources/template/js/reportPage/reportPageShow.js
+6
-7
未找到文件。
report/src/main/resources/template/assets/report/js/skyeyeReportDesigner.js
浏览文件 @
9db63136
...
...
@@ -10,8 +10,61 @@ var inPageTable = {};
// 已经添加上的文字模型
var
inPageWordMation
=
{};
// 已经添加上的文字模型
var
inPageImgMation
=
{};
// 支持的编辑器类型
var
editorType
=
{};
// 图表自定义属性
var
echartsCustomOptions
=
{
"
custom.dataBaseMation
"
:
{
"
value
"
:
""
,
"
edit
"
:
1
,
"
remark
"
:
"
数据来源
"
,
"
name
"
:
"
数据来源
"
,
"
editorType
"
:
"
99
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
数据源
"
},
"
custom.move.x
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
鼠标拖动距离左侧的像素
"
,
"
name
"
:
"
X坐标
"
,
"
editorType
"
:
"
98
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
坐标
"
},
"
custom.move.y
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
鼠标拖动距离顶部的像素
"
,
"
name
"
:
"
Y坐标
"
,
"
editorType
"
:
"
98
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
坐标
"
},
"
custom.box.background
"
:
{
"
value
"
:
"
rgba(255, 255, 255, 1)
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子背景
"
,
"
name
"
:
"
盒子背景颜色
"
,
"
editorType
"
:
"
3
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
},
"
custom.box.border-color
"
:
{
"
value
"
:
""
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子边框
"
,
"
name
"
:
"
盒子边框颜色
"
,
"
editorType
"
:
"
3
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
},
"
custom.box.border-width
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子边框宽度
"
,
"
name
"
:
"
边框宽度
"
,
"
editorType
"
:
"
4
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
},
"
custom.box.border-style
"
:
{
"
defaultValue
"
:
"
solid
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子边框样式
"
,
"
name
"
:
"
边框样式
"
,
"
editorType
"
:
"
1
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
,
"
optionalValue
"
:
[{
"
id
"
:
"
solid
"
,
"
name
"
:
"
实线
"
},
{
"
id
"
:
"
dashed
"
,
"
name
"
:
"
虚线
"
}]}
};
// 图表自定义属性
var
tableCustomOptions
=
{
"
custom.dataBaseMation
"
:
{
"
value
"
:
""
,
"
edit
"
:
1
,
"
remark
"
:
"
数据来源
"
,
"
name
"
:
"
数据来源
"
,
"
editorType
"
:
"
99
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
数据源
"
},
"
custom.move.x
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
鼠标拖动距离左侧的像素
"
,
"
name
"
:
"
X坐标
"
,
"
editorType
"
:
"
98
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
坐标
"
},
"
custom.move.y
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
鼠标拖动距离顶部的像素
"
,
"
name
"
:
"
Y坐标
"
,
"
editorType
"
:
"
98
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
坐标
"
},
"
custom.box.background
"
:
{
"
value
"
:
"
rgba(255, 255, 255, 1)
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子背景
"
,
"
name
"
:
"
盒子背景颜色
"
,
"
editorType
"
:
"
3
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
},
"
custom.box.border-color
"
:
{
"
value
"
:
""
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子边框
"
,
"
name
"
:
"
盒子边框颜色
"
,
"
editorType
"
:
"
3
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
},
"
custom.box.border-width
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子边框宽度
"
,
"
name
"
:
"
边框宽度
"
,
"
editorType
"
:
"
4
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
},
"
custom.box.border-style
"
:
{
"
defaultValue
"
:
"
solid
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子边框样式
"
,
"
name
"
:
"
边框样式
"
,
"
editorType
"
:
"
1
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
,
"
optionalValue
"
:
[{
"
id
"
:
"
solid
"
,
"
name
"
:
"
实线
"
},
{
"
id
"
:
"
dashed
"
,
"
name
"
:
"
虚线
"
}]},
"
custom.tableColumn
"
:
{
"
defaultValue
"
:
[],
"
edit
"
:
1
,
"
remark
"
:
"
数据表格的信息
"
,
"
name
"
:
"
表格配置
"
,
"
editorType
"
:
"
101
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
数据源
"
},
"
custom.isPage
"
:
{
"
defaultValue
"
:
"
1
"
,
"
edit
"
:
1
,
"
remark
"
:
"
分页的标识
"
,
"
name
"
:
"
是否分页
"
,
"
editorType
"
:
"
1
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
数据源
"
,
"
optionalValue
"
:
[{
"
id
"
:
1
,
"
name
"
:
"
是
"
},
{
"
id
"
:
0
,
"
name
"
:
"
否
"
}]}
};
// 文字自定义属性
var
wordCustomOptions
=
{
"
custom.dataBaseMation
"
:
{
"
value
"
:
""
,
"
edit
"
:
1
,
"
remark
"
:
"
数据来源
"
,
"
name
"
:
"
数据来源
"
,
"
editorType
"
:
"
99
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
数据源
"
},
"
custom.move.x
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
鼠标拖动距离左侧的像素
"
,
"
name
"
:
"
X坐标
"
,
"
editorType
"
:
"
98
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
坐标
"
},
"
custom.move.y
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
鼠标拖动距离顶部的像素
"
,
"
name
"
:
"
Y坐标
"
,
"
editorType
"
:
"
98
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
坐标
"
},
"
custom.box.background
"
:
{
"
value
"
:
"
rgba(255, 255, 255, 1)
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子背景
"
,
"
name
"
:
"
盒子背景颜色
"
,
"
editorType
"
:
"
3
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
},
"
custom.box.border-color
"
:
{
"
value
"
:
""
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子边框
"
,
"
name
"
:
"
盒子边框颜色
"
,
"
editorType
"
:
"
3
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
},
"
custom.box.border-width
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子边框宽度
"
,
"
name
"
:
"
边框宽度
"
,
"
editorType
"
:
"
4
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
},
"
custom.box.border-style
"
:
{
"
defaultValue
"
:
"
solid
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子边框样式
"
,
"
name
"
:
"
边框样式
"
,
"
editorType
"
:
"
1
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
,
"
optionalValue
"
:
[{
"
id
"
:
"
solid
"
,
"
name
"
:
"
实线
"
},
{
"
id
"
:
"
dashed
"
,
"
name
"
:
"
虚线
"
}]}
};
// 小图片自定义属性
var
imgCustomOptions
=
{
"
custom.move.x
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
鼠标拖动距离左侧的像素
"
,
"
name
"
:
"
X坐标
"
,
"
editorType
"
:
"
98
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
坐标
"
},
"
custom.move.y
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
鼠标拖动距离顶部的像素
"
,
"
name
"
:
"
Y坐标
"
,
"
editorType
"
:
"
98
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
坐标
"
},
"
custom.box.border-color
"
:
{
"
value
"
:
""
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子边框颜色
"
,
"
name
"
:
"
边框颜色
"
,
"
editorType
"
:
"
3
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
},
"
custom.box.border-width
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子边框宽度
"
,
"
name
"
:
"
边框宽度
"
,
"
editorType
"
:
"
4
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
},
"
custom.box.border-style
"
:
{
"
defaultValue
"
:
"
solid
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子边框样式
"
,
"
name
"
:
"
边框样式
"
,
"
editorType
"
:
"
1
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
,
"
optionalValue
"
:
[{
"
id
"
:
"
solid
"
,
"
name
"
:
"
实线
"
},
{
"
id
"
:
"
dashed
"
,
"
name
"
:
"
虚线
"
}]}
};
layui
.
define
([
"
jquery
"
,
'
form
'
,
'
element
'
],
function
(
exports
)
{
var
jQuery
=
layui
.
jquery
;
form
=
layui
.
form
;
...
...
@@ -49,43 +102,6 @@ layui.define(["jquery", 'form', 'element'], function(exports) {
right_bottom
:
true
,
};
// 图表自定义属性
var
echartsCustomOptions
=
{
"
custom.dataBaseMation
"
:
{
"
value
"
:
""
,
"
edit
"
:
1
,
"
remark
"
:
"
数据来源
"
,
"
name
"
:
"
数据来源
"
,
"
editorType
"
:
"
99
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
数据源
"
},
"
custom.move.x
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
鼠标拖动距离左侧的像素
"
,
"
name
"
:
"
X坐标
"
,
"
editorType
"
:
"
98
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
坐标
"
},
"
custom.move.y
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
鼠标拖动距离顶部的像素
"
,
"
name
"
:
"
Y坐标
"
,
"
editorType
"
:
"
98
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
坐标
"
},
"
custom.box.background
"
:
{
"
value
"
:
"
rgba(255, 255, 255, 1)
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子背景
"
,
"
name
"
:
"
盒子背景颜色
"
,
"
editorType
"
:
"
3
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
},
"
custom.box.border-color
"
:
{
"
value
"
:
"
rgba(255, 255, 255, 1)
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子边框
"
,
"
name
"
:
"
盒子边框颜色
"
,
"
editorType
"
:
"
3
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
}
};
// 图表自定义属性
var
tableCustomOptions
=
{
"
custom.dataBaseMation
"
:
{
"
value
"
:
""
,
"
edit
"
:
1
,
"
remark
"
:
"
数据来源
"
,
"
name
"
:
"
数据来源
"
,
"
editorType
"
:
"
99
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
数据源
"
},
"
custom.move.x
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
鼠标拖动距离左侧的像素
"
,
"
name
"
:
"
X坐标
"
,
"
editorType
"
:
"
98
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
坐标
"
},
"
custom.move.y
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
鼠标拖动距离顶部的像素
"
,
"
name
"
:
"
Y坐标
"
,
"
editorType
"
:
"
98
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
坐标
"
},
"
custom.box.background
"
:
{
"
value
"
:
"
rgba(255, 255, 255, 1)
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子背景
"
,
"
name
"
:
"
盒子背景颜色
"
,
"
editorType
"
:
"
3
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
},
"
custom.box.border-color
"
:
{
"
value
"
:
"
rgba(255, 255, 255, 1)
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子边框
"
,
"
name
"
:
"
盒子边框颜色
"
,
"
editorType
"
:
"
3
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
},
"
custom.tableColumn
"
:
{
"
defaultValue
"
:
[],
"
edit
"
:
1
,
"
remark
"
:
"
数据表格的信息
"
,
"
name
"
:
"
表格配置
"
,
"
editorType
"
:
"
101
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
数据源
"
},
"
custom.isPage
"
:
{
"
defaultValue
"
:
"
1
"
,
"
edit
"
:
1
,
"
remark
"
:
"
分页的标识
"
,
"
name
"
:
"
是否分页
"
,
"
editorType
"
:
"
1
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
数据源
"
,
"
optionalValue
"
:
[{
"
id
"
:
1
,
"
name
"
:
"
是
"
},
{
"
id
"
:
0
,
"
name
"
:
"
否
"
}]}
};
// 文字自定义属性
var
wordCustomOptions
=
{
"
custom.dataBaseMation
"
:
{
"
value
"
:
""
,
"
edit
"
:
1
,
"
remark
"
:
"
数据来源
"
,
"
name
"
:
"
数据来源
"
,
"
editorType
"
:
"
99
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
数据源
"
},
"
custom.move.x
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
鼠标拖动距离左侧的像素
"
,
"
name
"
:
"
X坐标
"
,
"
editorType
"
:
"
98
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
坐标
"
},
"
custom.move.y
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
鼠标拖动距离顶部的像素
"
,
"
name
"
:
"
Y坐标
"
,
"
editorType
"
:
"
98
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
坐标
"
},
"
custom.box.background
"
:
{
"
value
"
:
"
rgba(255, 255, 255, 1)
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子背景
"
,
"
name
"
:
"
盒子背景颜色
"
,
"
editorType
"
:
"
3
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
},
"
custom.box.border-color
"
:
{
"
value
"
:
"
rgba(255, 255, 255, 1)
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子边框
"
,
"
name
"
:
"
盒子边框颜色
"
,
"
editorType
"
:
"
3
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
}
};
// 小图片自定义属性
var
imgCustomOptions
=
{
"
custom.move.x
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
鼠标拖动距离左侧的像素
"
,
"
name
"
:
"
X坐标
"
,
"
editorType
"
:
"
98
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
坐标
"
},
"
custom.move.y
"
:
{
"
value
"
:
"
0
"
,
"
edit
"
:
1
,
"
remark
"
:
"
鼠标拖动距离顶部的像素
"
,
"
name
"
:
"
Y坐标
"
,
"
editorType
"
:
"
98
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
坐标
"
},
"
custom.box.border-color
"
:
{
"
value
"
:
"
rgba(255, 255, 255, 1)
"
,
"
edit
"
:
1
,
"
remark
"
:
"
盒子边框
"
,
"
name
"
:
"
盒子边框颜色
"
,
"
editorType
"
:
"
3
"
,
"
editorChooseValue
"
:
""
,
"
typeName
"
:
"
盒子
"
}
};
var
f
=
{
box
:
function
()
{
var
width
=
$
(
window
).
width
();
...
...
@@ -452,7 +468,7 @@ layui.define(["jquery", 'form', 'element'], function(exports) {
var
boxId
=
modelId
+
getRandomValueToString
();
// 获取图片模型id
var
imgId
=
f
.
getImgBox
(
boxId
,
modelId
,
imgStyleMation
);
inPage
Word
Mation
[
boxId
]
=
$
.
extend
(
true
,
{},
imgStyleMation
);
inPage
Img
Mation
[
boxId
]
=
$
.
extend
(
true
,
{},
imgStyleMation
);
return
boxId
;
},
...
...
@@ -878,7 +894,7 @@ layui.define(["jquery", 'form', 'element'], function(exports) {
$
.
each
(
skyeyeReportContent
.
find
(
"
.kuang
"
),
function
(
i
,
item
)
{
if
(
$
(
item
).
find
(
"
.img-box
"
).
length
>
0
)
{
var
boxId
=
$
(
item
).
data
(
"
boxId
"
);
var
imgMation
=
inPage
Word
Mation
[
boxId
];
var
imgMation
=
inPage
Img
Mation
[
boxId
];
imgMationList
.
push
({
modelId
:
$
(
item
).
data
(
"
modelId
"
),
attrMation
:
imgMation
,
...
...
@@ -1143,8 +1159,8 @@ layui.define(["jquery", 'form', 'element'], function(exports) {
width
:
multiplication
(
item
.
width
,
widthScale
),
height
:
multiplication
(
item
.
height
,
heightScale
)
});
setBoxAttrMation
(
"
custom.box.background
"
,
boxId
,
item
.
attrMation
.
attr
[
"
custom.box.background
"
].
defaultValue
);
set
BoxAttrMation
(
"
custom.box.border-color
"
,
boxId
,
item
.
attrMation
.
attr
[
"
custom.box.border-color
"
].
defaultValue
);
// 设置custom.box开头的属性值
set
CustomBoxAttr
(
echartsCustomOptions
,
boxId
,
item
);
});
}
},
...
...
@@ -1164,8 +1180,8 @@ layui.define(["jquery", 'form', 'element'], function(exports) {
width
:
multiplication
(
item
.
width
,
widthScale
),
height
:
multiplication
(
item
.
height
,
heightScale
)
});
setBoxAttrMation
(
"
custom.box.background
"
,
boxId
,
item
.
attrMation
.
attr
[
"
custom.box.background
"
].
defaultValue
);
set
BoxAttrMation
(
"
custom.box.border-color
"
,
boxId
,
item
.
attrMation
.
attr
[
"
custom.box.border-color
"
].
defaultValue
);
// 设置custom.box开头的属性值
set
CustomBoxAttr
(
tableCustomOptions
,
boxId
,
item
);
});
}
},
...
...
@@ -1185,8 +1201,8 @@ layui.define(["jquery", 'form', 'element'], function(exports) {
width
:
multiplication
(
item
.
width
,
widthScale
),
height
:
multiplication
(
item
.
height
,
heightScale
)
});
setBoxAttrMation
(
"
custom.box.background
"
,
boxId
,
item
.
attrMation
.
attr
[
"
custom.box.background
"
].
defaultValue
);
set
BoxAttrMation
(
"
custom.box.border-color
"
,
boxId
,
item
.
attrMation
.
attr
[
"
custom.box.border-color
"
].
defaultValue
);
// 设置custom.box开头的属性值
set
CustomBoxAttr
(
wordCustomOptions
,
boxId
,
item
);
});
}
},
...
...
@@ -1206,7 +1222,8 @@ layui.define(["jquery", 'form', 'element'], function(exports) {
width
:
multiplication
(
item
.
width
,
widthScale
),
height
:
multiplication
(
item
.
height
,
heightScale
)
});
setBoxAttrMation
(
"
custom.box.border-color
"
,
boxId
,
item
.
attrMation
.
attr
[
"
custom.box.border-color
"
].
defaultValue
);
// 设置custom.box开头的属性值
setCustomBoxAttr
(
imgCustomOptions
,
boxId
,
item
);
});
}
},
...
...
@@ -1336,7 +1353,7 @@ function resetWordModel(boxId) {
}
function
resetImgModel
(
boxId
)
{
var
imgMation
=
inPage
Word
Mation
[
boxId
];
var
imgMation
=
inPage
Img
Mation
[
boxId
];
}
function
resetTableModel
(
boxId
)
{
...
...
@@ -1358,7 +1375,7 @@ function getDataChooseMation(boxId) {
}
}
if
(
isNull
(
_object
))
{
_object
=
inPage
Word
Mation
[
boxId
];
_object
=
inPage
Img
Mation
[
boxId
];
if
(
!
isNull
(
_object
))
{
_object
.
menuType
=
'
imgModel
'
;
}
...
...
@@ -1372,6 +1389,18 @@ function getDataChooseMation(boxId) {
return
_object
;
}
function
setCustomBoxAttr
(
customOptions
,
boxId
,
item
)
{
$
.
each
(
customOptions
,
function
(
key
,
value
)
{
if
(
key
.
indexOf
(
"
custom.box
"
)
>=
0
)
{
if
(
!
isNull
(
item
.
attrMation
.
attr
[
key
]))
{
setBoxAttrMation
(
key
,
boxId
,
item
.
attrMation
.
attr
[
key
].
defaultValue
);
}
else
{
setBoxAttrMation
(
key
,
boxId
,
""
);
}
}
});
}
function
setBoxAttrMation
(
modelKey
,
boxId
,
value
)
{
if
(
modelKey
.
indexOf
(
"
custom.box
"
)
>=
0
)
{
// 设置图表盒子属性
...
...
report/src/main/resources/template/assets/report/json/skyeyeEditor.json
浏览文件 @
9db63136
...
...
@@ -3,8 +3,8 @@
"key"
:
"radio"
,
"name"
:
"单选框"
,
"html"
:
"<div class='layui-form-item {{defaultWidth}}' controlType='radio' modelKey='{{modelKey}}' boxId='{{boxId}}'><label class='layui-form-label'><i class='layui-icon layui-icon-tips' lay-tips='{{remark}}'></i>{{labelContent}}:</label><div class='layui-input-block winui-radio'>{{{showValueTemplate}}}</div></div>"
,
"js"
:
"$('input:radio[name=
{{boxId}}{{indexNumber}}][value={{context}}]').attr('checked', true);form.on('radio(
{{boxId}}{{indexNumber}})', function(data) {var value = data.value; dataValueChange(value, $(this));});"
,
"showValueTemplate"
:
"{{#each rows}}<input type='radio' name='
{{boxId}}{{indexNumber}}' title='{{name}}' rowId='{{id}}' value='{{id}}' lay-filter='
{{boxId}}{{indexNumber}}' />{{/each}}"
"js"
:
"$('input:radio[name=
ra{{boxId}}{{indexNumber}}][value={{context}}]').attr('checked', true);form.on('radio(ra
{{boxId}}{{indexNumber}})', function(data) {var value = data.value; dataValueChange(value, $(this));});"
,
"showValueTemplate"
:
"{{#each rows}}<input type='radio' name='
ra{{boxId}}{{indexNumber}}' title='{{name}}' rowId='{{id}}' value='{{id}}' lay-filter='ra
{{boxId}}{{indexNumber}}' />{{/each}}"
},
"2"
:
{
"key"
:
"input"
,
...
...
report/src/main/resources/template/js/reportPage/reportPageShow.js
浏览文件 @
9db63136
...
...
@@ -12,7 +12,6 @@ layui.config({
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
;
id
=
GetUrlParam
(
"
id
"
);
var
content
=
$
(
document
.
body
);
...
...
@@ -53,8 +52,8 @@ layui.config({
width
:
multiplication
(
item
.
width
,
widthScale
),
height
:
multiplication
(
item
.
height
,
heightScale
)
});
setBoxAttrMation
(
"
custom.box.background
"
,
boxId
,
item
.
attrMation
.
attr
[
"
custom.box.background
"
].
defaultValue
);
set
BoxAttrMation
(
"
custom.box.border-color
"
,
boxId
,
item
.
attrMation
.
attr
[
"
custom.box.border-color
"
].
defaultValue
);
// 设置custom.box开头的属性值
set
CustomBoxAttr
(
echartsCustomOptions
,
boxId
,
item
);
});
}
}
...
...
@@ -74,8 +73,8 @@ layui.config({
width
:
multiplication
(
item
.
width
,
widthScale
),
height
:
multiplication
(
item
.
height
,
heightScale
)
});
setBoxAttrMation
(
"
custom.box.background
"
,
boxId
,
item
.
attrMation
.
attr
[
"
custom.box.background
"
].
defaultValue
);
set
BoxAttrMation
(
"
custom.box.border-color
"
,
boxId
,
item
.
attrMation
.
attr
[
"
custom.box.border-color
"
].
defaultValue
);
// 设置custom.box开头的属性值
set
CustomBoxAttr
(
wordCustomOptions
,
boxId
,
item
);
});
}
}
...
...
@@ -98,8 +97,8 @@ layui.config({
width
:
multiplication
(
item
.
width
,
widthScale
),
height
:
multiplication
(
item
.
height
,
heightScale
)
});
setBoxAttrMation
(
"
custom.box.background
"
,
boxId
,
item
.
attrMation
.
attr
[
"
custom.box.background
"
].
defaultValue
);
set
BoxAttrMation
(
"
custom.box.border-color
"
,
boxId
,
item
.
attrMation
.
attr
[
"
custom.box.border-color
"
].
defaultValue
);
// 设置custom.box开头的属性值
set
CustomBoxAttr
(
tableCustomOptions
,
boxId
,
item
);
});
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录