Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
83bb03e0
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1172
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看板
提交
83bb03e0
编写于
6月 06, 2022
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
报表模块----echarts模型配置新增分类属性
上级
41a82f5a
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
79 addition
and
44 deletion
+79
-44
report/src/main/resources/template/js/reportImportModel/reportImportModelAdd.js
...ces/template/js/reportImportModel/reportImportModelAdd.js
+5
-1
report/src/main/resources/template/js/reportImportModel/reportImportModelEdit.js
...es/template/js/reportImportModel/reportImportModelEdit.js
+5
-0
report/src/main/resources/template/js/reportImportModel/reportImportModelList.js
...es/template/js/reportImportModel/reportImportModelList.js
+7
-5
report/src/main/resources/template/js/reportModelType/reportModelTypeAdd.js
...sources/template/js/reportModelType/reportModelTypeAdd.js
+1
-13
report/src/main/resources/template/js/reportModelType/reportModelTypeEdit.js
...ources/template/js/reportModelType/reportModelTypeEdit.js
+2
-14
report/src/main/resources/template/tpl/reportImportModel/reportImportModelAdd.html
.../template/tpl/reportImportModel/reportImportModelAdd.html
+5
-2
report/src/main/resources/template/tpl/reportImportModel/reportImportModelEdit.html
...template/tpl/reportImportModel/reportImportModelEdit.html
+5
-2
report/src/main/resources/template/tpl/reportImportModel/reportImportModelList.html
...template/tpl/reportImportModel/reportImportModelList.html
+2
-2
web/src/main/resources/template/assets/lib/layui/customer/reportModelTypeUtil.js
...template/assets/lib/layui/customer/reportModelTypeUtil.js
+47
-5
未找到文件。
report/src/main/resources/template/js/reportImportModel/reportImportModelAdd.js
浏览文件 @
83bb03e0
...
...
@@ -10,13 +10,17 @@ layui.config({
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
reportModelTypeUtil
.
showModelTypeOperator
(
form
,
"
typeBox
"
,
null
,
null
);
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
fileName
:
$
(
"
#fileName
"
).
val
(),
modelId
:
$
(
"
#modelId
"
).
val
()
modelId
:
$
(
"
#modelId
"
).
val
(),
firstTypeId
:
$
(
"
#firstTypeId
"
).
val
(),
secondTypeId
:
$
(
"
#secondTypeId
"
).
val
(),
};
AjaxPostUtil
.
request
({
url
:
reportBasePath
+
"
reportimportmodel002
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
...
...
report/src/main/resources/template/js/reportImportModel/reportImportModelEdit.js
浏览文件 @
83bb03e0
...
...
@@ -20,6 +20,9 @@ layui.config({
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
j
){
reportModelTypeUtil
.
showModelTypeOperator
(
form
,
"
typeBox
"
,
j
.
bean
.
firstTypeId
,
j
.
bean
.
secondTypeId
);
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
...
...
@@ -27,6 +30,8 @@ layui.config({
var
params
=
{
fileName
:
$
(
"
#fileName
"
).
val
(),
modelId
:
$
(
"
#modelId
"
).
val
(),
firstTypeId
:
$
(
"
#firstTypeId
"
).
val
(),
secondTypeId
:
$
(
"
#secondTypeId
"
).
val
(),
id
:
parent
.
rowId
};
AjaxPostUtil
.
request
({
url
:
reportBasePath
+
"
reportimportmodel004
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
PUT
"
,
callback
:
function
(
json
){
...
...
report/src/main/resources/template/js/reportImportModel/reportImportModelList.js
浏览文件 @
83bb03e0
...
...
@@ -26,12 +26,14 @@ layui.config({
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
fileName
'
,
title
:
'
文件
名称
'
,
align
:
'
left
'
,
width
:
250
},
{
field
:
'
fileName
'
,
title
:
'
Echarts
名称
'
,
align
:
'
left
'
,
width
:
250
},
{
field
:
'
modelId
'
,
title
:
'
模型ID
'
,
align
:
'
left
'
,
width
:
250
},
{
field
:
'
createName
'
,
title
:
'
创建人
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
createTime
'
,
title
:
'
创建时间
'
,
align
:
'
center
'
,
width
:
140
},
{
field
:
'
lastUpdateName
'
,
title
:
'
最后修改人
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
lastUpdateTime
'
,
title
:
'
最后修改时间
'
,
align
:
'
center
'
,
width
:
140
},
{
field
:
'
firstTypeName
'
,
title
:
'
一级分类
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
secondTypeName
'
,
title
:
'
二级分类
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
width
:
120
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
field
:
'
lastUpdateName
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
{
field
:
'
lastUpdateTime
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
200
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(){
...
...
report/src/main/resources/template/js/reportModelType/reportModelTypeAdd.js
浏览文件 @
83bb03e0
...
...
@@ -10,19 +10,7 @@ layui.config({
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
showGrid
({
id
:
"
parentId
"
,
url
:
reportBasePath
+
"
reportmodeltype006
"
,
params
:
{
"
parentId
"
:
0
},
pagination
:
false
,
method
:
"
GET
"
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
json
){
form
.
render
(
'
select
'
);
}
});
reportModelTypeUtil
.
loadModelType
(
"
parentId
"
,
getFileContent
(
'
tpl/template/select-option.tpl
'
),
"
0
"
,
form
);
matchingLanguage
();
form
.
render
();
...
...
report/src/main/resources/template/js/reportModelType/reportModelTypeEdit.js
浏览文件 @
83bb03e0
...
...
@@ -21,20 +21,8 @@ layui.config({
},
ajaxSendAfter
:
function
(
j
){
showGrid
({
id
:
"
parentId
"
,
url
:
reportBasePath
+
"
reportmodeltype006
"
,
params
:
{
"
parentId
"
:
0
},
pagination
:
false
,
method
:
"
GET
"
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
json
){
$
(
"
#parentId
"
).
val
(
j
.
bean
.
parentId
);
form
.
render
(
'
select
'
);
}
});
reportModelTypeUtil
.
loadModelType
(
"
parentId
"
,
getFileContent
(
'
tpl/template/select-option.tpl
'
),
"
0
"
,
form
);
$
(
"
#parentId
"
).
val
(
j
.
bean
.
parentId
);
matchingLanguage
();
form
.
render
();
...
...
report/src/main/resources/template/tpl/reportImportModel/reportImportModelAdd.html
浏览文件 @
83bb03e0
...
...
@@ -13,9 +13,9 @@
<span
class=
"hr-title"
>
基础信息
</span><hr>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
文件
名称
<i
class=
"red"
>
*
</i></label>
<label
class=
"layui-form-label"
>
Echarts
名称
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"fileName"
name=
"fileName"
win-verify=
"required"
placeholder=
"请输入
文件
名称"
class=
"layui-input"
maxlength=
"50"
/>
<input
type=
"text"
id=
"fileName"
name=
"fileName"
win-verify=
"required"
placeholder=
"请输入
Echarts
名称"
class=
"layui-input"
maxlength=
"50"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
...
...
@@ -24,6 +24,9 @@
<input
type=
"text"
id=
"modelId"
name=
"modelId"
win-verify=
"required"
placeholder=
"请输入模型ID"
class=
"layui-input"
maxlength=
"100"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
id=
"typeBox"
>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block"
>
...
...
report/src/main/resources/template/tpl/reportImportModel/reportImportModelEdit.html
浏览文件 @
83bb03e0
...
...
@@ -19,9 +19,9 @@
<
span
class
=
"
hr-title
"
>
基础信息
<
/span><hr
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
文件
名称
<
i
class
=
"
red
"
>*<
/i></
label
>
<
label
class
=
"
layui-form-label
"
>
Echarts
名称
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
fileName
"
name
=
"
fileName
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入
文件
名称
"
class
=
"
layui-input
"
maxlength
=
"
50
"
value
=
"
{{fileName}}
"
/>
<
input
type
=
"
text
"
id
=
"
fileName
"
name
=
"
fileName
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入
Echarts
名称
"
class
=
"
layui-input
"
maxlength
=
"
50
"
value
=
"
{{fileName}}
"
/>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
...
...
@@ -29,6 +29,9 @@
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
modelId
"
name
=
"
modelId
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入模型ID
"
class
=
"
layui-input
"
maxlength
=
"
100
"
value
=
"
{{modelId}}
"
/>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
id
=
"
typeBox
"
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
div
class
=
"
layui-input-block
"
>
...
...
report/src/main/resources/template/tpl/reportImportModel/reportImportModelList.html
浏览文件 @
83bb03e0
...
...
@@ -11,9 +11,9 @@
<form
class=
"layui-form layui-form-pane"
action=
""
autocomplete=
"off"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
文件
名称
</label>
<label
class=
"layui-form-label"
>
Echarts
名称
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"fileName"
name=
"fileName"
placeholder=
"请输入
文件
名称"
class=
"layui-input"
/>
<input
type=
"text"
id=
"fileName"
name=
"fileName"
placeholder=
"请输入
Echarts
名称"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
模型ID
</label>
<div
class=
"layui-input-inline"
>
...
...
web/src/main/resources/template/assets/lib/layui/customer/reportModelTypeUtil.js
浏览文件 @
83bb03e0
...
...
@@ -4,7 +4,7 @@ var reportModelTypeUtil = {
modelTypeChooseHtml
:
'
<div class="layui-form-item layui-col-xs6">
\n
'
+
'
<label class="layui-form-label">一级分类<i class="red">*</i></label>
\n
'
+
'
<div class="layui-input-block">
\n
'
+
'
<select id="firstTypeId" lay-filter="firstTypeId" lay-search="">
\n
'
+
'
<select id="firstTypeId" lay-filter="firstTypeId" lay-search=""
win-verify="required"
>
\n
'
+
'
<option value="">请选择</option>
\n
'
+
'
</select>
\n
'
+
'
</div>
\n
'
+
...
...
@@ -12,22 +12,64 @@ var reportModelTypeUtil = {
'
<div class="layui-form-item layui-col-xs6">
\n
'
+
'
<label class="layui-form-label">二级分类<i class="red">*</i></label>
\n
'
+
'
<div class="layui-input-block">
\n
'
+
'
<select id="secondTypeId" lay-filter="secondTypeId" lay-search="">
\n
'
+
'
<select id="secondTypeId" lay-filter="secondTypeId" lay-search=""
win-verify="required"
>
\n
'
+
'
<option value="">请选择</option>
\n
'
+
'
</select>
\n
'
+
'
</div>
\n
'
+
'
</div>
'
,
/**
*
* 加载模型分类选择的html
*
* @param form form对象
* @param showTemplate 数据的模板
* @param boxId 加载的目标dom的id
* @param firstTypeId 一级分类id
* @param secondTypeId 二级分类id
*/
showModelTypeOperator
:
function
(
form
,
showTemplate
,
boxId
)
{
showModelTypeOperator
:
function
(
form
,
boxId
,
firstTypeId
,
secondTypeId
)
{
$
(
"
#
"
+
boxId
).
html
(
reportModelTypeUtil
.
modelTypeChooseHtml
);
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
// 加载一级模型分类
reportModelTypeUtil
.
loadModelType
(
"
firstTypeId
"
,
selOption
,
"
0
"
,
form
);
if
(
!
isNull
(
firstTypeId
))
{
$
(
"
#firstTypeId
"
).
val
(
firstTypeId
);
// 加载二级模型分类
reportModelTypeUtil
.
loadModelType
(
"
secondTypeId
"
,
selOption
,
firstTypeId
,
form
);
}
if
(
!
isNull
(
secondTypeId
))
{
$
(
"
#secondTypeId
"
).
val
(
secondTypeId
);
}
form
.
render
(
'
select
'
);
form
.
on
(
'
select(firstTypeId)
'
,
function
(
data
)
{
var
value
=
data
.
value
;
// 加载二级模型分类
reportModelTypeUtil
.
loadModelType
(
"
secondTypeId
"
,
selOption
,
value
,
form
);
});
},
/**
* 获取模型分类信息
*
* @param id 展示对象id
* @param template 模板
* @param parentId 父id
* @param form form对象
*/
loadModelType
:
function
(
id
,
template
,
parentId
,
form
)
{
showGrid
({
id
:
id
,
url
:
reportBasePath
+
"
reportmodeltype006
"
,
params
:
{
"
parentId
"
:
parentId
},
pagination
:
false
,
method
:
"
GET
"
,
template
:
template
,
ajaxSendLoadBefore
:
function
(
hdb
)
{
},
ajaxSendAfter
:
function
(
json
)
{
form
.
render
(
'
select
'
);
}
});
}
};
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录