Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
9726a62b
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
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,发现更多精彩内容 >>
提交
9726a62b
编写于
12月 07, 2021
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
elment
上级
54dbbd57
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
1002 addition
and
24 deletion
+1002
-24
o2web/source/x_component_process_FormDesigner/$Main/bottom/tools-element.json
...nent_process_FormDesigner/$Main/bottom/tools-element.json
+15
-5
o2web/source/x_component_process_FormDesigner/$Main/default/tools-element.json
...ent_process_FormDesigner/$Main/default/tools-element.json
+15
-5
o2web/source/x_component_process_FormDesigner/Module/Eldate.js
.../source/x_component_process_FormDesigner/Module/Eldate.js
+68
-0
o2web/source/x_component_process_FormDesigner/Module/Eldate/default/css.wcss
...onent_process_FormDesigner/Module/Eldate/default/css.wcss
+75
-0
o2web/source/x_component_process_FormDesigner/Module/Eldate/default/icon/copy1.png
...process_FormDesigner/Module/Eldate/default/icon/copy1.png
+0
-0
o2web/source/x_component_process_FormDesigner/Module/Eldate/default/icon/delete1.png
...ocess_FormDesigner/Module/Eldate/default/icon/delete1.png
+0
-0
o2web/source/x_component_process_FormDesigner/Module/Eldate/default/icon/move1.png
...process_FormDesigner/Module/Eldate/default/icon/move1.png
+0
-0
o2web/source/x_component_process_FormDesigner/Module/Eldate/eldatetime.html
...ponent_process_FormDesigner/Module/Eldate/eldatetime.html
+230
-0
o2web/source/x_component_process_FormDesigner/Module/Eldate/template.json
...omponent_process_FormDesigner/Module/Eldate/template.json
+93
-0
o2web/source/x_component_process_FormDesigner/Module/Eldatetime/eldatetime.html
...nt_process_FormDesigner/Module/Eldatetime/eldatetime.html
+28
-10
o2web/source/x_component_process_FormDesigner/Module/Eltime.js
.../source/x_component_process_FormDesigner/Module/Eltime.js
+68
-0
o2web/source/x_component_process_FormDesigner/Module/Eltime/default/css.wcss
...onent_process_FormDesigner/Module/Eltime/default/css.wcss
+75
-0
o2web/source/x_component_process_FormDesigner/Module/Eltime/default/icon/copy1.png
...process_FormDesigner/Module/Eltime/default/icon/copy1.png
+0
-0
o2web/source/x_component_process_FormDesigner/Module/Eltime/default/icon/delete1.png
...ocess_FormDesigner/Module/Eltime/default/icon/delete1.png
+0
-0
o2web/source/x_component_process_FormDesigner/Module/Eltime/default/icon/move1.png
...process_FormDesigner/Module/Eltime/default/icon/move1.png
+0
-0
o2web/source/x_component_process_FormDesigner/Module/Eltime/eltime.html
..._component_process_FormDesigner/Module/Eltime/eltime.html
+202
-0
o2web/source/x_component_process_FormDesigner/Module/Eltime/template.json
...omponent_process_FormDesigner/Module/Eltime/template.json
+93
-0
o2web/source/x_component_process_FormDesigner/Module/Package.js
...source/x_component_process_FormDesigner/Module/Package.js
+2
-0
o2web/source/x_component_process_FormDesigner/lp/en.js
o2web/source/x_component_process_FormDesigner/lp/en.js
+17
-3
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
+21
-1
未找到文件。
o2web/source/x_component_process_FormDesigner/$Main/bottom/tools-element.json
浏览文件 @
9726a62b
...
...
@@ -49,11 +49,21 @@
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_slider
,
"className"
:
"Elslider"
},
//
"eldatetime"
:
{
//
"fontIcon"
:
"el-icon-date"
,
//
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_date
,
//
"className"
:
"Eldatetime"
//
},
"eltime"
:
{
"fontIcon"
:
"el-icon-timer"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_time
,
"className"
:
"Eltime"
},
"eldate"
:
{
"fontIcon"
:
"el-icon-date"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_date
,
"className"
:
"Eldate"
},
"eldatetime"
:
{
"fontIcon"
:
"el-icon-date"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_datetime
,
"className"
:
"Eldatetime"
},
"elbutton"
:
{
"fontIcon"
:
"el-icon-thumb"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_button
,
...
...
o2web/source/x_component_process_FormDesigner/$Main/default/tools-element.json
浏览文件 @
9726a62b
...
...
@@ -49,11 +49,21 @@
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_slider
,
"className"
:
"Elslider"
},
//
"eldatetime"
:
{
//
"fontIcon"
:
"el-icon-date"
,
//
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_date
,
//
"className"
:
"Eldatetime"
//
},
"eltime"
:
{
"fontIcon"
:
"el-icon-timer"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_time
,
"className"
:
"Eltime"
},
"eldate"
:
{
"fontIcon"
:
"el-icon-date"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_date
,
"className"
:
"Eldate"
},
"eldatetime"
:
{
"fontIcon"
:
"el-icon-date"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_datetime
,
"className"
:
"Eldatetime"
},
"elbutton"
:
{
"fontIcon"
:
"el-icon-thumb"
,
"text"
:
MWF.xApplication.process.FormDesigner.LP.modules.el_button
,
...
...
o2web/source/x_component_process_FormDesigner/Module/Eldate.js
0 → 100644
浏览文件 @
9726a62b
MWF
.
xApplication
.
process
.
FormDesigner
.
Module
=
MWF
.
xApplication
.
process
.
FormDesigner
.
Module
||
{};
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
Module.$ElElement
"
,
null
,
false
);
MWF
.
xApplication
.
process
.
FormDesigner
.
Module
.
Eltime
=
MWF
.
FCEltime
=
new
Class
({
Extends
:
MWF
.
FC$ElElement
,
Implements
:
[
Options
,
Events
],
options
:
{
"
style
"
:
"
default
"
,
"
propertyPath
"
:
"
../x_component_process_FormDesigner/Module/Eltime/eltime.html
"
},
_initModuleType
:
function
(){
this
.
className
=
"
Eltime
"
;
this
.
moduleType
=
"
element
"
;
this
.
moduleName
=
"
eltime
"
;
},
_createElementHtml
:
function
(){
var
html
=
"
<el-time-picker
"
;
html
+=
"
:placeholder=
\"
description
\"
"
;
html
+=
"
:type=
\"
inputType
\"
"
;
html
+=
"
:maxlength=
\"
maxlength
\"
"
;
html
+=
"
:show-word-limit=
\"
showWordLimit
\"
"
;
html
+=
"
:clearable=
\"
clearable
\"
"
;
html
+=
"
:show-password=
\"
showPassword
\"
"
;
html
+=
"
:size=
\"
size
\"
"
;
html
+=
"
:rows=
\"
rows
\"
"
;
html
+=
"
:resize=
\"
resize
\"
"
;
html
+=
"
:prefix-icon=
\"
prefixIcon
\"
"
;
html
+=
"
:suffix-icon=
\"
suffixIcon
\"
"
;
if
(
this
.
json
.
elProperties
){
Object
.
keys
(
this
.
json
.
elProperties
).
forEach
(
function
(
k
){
if
(
this
.
json
.
elProperties
[
k
])
html
+=
"
"
+
k
+
"
=
\"
"
+
this
.
json
.
elProperties
[
k
]
+
"
\"
"
;
},
this
);
}
html
+=
"
:style=
\"
elStyles
\"
"
;
html
+=
"
:value=
\"
id
\"
>
"
;
if
(
this
.
json
.
vueSlot
)
html
+=
this
.
json
.
vueSlot
;
html
+=
"
</el-time-picker>
"
;
return
html
;
},
_createCopyNode
:
function
(){
this
.
copyNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
moduleNodeShow
});
this
.
copyNode
.
addEvent
(
"
selectstart
"
,
function
(){
return
false
;
});
},
_getCopyNode
:
function
(){
if
(
!
this
.
copyNode
)
this
.
_createCopyNode
();
this
.
copyNode
.
setStyle
(
"
display
"
,
"
inline-block
"
);
return
this
.
copyNode
;
},
setPropertyName
:
function
(){
if
(
this
.
json
.
name
){
var
input
=
this
.
node
.
getElement
(
"
input
"
);
if
(
input
)
input
.
set
(
"
value
"
,
this
.
json
.
name
);
}
},
setPropertyId
:
function
(){
if
(
!
this
.
json
.
name
){
var
input
=
this
.
node
.
getElement
(
"
input
"
);
if
(
input
)
input
.
set
(
"
value
"
,
this
.
json
.
id
);
}
}
});
o2web/source/x_component_process_FormDesigner/Module/Eldate/default/css.wcss
0 → 100644
浏览文件 @
9726a62b
{
"moduleNodeMove": {
"border-radius": "5px",
"border": "1px solid #ffa200",
"overflow": "hidden",
"margin": "3px",
"-webkit-user-select": "none",
"-moz-user-select": "none",
"position": "absolute",
"z-index": 10002,
"opacity": 0.7,
"cursor": "move",
"height": "26px",
"line-height": "26px",
"padding": "0 10px",
"display": "block"
},
"moduleNodeShow": {
"border": "1px solid #333",
"margin": "3px",
"-webkit-user-select": "none",
"-moz-user-select": "none",
"position": "static",
"top": "auto",
"left": "auto",
"width": "18px",
"height": "2px",
"opacity": 0.5,
"display": "inline-block",
"background": "#ffa200"
},
"moduleNode": {
"border-radius": "5px",
"border-top": "1px dashed #999",
"border-left": "1px dashed #999",
"border-right": "1px dashed #999",
"border-bottom": "1px dashed #999",
"overflow": "hidden",
"cursor": "pointer",
"margin": "3px",
"-webkit-user-select": "none",
"-moz-user-select": "none",
"position": "static",
"top": "auto",
"left": "auto",
"opacity": 1,
"display": "inline-block"
},
"moduleNodeError": {
"border-radius": "5px",
"border-top": "1px dashed #999",
"border-left": "1px dashed #999",
"border-right": "1px dashed #999",
"border-bottom": "1px dashed #999",
"height": "40px",
"width": "200px",
"overflow": "hidden",
"cursor": "pointer",
"margin": "3px",
"-webkit-user-select": "none",
"-moz-user-select": "none",
"position": "static",
"top": "auto",
"left": "auto",
"opacity": 1,
"display": "inline-block"
},
"buttonIcon": {
"height": "26px",
"cursor": "pointer",
"border": "0px",
"margin": "0px"
}
}
o2web/source/x_component_process_FormDesigner/Module/Eldate/default/icon/copy1.png
0 → 100644
浏览文件 @
9726a62b
692 字节
o2web/source/x_component_process_FormDesigner/Module/Eldate/default/icon/delete1.png
0 → 100644
浏览文件 @
9726a62b
794 字节
o2web/source/x_component_process_FormDesigner/Module/Eldate/default/icon/move1.png
0 → 100644
浏览文件 @
9726a62b
707 字节
o2web/source/x_component_process_FormDesigner/Module/Eldate/eldatetime.html
0 → 100644
浏览文件 @
9726a62b
<div
style=
"background-color: #FFF; overflow: hidden"
>
<div
title=
"{{$.lp.base}}"
class=
"MWFTab"
>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.id}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"id"
value=
"text{$.id}"
class=
"editTableInput"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.name}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"name"
value=
"text{$.name}"
class=
"editTableInput"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.description}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"description"
value=
"text{$.description}"
class=
"editTableInput"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.readonly}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"isReadonly"
value=
"true"
text
{($.
isReadonly
)?'
checked
'
:
''}
/>
{{$.lp.yes}}
<input
type=
"radio"
name=
"isReadonly"
value=
"false"
text
{(!$.
isReadonly
)?'
checked
'
:
''}
/>
{{$.lp.no}}
</td>
</tr>
</table>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.selectType}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"selectType"
text
{($
.selectType=
='datetime')?'checked':''}
value=
"datetime"
onclick=
"if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', '')}"
/>
{{$.lp.dateTime}}
<input
type=
"radio"
name=
"selectType"
text
{($
.selectType=
='date')?'checked':''}
value=
"date"
onclick=
"if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', 'none')}"
/>
{{$.lp.dateOnly}}
<input
type=
"radio"
name=
"selectType"
text
{($
.selectType=
='dates')?'checked':''}
value=
"dates"
onclick=
"if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', 'none')}"
/>
{{$.lp.multidateOnly}}
<input
type=
"radio"
name=
"selectType"
text
{($
.selectType=
='time')?'checked':''}
value=
"time"
onclick=
"if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', '')}"
/>
{{$.lp.timeOnly}}
<br/>
<input
type=
"radio"
name=
"selectType"
text
{($
.selectType=
='month')?'checked':''}
value=
"month"
onclick=
"if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', 'none')}"
/>
{{$.lp.monthOnly}}
<input
type=
"radio"
name=
"selectType"
text
{($
.selectType=
='year')?'checked':''}
value=
"year"
onclick=
"if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', 'none')}"
/>
{{$.lp.yearOnly}}
<input
type=
"radio"
name=
"selectType"
text
{($
.selectType=
='week')?'checked':''}
value=
"week"
onclick=
"if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', 'none')}"
/>
{{$.lp.weekOnly}}
<br/>
<input
type=
"radio"
name=
"selectType"
text
{($
.selectType=
='datetimerange')?'checked':''}
value=
"datetimerange"
onclick=
"if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', '')}"
/>
{{$.lp.datetimerange}}
<input
type=
"radio"
name=
"selectType"
text
{($
.selectType=
='daterange')?'checked':''}
value=
"daterange"
onclick=
"if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', '')}"
/>
{{$.lp.daterange}}
<input
type=
"radio"
name=
"selectType"
text
{($
.selectType=
='timerange')?'checked':''}
value=
"timerange"
onclick=
"if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', '')}"
/>
{{$.lp.timerange}}
</td>
</tr>
<tr
id=
"text{$.pid}timeSelectTypeTr"
style=
"text{['time','timerange'].contains($.selectType)?'':'none'}"
>
<td
class=
"editTableTitle"
>
{{$.lp.timeSelectType2}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"timeSelectType"
value=
"picker"
text
{($.
timeSelectType
!=='
select
')?'
checked
'
:
''}
/>
{{$.lp.anyTimePoint}}
<input
type=
"radio"
name=
"timeSelectType"
value=
"select"
text
{($
.timeSelectType=
=='select')?'checked':''}/
>
{{$.lp.fixedTimePoint}}
</td>
</tr>
<tr
id=
"text{$.pid}formatTr"
style=
"(text{['time','timerange'].contains($.selectType) && $.timeSelectType!=='select') ? 'none':''}"
>
<td
class=
"editTableTitle"
>
{{$.lp.format}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"format"
value=
"text{$.format}"
class=
"editTableInput"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.disabled}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"disabled"
value=
"true"
text
{($.
disabled
)?'
checked
'
:
''}
/>
{{$.lp.yes}}
<input
type=
"radio"
name=
"disabled"
value=
"false"
text
{(!$.
disabled
)?'
checked
'
:
''}
/>
{{$.lp.no}}
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.editable}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"editable"
value=
"true"
text
{($.
editable
!==
false
)?'
checked
'
:
''}
/>
{{$.lp.yes}}
<input
type=
"radio"
name=
"editable"
value=
"false"
text
{($
.editable=
==false)?'checked':''}/
>
{{$.lp.no}}
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.clearable}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"clearable"
value=
"true"
text
{($
.clearable=
==true)?'checked':''}/
>
{{$.lp.yes}}
<input
type=
"radio"
name=
"clearable"
value=
"false"
text
{($.
clearable
!==
true
)?'
checked
'
:
''}
/>
{{$.lp.no}}
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.size}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"size"
value=
"default"
text
{(!$.
size
||
$
.size=
=='default')?'checked':''}/
>
default
<input
type=
"radio"
name=
"size"
value=
"large"
text
{($
.size=
=='large')?'checked':''}/
>
large
<input
type=
"radio"
name=
"size"
value=
"small"
text
{($
.size=
=='small')?'checked':''}/
>
small
<input
type=
"radio"
name=
"size"
value=
"mini"
text
{($
.size=
=='mini')?'checked':''}/
>
mini
</td>
</tr>
</table>
<table
id=
"text{$.pid}timeSelectTable"
style=
"(text{!['time','timerange'].contains($.selectType) || $.timeSelectType!=='select') ? 'none':''}"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.step}}:
</td>
<td
class=
"editTableValue"
><input
type=
"number"
name=
"step"
value=
"text{$.step || '1'}"
class=
"editTableInput"
/></td>
</tr>
</table>
<table
id=
"text{$.pid}timePickTable"
style=
"
( text{['datetime','datetimerange'].contains($.selectType) || (text{['time','timerange'].contains($.selectType) && $.timeSelectType!=='select') ) ? '':'none'}"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.arrowControl}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"arrowControl"
value=
"true"
text
{($.
arrowControl
)?'
checked
'
:
''}
/>
{{$.lp.yes}}
<input
type=
"radio"
name=
"arrowControl"
value=
"false"
text
{(!$.
arrowControl
)?'
checked
'
:
''}
/>
{{$.lp.no}}
</td>
</tr>
</table>
<table
id=
"text{$.pid}datePickTable"
>
<tr>
<td
colspan=
"2"
>
<div>
{{$.lp.disabledDateNote}}
</div>
<div
class=
"MWFFormulaArea"
name=
"disabledDate"
title=
"{{$.lp.disabledDateScript}}"
></div>
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.firstDayOfWeek}}:
</td>
<td
class=
"editTableValue"
>
<select
name=
"firstDayOfWeek"
class=
"editTableInput"
>
<option
value=
"1"
text
{($
.firstDayOfWeek=
="1")
?
"
selected
"
:
""}
>
{{$.lp.weeks.arr[0]}}
</option>
<option
value=
"2"
text
{($
.firstDayOfWeek=
="2")
?
"
selected
"
:
""}
>
{{$.lp.weeks.arr[1]}}
</option>
<option
value=
"3"
text
{($
.firstDayOfWeek=
="3")
?
"
selected
"
:
""}
>
{{$.lp.weeks.arr[2]}}
</option>
<option
value=
"4"
text
{($
.firstDayOfWeek=
="4")
?
"
selected
"
:
""}
>
{{$.lp.weeks.arr[3]}}
</option>
<option
value=
"5"
text
{($
.firstDayOfWeek=
="5")
?
"
selected
"
:
""}
>
{{$.lp.weeks.arr[4]}}
</option>
<option
value=
"6"
text
{($
.firstDayOfWeek=
="6")
?
"
selected
"
:
""}
>
{{$.lp.weeks.arr[5]}}
</option>
<option
value=
"7"
text
{(!$.
firstDayOfWeek
||
$
.firstDayOfWeek=
="7")
?
"
selected
"
:
""}
>
{{$.lp.weeks.arr[6]}}
</option>
</select>
</td>
</tr>
</table>
<table
id=
"text{$.pid}noRangeTable"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.placeholder}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"placeholder"
value=
"text{$.placeholder}"
class=
"editTableInput"
/></td>
</tr>
</table>
<table
id=
"text{$.pid}rangeTable"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.rangeSeparator}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"rangeSeparator"
value=
"text{$.rangeSeparator || '至'}"
class=
"editTableInput"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.startPlaceholder}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"startPlaceholder"
value=
"text{$.startPlaceholder || '开始'}"
class=
"editTableInput"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.endPlaceholder}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"endPlaceholder"
value=
"text{$.endPlaceholder || '结束'}"
class=
"editTableInput"
/></td>
</tr>
</table>
<div
onclick=
"var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))"
style=
"cursor: pointer; height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;font-weight:bold;"
>
{{$.lp.prefixIcon}}
</div>
<div
style=
"display: text{($.prefixIcon)?'block':'none'}"
class=
"MWFElIcon"
name=
"prefixIcon"
></div>
<div
onclick=
"var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))"
style=
"cursor: pointer; height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;font-weight:bold;"
>
{{$.lp.suffixIcon}}
</div>
<div
style=
"display: text{($.suffixIcon)?'block':'none'}"
class=
"MWFElIcon"
name=
"suffixIcon"
></div>
<div
class=
"MWFMaplist"
name=
"elStyles"
title=
"{{$.lp.style}}"
></div>
<div
class=
"MWFMaplist"
name=
"elProperties"
title=
"{{$.lp.attribute}}"
></div>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.compute}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"compute"
value=
"create"
text
{(!$.
compute
||
$
.compute=
='create')?'checked':''}/
>
{{$.lp.create}}
<input
type=
"radio"
name=
"compute"
value=
"save"
text
{($
.compute=
='save')?'checked':''}/
>
{{$.lp.save}}
<input
type=
"radio"
name=
"compute"
value=
"show"
text
{($
.compute=
='show')?'checked':''}/
>
{{$.lp.show}}
</td>
</tr>
</table>
<div
class=
"MWFScriptArea"
name=
"defaultValue"
title=
"{{$.lp.defaultValue}} (S)"
></div>
<div
class=
"MWFValidation"
name=
"validationConfig"
></div>
<div
class=
"MWFScriptArea"
name=
"validation"
title=
"{{$.lp.verificationScript}} (S)"
></div>
</div>
<div
title=
"Vue"
class=
"MWFTab"
>
<div
onclick=
"var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))"
style=
"cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;"
>
Vue Data
</div>
<div
style=
"display: text{($.vueData && $.vueData.code) ? 'block': 'none'}"
class=
"MWFScriptArea"
name=
"vueData"
title=
"Vue Data (S)"
></div>
<div
onclick=
"var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))"
style=
"cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;"
>
Vue Method
</div>
<div
div
style=
"display: text{($.vueMethods && $.vueMethods.code) ? 'block': 'none'}"
class=
"MWFScriptArea"
name=
"vueMethods"
title=
"Vue Methods (S)"
></div>
<div
onclick=
"var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))"
style=
"cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;"
>
Vue CSS
</div>
<div
div
style=
"display: text{($.vueCss && $.vueCss.code) ? 'block': 'none'}"
class=
"MWFCssArea"
name=
"vueCss"
title=
"Vue Css (S)"
></div>
<div
onclick=
"var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))"
style=
"cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;"
>
Vue Slots
</div>
<div
style=
"display: text{($.vueSlot) ? 'block' : 'none'}"
>
<div
class=
"MWFHtmlEditorArea"
name=
"vueSlot"
title=
"Input Slot (HTML)"
></div>
</div>
</div>
<div
title=
"{{$.lp.section}}"
class=
"MWFTab"
>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.enableSection}}:
</td>
<td
class=
"editTableValue"
>
<input
onclick=
"if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'block')}"
type=
"radio"
name=
"section"
value=
"yes"
text
{($
.section=
='yes')?'checked':''}/
>
{{$.lp.yes}}
<input
onclick=
"if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'none')}"
type=
"radio"
name=
"section"
value=
"no"
text
{($.
section
!='
yes
')?'
checked
'
:
''}
/>
{{$.lp.no}}
</td>
</tr>
</table>
<div
id=
"text{$.pid}sectionByEditArea"
style=
"display: text{($.section=='yes')?'block':'none'};"
>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.sectionBy}}:
</td>
<td
class=
"editTableValue"
>
<input
class=
"editTableRadio"
onclick=
"if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}"
name=
"sectionBy"
text
{(($
.sectionBy=
='person')
||
($.
sectionBy
!='
unit
'
&&
$.
sectionBy
!='
activity
'
&&
$.
sectionBy
!='
script
'))?'
checked
'
:
''}
type=
"radio"
value=
"person"
/>
{{$.lp.handler}}
<br/>
<input
class=
"editTableRadio"
onclick=
"if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}"
name=
"sectionBy"
text
{($
.sectionBy=
='unit')?'checked':''}
type=
"radio"
value=
"unit"
/>
{{$.lp.handlerUnit}}
<br/>
<input
class=
"editTableRadio"
onclick=
"if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}"
name=
"sectionBy"
text
{($
.sectionBy=
='activity')?'checked':''}
type=
"radio"
value=
"activity"
/>
{{$.lp.activityId}}
<br/>
<input
class=
"editTableRadio"
onclick=
"if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}"
name=
"sectionBy"
text
{($
.sectionBy=
='splitValue')?'checked':''}
type=
"radio"
value=
"splitValue"
/>
{{$.lp.splitValue}}
<br/>
<input
class=
"editTableRadio"
onclick=
"if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'block');}"
name=
"sectionBy"
text
{($
.sectionBy=
='script')?'checked':''}
type=
"radio"
value=
"script"
/>
{{$.lp.script}}
<br/>
</td>
</tr>
</table>
<div
id=
"text{$.pid}sectionByScriptEditArea"
style=
"display: text{($.sectionBy=='script')?'block':'none'};"
>
<div
class=
"MWFScriptArea"
name=
"sectionByScript"
title=
"{{$.lp.sectionBy}} (S)"
></div>
</div>
</div>
</div>
<div
title=
"{{$.lp.event}}"
class=
"MWFTab"
>
<div
class=
"MWFEventsArea"
name=
"events"
></div>
</div>
<div
title=
"HTML"
class=
"MWFTab"
>
<div
class=
"MWFHTMLArea"
style=
"width:100%; height:400px; border:0px;font-family: Verdana, Geneva, sans-serif; font-size:14px"
></div>
</div>
<div
title=
"JSON"
class=
"MWFTab"
>
<div
class=
"MWFJSONArea"
style=
"font-family: Verdana, Geneva, sans-serif; font-size:14px"
></div>
</div>
</div>
o2web/source/x_component_process_FormDesigner/Module/Eldate/template.json
0 → 100644
浏览文件 @
9726a62b
{
"id"
:
""
,
"name"
:
""
,
"type"
:
"Eldatetime"
,
"description"
:
""
,
"isReadonly"
:
false
,
"selectType"
:
"dateTime"
,
"format"
:
"yyyy-MM-dd HH:mm:ss"
,
"vueData"
:
{},
"vueMethods"
:
{},
"vueCss"
:
{},
"vueSlot"
:
""
,
"elProperties"
:
{},
"elStyles"
:
{},
"events"
:
{
"queryLoad"
:
{
"code"
:
""
,
"html"
:
""
},
"postLoad"
:
{
"code"
:
""
,
"html"
:
""
},
"load"
:
{
"code"
:
""
,
"html"
:
""
},
"input"
:
{
"code"
:
""
,
"html"
:
""
},
"change"
:
{
"code"
:
""
,
"html"
:
""
},
"clear"
:
{
"code"
:
""
,
"html"
:
""
},
"click"
:
{
"code"
:
""
,
"html"
:
""
},
"dblclick"
:
{
"code"
:
""
,
"html"
:
""
},
"keydown"
:
{
"code"
:
""
,
"html"
:
""
},
"keypress"
:
{
"code"
:
""
,
"html"
:
""
},
"keyup"
:
{
"code"
:
""
,
"html"
:
""
},
"mousedown"
:
{
"code"
:
""
,
"html"
:
""
},
"mousemove"
:
{
"code"
:
""
,
"html"
:
""
},
"mouseout"
:
{
"code"
:
""
,
"html"
:
""
},
"mouseover"
:
{
"code"
:
""
,
"html"
:
""
},
"mouseup"
:
{
"code"
:
""
,
"html"
:
""
},
"focus"
:
{
"code"
:
""
,
"html"
:
""
},
"blur"
:
{
"code"
:
""
,
"html"
:
""
}
},
"properties"
:
{},
"class"
:
""
,
"styles"
:
{},
"container"
:
""
}
o2web/source/x_component_process_FormDesigner/Module/Eldatetime/eldatetime.html
浏览文件 @
9726a62b
...
...
@@ -50,7 +50,14 @@
onclick=
"if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', '')}"
/>
{{$.lp.timerange}}
</td>
</tr>
<tr>
<tr
id=
"text{$.pid}timeSelectTypeTr"
style=
"text{['time','timerange'].contains($.selectType)?'':'none'}"
>
<td
class=
"editTableTitle"
>
{{$.lp.timeSelectType2}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"timeSelectType"
value=
"picker"
text
{($.
timeSelectType
!=='
select
')?'
checked
'
:
''}
/>
{{$.lp.anyTimePoint}}
<input
type=
"radio"
name=
"timeSelectType"
value=
"select"
text
{($
.timeSelectType=
=='select')?'checked':''}/
>
{{$.lp.fixedTimePoint}}
</td>
</tr>
<tr
id=
"text{$.pid}formatTr"
style=
"(text{['time','timerange'].contains($.selectType) && $.timeSelectType!=='select') ? 'none':''}"
>
<td
class=
"editTableTitle"
>
{{$.lp.format}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"format"
value=
"text{$.format}"
class=
"editTableInput"
/></td>
</tr>
...
...
@@ -64,8 +71,8 @@
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.editable}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"editable"
value=
"true"
text
{($
.editable
=
==tru
e)?'checked':''}/
>
{{$.lp.yes}}
<input
type=
"radio"
name=
"editable"
value=
"false"
text
{($.
editable
!==
tru
e
)?'
checked
'
:
''}
/>
{{$.lp.no}}
<input
type=
"radio"
name=
"editable"
value=
"true"
text
{($.
editable
!==
fals
e
)?'
checked
'
:
''}
/>
{{$.lp.yes}}
<input
type=
"radio"
name=
"editable"
value=
"false"
text
{($
.editable
=
==fals
e)?'checked':''}/
>
{{$.lp.no}}
</td>
</tr>
<tr>
...
...
@@ -85,19 +92,29 @@
</td>
</tr>
</table>
<table
id=
"text{$.pid}timeSelectTable"
>
<table
id=
"text{$.pid}timeSelectTable"
style=
"(text{!['time','timerange'].contains($.selectType) || $.timeSelectType!=='select') ? 'none':''}"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.step}}:
</td>
<td
class=
"editTableValue"
><input
type=
"number"
name=
"step"
value=
"text{$.step || '1'}"
class=
"editTableInput"
/></td>
</tr>
</table>
<table
id=
"text{$.pid}timePickTable"
>
<table
id=
"text{$.pid}timePickTable"
style=
"
( text{['datetime','datetimerange'].contains($.selectType) || (text{['time','timerange'].contains($.selectType) && $.timeSelectType!=='select') ) ? '':'none'}"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.step}}:
</td>
<td
class=
"editTableValue"
><input
type=
"number"
name=
"step"
value=
"text{$.step || '1'}"
class=
"editTableInput"
/></td>
<td
class=
"editTableTitle"
>
{{$.lp.arrowControl}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"arrowControl"
value=
"true"
text
{($.
arrowControl
)?'
checked
'
:
''}
/>
{{$.lp.yes}}
<input
type=
"radio"
name=
"arrowControl"
value=
"false"
text
{(!$.
arrowControl
)?'
checked
'
:
''}
/>
{{$.lp.no}}
</td>
</tr>
</table>
<table
id=
"text{$.pid}datePickTable"
>
<tr>
<td
colspan=
"2"
>
<div>
{{$.lp.disabledDateNote}}
</div>
<div
class=
"MWFFormulaArea"
name=
"disabledDate"
title=
"{{$.lp.disabledDateScript}}"
></div>
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.firstDayOfWeek}}:
</td>
<td
class=
"editTableValue"
>
...
...
@@ -112,10 +129,11 @@
</select>
</td>
</tr>
</table>
<table
id=
"text{$.pid}noRangeTable"
>
<tr>
<td>
<div
class=
"MWFFormulaArea"
name=
"disabledDate"
title=
"{{$.lp.disabledDateScript}}"
></div>
</td>
<td
class=
"editTableTitle"
>
{{$.lp.placeholder}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"placeholder"
value=
"text{$.placeholder}"
class=
"editTableInput"
/></td>
</tr>
</table>
<table
id=
"text{$.pid}rangeTable"
>
...
...
o2web/source/x_component_process_FormDesigner/Module/Eltime.js
0 → 100644
浏览文件 @
9726a62b
MWF
.
xApplication
.
process
.
FormDesigner
.
Module
=
MWF
.
xApplication
.
process
.
FormDesigner
.
Module
||
{};
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
Module.$ElElement
"
,
null
,
false
);
MWF
.
xApplication
.
process
.
FormDesigner
.
Module
.
Eltime
=
MWF
.
FCEltime
=
new
Class
({
Extends
:
MWF
.
FC$ElElement
,
Implements
:
[
Options
,
Events
],
options
:
{
"
style
"
:
"
default
"
,
"
propertyPath
"
:
"
../x_component_process_FormDesigner/Module/Eltime/eltime.html
"
},
_initModuleType
:
function
(){
this
.
className
=
"
Eltime
"
;
this
.
moduleType
=
"
element
"
;
this
.
moduleName
=
"
eltime
"
;
},
_createElementHtml
:
function
(){
var
html
=
"
<el-time-picker
"
;
html
+=
"
:placeholder=
\"
description
\"
"
;
html
+=
"
:type=
\"
inputType
\"
"
;
html
+=
"
:maxlength=
\"
maxlength
\"
"
;
html
+=
"
:show-word-limit=
\"
showWordLimit
\"
"
;
html
+=
"
:clearable=
\"
clearable
\"
"
;
html
+=
"
:show-password=
\"
showPassword
\"
"
;
html
+=
"
:size=
\"
size
\"
"
;
html
+=
"
:rows=
\"
rows
\"
"
;
html
+=
"
:resize=
\"
resize
\"
"
;
html
+=
"
:prefix-icon=
\"
prefixIcon
\"
"
;
html
+=
"
:suffix-icon=
\"
suffixIcon
\"
"
;
if
(
this
.
json
.
elProperties
){
Object
.
keys
(
this
.
json
.
elProperties
).
forEach
(
function
(
k
){
if
(
this
.
json
.
elProperties
[
k
])
html
+=
"
"
+
k
+
"
=
\"
"
+
this
.
json
.
elProperties
[
k
]
+
"
\"
"
;
},
this
);
}
html
+=
"
:style=
\"
elStyles
\"
"
;
html
+=
"
:value=
\"
id
\"
>
"
;
if
(
this
.
json
.
vueSlot
)
html
+=
this
.
json
.
vueSlot
;
html
+=
"
</el-time-picker>
"
;
return
html
;
},
_createCopyNode
:
function
(){
this
.
copyNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
moduleNodeShow
});
this
.
copyNode
.
addEvent
(
"
selectstart
"
,
function
(){
return
false
;
});
},
_getCopyNode
:
function
(){
if
(
!
this
.
copyNode
)
this
.
_createCopyNode
();
this
.
copyNode
.
setStyle
(
"
display
"
,
"
inline-block
"
);
return
this
.
copyNode
;
},
setPropertyName
:
function
(){
if
(
this
.
json
.
name
){
var
input
=
this
.
node
.
getElement
(
"
input
"
);
if
(
input
)
input
.
set
(
"
value
"
,
this
.
json
.
name
);
}
},
setPropertyId
:
function
(){
if
(
!
this
.
json
.
name
){
var
input
=
this
.
node
.
getElement
(
"
input
"
);
if
(
input
)
input
.
set
(
"
value
"
,
this
.
json
.
id
);
}
}
});
o2web/source/x_component_process_FormDesigner/Module/Eltime/default/css.wcss
0 → 100644
浏览文件 @
9726a62b
{
"moduleNodeMove": {
"border-radius": "5px",
"border": "1px solid #ffa200",
"overflow": "hidden",
"margin": "3px",
"-webkit-user-select": "none",
"-moz-user-select": "none",
"position": "absolute",
"z-index": 10002,
"opacity": 0.7,
"cursor": "move",
"height": "26px",
"line-height": "26px",
"padding": "0 10px",
"display": "block"
},
"moduleNodeShow": {
"border": "1px solid #333",
"margin": "3px",
"-webkit-user-select": "none",
"-moz-user-select": "none",
"position": "static",
"top": "auto",
"left": "auto",
"width": "18px",
"height": "2px",
"opacity": 0.5,
"display": "inline-block",
"background": "#ffa200"
},
"moduleNode": {
"border-radius": "5px",
"border-top": "1px dashed #999",
"border-left": "1px dashed #999",
"border-right": "1px dashed #999",
"border-bottom": "1px dashed #999",
"overflow": "hidden",
"cursor": "pointer",
"margin": "3px",
"-webkit-user-select": "none",
"-moz-user-select": "none",
"position": "static",
"top": "auto",
"left": "auto",
"opacity": 1,
"display": "inline-block"
},
"moduleNodeError": {
"border-radius": "5px",
"border-top": "1px dashed #999",
"border-left": "1px dashed #999",
"border-right": "1px dashed #999",
"border-bottom": "1px dashed #999",
"height": "40px",
"width": "200px",
"overflow": "hidden",
"cursor": "pointer",
"margin": "3px",
"-webkit-user-select": "none",
"-moz-user-select": "none",
"position": "static",
"top": "auto",
"left": "auto",
"opacity": 1,
"display": "inline-block"
},
"buttonIcon": {
"height": "26px",
"cursor": "pointer",
"border": "0px",
"margin": "0px"
}
}
o2web/source/x_component_process_FormDesigner/Module/Eltime/default/icon/copy1.png
0 → 100644
浏览文件 @
9726a62b
692 字节
o2web/source/x_component_process_FormDesigner/Module/Eltime/default/icon/delete1.png
0 → 100644
浏览文件 @
9726a62b
794 字节
o2web/source/x_component_process_FormDesigner/Module/Eltime/default/icon/move1.png
0 → 100644
浏览文件 @
9726a62b
707 字节
o2web/source/x_component_process_FormDesigner/Module/Eltime/eltime.html
0 → 100644
浏览文件 @
9726a62b
<div
style=
"background-color: #FFF; overflow: hidden"
>
<div
title=
"{{$.lp.base}}"
class=
"MWFTab"
>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.id}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"id"
value=
"text{$.id}"
class=
"editTableInput"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.name}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"name"
value=
"text{$.name}"
class=
"editTableInput"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.readonly}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"isReadonly"
value=
"true"
text
{($.
isReadonly
)?'
checked
'
:
''}
/>
{{$.lp.yes}}
<input
type=
"radio"
name=
"isReadonly"
value=
"false"
text
{(!$.
isReadonly
)?'
checked
'
:
''}
/>
{{$.lp.no}}
</td>
</tr>
</table>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.selectType}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"selectType"
text
{($
.selectType=
='time')?'checked':''}
value=
"time"
onclick=
"if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', '')}"
/>
{{$.lp.timeOnly}}
<input
type=
"radio"
name=
"selectType"
text
{($
.selectType=
='timerange')?'checked':''}
value=
"timerange"
onclick=
"if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', '')}"
/>
{{$.lp.timerange}}
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.timeSelectType2}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"timeSelectType"
value=
"picker"
text
{($.
timeSelectType
!=='
select
')?'
checked
'
:
''}
/>
{{$.lp.anyTimePoint}}
<input
type=
"radio"
name=
"timeSelectType"
value=
"select"
text
{($
.timeSelectType=
=='select')?'checked':''}/
>
{{$.lp.fixedTimePoint}}
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.disabled}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"disabled"
value=
"true"
text
{($.
disabled
)?'
checked
'
:
''}
/>
{{$.lp.yes}}
<input
type=
"radio"
name=
"disabled"
value=
"false"
text
{(!$.
disabled
)?'
checked
'
:
''}
/>
{{$.lp.no}}
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.editable}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"editable"
value=
"true"
text
{($.
editable
!==
false
)?'
checked
'
:
''}
/>
{{$.lp.yes}}
<input
type=
"radio"
name=
"editable"
value=
"false"
text
{($
.editable=
==false)?'checked':''}/
>
{{$.lp.no}}
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.clearable}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"clearable"
value=
"true"
text
{($
.clearable=
==true)?'checked':''}/
>
{{$.lp.yes}}
<input
type=
"radio"
name=
"clearable"
value=
"false"
text
{($.
clearable
!==
true
)?'
checked
'
:
''}
/>
{{$.lp.no}}
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.size}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"size"
value=
"default"
text
{(!$.
size
||
$
.size=
=='default')?'checked':''}/
>
default
<input
type=
"radio"
name=
"size"
value=
"large"
text
{($
.size=
=='large')?'checked':''}/
>
large
<input
type=
"radio"
name=
"size"
value=
"small"
text
{($
.size=
=='small')?'checked':''}/
>
small
<input
type=
"radio"
name=
"size"
value=
"mini"
text
{($
.size=
=='mini')?'checked':''}/
>
mini
</td>
</tr>
</table>
<table
id=
"text{$.pid}timeSelectTable"
style=
"text{$.timeSelectType!=='select') ? 'none':''}"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.step}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"step"
value=
"text{$.step || '00:30'}"
class=
"editTableInput"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.startTime}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"start"
value=
"text{$.start || '00:30'}"
class=
"editTableInput"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.endTime}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"end"
value=
"text{$.end || '00:30'}"
class=
"editTableInput"
/></td>
</tr>
</table>
<table
id=
"text{$.pid}timePickTable"
style=
"text{$.timeSelectType==='select') ? 'none':''}"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.format}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"format"
value=
"text{$.format || 'HH:mm:ss'}"
class=
"editTableInput"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.startTime}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"start_picker"
value=
"text{$.start_picker || '00:00:00'}"
class=
"editTableInput"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.endTime}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"end_picker"
value=
"text{$.end_picker || '23:59:59}"
class=
"editTableInput"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.arrowControl}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"arrowControl"
value=
"true"
text
{($.
arrowControl
)?'
checked
'
:
''}
/>
{{$.lp.yes}}
<input
type=
"radio"
name=
"arrowControl"
value=
"false"
text
{(!$.
arrowControl
)?'
checked
'
:
''}
/>
{{$.lp.no}}
</td>
</tr>
</table>
<table
id=
"text{$.pid}noRangeTable"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.placeholder}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"placeholder"
value=
"text{$.placeholder}"
class=
"editTableInput"
/></td>
</tr>
</table>
<table
id=
"text{$.pid}rangeTable"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.rangeSeparator}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"rangeSeparator"
value=
"text{$.rangeSeparator || $.lp.to}"
class=
"editTableInput"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.startPlaceholder}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"startPlaceholder"
value=
"text{$.startPlaceholder || $.lp.startTime}"
class=
"editTableInput"
/></td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.endPlaceholder}}:
</td>
<td
class=
"editTableValue"
><input
type=
"text"
name=
"endPlaceholder"
value=
"text{$.endPlaceholder || $.lp.endTime}"
class=
"editTableInput"
/></td>
</tr>
</table>
<div
onclick=
"var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))"
style=
"cursor: pointer; height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;font-weight:bold;"
>
{{$.lp.prefixIcon}}
</div>
<div
style=
"display: text{($.prefixIcon)?'block':'none'}"
class=
"MWFElIcon"
name=
"prefixIcon"
></div>
<div
onclick=
"var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))"
style=
"cursor: pointer; height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;font-weight:bold;"
>
{{$.lp.suffixIcon}}
</div>
<div
style=
"display: text{($.suffixIcon)?'block':'none'}"
class=
"MWFElIcon"
name=
"suffixIcon"
></div>
<div
class=
"MWFMaplist"
name=
"elStyles"
title=
"{{$.lp.style}}"
></div>
<div
class=
"MWFMaplist"
name=
"elProperties"
title=
"{{$.lp.attribute}}"
></div>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.compute}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"compute"
value=
"create"
text
{(!$.
compute
||
$
.compute=
='create')?'checked':''}/
>
{{$.lp.create}}
<input
type=
"radio"
name=
"compute"
value=
"save"
text
{($
.compute=
='save')?'checked':''}/
>
{{$.lp.save}}
<input
type=
"radio"
name=
"compute"
value=
"show"
text
{($
.compute=
='show')?'checked':''}/
>
{{$.lp.show}}
</td>
</tr>
</table>
<div
class=
"MWFScriptArea"
name=
"defaultValue"
title=
"{{$.lp.defaultValue}} (S)"
></div>
<div
class=
"MWFValidation"
name=
"validationConfig"
></div>
<div
class=
"MWFScriptArea"
name=
"validation"
title=
"{{$.lp.verificationScript}} (S)"
></div>
</div>
<div
title=
"Vue"
class=
"MWFTab"
>
<div
onclick=
"var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))"
style=
"cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;"
>
Vue Data
</div>
<div
style=
"display: text{($.vueData && $.vueData.code) ? 'block': 'none'}"
class=
"MWFScriptArea"
name=
"vueData"
title=
"Vue Data (S)"
></div>
<div
onclick=
"var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))"
style=
"cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;"
>
Vue Method
</div>
<div
div
style=
"display: text{($.vueMethods && $.vueMethods.code) ? 'block': 'none'}"
class=
"MWFScriptArea"
name=
"vueMethods"
title=
"Vue Methods (S)"
></div>
<div
onclick=
"var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))"
style=
"cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;"
>
Vue CSS
</div>
<div
div
style=
"display: text{($.vueCss && $.vueCss.code) ? 'block': 'none'}"
class=
"MWFCssArea"
name=
"vueCss"
title=
"Vue Css (S)"
></div>
<div
onclick=
"var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))"
style=
"cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;"
>
Vue Slots
</div>
<div
style=
"display: text{($.vueSlot) ? 'block' : 'none'}"
>
<div
class=
"MWFHtmlEditorArea"
name=
"vueSlot"
title=
"Input Slot (HTML)"
></div>
</div>
</div>
<div
title=
"{{$.lp.section}}"
class=
"MWFTab"
>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.enableSection}}:
</td>
<td
class=
"editTableValue"
>
<input
onclick=
"if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'block')}"
type=
"radio"
name=
"section"
value=
"yes"
text
{($
.section=
='yes')?'checked':''}/
>
{{$.lp.yes}}
<input
onclick=
"if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'none')}"
type=
"radio"
name=
"section"
value=
"no"
text
{($.
section
!='
yes
')?'
checked
'
:
''}
/>
{{$.lp.no}}
</td>
</tr>
</table>
<div
id=
"text{$.pid}sectionByEditArea"
style=
"display: text{($.section=='yes')?'block':'none'};"
>
<table
width=
"100%"
border=
"0"
cellpadding=
"5"
cellspacing=
"0"
class=
"editTable"
>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.sectionBy}}:
</td>
<td
class=
"editTableValue"
>
<input
class=
"editTableRadio"
onclick=
"if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}"
name=
"sectionBy"
text
{(($
.sectionBy=
='person')
||
($.
sectionBy
!='
unit
'
&&
$.
sectionBy
!='
activity
'
&&
$.
sectionBy
!='
script
'))?'
checked
'
:
''}
type=
"radio"
value=
"person"
/>
{{$.lp.handler}}
<br/>
<input
class=
"editTableRadio"
onclick=
"if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}"
name=
"sectionBy"
text
{($
.sectionBy=
='unit')?'checked':''}
type=
"radio"
value=
"unit"
/>
{{$.lp.handlerUnit}}
<br/>
<input
class=
"editTableRadio"
onclick=
"if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}"
name=
"sectionBy"
text
{($
.sectionBy=
='activity')?'checked':''}
type=
"radio"
value=
"activity"
/>
{{$.lp.activityId}}
<br/>
<input
class=
"editTableRadio"
onclick=
"if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}"
name=
"sectionBy"
text
{($
.sectionBy=
='splitValue')?'checked':''}
type=
"radio"
value=
"splitValue"
/>
{{$.lp.splitValue}}
<br/>
<input
class=
"editTableRadio"
onclick=
"if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'block');}"
name=
"sectionBy"
text
{($
.sectionBy=
='script')?'checked':''}
type=
"radio"
value=
"script"
/>
{{$.lp.script}}
<br/>
</td>
</tr>
</table>
<div
id=
"text{$.pid}sectionByScriptEditArea"
style=
"display: text{($.sectionBy=='script')?'block':'none'};"
>
<div
class=
"MWFScriptArea"
name=
"sectionByScript"
title=
"{{$.lp.sectionBy}} (S)"
></div>
</div>
</div>
</div>
<div
title=
"{{$.lp.event}}"
class=
"MWFTab"
>
<div
class=
"MWFEventsArea"
name=
"events"
></div>
</div>
<div
title=
"HTML"
class=
"MWFTab"
>
<div
class=
"MWFHTMLArea"
style=
"width:100%; height:400px; border:0px;font-family: Verdana, Geneva, sans-serif; font-size:14px"
></div>
</div>
<div
title=
"JSON"
class=
"MWFTab"
>
<div
class=
"MWFJSONArea"
style=
"font-family: Verdana, Geneva, sans-serif; font-size:14px"
></div>
</div>
</div>
o2web/source/x_component_process_FormDesigner/Module/Eltime/template.json
0 → 100644
浏览文件 @
9726a62b
{
"id"
:
""
,
"name"
:
""
,
"type"
:
"Eltime"
,
"description"
:
""
,
"isReadonly"
:
false
,
"selectType"
:
"time"
,
"format"
:
"HH:mm:ss"
,
"vueData"
:
{},
"vueMethods"
:
{},
"vueCss"
:
{},
"vueSlot"
:
""
,
"elProperties"
:
{},
"elStyles"
:
{},
"events"
:
{
"queryLoad"
:
{
"code"
:
""
,
"html"
:
""
},
"postLoad"
:
{
"code"
:
""
,
"html"
:
""
},
"load"
:
{
"code"
:
""
,
"html"
:
""
},
"input"
:
{
"code"
:
""
,
"html"
:
""
},
"change"
:
{
"code"
:
""
,
"html"
:
""
},
"clear"
:
{
"code"
:
""
,
"html"
:
""
},
"click"
:
{
"code"
:
""
,
"html"
:
""
},
"dblclick"
:
{
"code"
:
""
,
"html"
:
""
},
"keydown"
:
{
"code"
:
""
,
"html"
:
""
},
"keypress"
:
{
"code"
:
""
,
"html"
:
""
},
"keyup"
:
{
"code"
:
""
,
"html"
:
""
},
"mousedown"
:
{
"code"
:
""
,
"html"
:
""
},
"mousemove"
:
{
"code"
:
""
,
"html"
:
""
},
"mouseout"
:
{
"code"
:
""
,
"html"
:
""
},
"mouseover"
:
{
"code"
:
""
,
"html"
:
""
},
"mouseup"
:
{
"code"
:
""
,
"html"
:
""
},
"focus"
:
{
"code"
:
""
,
"html"
:
""
},
"blur"
:
{
"code"
:
""
,
"html"
:
""
}
},
"properties"
:
{},
"class"
:
""
,
"styles"
:
{},
"container"
:
""
}
o2web/source/x_component_process_FormDesigner/Module/Package.js
浏览文件 @
9726a62b
...
...
@@ -67,5 +67,7 @@ MWF.xDesktop.requireApp("process.FormDesigner", "Module.Elswitch", null, false);
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
Module.Elslider
"
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
Module.Elselect
"
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
Module.Elcascader
"
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
Module.Eltime
"
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
Module.Eldate
"
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
Module.Eldatetime
"
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
Module.SmartBI
"
,
null
,
false
);
\ No newline at end of file
o2web/source/x_component_process_FormDesigner/lp/en.js
浏览文件 @
9726a62b
...
...
@@ -347,8 +347,9 @@ MWF.xApplication.process.FormDesigner.LP = {
"
el_cascader
"
:
"
Cascader
"
,
"
el_number
"
:
"
Number
"
,
"
el_switch
"
:
"
Switch
"
,
"
el_slider
"
:
"
Slider
"
,
"
el_date
"
:
"
Datetime
"
,
"
el_time
"
:
"
Time
"
,
"
el_date
"
:
"
Date
"
,
"
el_datetime
"
:
"
Datetime
"
,
"
el_common
"
:
"
Common
"
,
"
importer
"
:
"
DataImporter
"
,
...
...
@@ -1243,7 +1244,20 @@ MWF.xApplication.process.FormDesigner.LP = {
"
tabletWidth
"
:
"
Tablet Width
"
,
"
tabletHeight
"
:
"
Tablet Height
"
,
"
tabletSizeNote
"
:
"
Valid only on the PC terminal, full screen horizontally on the mobile terminal
"
,
"
tabletToolbarNote
"
:
"
Only valid on PC, not displayed on mobile
"
"
tabletToolbarNote
"
:
"
Only valid on PC, not displayed on mobile
"
,
"
editable
"
:
"
Editable
"
,
"
firstDayOfWeek
"
:
"
FirstDayOfWeek
"
,
"
disabledDate
"
:
"
Disable selection
"
,
"
disabledDateNote
"
:
"
this.event is the incoming date, return true to indicate that selection is prohibited
"
,
"
placeholder
"
:
"
Placeholder text
"
,
"
rangeSeparator
"
:
"
Separated Text
"
,
"
startPlaceholder
"
:
"
Start Placeholder Text
"
,
"
endPlaceholder
"
:
"
End Placeholder Text
"
,
"
arrowControl
"
:
"
Use arrows to select time
"
,
"
timeSelectType2
"
:
"
Time Select Type
"
,
"
fixedTimePoint
"
:
"
Fixed Time
"
,
"
anyTimePoint
"
:
"
Any Time
"
},
"
smartbi
"
:{
"
nosetup
"
:
"
please install SmartBI APP first
"
,
...
...
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
浏览文件 @
9726a62b
...
...
@@ -347,7 +347,9 @@ MWF.xApplication.process.FormDesigner.LP = {
"
el_number
"
:
"
计数器
"
,
"
el_switch
"
:
"
开关
"
,
"
el_slider
"
:
"
滑块
"
,
"
el_time
"
:
"
时间
"
,
"
el_date
"
:
"
日期
"
,
"
el_datetime
"
:
"
日期时间
"
,
"
el_common
"
:
"
通用
"
,
"
importer
"
:
"
数据导入
"
,
...
...
@@ -1252,7 +1254,25 @@ MWF.xApplication.process.FormDesigner.LP = {
"
tabletWidth
"
:
"
手写板宽度
"
,
"
tabletHeight
"
:
"
手写板高度
"
,
"
tabletSizeNote
"
:
"
仅PC端有效,移动端横向满屏
"
,
"
tabletToolbarNote
"
:
"
仅PC端有效,移动端不显示
"
"
tabletToolbarNote
"
:
"
仅PC端有效,移动端不显示
"
,
"
editable
"
:
"
可编辑
"
,
"
firstDayOfWeek
"
:
"
周开始日
"
,
"
disabledDate
"
:
"
禁止选择
"
,
"
disabledDateNote
"
:
"
this.event为传入日期,返回true表示禁止选择
"
,
"
placeholder
"
:
"
占位文本
"
,
"
rangeSeparator
"
:
"
分隔文本
"
,
"
startPlaceholder
"
:
"
起始占位文本
"
,
"
endPlaceholder
"
:
"
结束占位文本
"
,
"
arrowControl
"
:
"
使用箭头选择时间
"
,
"
timeSelectType2
"
:
"
时间选择类型
"
,
"
fixedTimePoint
"
:
"
固定时间
"
,
"
anyTimePoint
"
:
"
任意时间
"
,
"
to
"
:
"
至
"
,
"
startTime
"
:
"
开始时间
"
,
"
endTime
"
:
"
结束时间
"
,
"
startDate
"
:
"
开始日期
"
,
"
endDate
"
:
"
结束日期
"
},
"
smartbi
"
:{
"
nosetup
"
:
"
请先安装SmartBI应用
"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录