From 9d901b4215323c97a00a068cd962f5c9c04dadfa Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 04 九月 2025 10:15:09 +0800
Subject: [PATCH] 前端

---
 admin/src/views/business/categoryCar.vue |   30 +++++++++++++++++++-----------
 1 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/admin/src/views/business/categoryCar.vue b/admin/src/views/business/categoryCar.vue
index 7e9c84e..a848f63 100644
--- a/admin/src/views/business/categoryCar.vue
+++ b/admin/src/views/business/categoryCar.vue
@@ -13,7 +13,7 @@
     <!-- 琛ㄦ牸鍜屽垎椤� -->
     <template v-slot:table-wrap>
       <ul class="toolbar" v-permissions="['business:category:create', 'business:category:delete']">
-        <li><el-button type="primary" @click="$refs.operaCategoryWindow.open('鏂板缓鍝佺閰嶇疆',null,searchForm.type)" icon="el-icon-plus" v-permissions="['business:category:create']">鏂板缓</el-button></li>
+        <li><el-button type="primary" @click="$refs.operaCategoryWindow.open('鏂板缓璐ц繍閰嶇疆',null,searchForm.type)" icon="el-icon-plus" v-permissions="['business:category:create']">鏂板缓</el-button></li>
         <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:category:delete']">鍒犻櫎</el-button></li>
       </ul>
       <el-table
@@ -24,20 +24,27 @@
         @selection-change="handleSelectionChange"
       >
         <el-table-column type="selection" :selectable="isChangeSelected" width="55"></el-table-column>
-        <el-table-column prop="name" label="鍗曚綅鍚嶇О" min-width="100px"></el-table-column>
+        <el-table-column  prop="icon" label="鍥炬爣" min-width="100px">
+          <template slot-scope="{row}">
+            <el-image v-if="row.iconFull" style="width: 50px; height: 50px; margin-right: 10px" :src="row.iconFull"
+                      :preview-src-list="[row.iconFull]">
+            </el-image>
+          </template>
+        </el-table-column>
+        <el-table-column prop="name" label="鍚嶇О" min-width="100px"></el-table-column>
         <el-table-column  prop="isFixed" label="鏄惁鍥哄畾杞﹁締" min-width="100px">
           <template slot-scope="{row}">
             <span v-if="row.isFixed ==1" >鏄�</span>
             <span v-else >鍚�</span>
           </template>
         </el-table-column>
-        <el-table-column  prop="detail" label="鍙�夎鏍�" min-width="100px">
+        <el-table-column  prop="detail" label="鍙�夎鏍�" min-width="200px">
           <template slot-scope="{row}">
               <div v-if="row.detailList && row.detailList.length">
-                <div v-for="item in row.detailList">
+                <span v-for="(item,index) in row.detailList">
                   {{item || ''}}
-                  <span v-if="item.index < row.detailList.length" style="margin: 10px">|</span>
-                </div>
+                  <span v-if="index < row.detailList.length-1" style="margin: 5px">|</span>
+                </span>
               </div>
           </template>
         </el-table-column>
@@ -48,6 +55,7 @@
             </el-switch>
           </template>
         </el-table-column>
+        <el-table-column prop="remark" label="鎻忚堪" min-width="100px"></el-table-column>
         <el-table-column prop="sortnum" label="鎺掑簭鐮�" min-width="100px"></el-table-column>
         <el-table-column prop="updateUserName" label="鎿嶄綔浜�" min-width="100px"></el-table-column>
         <el-table-column prop="updateTime" label="鏈�杩戞搷浣滄椂闂�" min-width="150px"></el-table-column>
@@ -58,8 +66,8 @@
           fixed="right"
         >
           <template slot-scope="{row}">
-            <el-button type="text" v-if="row.isFixed != 1"  @click="$refs.operaCategoryWindow.open('缂栬緫鏂板缓鍝佺閰嶇疆', row,searchForm.type)" icon="el-icon-edit" v-permissions="['business:category:update']">缂栬緫</el-button>
-            <el-button type="text" v-if="row.isFixed != 1"  @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:category:delete']">鍒犻櫎</el-button>
+            <el-button type="text"   @click="$refs.operaCategoryWindow.open('缂栬緫鏂板缓璐ц繍閰嶇疆', row,searchForm.type)" icon="el-icon-edit" v-permissions="['business:category:update']">缂栬緫</el-button>
+            <el-button type="text"   @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:category:delete']">鍒犻櫎</el-button>
           </template>
         </el-table-column>
       </el-table>
@@ -104,9 +112,9 @@
   },
   methods: {
     isChangeSelected(row,index){
-      if(row.isFixed ==1) {
-        return false
-      }
+      // if(row.isFixed ==1) {
+      //   return false
+      // }
       return true
     },
     changeStatus (e, row) {

--
Gitblit v1.9.3