From 9ad8b94e643ea2a996a10aca7bf5948643e3571d Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期四, 14 三月 2024 09:19:46 +0800
Subject: [PATCH] 修改

---
 web/src/views/modules/sysPictureBase/SysPictureBase.vue |   29 +++++++++++------------------
 1 files changed, 11 insertions(+), 18 deletions(-)

diff --git a/web/src/views/modules/sysPictureBase/SysPictureBase.vue b/web/src/views/modules/sysPictureBase/SysPictureBase.vue
index 7c8195e..5dfca12 100644
--- a/web/src/views/modules/sysPictureBase/SysPictureBase.vue
+++ b/web/src/views/modules/sysPictureBase/SysPictureBase.vue
@@ -1,7 +1,7 @@
 <template>
   <el-card shadow="never" class="aui-card--fill">
     <div class="mod-sysPictureBase-sysPictureBase}">
-      <zt-table-wraper query-url="/sysPictureBase/SysPictureBase/page" delete-url="/sysPictureBase/SysPictureBase/"
+      <zt-table-wraper query-url="/sysPictureBase/page" delete-url="/sysPictureBase/"
                        v-slot="{ table }">
         <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()">
           <el-form-item>
@@ -13,8 +13,8 @@
           </el-form-item>
           <el-form-item>
             <zt-button type="query" @click="table.query()"/>
-            <zt-button type="add"  @click="table.editHandle()"/>
-            <zt-button type="delete"  @click="table.deleteHandle()"/>
+            <zt-button type="add" @click="table.editHandle()"/>
+            <zt-button type="delete" @click="table.deleteHandle()"/>
           </el-form-item>
         </el-form>
         <el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" v-adaptive="{bottomOffset:70}"
@@ -24,8 +24,8 @@
           <el-table-column prop="name" label="鍥剧墖鍚嶇О"/>
           <el-table-column label="鍥剧墖" align="center">
             <template v-slot="{ row }">
-              <el-image v-if="row.accessoryMap" :src="getPath(row)" style="height: 50px;width: 50px"></el-image>
-            </template >
+              <el-image v-if="row.id" :src="url+row.id" style="height: 50px;width: 50px"></el-image>
+            </template>
           </el-table-column>
           <el-table-column prop="contentType" label="妫�绱㈠叧閿瓧"/>
           <zt-table-column-dict prop="systemMark" label="绯荤粺鏍囪瘑" dict="product"/>
@@ -41,31 +41,24 @@
 
 <script>
   import AddOrUpdate from './SysPictureBase-AddOrUpdate'
+  import Cookies from 'js-cookie'
 
   export default {
     data() {
       return {
+        url: `${window.SITE_CONFIG['apiURL']}/sysPictureBase/getProductImg?token=${Cookies.get('token')}&id=`,
         dataForm: {
           contentType: '',
           systemMark: '',
-          sortNo:''
+          sortNo: ''
         },
       }
     },
     components: {
       AddOrUpdate
     },
-    methods: {
-      getPath(row) {
-          if (row.accessoryMap){
-            for (let key in row.accessoryMap) {
-              return key
-            }
-          }
-      },
-      indexFormat(index) {
-        return index += 1
-      },
-    }
+    mounted() {
+    },
+    methods: {}
   }
 </script>

--
Gitblit v1.9.1