forked from github/dataease
refactor(仪表板): 富文本备选字段增加记录数 (#2940)
* fix(仪表板): 修复富文本在tab页无效的问题 * refactor(富文本): 富文本编辑区结果展示文案修改,去掉下钻 * refactor(富文本): 富文本字段选择按钮再进入编辑状态再显示 * fix(仪表板): 富文本初始化进入仪表板编辑状态保存按钮会显示可以用问题 * refactor(仪表板): 富文本备选字段增加记录数 Co-authored-by: wangjiahao <1522128093@qq.com>
This commit is contained in:
parent
75c21bf04d
commit
183b06019a
@ -225,13 +225,8 @@ export default {
|
||||
if (chartInfo) {
|
||||
this.curFields = []
|
||||
const chartDetails = JSON.parse(chartInfo)
|
||||
if (chartDetails.type === 'richTextView' && chartDetails.data && chartDetails.data.sourceFields) {
|
||||
const checkAllAxisStr = chartDetails.xaxis + chartDetails.xaxisExt + chartDetails.yaxis + chartDetails.yaxisExt
|
||||
chartDetails.data.sourceFields.forEach(field => {
|
||||
if (checkAllAxisStr.indexOf(field.id) > -1) {
|
||||
this.curFields.push(field)
|
||||
}
|
||||
})
|
||||
if (chartDetails.type === 'richTextView' && chartDetails.data) {
|
||||
this.curFields = chartDetails.data.fields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user