|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
- <a-card size="small" :bordered="false" class="noticeManagementList-wrap">
|
|
|
|
- <a-spin :spinning="spinning" tip="Loading...">
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <a-card size="small" :bordered="false" class="noticeManagementList-wrap searchBoxNormal">
|
|
<!-- 搜索条件 -->
|
|
<!-- 搜索条件 -->
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
<a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
<a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
@@ -27,57 +27,61 @@
|
|
</a-row>
|
|
</a-row>
|
|
</a-form>
|
|
</a-form>
|
|
</div>
|
|
</div>
|
|
- <!-- 操作按钮 -->
|
|
|
|
- <div class="table-operator">
|
|
|
|
- <a-button id="noticeManagementList-add" type="primary" class="button-error" @click="handleAdd">新增</a-button>
|
|
|
|
- </div>
|
|
|
|
- <!-- 总计 -->
|
|
|
|
- <!-- <a-alert type="info" style="margin-bottom:10px">
|
|
|
|
|
|
+ </a-card>
|
|
|
|
+ <a-card size="small" :bordered="false">
|
|
|
|
+ <a-spin :spinning="spinning" tip="Loading...">
|
|
|
|
+ <!-- 操作按钮 -->
|
|
|
|
+ <div class="table-operator">
|
|
|
|
+ <a-button id="noticeManagementList-add" type="primary" class="button-error" @click="handleAdd">新增</a-button>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- 总计 -->
|
|
|
|
+ <!-- <a-alert type="info" style="margin-bottom:10px">
|
|
<div slot="message">合计:<strong>{{ total || 0 }}</strong>条</div>
|
|
<div slot="message">合计:<strong>{{ total || 0 }}</strong>条</div>
|
|
</a-alert> -->
|
|
</a-alert> -->
|
|
- <!-- 列表 -->
|
|
|
|
- <s-table
|
|
|
|
- class="sTable fixPagination"
|
|
|
|
- ref="table"
|
|
|
|
- :style="{ height: tableHeight+84.5+'px' }"
|
|
|
|
- size="small"
|
|
|
|
- :rowKey="(record) => record.id"
|
|
|
|
- :columns="columns"
|
|
|
|
- :data="loadData"
|
|
|
|
- :scroll="{ y: tableHeight }"
|
|
|
|
- :defaultLoadData="false"
|
|
|
|
- bordered>
|
|
|
|
- <!-- 操作 -->
|
|
|
|
- <template slot="action" slot-scope="text, record">
|
|
|
|
- <a-button
|
|
|
|
- size="small"
|
|
|
|
- type="link"
|
|
|
|
- class="button-info"
|
|
|
|
- v-if="record.sendStatus=='0'"
|
|
|
|
- @click="handleEdit(record)"
|
|
|
|
- id="noticeManagementList-edit-btn">编辑</a-button>
|
|
|
|
- <a-button
|
|
|
|
- size="small"
|
|
|
|
- type="link"
|
|
|
|
- class="button-success"
|
|
|
|
- v-if="record.sendStatus=='1'"
|
|
|
|
- @click="handleDetail(record)"
|
|
|
|
- id="noticeManagementList-detail-btn">详情</a-button>
|
|
|
|
- <a-button
|
|
|
|
- size="small"
|
|
|
|
- type="link"
|
|
|
|
- class="button-error"
|
|
|
|
- v-if="record.sendStatus=='0'"
|
|
|
|
- @click="handleDel(record)"
|
|
|
|
- id="noticeManagementList-del-btn">删除</a-button>
|
|
|
|
- </template>
|
|
|
|
- </s-table>
|
|
|
|
- </a-spin>
|
|
|
|
- <!-- 编辑 -->
|
|
|
|
- <notice-edit-modal :openModal="openModal" :itemId="itemId" @close="closeModal" @ok="$refs.table.refresh()" />
|
|
|
|
- <!-- 详情 -->
|
|
|
|
- <notice-detail-modal :openModal="openDetailModal" :itemId="itemId" @close="closeDetailModal" />
|
|
|
|
- </a-card>
|
|
|
|
|
|
+ <!-- 列表 -->
|
|
|
|
+ <s-table
|
|
|
|
+ class="sTable fixPagination"
|
|
|
|
+ ref="table"
|
|
|
|
+ :style="{ height: tableHeight+84.5+'px' }"
|
|
|
|
+ size="small"
|
|
|
|
+ :rowKey="(record) => record.id"
|
|
|
|
+ :columns="columns"
|
|
|
|
+ :data="loadData"
|
|
|
|
+ :scroll="{ y: tableHeight }"
|
|
|
|
+ :defaultLoadData="false"
|
|
|
|
+ bordered>
|
|
|
|
+ <!-- 操作 -->
|
|
|
|
+ <template slot="action" slot-scope="text, record">
|
|
|
|
+ <a-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="link"
|
|
|
|
+ class="button-info"
|
|
|
|
+ v-if="record.sendStatus=='0'"
|
|
|
|
+ @click="handleEdit(record)"
|
|
|
|
+ id="noticeManagementList-edit-btn">编辑</a-button>
|
|
|
|
+ <a-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="link"
|
|
|
|
+ class="button-success"
|
|
|
|
+ v-if="record.sendStatus=='1'"
|
|
|
|
+ @click="handleDetail(record)"
|
|
|
|
+ id="noticeManagementList-detail-btn">详情</a-button>
|
|
|
|
+ <a-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="link"
|
|
|
|
+ class="button-error"
|
|
|
|
+ v-if="record.sendStatus=='0'"
|
|
|
|
+ @click="handleDel(record)"
|
|
|
|
+ id="noticeManagementList-del-btn">删除</a-button>
|
|
|
|
+ </template>
|
|
|
|
+ </s-table>
|
|
|
|
+ </a-spin>
|
|
|
|
+ <!-- 编辑 -->
|
|
|
|
+ <notice-edit-modal :openModal="openModal" :itemId="itemId" @close="closeModal" @ok="$refs.table.refresh()" />
|
|
|
|
+ <!-- 详情 -->
|
|
|
|
+ <notice-detail-modal :openModal="openDetailModal" :itemId="itemId" @close="closeDetailModal" />
|
|
|
|
+ </a-card>
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -200,7 +204,7 @@ export default {
|
|
},
|
|
},
|
|
setTableH () {
|
|
setTableH () {
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
- this.tableHeight = window.innerHeight - tableSearchH - 240
|
|
|
|
|
|
+ this.tableHeight = window.innerHeight - tableSearchH - 254
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|