From 9057e04efad1b7d61c77a72e5c37a504d0aee935 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 26 九月 2025 09:24:03 +0800
Subject: [PATCH] H5静态化

---
 admin/src/views/business/information.vue |   45 +++++++++++++++++++++++++--------------------
 1 files changed, 25 insertions(+), 20 deletions(-)

diff --git a/admin/src/views/business/information.vue b/admin/src/views/business/information.vue
index 131fb7c..c865cfa 100644
--- a/admin/src/views/business/information.vue
+++ b/admin/src/views/business/information.vue
@@ -5,10 +5,18 @@
       <el-form-item label="鏍囬" prop="title">
         <el-input v-model="searchForm.title" clearable placeholder="璇疯緭鍏ユ爣棰�" @keypress.enter.native="search"></el-input>
       </el-form-item>
+      <el-form-item label="鎵�灞炴ā鍧�" prop="module">
+        <el-select v-model="searchForm.module" clearable @change="search"  >
+          <el-option :value="0" label="琛屼笟璧勮"/>
+          <el-option :value="1" label="杩愯惀缁忛獙"/>
+          <el-option :value="2" label="鍔熻兘浠嬬粛"/>
+          <el-option :value="3" label="甯傚満淇℃伅"/>
+        </el-select>
+      </el-form-item>
       <el-form-item label="鐘舵��" prop="status">
         <el-select v-model="searchForm.status" clearable @change="search" placeholder="鐘舵��">
-          <el-option label="姝e父" value="1"></el-option>
-          <el-option label="绂佺敤" value="0"></el-option>
+          <el-option label="姝e父" value="0"></el-option>
+          <el-option label="绂佺敤" value="1"></el-option>
         </el-select>
       </el-form-item>
       <section>
@@ -19,10 +27,11 @@
     <!-- 琛ㄦ牸鍜屽垎椤� -->
     <template v-slot:table-wrap>
       <ul class="toolbar" v-permissions="['business:information:create', 'business:information:delete']">
-        <li><el-button type="primary" @click="$refs.operaInformationWindow.open('鏂板缓鍔ㄦ�佽祫璁�')" icon="el-icon-plus" v-permissions="['business:information:create']">鏂板缓</el-button></li>
+        <li><el-button type="primary" @click="$refs.operaInformationWindow.open('鏂板缓鍔ㄦ�佽祫璁�',null,searchForm.type)" icon="el-icon-plus" v-permissions="['business:information:create']">鏂板缓</el-button></li>
         <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:information:delete']">鍒犻櫎</el-button></li>
       </ul>
       <el-table
+          :height="tableHeightNew"
           v-loading="isWorking.search"
           :data="tableData.list"
           stripe
@@ -38,11 +47,19 @@
             </el-image>
           </template>
         </el-table-column>
-        <el-table-column prop="detail" label="绠�浠�" min-width="200px"></el-table-column>
+        <el-table-column prop="detail" label="绠�浠�" min-width="200px" show-overflow-tooltip> </el-table-column>
         <el-table-column prop="jumpType" label="鍐呭" align="center" min-width="150px">
           <template slot-scope="{row}">
             <span v-if=  "row.content!=null && row.content!=''"><el-button @click="showContentDo(row)" >鏌ョ湅鍐呭</el-button></span>
             <span v-else>-</span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="module" label="鎵�灞炴ā鍧�" min-width="100px">
+          <template slot-scope="{row}">
+            <span v-if="row.module == 0">琛屼笟璧勮</span>
+            <span v-if="row.module == 1">钀ョ粡楠�</span>
+            <span v-if="row.module == 2">鍔熻兘浠嬬粛</span>
+            <span v-if="row.module == 3">甯傚満淇℃伅</span>
           </template>
         </el-table-column>
         <el-table-column prop="status" label="鐘舵��" min-width="100px">
@@ -63,7 +80,7 @@
             fixed="right"
         >
           <template slot-scope="{row}">
-            <el-button type="text" @click="$refs.operaInformationWindow.open('缂栬緫鍔ㄦ�佽祫璁�', row)" icon="el-icon-edit" v-permissions="['business:information:update']">缂栬緫</el-button>
+            <el-button type="text" @click="$refs.operaInformationWindow.open('缂栬緫鍔ㄦ�佽祫璁�', row,searchForm.type)" icon="el-icon-edit" v-permissions="['business:information:update']">缂栬緫</el-button>
             <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:information:delete']">鍒犻櫎</el-button>
           </template>
         </el-table-column>
@@ -112,22 +129,10 @@
       showContent: '',
       showTitle: '',
       searchForm: {
-        id: '',
-        creator: '',
-        createDate: '',
-        editor: '',
-        editDate: '',
-        isdeleted: '',
-        remark: '',
+        type:0,
         title: '',
-        describe: '',
-        imgurl: '',
-        thumbnailImgurl: '',
-        type: '',
-        jumpType: '',
-        contnet: '',
-        sortnum: '',
-        status: ''
+        module: null,
+        status: null
       }
     }
   },

--
Gitblit v1.9.3