|
|
@@ -53,6 +53,18 @@ const activeNames = ref([])
|
|
|
// })
|
|
|
// console.log(r);
|
|
|
// }
|
|
|
+ const specialHanle = (rowProp,index,label)=>{
|
|
|
+ if(index == 0 || index == 1){
|
|
|
+ return '<span style="font-size: 14px;font-weight: bold">'+rowProp+'</span>'
|
|
|
+ }
|
|
|
+ if(index == 8 && label == '商标图片'){
|
|
|
+ return `<img style="width: 100px;" src="${import.meta.env.VITE_APP_BASE_URL+rowProp}" />`
|
|
|
+ }
|
|
|
+ if(index == 5 && label == '录入时间'){
|
|
|
+ return rowProp.split('T')[0];
|
|
|
+ }
|
|
|
+ return rowProp;
|
|
|
+ }
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
@@ -64,7 +76,11 @@ const activeNames = ref([])
|
|
|
<el-collapse-item v-for="(item,index) in showList" :title="tableMap[item.tableName]" :name="index">
|
|
|
<el-table :data="item.data" max-height="250">
|
|
|
<template v-for="(t,i) in getTableLength(item.data[0])" :key="i">
|
|
|
- <el-table-column :prop="t" :label="fieldMap[t]" width="300"></el-table-column>
|
|
|
+ <el-table-column :prop="t" :label="fieldMap[t]" width="300">
|
|
|
+ <template #default="scope">
|
|
|
+ <div v-html="specialHanle(scope.row[t],i,fieldMap[t])" />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</template>
|
|
|
</el-table>
|
|
|
</el-collapse-item>
|
|
|
@@ -75,7 +91,7 @@ const activeNames = ref([])
|
|
|
|
|
|
<style lang="scss">
|
|
|
.demo-collapse .el-collapse-item__header{
|
|
|
- font-size: 20px;
|
|
|
+ font-size: 18px;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
</style>
|