fix(数据源): 展示表的字段类型

This commit is contained in:
taojinlong 2022-10-06 14:07:22 +08:00 committed by GitHub
parent 86e0fa35d3
commit 286ddba437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,22 +82,20 @@
prop="fieldType"
:label="$t('dataset.field_type')"
>
<template v-if="params.type==='api'" slot-scope="scope">
<span v-if="scope.row.fieldType === '0'">{{
<span v-if="scope.row.fieldType === '0' && params.type==='api'">{{
$t("dataset.text")
}}</span>
<span v-if="scope.row.fieldType === '2'">{{
<span v-if="scope.row.fieldType === '2' && params.type==='api'">{{
$t("dataset.value")
}}</span>
<span v-if="scope.row.fieldType === '3'">{{
<span v-if="scope.row.fieldType === '3' && params.type==='api'">{{
$t("dataset.value") + '(' + $t("dataset.float") + ')'
}}</span>
<span v-if="params.type !=='api'">
{{ scope.row.fieldType }}
</span>
</template>
<template v-if="params.type !== 'api'" slot-scope="scope">
<span> scope.row.fieldType </span>
</template>
</el-table-column>
<el-table-column
prop="remarks"