Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
0f8137ec
提交
0f8137ec
authored
12月 20, 2021
作者:
fit2cloud-chenyw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 自定义控制范围失效
上级
a52fc0cc
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
45 行增加
和
4 行删除
+45
-4
DeDate.vue
frontend/src/components/widget/DeWidget/DeDate.vue
+8
-0
DeInputSearch.vue
frontend/src/components/widget/DeWidget/DeInputSearch.vue
+11
-1
DeNumberRange.vue
frontend/src/components/widget/DeWidget/DeNumberRange.vue
+10
-2
DeSelect.vue
frontend/src/components/widget/DeWidget/DeSelect.vue
+8
-0
DeSelectGrid.vue
frontend/src/components/widget/DeWidget/DeSelectGrid.vue
+8
-1
没有找到文件。
frontend/src/components/widget/DeWidget/DeDate.vue
浏览文件 @
0f8137ec
...
@@ -51,9 +51,17 @@ export default {
...
@@ -51,9 +51,17 @@ export default {
defaultValueStr
()
{
defaultValueStr
()
{
if
(
!
this
.
element
||
!
this
.
element
.
options
||
!
this
.
element
.
options
.
value
)
return
''
if
(
!
this
.
element
||
!
this
.
element
.
options
||
!
this
.
element
.
options
.
value
)
return
''
return
this
.
element
.
options
.
value
.
toString
()
return
this
.
element
.
options
.
value
.
toString
()
},
viewIds
()
{
if
(
!
this
.
element
||
!
this
.
element
.
options
||
!
this
.
element
.
options
.
attrs
.
viewIds
)
return
''
return
this
.
element
.
options
.
attrs
.
viewIds
.
toString
()
}
}
},
},
watch
:
{
watch
:
{
'viewIds'
:
function
(
value
,
old
)
{
if
(
typeof
value
===
'undefined'
||
value
===
old
)
return
this
.
setCondition
()
},
'defaultValueStr'
:
function
(
value
,
old
)
{
'defaultValueStr'
:
function
(
value
,
old
)
{
if
(
this
.
element
.
serviceName
===
'timeDateWidget'
&&
this
.
element
.
options
.
attrs
.
default
.
isDynamic
)
{
if
(
this
.
element
.
serviceName
===
'timeDateWidget'
&&
this
.
element
.
options
.
attrs
.
default
.
isDynamic
)
{
// 如果设置了动态时间 不做任何操作
// 如果设置了动态时间 不做任何操作
...
...
frontend/src/components/widget/DeWidget/DeInputSearch.vue
浏览文件 @
0f8137ec
...
@@ -5,10 +5,10 @@
...
@@ -5,10 +5,10 @@
v-model=
"value"
v-model=
"value"
resize=
"vertical"
resize=
"vertical"
:placeholder=
"$t(element.options.attrs.placeholder)"
:placeholder=
"$t(element.options.attrs.placeholder)"
:size=
"size"
@
input=
"valueChange"
@
input=
"valueChange"
@
keypress
.
enter
.
native=
"search"
@
keypress
.
enter
.
native=
"search"
@
dblclick=
"setEdit"
@
dblclick=
"setEdit"
:size=
"size"
>
>
<el-button
slot=
"append"
icon=
"el-icon-search"
@
click=
"search"
/>
<el-button
slot=
"append"
icon=
"el-icon-search"
@
click=
"search"
/>
...
@@ -37,7 +37,17 @@ export default {
...
@@ -37,7 +37,17 @@ export default {
canEdit
:
false
canEdit
:
false
}
}
},
},
computed
:
{
viewIds
()
{
if
(
!
this
.
element
||
!
this
.
element
.
options
||
!
this
.
element
.
options
.
attrs
.
viewIds
)
return
''
return
this
.
element
.
options
.
attrs
.
viewIds
.
toString
()
}
},
watch
:
{
watch
:
{
'viewIds'
:
function
(
value
,
old
)
{
if
(
typeof
value
===
'undefined'
||
value
===
old
)
return
this
.
setCondition
()
},
'element.options.value'
:
function
(
value
,
old
)
{
'element.options.value'
:
function
(
value
,
old
)
{
if
(
value
===
old
)
return
if
(
value
===
old
)
return
this
.
value
=
value
this
.
value
=
value
...
...
frontend/src/components/widget/DeWidget/DeNumberRange.vue
浏览文件 @
0f8137ec
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
<el-form
v-if=
"element.options!== null && element.options.attrs!==null"
ref=
"form"
:model=
"form"
:rules=
"rules"
>
<el-form
v-if=
"element.options!== null && element.options.attrs!==null"
ref=
"form"
:model=
"form"
:rules=
"rules"
>
<div
class=
"de-number-range-container"
>
<div
class=
"de-number-range-container"
>
<el-form-item
prop=
"min"
>
<el-form-item
prop=
"min"
>
<el-input
v-model=
"form.min"
:placeholder=
"$t(element.options.attrs.placeholder_min)"
@
input=
"inputChange"
@
change=
"handleMinChange"
:size=
"size"
/>
<el-input
v-model=
"form.min"
:placeholder=
"$t(element.options.attrs.placeholder_min)"
:size=
"size"
@
input=
"inputChange"
@
change=
"handleMinChange"
/>
</el-form-item>
</el-form-item>
<span>
{{
$t
(
'denumberrange.split_placeholder'
)
}}
</span>
<span>
{{
$t
(
'denumberrange.split_placeholder'
)
}}
</span>
<el-form-item
prop=
"max"
>
<el-form-item
prop=
"max"
>
<el-input
v-model=
"form.max"
:placeholder=
"$t(element.options.attrs.placeholder_max)"
@
input=
"inputChange"
@
change=
"handleMaxChange"
:size=
"size"
/>
<el-input
v-model=
"form.max"
:placeholder=
"$t(element.options.attrs.placeholder_max)"
:size=
"size"
@
input=
"inputChange"
@
change=
"handleMaxChange"
/>
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
...
@@ -60,9 +60,17 @@ export default {
...
@@ -60,9 +60,17 @@ export default {
return
JSON
.
stringify
([])
return
JSON
.
stringify
([])
}
}
return
JSON
.
stringify
(
this
.
element
.
options
.
value
)
return
JSON
.
stringify
(
this
.
element
.
options
.
value
)
},
viewIds
()
{
if
(
!
this
.
element
||
!
this
.
element
.
options
||
!
this
.
element
.
options
.
attrs
.
viewIds
)
return
''
return
this
.
element
.
options
.
attrs
.
viewIds
.
toString
()
}
}
},
},
watch
:
{
watch
:
{
'viewIds'
:
function
(
value
,
old
)
{
if
(
typeof
value
===
'undefined'
||
value
===
old
)
return
this
.
setCondition
()
},
'defaultvalues'
:
function
(
value
,
old
)
{
'defaultvalues'
:
function
(
value
,
old
)
{
if
(
value
===
old
)
return
if
(
value
===
old
)
return
const
values
=
this
.
element
.
options
.
value
const
values
=
this
.
element
.
options
.
value
...
...
frontend/src/components/widget/DeWidget/DeSelect.vue
浏览文件 @
0f8137ec
...
@@ -62,10 +62,18 @@ export default {
...
@@ -62,10 +62,18 @@ export default {
defaultValueStr
()
{
defaultValueStr
()
{
if
(
!
this
.
element
||
!
this
.
element
.
options
||
!
this
.
element
.
options
.
value
)
return
''
if
(
!
this
.
element
||
!
this
.
element
.
options
||
!
this
.
element
.
options
.
value
)
return
''
return
this
.
element
.
options
.
value
.
toString
()
return
this
.
element
.
options
.
value
.
toString
()
},
viewIds
()
{
if
(
!
this
.
element
||
!
this
.
element
.
options
||
!
this
.
element
.
options
.
attrs
.
viewIds
)
return
''
return
this
.
element
.
options
.
attrs
.
viewIds
.
toString
()
}
}
},
},
watch
:
{
watch
:
{
'viewIds'
:
function
(
value
,
old
)
{
if
(
typeof
value
===
'undefined'
||
value
===
old
)
return
this
.
setCondition
()
},
'defaultValueStr'
:
function
(
value
,
old
)
{
'defaultValueStr'
:
function
(
value
,
old
)
{
if
(
value
===
old
)
return
if
(
value
===
old
)
return
this
.
value
=
this
.
fillValueDerfault
()
this
.
value
=
this
.
fillValueDerfault
()
...
...
frontend/src/components/widget/DeWidget/DeSelectGrid.vue
浏览文件 @
0f8137ec
...
@@ -75,10 +75,17 @@ export default {
...
@@ -75,10 +75,17 @@ export default {
defaultValueStr
()
{
defaultValueStr
()
{
if
(
!
this
.
element
||
!
this
.
element
.
options
||
!
this
.
element
.
options
.
value
)
return
''
if
(
!
this
.
element
||
!
this
.
element
.
options
||
!
this
.
element
.
options
.
value
)
return
''
return
this
.
element
.
options
.
value
.
toString
()
return
this
.
element
.
options
.
value
.
toString
()
},
viewIds
()
{
if
(
!
this
.
element
||
!
this
.
element
.
options
||
!
this
.
element
.
options
.
attrs
.
viewIds
)
return
''
return
this
.
element
.
options
.
attrs
.
viewIds
.
toString
()
}
}
},
},
watch
:
{
watch
:
{
'viewIds'
:
function
(
value
,
old
)
{
if
(
typeof
value
===
'undefined'
||
value
===
old
)
return
this
.
setCondition
()
},
'defaultValueStr'
:
function
(
value
,
old
)
{
'defaultValueStr'
:
function
(
value
,
old
)
{
if
(
value
===
old
)
return
if
(
value
===
old
)
return
this
.
value
=
this
.
fillValueDerfault
()
this
.
value
=
this
.
fillValueDerfault
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论