Prechádzať zdrojové kódy

fixed:图片特殊处理

nahida 1 rok pred
rodič
commit
f3f8a3a5d7

+ 18 - 2
src/views/CEEnterprise/companydetail/index.vue

@@ -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>

+ 1 - 1
src/views/basicData/ggxyjl/jnlyxx/rqfqj/index.vue

@@ -227,7 +227,7 @@ const single = ref(true);
 const multiple = ref(true);
 const total = ref(0);
 const title = ref("");
-const baseUrl = import.meta.env.VITE_APP_BASE_API;
+const baseUrl = import.meta.env.VITE_APP_BASE_URL;
 
 const upload = reactive({
   // 是否显示弹出层(用户导入)

+ 1 - 1
src/views/basicData/qyzjl/jscq/zcsb/index.vue

@@ -324,7 +324,7 @@ const single = ref(true);
 const multiple = ref(true);
 const total = ref(0);
 const title = ref("");
-const baseUrl = import.meta.env.VITE_APP_BASE_API;
+const baseUrl = import.meta.env.VITE_APP_BASE_URL;
 
 const upload = reactive({
   // 是否显示弹出层(用户导入)