From a59ff44b2eaa7020f0529632d9ec064c4dc38e27 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期二, 28 四月 2026 22:08:46 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/gtzxinglijicun

---
 admin/src/views/business/bannerList.vue |   37 +++++++++----------------------------
 1 files changed, 9 insertions(+), 28 deletions(-)

diff --git a/admin/src/views/business/bannerList.vue b/admin/src/views/business/bannerList.vue
index af7e5ab..29f43ef 100644
--- a/admin/src/views/business/bannerList.vue
+++ b/admin/src/views/business/bannerList.vue
@@ -31,6 +31,7 @@
               v-if="row.imgurlFull"
               style="width: 80px; height: 40px"
               :src="row.imgurlFull"
+              :preview-src-list="[row.imgurlFull]"
               fit="contain"
             ></el-image>
             <span v-else>-</span>
@@ -57,8 +58,8 @@
         <el-table-column prop="updateTime" label="淇敼鏃堕棿" min-width="160px"></el-table-column>
         <el-table-column label="鎿嶄綔" min-width="150" fixed="right">
           <template slot-scope="{row}">
-            <el-button type="text" @click="handleEdit(row)">缂栬緫</el-button>
-            <el-button type="text" @click="deleteById(row.id)">鍒犻櫎</el-button>
+            <el-button type="text" @click="$refs.operaBannerEditWindow.open('缂栬緫杞挱鍥�', row,searchForm.type)" >缂栬緫</el-button>
+            <el-button type="text" style="color: red;" @click="deleteById(row)">鍒犻櫎</el-button>
           </template>
         </el-table-column>
       </el-table>
@@ -68,7 +69,7 @@
         :pagination="tableData.pagination"
       ></pagination>
     </template>
-    <OperaBannerEditWindow ref="operaBannerEditWindow" @success="search" />
+    <OperaBannerEditWindow ref="operaBannerEditWindow" @success="handlePageChange" />
   </TableLayout>
 </template>
 
@@ -77,8 +78,6 @@
 import TableLayout from '@/layouts/TableLayout'
 import Pagination from '@/components/common/Pagination'
 import OperaBannerEditWindow from '@/components/business/OperaBannerEditWindow'
-import { updateById, deleteById } from '@/api/business/banner'
-
 export default {
   name: 'BannerList',
   extends: BaseTable,
@@ -86,13 +85,13 @@
   data () {
     return {
       positionOptions: {
-        0: '棣栭〉',
-        1: '搴楅摵棣栭〉'
+        0: '浼氬憳绔椤佃疆鎾�',
+        1: '鍙告満APP寮曞椤�'
       },
       jumpTypeOptions: {
         0: '鏃�',
-        1: '浼氬憳绔椤佃疆鎾�',
-        2: '鍙告満APP寮曞椤�'
+        1: '瀵屾枃鏈�',
+        2: '澶栭摼'
       },
       searchForm: {
         title: ''
@@ -107,26 +106,8 @@
     this.search()
   },
   methods: {
-    loadTableData (resolve) {
-      this.isWorking.search = true
-      list(this.getTableParams())
-        .then(data => {
-          this.tableData.list = data.list || []
-          this.tableData.pagination.total = data.total || 0
-          if (resolve) resolve(data)
-        })
-        .catch(e => {
-          this.$tip.apiFailed(e, '鍔犺浇澶辫触')
-        })
-        .finally(() => {
-          this.isWorking.search = false
-        })
-    },
-    handleEdit (row) {
-      this.$refs.operaBannerEditWindow.open('缂栬緫杞挱鍥�', row)
-    },
     handleStatusChange (val, row) {
-      updateStatus({ id: row.id, status: val }).then(res => {
+      this.api.updateStatus({ id: row.id, status: val }).then(res => {
         this.$tip.apiSuccess(res || '淇敼鎴愬姛')
       }).catch(e => {
         row.status = val === 1 ? 0 : 1

--
Gitblit v1.9.3