forked from github/dataease
fix(数据源): 展示表的字段类型
This commit is contained in:
parent
86e0fa35d3
commit
286ddba437
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user