forked from github/dataease
fix(数据集): 修复计算字段表达式语法提示
This commit is contained in:
parent
ea59e8ee0d
commit
656feb2d4a
@ -1405,6 +1405,7 @@ export default {
|
||||
pls_input_filename: '请输入文件名称',
|
||||
calc_tips: {
|
||||
tip1: '表达式语法请遵循calcite语法。',
|
||||
tip1_1: '表达式语法请遵循该数据源对应的数据库语法。',
|
||||
tip2: '聚合运算仅能在图表中生效。',
|
||||
tip3: '引用字段以 "[" 开始, "]" 结束',
|
||||
tip4: '请勿修改引用内容,否则将引用失败',
|
||||
|
@ -29,6 +29,13 @@ const searchFunction = ref('')
|
||||
|
||||
const mirror = ref()
|
||||
|
||||
const props = defineProps({
|
||||
crossDs: {
|
||||
type: Boolean,
|
||||
default: () => false
|
||||
}
|
||||
})
|
||||
|
||||
const fields = [
|
||||
{ label: t('dataset.text'), value: 0 },
|
||||
{ label: t('dataset.time'), value: 1 },
|
||||
@ -287,9 +294,9 @@ initFunction()
|
||||
<span>*</span>
|
||||
<el-tooltip class="item" effect="dark" placement="top">
|
||||
<template #content>
|
||||
{{ t('dataset.calc_tips.tip1') }}
|
||||
<br />
|
||||
{{ t('dataset.calc_tips.tip2') }}
|
||||
<div v-if="props.crossDs">{{ t('dataset.calc_tips.tip1') }}</div>
|
||||
<div v-else>{{ t('dataset.calc_tips.tip1_1') }}</div>
|
||||
<div>{{ t('dataset.calc_tips.tip2') }}</div>
|
||||
</template>
|
||||
<el-icon size="16px">
|
||||
<Icon name="icon_info_outlined"></Icon>
|
||||
|
@ -1894,7 +1894,7 @@ const getDsIconName = data => {
|
||||
width="1000px"
|
||||
:title="calcTitle"
|
||||
>
|
||||
<calc-field-edit ref="calcEdit" />
|
||||
<calc-field-edit ref="calcEdit" :crossDs="crossDatasources" />
|
||||
<template #footer>
|
||||
<el-button secondary @click="closeEditCalc()">{{ t('dataset.cancel') }} </el-button>
|
||||
<el-button type="primary" @click="confirmEditCalc()">{{ t('dataset.confirm') }} </el-button>
|
||||
|
Loading…
Reference in New Issue
Block a user