doum
2025-09-26 9057e04efad1b7d61c77a72e5c37a504d0aee935
admin/src/views/business/information.vue
@@ -5,6 +5,14 @@
      <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="正常" value="0"></el-option>
@@ -19,7 +27,7 @@
    <!-- 表格和分页 -->
    <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
@@ -39,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">
@@ -64,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>
@@ -113,7 +129,9 @@
      showContent: '',
      showTitle: '',
      searchForm: {
        type:0,
        title: '',
        module: null,
        status: null
      }
    }