@ -33,8 +33,14 @@
v-for="item in showFields"
:label="item.name"
v-if="!['file', 'picture'].find((j) => j === item.field)"
>{{ contentFormat(item)
}}</el-descriptions-item
>
<template v-if="item.edit_input === 'richtext'">
<div v-html="detail[item.field]"></div>
</template>
<template>
{{ contentFormat(item) }}
</el-descriptions-item
</el-descriptions>
</el-card>
@ -135,6 +135,7 @@ export default {
target.value = `${temp ? temp : ""},${e}`;
},
async getDataTableName() {
if (this.linkType === "hasMany" || this.linkType === "newHasMany") {
const tables = (
@ -291,6 +291,7 @@ export default {
async getFields(tableName) {
const res = await realTableShow({ table_name: tableName });
console.log(res);
res['id'] = 'integer';
return res || {};
async getRealTables() {