Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_42566577
o2oa
提交
4c3aa92a
o2oa
项目概览
weixin_42566577
/
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,发现更多精彩内容 >>
提交
4c3aa92a
编写于
9月 10, 2021
作者:
NoSubject
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ElementUI组件,在数据模板中的数据存取
上级
4fb5cd1f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
75 addition
and
25 deletion
+75
-25
o2web/source/x_component_process_FormDesigner/$Main/bottom/tools-element.json
...nent_process_FormDesigner/$Main/bottom/tools-element.json
+10
-10
o2web/source/x_component_process_FormDesigner/$Main/default/tools-element.json
...ent_process_FormDesigner/$Main/default/tools-element.json
+10
-10
o2web/source/x_component_process_Xform/$ElModule.js
o2web/source/x_component_process_Xform/$ElModule.js
+28
-1
o2web/source/x_component_process_Xform/Elinput.js
o2web/source/x_component_process_Xform/Elinput.js
+27
-4
未找到文件。
o2web/source/x_component_process_FormDesigner/$Main/bottom/tools-element.json
浏览文件 @
4c3aa92a
...
...
@@ -19,16 +19,6 @@
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_number
,
"className"
:
"Elnumber"
},
"elicon"
:
{
"fontIcon"
:
"el-icon-picture-outline-round"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_icon
,
"className"
:
"Elicon"
},
"elbutton"
:
{
"fontIcon"
:
"el-icon-thumb"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_button
,
"className"
:
"Elbutton"
},
"elradio"
:
{
"fontIcon"
:
"el-icon-success"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_radio
,
...
...
@@ -59,6 +49,16 @@
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_slider
,
"className"
:
"Elslider"
},
"elbutton"
:
{
"fontIcon"
:
"el-icon-thumb"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_button
,
"className"
:
"Elbutton"
},
"elicon"
:
{
"fontIcon"
:
"el-icon-picture-outline-round"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_icon
,
"className"
:
"Elicon"
},
"elcommon"
:
{
"fontIcon"
:
"el-icon-full-screen"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_common
,
...
...
o2web/source/x_component_process_FormDesigner/$Main/default/tools-element.json
浏览文件 @
4c3aa92a
...
...
@@ -19,16 +19,6 @@
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_number
,
"className"
:
"Elnumber"
},
"elicon"
:
{
"fontIcon"
:
"el-icon-picture-outline-round"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_icon
,
"className"
:
"Elicon"
},
"elbutton"
:
{
"fontIcon"
:
"el-icon-thumb"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_button
,
"className"
:
"Elbutton"
},
"elradio"
:
{
"fontIcon"
:
"el-icon-success"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_radio
,
...
...
@@ -59,6 +49,16 @@
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_slider
,
"className"
:
"Elslider"
},
"elbutton"
:
{
"fontIcon"
:
"el-icon-thumb"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_button
,
"className"
:
"Elbutton"
},
"elicon"
:
{
"fontIcon"
:
"el-icon-picture-outline-round"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_icon
,
"className"
:
"Elicon"
},
"elcommon"
:
{
"fontIcon"
:
"el-icon-full-screen"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_common
,
...
...
o2web/source/x_component_process_Xform/$ElModule.js
浏览文件 @
4c3aa92a
...
...
@@ -47,6 +47,17 @@ o2.xApplication.process.Xform.$ElModule = MWF.APP$ElModule = new Class(
this
.
_loadUserInterface
();
}
},
_checkVmodel
:
function
(){
var
nodes
=
this
.
node
.
querySelectorAll
(
"
*[v-model]
"
);
this
.
vModels
=
[];
nodes
.
forEach
(
function
(
node
){
var
model
=
node
.
get
(
"
v-model
"
);
if
(
model
){
this
.
form
.
Macro
.
environment
.
data
.
check
(
model
);
this
.
vModels
.
push
(
model
);
}
}.
bind
(
this
));
},
_loadUserInterface
:
function
(){
this
.
node
.
appendHTML
(
this
.
_createElementHtml
(),
"
before
"
);
...
...
@@ -95,8 +106,19 @@ o2.xApplication.process.Xform.$ElModule = MWF.APP$ElModule = new Class(
};
app
.
methods
=
this
.
_createVueMethods
(
app
);
this
.
appendVueExtend
(
app
);
this
.
appendVueWatch
(
app
);
return
app
;
},
appendVueWatch
:
function
(
app
){
if
(
this
.
vModels
&&
this
.
vModels
.
length
){
app
.
watch
=
{};
this
.
vModels
.
forEach
(
function
(
m
){
app
.
watch
[
m
]
=
function
(
val
,
oldVal
){
}.
bind
(
this
);
}.
bind
(
this
));
}
},
appendVueMethods
:
function
(
methods
){},
appendVueExtend
:
function
(
app
){
if
(
!
app
.
methods
)
app
.
methods
=
{};
...
...
@@ -112,7 +134,7 @@ o2.xApplication.process.Xform.$ElModule = MWF.APP$ElModule = new Class(
_createEventFunction
:
function
(
methods
,
k
){
methods
[
"
$loadElEvent_
"
+
k
.
camelCase
()]
=
function
(){
this
.
validationMode
();
//
if (k==="change") this._setBusinessData(this.getInputData());
if
(
k
===
"
change
"
)
this
.
_setBusinessData
(
this
.
getInputData
());
if
(
this
.
json
.
events
&&
this
.
json
.
events
[
k
]
&&
this
.
json
.
events
[
k
].
code
){
this
.
form
.
Macro
.
fire
(
this
.
json
.
events
[
k
].
code
,
this
,
arguments
);
}
...
...
@@ -128,6 +150,11 @@ o2.xApplication.process.Xform.$ElModule = MWF.APP$ElModule = new Class(
return
methods
||
{};
},
_createVueData
:
function
(){
if
(
this
.
vModels
&&
this
.
vModels
.
length
){
this
.
vModels
.
forEach
(
function
(
m
){
if
(
!
this
.
json
.
hasOwnProperty
(
m
))
this
.
json
[
m
]
=
""
;
}.
bind
(
this
));
}
if
(
this
.
json
.
vueData
&&
this
.
json
.
vueData
.
code
){
var
d
=
this
.
form
.
Macro
.
exec
(
this
.
json
.
vueData
.
code
,
this
);
this
.
json
=
Object
.
merge
(
d
,
this
.
json
);
...
...
o2web/source/x_component_process_Xform/Elinput.js
浏览文件 @
4c3aa92a
...
...
@@ -21,9 +21,9 @@ MWF.xApplication.process.Xform.Elinput = MWF.APPElinput = new Class(
"
elEvents
"
:
[
"
focus
"
,
"
blur
"
,
"
change
"
,
"
input
"
,
"
clear
"
]
},
_appendVueData
:
function
(){
this
.
form
.
Macro
.
environment
.
data
.
check
(
this
.
json
.
id
);
this
.
form
.
Macro
.
environment
.
data
.
check
(
this
.
json
.
$
id
);
//if (!this.json[this.json.id]){
this
.
json
[
this
.
json
.
id
]
=
this
.
_getBusinessData
();
this
.
json
[
this
.
json
.
$
id
]
=
this
.
_getBusinessData
();
//}
if
(
!
this
.
json
.
maxlength
)
this
.
json
.
maxlength
=
""
;
...
...
@@ -52,8 +52,10 @@ MWF.xApplication.process.Xform.Elinput = MWF.APPElinput = new Class(
// }.bind(this);
// },
_createElementHtml
:
function
(){
debugger
;
this
.
json
[
"
$id
"
]
=
this
.
json
.
id
.
replace
(
/
\.\.
/g
,
"
_
"
);
var
html
=
"
<el-input
"
;
html
+=
"
v-model=
\"
"
+
this
.
json
.
id
+
"
\"
"
;
html
+=
"
v-model=
\"
"
+
this
.
json
.
$
id
+
"
\"
"
;
html
+=
"
:maxlength=
\"
maxlength
\"
"
;
html
+=
"
:minlength=
\"
minlength
\"
"
;
html
+=
"
:show-word-limit=
\"
showWordLimit
\"
"
;
...
...
@@ -98,5 +100,26 @@ MWF.xApplication.process.Xform.Elinput = MWF.APPElinput = new Class(
html
+=
"
</el-input>
"
;
return
html
;
}
},
__setValue
:
function
(
value
){
this
.
moduleValueAG
=
null
;
this
.
_setBusinessData
(
value
);
this
.
json
[
this
.
json
.
$id
]
=
value
;
if
(
this
.
readonly
||
this
.
json
.
isReadonly
)
this
.
node
.
set
(
"
text
"
,
value
);
this
.
fieldModuleLoaded
=
true
;
return
value
;
},
__setData
:
function
(
data
){
var
old
=
this
.
getInputData
();
this
.
_setBusinessData
(
data
);
this
.
json
[
this
.
json
.
$id
]
=
data
;
if
(
this
.
readonly
||
this
.
json
.
isReadonly
)
this
.
node
.
set
(
"
text
"
,
value
);
if
(
old
!==
data
)
this
.
fireEvent
(
"
change
"
);
this
.
moduleValueAG
=
null
;
this
.
validationMode
();
},
getInputData
:
function
(){
debugger
;
return
this
.
json
[
this
.
json
.
$id
];
},
});
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录