rk
2025-09-22 f34f5322ffa898b42ce4467af9916c9e73deb4f9
frontWuhu/src/views/business/applicationInfo.vue
@@ -5,12 +5,11 @@
      <el-form-item label="应用名称" prop="name">
        <el-input v-model="searchForm.name" placeholder="请输入应用名称" @keypress.enter.native="search"></el-input>
      </el-form-item>
      <el-form-item label="服务商名称" prop="serverId">
        <el-input v-model="searchForm.serverId" placeholder="请输入服务商名称" @keypress.enter.native="search"></el-input>
      <el-form-item label="服务商名称" prop="serverName">
        <el-input v-model="searchForm.serverName" placeholder="请输入服务商名称" @keypress.enter.native="search"></el-input>
      </el-form-item>
      <section>
        <el-button type="primary" @click="search">搜索</el-button>
        <el-button type="primary" :loading="isWorking.export" v-permissions="['business:applicationinfo:exportExcel']" @click="exportExcel">导出</el-button>
        <el-button @click="reset">重置</el-button>
      </section>
    </el-form>
@@ -38,7 +37,11 @@
        <el-table-column prop="serverName" label="服务商" min-width="100px"></el-table-column>
        <el-table-column prop="lables" label="标签" min-width="100px"></el-table-column>
        <el-table-column prop="introduction" label="简介" min-width="100px"></el-table-column>
        <el-table-column prop="details" label="详情" min-width="100px"></el-table-column>
        <el-table-column prop="details" label="详情" min-width="100px">
          <template slot-scope="{row}">
            <el-button type="text" @click="$refs.protocol.open('详情', row.details || '<p></p>')">点击查看</el-button>
          </template>
        </el-table-column>
        <el-table-column label="状态" min-width="100px">
          <template slot-scope="{row}">
            <el-switch
@@ -72,6 +75,7 @@
    </template>
    <!-- 新建/修改 -->
    <OperaApplicationInfoWindow ref="operaApplicationInfoWindow" @success="handlePageChange"/>
    <Protocol ref="protocol"/>
  </TableLayout>
</template>
@@ -81,28 +85,17 @@
import Pagination from '@/components/common/Pagination'
import OperaApplicationInfoWindow from '@/components/business/OperaApplicationInfoWindow'
import { updateStatus } from '@/api/business/applicationInfo'
import Protocol from "@/components/Protocol.vue";
export default {
  name: 'ApplicationInfo',
  extends: BaseTable,
  components: { TableLayout, Pagination, OperaApplicationInfoWindow },
  components: { TableLayout, Pagination, OperaApplicationInfoWindow, Protocol },
  data () {
    return {
      // 搜索
      searchForm: {
        id: '',
        creator: '',
        createDate: '',
        editor: '',
        editDate: '',
        isdeleted: '',
        status: '',
        remark: '',
        serverId: '',
        name: '',
        logo: '',
        lables: '',
        introduction: '',
        details: ''
        serverName: '',
        name: ''
      }
    }
  },