doum
2025-09-11 7298d5354963a88643a543b51b90192dc9fc934c
admin/src/views/system/smsMessage.vue
@@ -3,11 +3,10 @@
    <QueryForm v-model="filters" :query-form-config="queryFormConfig" @handleQuery="getList(1)" @clear="clear">
    </QueryForm>
    <div class="pt16 mb10">
      <el-button type="primary" @click="batchStatus(0)"
        v-permissions="['business:platformjob:update']">批量启用</el-button>
      <el-button type="primary" @click="batchStatus(0)" v-permissions="['business:platformjob:update']">批量启用</el-button>
      <el-button @click="batchStatus(1)" v-permissions="['business:platformjob:update']">批量禁用</el-button>
    </div>
    <el-table @selection-change="handleSelectionChange" class="mb20" v-loading="loading" :data="list" stripe>
    <el-table :height="tableHeightNew" @selection-change="handleSelectionChange" class="mb40" v-loading="loading" :data="list" stripe>
      <el-table-column align="center" type="selection" width="55">
      </el-table-column>
      <el-table-column prop="name" label="消息标题" min-width="160" show-overflow-tooltip />
@@ -15,7 +14,8 @@
      <el-table-column prop="content" label="消息模板" min-width="300" show-overflow-tooltip />
      <el-table-column label="状态" width="120" align="center" fixed="right">
        <template v-slot="scope">
          <el-switch v-permissions="['business:platformjob:update']" v-model="scope.row.status" @change="changeStatus(scope.row)" :active-value="0" :inactive-value="1">
          <el-switch v-permissions="['business:platformjob:update']" v-model="scope.row.status"
            @change="changeStatus(scope.row)" :active-value="0" :inactive-value="1">
          </el-switch>
        </template>
      </el-table-column>
@@ -31,8 +31,10 @@
import GlobalWindow from '@/components/common/GlobalWindow'
import { Message } from 'element-ui'
import BaseComputHeight from '@/components/base/BaseComputHeight'
import dayjs from 'dayjs'
export default {
  extends: BaseComputHeight,
  components: {
    Pagination,
    QueryForm,
@@ -141,10 +143,11 @@
    clear() {
      this.pagination.page = 1
      this.filters = {}
      this.getList()
      this.getList(1)
    },
    handleSizeChange(capacity) {
      this.pagination.pageSize = capacity
      this.getList(1)
    }
  }
}
@@ -156,4 +159,4 @@
  color: #000000;
  margin-bottom: 15px;
}
</style>
</style>