Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
此号慢热型
o2oa
提交
8c32378d
o2oa
项目概览
此号慢热型
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
5
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,发现更多精彩内容 >>
提交
8c32378d
编写于
6月 19, 2020
作者:
S
st
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[数据中心]增加清空自建表数据功能
上级
93a9e66c
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
60 addition
and
40 deletion
+60
-40
o2web/source/x_component_query_TableDesigner/$Main/default/toolbar/clear.png
...onent_query_TableDesigner/$Main/default/toolbar/clear.png
+0
-0
o2web/source/x_component_query_TableDesigner/$Main/default/toolbar/clear_gray.png
..._query_TableDesigner/$Main/default/toolbar/clear_gray.png
+0
-0
o2web/source/x_component_query_TableDesigner/$Main/default/toolbars.html
...component_query_TableDesigner/$Main/default/toolbars.html
+8
-6
o2web/source/x_component_query_TableDesigner/Main.js
o2web/source/x_component_query_TableDesigner/Main.js
+36
-33
o2web/source/x_component_query_TableDesigner/Table.js
o2web/source/x_component_query_TableDesigner/Table.js
+12
-1
o2web/source/x_component_query_TableDesigner/lp/zh-cn.js
o2web/source/x_component_query_TableDesigner/lp/zh-cn.js
+4
-0
未找到文件。
o2web/source/x_component_query_TableDesigner/$Main/default/toolbar/clear.png
0 → 100644
浏览文件 @
8c32378d
475 字节
o2web/source/x_component_query_TableDesigner/$Main/default/toolbar/clear_gray.png
0 → 100644
浏览文件 @
8c32378d
370 字节
o2web/source/x_component_query_TableDesigner/$Main/default/toolbars.html
浏览文件 @
8c32378d
...
...
@@ -8,15 +8,17 @@
<span
MWFnodetype=
"MWFToolBarButton"
MWFButtonImage=
"run.png"
title=
"编译所有数据表"
MWFButtonAction=
"buildAllView"
MWFButtonText=
""
></span>
<span
MWFnodetype=
"MWFToolBarButton"
MWFButtonImage=
"formExplode.gif"
title=
"数据导出"
MWFButtonAction=
"tableExplode"
MWFButtonText=
""
></span>
<span
MWFnodetype=
"MWFToolBarButton"
MWFButtonImage=
"formImplode.gif"
title=
"数据导入"
MWFButtonAction=
"tableImplode"
MWFButtonText=
""
></span>
<span
MWFnodetype=
"MWFToolBarSeparator"
></span>
<span
MWFnodetype=
"MWFToolBarButton"
MWFButtonImage=
"clear.png"
title=
"清空表数据"
MWFButtonAction=
"tableClear"
MWFButtonText=
""
></span>
<span
MWFnodetype=
"MWFToolBarSeparator"
></span>
<span
MWFnodetype=
"MWFToolBarButton"
MWFButtonImage=
"help.png"
title=
"帮助"
MWFButtonAction=
"tableHelp"
MWFButtonText=
""
></span>
<span
MWFnodetype=
"MWFToolBarSeparator"
></span>
<input
type=
"checkbox"
value=
"autoSave"
id=
"MWFDictionaryAutoSaveCheck"
>
自动保存
<span
MWFnodetype=
"MWFToolBarSeparator"
></span>
<input
type=
"checkbox"
value=
"autoSave"
id=
"MWFDictionaryAutoSaveCheck"
>
自动保存
</div>
\ No newline at end of file
o2web/source/x_component_query_TableDesigner/Main.js
浏览文件 @
8c32378d
MWF
.
xDesktop
.
requireApp
(
"
query.ViewDesigner
"
,
""
,
null
,
false
);
MWF
.
APPDTBD
=
MWF
.
xApplication
.
query
.
TableDesigner
;
MWF
.
APPDTBD
.
options
=
{
"
multitask
"
:
true
,
"
executable
"
:
false
"
multitask
"
:
true
,
"
executable
"
:
false
};
MWF
.
xDesktop
.
requireApp
(
"
query.TableDesigner
"
,
"
Table
"
,
null
,
false
);
MWF
.
xApplication
.
query
.
TableDesigner
.
Main
=
new
Class
({
Extends
:
MWF
.
xApplication
.
query
.
ViewDesigner
.
Main
,
Implements
:
[
Options
,
Events
],
options
:
{
"
style
"
:
"
default
"
,
"
name
"
:
"
query.TableDesigner
"
,
"
icon
"
:
"
icon.png
"
,
"
title
"
:
MWF
.
APPDTBD
.
LP
.
title
,
"
appTitle
"
:
MWF
.
APPDTBD
.
LP
.
title
,
"
id
"
:
""
,
Extends
:
MWF
.
xApplication
.
query
.
ViewDesigner
.
Main
,
Implements
:
[
Options
,
Events
],
options
:
{
"
style
"
:
"
default
"
,
"
name
"
:
"
query.TableDesigner
"
,
"
icon
"
:
"
icon.png
"
,
"
title
"
:
MWF
.
APPDTBD
.
LP
.
title
,
"
appTitle
"
:
MWF
.
APPDTBD
.
LP
.
title
,
"
id
"
:
""
,
"
tooltip
"
:
{
"
unCategory
"
:
MWF
.
APPDTBD
.
LP
.
unCategory
},
"
actions
"
:
null
,
"
category
"
:
null
,
"
processData
"
:
null
},
"
actions
"
:
null
,
"
category
"
:
null
,
"
processData
"
:
null
},
onQueryLoad
:
function
(){
this
.
shortcut
=
true
;
...
...
@@ -105,19 +105,19 @@ MWF.xApplication.query.TableDesigner.Main = new Class({
}
}
},
//loadView------------------------------------------
//loadView------------------------------------------
loadView
:
function
(){
this
.
getViewData
(
this
.
options
.
id
,
function
(
vdata
){
this
.
getViewData
(
this
.
options
.
id
,
function
(
vdata
){
this
.
setTitle
(
this
.
options
.
appTitle
+
"
-
"
+
vdata
.
name
);
this
.
taskitem
.
setText
(
this
.
options
.
appTitle
+
"
-
"
+
vdata
.
name
);
this
.
options
.
appTitle
=
this
.
options
.
appTitle
+
"
-
"
+
vdata
.
name
;
this
.
table
=
new
MWF
.
xApplication
.
query
.
TableDesigner
.
Table
(
this
,
vdata
);
this
.
table
.
load
();
}.
bind
(
this
));
},
this
.
table
.
load
();
}.
bind
(
this
));
},
loadNewViewData
:
function
(
callback
){
loadNewViewData
:
function
(
callback
){
var
url
=
"
../x_component_query_TableDesigner/$Table/table.json
"
;
MWF
.
getJSON
(
url
,
{
"
onSuccess
"
:
function
(
obj
){
...
...
@@ -136,11 +136,11 @@ MWF.xApplication.query.TableDesigner.Main = new Class({
this
.
notice
(
xhr
.
responseText
,
"
error
"
);
}.
bind
(
this
)
});
},
},
loadViewData
:
function
(
id
,
callback
){
this
.
actions
.
getTable
(
id
,
function
(
json
){
if
(
json
){
var
data
=
json
.
data
;
this
.
actions
.
getTable
(
id
,
function
(
json
){
if
(
json
){
var
data
=
json
.
data
;
data
.
draftData
=
JSON
.
decode
(
data
.
draftData
);
if
(
!
this
.
application
){
...
...
@@ -151,9 +151,9 @@ MWF.xApplication.query.TableDesigner.Main = new Class({
}
else
{
if
(
callback
)
callback
(
data
);
}
}
}.
bind
(
this
));
},
}
}.
bind
(
this
));
},
saveView
:
function
(){
this
.
view
.
save
(
function
(){
...
...
@@ -165,7 +165,7 @@ MWF.xApplication.query.TableDesigner.Main = new Class({
},
statusBuild
:
function
(){
this
.
view
.
statusBuild
();
},
},
statusDraft
:
function
(){
this
.
view
.
statusDraft
();
},
...
...
@@ -178,6 +178,9 @@ MWF.xApplication.query.TableDesigner.Main = new Class({
tableImplode
:
function
(){
this
.
view
.
tableImplode
();
},
tableClear
:
function
(){
this
.
view
.
tableClear
();
},
tableHelp
:
function
(){
var
content
=
new
Element
(
"
div
"
,
{
"
styles
"
:
{
"
margin
"
:
"
20px
"
}});
content
.
set
(
"
html
"
,
this
.
lp
.
tableHelp
);
...
...
@@ -200,8 +203,8 @@ MWF.xApplication.query.TableDesigner.Main = new Class({
// dictionaryImplode: function(){
// this.view.implode();
// }
//recordStatus: function(){
// return {"id": this.options.id};
//},
//recordStatus: function(){
// return {"id": this.options.id};
//},
});
\ No newline at end of file
o2web/source/x_component_query_TableDesigner/Table.js
浏览文件 @
8c32378d
...
...
@@ -474,7 +474,18 @@ MWF.xApplication.query.TableDesigner.Table = new Class({
this
.
close
();
},
null
);
},
tableClear
:
function
(
e
){
var
_self
=
this
;
if
(
!
e
)
e
=
this
.
node
;
this
.
designer
.
confirm
(
"
warn
"
,
e
,
MWF
.
APPDTBD
.
LP
.
tableClearTitle
,
MWF
.
APPDTBD
.
LP
.
tableClearInfo
,
480
,
120
,
function
(){
_self
.
designer
.
actions
.
deleteAllRow
(
_self
.
data
.
id
,
function
(
json
){
this
.
designer
.
notice
(
this
.
designer
.
lp
.
tableClear_success
,
"
success
"
,
this
.
node
,
{
"
x
"
:
"
left
"
,
"
y
"
:
"
bottom
"
});
}.
bind
(
_self
));
this
.
close
();
},
function
(){
this
.
close
();
},
null
);
},
tableImplode
:
function
(
e
){
var
_self
=
this
;
if
(
!
e
)
e
=
this
.
node
;
...
...
o2web/source/x_component_query_TableDesigner/lp/zh-cn.js
浏览文件 @
8c32378d
...
...
@@ -65,6 +65,10 @@ MWF.xApplication.query.TableDesigner.LP = {
"
tableImplodeInfo
"
:
"
导入的数据会覆盖。确认是否导入?
"
,
"
tableImplode_success
"
:
"
导入成功
"
,
"
tableClearTitle
"
:
"
清空数据
"
,
"
tableClearInfo
"
:
"
清空的数据不能恢复!!确认是否清空?
"
,
"
tableClear_success
"
:
"
清空成功
"
,
"
buildAllViewInfor
"
:
"
即将编译所有数据表,包括所有数据应用中的数据表,编译后您可能需要重启服务器后才能使用此数据表。您确定要执行此操作吗?
"
,
"
buildAllView_success
"
:
"
已编译所有数据表,新的更改需要您重启服务器后生效
"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录