Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fuyue82
o2oa
提交
087ce24e
o2oa
项目概览
fuyue82
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
087ce24e
编写于
11月 03, 2020
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
查询里增加了视图
上级
29f3e48c
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
374 addition
and
186 deletion
+374
-186
o2web/source/x_component_process_FormDesigner/Module/Statement/statement.html
...nent_process_FormDesigner/Module/Statement/statement.html
+1
-1
o2web/source/x_component_process_FormDesigner/Module/StatementSelector/StatementSelector.html
...mDesigner/Module/StatementSelector/StatementSelector.html
+16
-5
o2web/source/x_component_process_FormDesigner/Property.js
o2web/source/x_component_process_FormDesigner/Property.js
+3
-0
o2web/source/x_component_query_Query/Statement.js
o2web/source/x_component_query_Query/Statement.js
+7
-3
o2web/source/x_component_query_Query/Viewer.js
o2web/source/x_component_query_Query/Viewer.js
+4
-2
o2web/source/x_component_query_StatementDesigner/$Statement/column.html
..._component_query_StatementDesigner/$Statement/column.html
+1
-1
o2web/source/x_component_query_StatementDesigner/$Statement/view.html
.../x_component_query_StatementDesigner/$Statement/view.html
+1
-1
o2web/source/x_component_query_StatementDesigner/Statement.js
...b/source/x_component_query_StatementDesigner/Statement.js
+5
-4
o2web/source/x_component_query_StatementDesigner/widget/ViewFilter.js
.../x_component_query_StatementDesigner/widget/ViewFilter.js
+336
-169
未找到文件。
o2web/source/x_component_process_FormDesigner/Module/Statement/statement.html
浏览文件 @
087ce24e
...
...
@@ -83,7 +83,7 @@
<div
style=
"background-color: #eeeeee; border-top:1px solid #999999; height: 24px; line-height: 24px; text-align: center; cursor:pointer"
>
过滤
</div>
<div
class=
"MWFStatementFilter"
>
<div
class=
"inputAreaNode_vf"
>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable restrictViewFilterTable_vf"
>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable restrictViewFilterTable_vf"
style=
"table-layout: fixed;"
>
<tr
id=
"text{$.id}pathInputSelectTr"
>
<td
class=
"editTableTitle"
>
选择:
</td>
<td
class=
"editTableValue"
>
...
...
o2web/source/x_component_process_FormDesigner/Module/StatementSelector/StatementSelector.html
浏览文件 @
087ce24e
...
...
@@ -110,23 +110,33 @@
<div
class=
"MWFScriptArea"
name=
"defaultSelectedScript"
title=
"默认选中行脚本"
></div>
</div>
<div
title=
"过滤"
class=
"MWFTab"
>
<div
class=
"MWF
View
Filter"
>
<div
class=
"MWF
Statement
Filter"
>
<div
class=
"inputAreaNode_vf"
>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable restrictViewFilterTable_vf"
>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable restrictViewFilterTable_vf"
style=
"table-layout: fixed;"
>
<tr
id=
"text{$.id}pathInputSelectTr"
>
<td
class=
"editTableTitle"
>
选择:
</td>
<td
class=
"editTableValue"
>
<select
class=
"pathInputSelect_vf"
></select>
<!-- <div style="line-height: 20px;color:#999;">注:选择路径后,需在选择的值前面加上"表别名.",如:o.</div>-->
</td>
</tr>
<tr
style=
"display:none"
>
<td
class=
"editTableTitle"
>
标题:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
class=
"editTableInput titleInput_vf"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
路径:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
class=
"editTableInput pathInput_vf"
/></td>
<td
class=
"editTableValue"
>
<input
type=
"text"
class=
"editTableInput pathInput_vf"
/>
<div
style=
"color: #999"
>
注:路径的写法是"表别名.字段名",如:o.title
</div>
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
数据类型:
</td>
<td
class=
"editTableValue"
><select
class=
"datatypeInput_vf"
>
<option
value=
"textValue"
selected
>
文本
</option>
<option
value=
"numberValue"
>
数字
</option>
<option
value=
"dateTimeValue"
>
日期
</option>
<option
value=
"dateTimeValue"
>
日期
时间
</option>
<option
value=
"booleanValue"
>
布尔
</option>
</select></td>
</tr>
...
...
@@ -139,7 +149,7 @@
</tr>
</table>
<table
id=
"text{$.pid}viewFilterRestrict"
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable"
>
<tr>
<tr
style=
"display:none;"
>
<td
class=
"editTableTitle"
>
逻辑:
</td>
<td
class=
"editTableValue"
><select
class=
"logicInput_vf"
>
<option
selected
value=
"and"
>
并且(and)
</option>
...
...
@@ -184,6 +194,7 @@
<div
style=
"display:none; height: 20px; line-height: 20px; text-align:center; background-color: #eeeeee"
>
自定义过滤数据
</div>
<div
class=
"fieldListAreaNode_vf"
style=
"display:none; min-height: 56px; border-bottom:1px solid #CCCCCC; overflow: hidden;"
></div>
</div>
<div
class=
"MWFScriptArea"
name=
"defaultSelectedScript"
title=
"默认选中行脚本"
></div>
</div>
<div
title=
"事件"
class=
"MWFTab"
>
...
...
o2web/source/x_component_process_FormDesigner/Property.js
浏览文件 @
087ce24e
...
...
@@ -519,12 +519,15 @@ MWF.xApplication.process.FormDesigner.Property = MWF.FCProperty = new Class({
}
},
loadStatementFilter
:
function
(){
debugger
;
var
nodes
=
this
.
propertyContent
.
getElements
(
"
.MWFStatementFilter
"
);
var
filtrData
=
this
.
data
.
filterList
;
nodes
.
each
(
function
(
node
){
MWF
.
xDesktop
.
requireApp
(
"
query.StatementDesigner
"
,
"
widget.ViewFilter
"
,
function
(){
var
_slef
=
this
;
new
MWF
.
xApplication
.
query
.
StatementDesigner
.
widget
.
ViewFilter
(
node
,
this
.
form
.
designer
,
{
"
filtrData
"
:
filtrData
,
"
customData
"
:
null
},
{
"
statementId
"
:
this
.
data
.
queryStatement
?
this
.
data
.
queryStatement
.
id
:
""
,
"
withForm
"
:
true
,
"
onChange
"
:
function
(
ids
){
var
data
=
this
.
getData
();
_slef
.
changeJsonDate
([
"
filterList
"
],
data
.
data
);
...
...
o2web/source/x_component_query_Query/Statement.js
浏览文件 @
087ce24e
...
...
@@ -109,7 +109,7 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
debugger
;
this
.
loadParameter
();
this
.
loadFilter
(
d
ata
);
this
.
loadFilter
(
d
);
this
.
currentPage
=
this
.
options
.
defaultPage
||
1
;
this
.
options
.
defaultPage
=
null
;
...
...
@@ -149,13 +149,17 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
// }.bind(this));
},
loadFilter
:
function
(
data
){
debugger
;
this
.
filterList
=
[];
(
data
.
filterList
||
[]
).
each
(
function
(
d
)
{
var
parameterName
=
d
.
path
.
replace
(
/
\.
/g
,
"
_
"
);
var
value
=
d
.
value
;
if
(
d
.
code
&&
d
.
code
.
code
){
value
=
this
.
Macro
.
exec
(
d
.
code
.
code
,
this
);
}
if
(
d
.
comparison
===
"
like
"
||
d
.
comparison
===
"
notLike
"
){
this
.
parameter
[
parameterName
]
=
"
%
"
+
d
.
value
+
"
%
"
;
this
.
parameter
[
parameterName
]
=
"
%
"
+
value
+
"
%
"
;
}
else
{
var
value
=
d
.
value
;
if
(
d
.
formatType
===
"
dateTimeValue
"
||
d
.
formatType
===
"
datetimeValue
"
){
value
=
"
{ts '
"
+
value
+
"
'}
"
}
else
if
(
d
.
formatType
===
"
dateValue
"
){
...
...
o2web/source/x_component_query_Query/Viewer.js
浏览文件 @
087ce24e
...
...
@@ -807,10 +807,11 @@ MWF.xApplication.query.Query.Viewer = MWF.QViewer = new Class({
});
},
searchView
:
function
(){
debugger
;
if
(
this
.
viewJson
.
customFilterList
)
{
var
key
=
this
.
viewSearchInputNode
.
get
(
"
value
"
);
if
(
key
&&
key
!==
this
.
lp
.
searchKeywork
)
{
var
filterData
=
this
.
json
.
filter
?
this
.
json
.
filter
:
[];
var
filterData
=
this
.
json
.
filter
?
this
.
json
.
filter
.
clone
()
:
[];
this
.
filterItems
=
[];
this
.
viewJson
.
customFilterList
.
each
(
function
(
entry
)
{
if
(
entry
.
formatType
===
"
textValue
"
)
{
...
...
@@ -843,7 +844,8 @@ MWF.xApplication.query.Query.Viewer = MWF.QViewer = new Class({
this
.
createViewNode
({
"
filterList
"
:
filterData
});
}
else
{
this
.
filterItems
=
[];
this
.
createViewNode
();
var
filterData
=
this
.
json
.
filter
?
this
.
json
.
filter
.
clone
()
:
[];
this
.
createViewNode
(
{
"
filterList
"
:
filterData
}
);
}
}
},
...
...
o2web/source/x_component_query_StatementDesigner/$Statement/column.html
浏览文件 @
087ce24e
...
...
@@ -32,7 +32,7 @@
<div
style=
"border-top: 1px solid #999; margin-top:10px"
>
<div
style=
"background-color: #EEE; height:24px; line-height: 24px; text-align: center; font-weight: bold"
>
数据
</div>
<div
class=
"MWFDataData"
id=
"text{$.pid}dataDataEditor"
>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable"
>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable"
style=
"table-layout: fixed;"
>
<tr>
<td
class=
"editTableTitle"
>
选择路径:
</td>
<td
class=
"editTableValue"
>
...
...
o2web/source/x_component_query_StatementDesigner/$Statement/view.html
浏览文件 @
087ce24e
...
...
@@ -99,7 +99,7 @@
<div
title=
"过滤"
class=
"MWFTab"
>
<div
class=
"MWFViewFilter"
>
<div
class=
"inputAreaNode_vf"
>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable restrictViewFilterTable_vf"
>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable restrictViewFilterTable_vf"
style=
"table-layout: fixed;"
>
<tr
id=
"text{$.id}pathInputSelectTr"
>
<td
class=
"editTableTitle"
>
选择:
</td>
<td
class=
"editTableValue"
>
...
...
o2web/source/x_component_query_StatementDesigner/Statement.js
浏览文件 @
087ce24e
...
...
@@ -665,17 +665,18 @@ MWF.xApplication.query.StatementDesigner.Statement = new Class({
var
type
=
option
.
retrieve
(
"
type
"
);
var
field
=
option
.
retrieve
(
"
field
"
);
if
(
!
field
)
return
;
var
text
=
"
"
+
field
.
name
;
if
(
this
.
countJpqlPage
&&
this
.
countJpqlPage
.
isShow
&&
!
this
.
countJpqlPage
.
disabled
){
if
(
this
.
data
.
format
===
"
script
"
&&
this
.
countScriptEditor
.
jsEditor
){
this
.
countScriptEditor
.
jsEditor
.
insertValue
(
field
.
name
);
this
.
countScriptEditor
.
jsEditor
.
insertValue
(
text
);
}
else
{
this
.
countEditor
.
insertValue
(
field
.
name
);
this
.
countEditor
.
insertValue
(
text
);
}
}
else
{
if
(
this
.
data
.
format
===
"
script
"
&&
this
.
scriptEditor
.
jsEditor
){
this
.
scriptEditor
.
jsEditor
.
insertValue
(
field
.
name
);
this
.
scriptEditor
.
jsEditor
.
insertValue
(
text
);
}
else
{
this
.
editor
.
insertValue
(
field
.
name
);
this
.
editor
.
insertValue
(
text
);
}
}
}.
bind
(
this
))
...
...
o2web/source/x_component_query_StatementDesigner/widget/ViewFilter.js
浏览文件 @
087ce24e
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录