Merge pull request #6486 from ZhaoQian1222/pr@dev@fix_dataset_preview_bug

fix: SQL数据集数据预览,若字段名称中含有特殊字符点“.”时,数据显示为空
This commit is contained in:
王嘉豪 2023-11-02 15:17:13 +08:00 committed by GitHub
commit 32f0ff9088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,8 +286,11 @@
min-width="200px"
:prop="field.fieldName"
:label="field.remarks"
resizable
/>
resizable>
<template slot-scope="scope">
<span>{{ at(scope.row, field.fieldName)[0] }}</span>
</template>
</el-table-column>
</el-table>
</div>
<el-table
@ -303,7 +306,11 @@
:prop="field.fieldName"
:label="field.remarks"
resizable
/>
>
<template slot-scope="scope">
<span>{{ at(scope.row, field.fieldName)[0] }}</span>
</template>
</el-table-column>
</el-table>
</div>
<div
@ -623,6 +630,7 @@ import { pySort } from './util'
import _ from 'lodash'
import GridTable from '@/components/gridTable/index.vue'
import { updateCacheTree } from '@/components/canvas/utils/utils'
import { at } from 'lodash'
export default {
name: 'AddSQL',
@ -742,7 +750,8 @@ export default {
}
]
}
]
],
at
}
},
computed: {