Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
e3fdf9a4
提交
e3fdf9a4
authored
1月 24, 2022
作者:
junjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: 视图过滤字段值优化
上级
3e856807
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
24 行增加
和
3 行删除
+24
-3
en.js
frontend/src/lang/en.js
+2
-1
tw.js
frontend/src/lang/tw.js
+2
-1
zh.js
frontend/src/lang/zh.js
+2
-1
ChartEdit.vue
frontend/src/views/chart/view/ChartEdit.vue
+18
-0
没有找到文件。
frontend/src/lang/en.js
浏览文件 @
e3fdf9a4
...
@@ -1014,7 +1014,8 @@ export default {
...
@@ -1014,7 +1014,8 @@ export default {
enum_exp
:
'Enum'
,
enum_exp
:
'Enum'
,
pls_slc
:
'Please Select'
,
pls_slc
:
'Please Select'
,
filter_exp
:
'Filter Value'
,
filter_exp
:
'Filter Value'
,
filter_type
:
'Filter Type'
filter_type
:
'Filter Type'
,
filter_value_can_not_str
:
'Value type can not input string'
},
},
dataset
:
{
dataset
:
{
sheet_warn
:
'There are multiple sheet pages, and the first one is extracted by default'
,
sheet_warn
:
'There are multiple sheet pages, and the first one is extracted by default'
,
...
...
frontend/src/lang/tw.js
浏览文件 @
e3fdf9a4
...
@@ -1014,7 +1014,8 @@ export default {
...
@@ -1014,7 +1014,8 @@ export default {
enum_exp
:
'字段枚舉值'
,
enum_exp
:
'字段枚舉值'
,
pls_slc
:
'請選擇'
,
pls_slc
:
'請選擇'
,
filter_exp
:
'過濾值'
,
filter_exp
:
'過濾值'
,
filter_type
:
'過濾方式'
filter_type
:
'過濾方式'
,
filter_value_can_not_str
:
'數值類型字段過濾值不能包含文本'
},
},
dataset
:
{
dataset
:
{
sheet_warn
:
'有多個 Sheet 頁,默認抽取第一個'
,
sheet_warn
:
'有多個 Sheet 頁,默認抽取第一個'
,
...
...
frontend/src/lang/zh.js
浏览文件 @
e3fdf9a4
...
@@ -1016,7 +1016,8 @@ export default {
...
@@ -1016,7 +1016,8 @@ export default {
enum_exp
:
'字段枚举值'
,
enum_exp
:
'字段枚举值'
,
pls_slc
:
'请选择'
,
pls_slc
:
'请选择'
,
filter_exp
:
'过滤值'
,
filter_exp
:
'过滤值'
,
filter_type
:
'过滤方式'
filter_type
:
'过滤方式'
,
filter_value_can_not_str
:
'数值类型字段过滤值不能包含文本'
},
},
dataset
:
{
dataset
:
{
sheet_warn
:
'有多个 Sheet 页,默认抽取第一个'
,
sheet_warn
:
'有多个 Sheet 页,默认抽取第一个'
,
...
...
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
e3fdf9a4
...
@@ -1638,6 +1638,14 @@ export default {
...
@@ -1638,6 +1638,14 @@ export default {
})
})
return
return
}
}
if
(
parseFloat
(
f
.
value
).
toString
()
===
'NaN'
)
{
this
.
$message
({
message
:
this
.
$t
(
'chart.filter_value_can_not_str'
),
type
:
'error'
,
showClose
:
true
})
return
}
}
}
if
(
this
.
quotaItem
.
filterType
===
'quota'
)
{
if
(
this
.
quotaItem
.
filterType
===
'quota'
)
{
this
.
view
.
yaxis
[
this
.
quotaItem
.
index
].
filter
=
this
.
quotaItem
.
filter
this
.
view
.
yaxis
[
this
.
quotaItem
.
index
].
filter
=
this
.
quotaItem
.
filter
...
@@ -1686,6 +1694,16 @@ export default {
...
@@ -1686,6 +1694,16 @@ export default {
})
})
return
return
}
}
if
(
this
.
filterItem
.
deType
===
2
||
this
.
filterItem
.
deType
===
3
)
{
if
(
parseFloat
(
f
.
value
).
toString
()
===
'NaN'
)
{
this
.
$message
({
message
:
this
.
$t
(
'chart.filter_value_can_not_str'
),
type
:
'error'
,
showClose
:
true
})
return
}
}
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论