master
xy 2 years ago
parent 529aca4ca7
commit fb8d99d444

@ -33,8 +33,14 @@
v-for="item in showFields" v-for="item in showFields"
:label="item.name" :label="item.name"
v-if="!['file', 'picture'].find((j) => j === item.field)" 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) }}
</template>
</el-descriptions-item
> >
</el-descriptions> </el-descriptions>
</el-card> </el-card>

@ -135,6 +135,7 @@ export default {
target.value = `${temp ? temp : ""},${e}`; target.value = `${temp ? temp : ""},${e}`;
}, },
async getDataTableName() { async getDataTableName() {
if (this.linkType === "hasMany" || this.linkType === "newHasMany") { if (this.linkType === "hasMany" || this.linkType === "newHasMany") {
const tables = ( const tables = (

@ -291,6 +291,7 @@ export default {
async getFields(tableName) { async getFields(tableName) {
const res = await realTableShow({ table_name: tableName }); const res = await realTableShow({ table_name: tableName });
console.log(res); console.log(res);
res['id'] = 'integer';
return res || {}; return res || {};
}, },
async getRealTables() { async getRealTables() {

Loading…
Cancel
Save