|
|
@ -41,53 +41,44 @@ |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
<div class="div_table"> |
|
|
|
<div class="div_btn"><el-button style="" class="diy-button--reset" size="small" @click="add()">发布</el-button></div> |
|
|
|
<div class="div_btn"><el-button style="" class="diy-button--add" size="small" @click="add()">发布</el-button></div> |
|
|
|
<div style="padding: 0 10px"> |
|
|
|
<el-table |
|
|
|
class="table" |
|
|
|
ref="ref_table" |
|
|
|
:data="tableData" |
|
|
|
border |
|
|
|
:height="tableHeight" |
|
|
|
v-loading="tableLoading" |
|
|
|
:header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }" |
|
|
|
style="width: 100%" |
|
|
|
> |
|
|
|
<el-table-column label="序号" header-align="center" align="center" type="index" width="50"></el-table-column> |
|
|
|
|
|
|
|
<el-table |
|
|
|
class="table" |
|
|
|
ref="ref_table" |
|
|
|
:data="tableData" |
|
|
|
border |
|
|
|
:height="tableHeight" |
|
|
|
v-loading="tableLoading" |
|
|
|
:header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }" |
|
|
|
style="width: 100%" |
|
|
|
> |
|
|
|
<el-table-column label="序号" header-align="center" align="center" type="index" width="50"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="content" header-align="center" align="center" label="发布内容" min-width="100"></el-table-column> |
|
|
|
<el-table-column prop="publishDitch" header-align="center" align="center" label="发布渠道" min-width="110"></el-table-column> |
|
|
|
<el-table-column prop="publishRangeName" header-align="center" align="center" label="发布范围" min-width="110"></el-table-column> |
|
|
|
<el-table-column prop="publishTime" header-align="center" align="center" label="发布时间" min-width="110"></el-table-column> |
|
|
|
<el-table-column prop="count" align="center" width="110" label="操作" :show-overflow-tooltip="true"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button size="small" type="text" @click="show(scope.row)">查看</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<div> |
|
|
|
<el-pagination |
|
|
|
@size-change="handleSizeChange" |
|
|
|
@current-change="handleCurrentChange" |
|
|
|
:current-page.sync="pageNo" |
|
|
|
:page-sizes="[20, 50, 100, 200]" |
|
|
|
:page-size="pageSize" |
|
|
|
layout="sizes, prev, pager, next, total" |
|
|
|
:total="total" |
|
|
|
></el-pagination> |
|
|
|
<el-table-column prop="content" header-align="center" align="center" label="发布内容" min-width="100"></el-table-column> |
|
|
|
<el-table-column prop="publishDitch" header-align="center" align="center" label="发布渠道" min-width="110"></el-table-column> |
|
|
|
<el-table-column prop="publishRangeName" header-align="center" align="center" label="发布范围" min-width="110"></el-table-column> |
|
|
|
<el-table-column prop="publishTime" header-align="center" align="center" label="发布时间" min-width="110"></el-table-column> |
|
|
|
<el-table-column prop="count" align="center" width="110" label="操作" :show-overflow-tooltip="true"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button size="small" type="text" @click="show(scope.row)">查看</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<div> |
|
|
|
<el-pagination |
|
|
|
@size-change="handleSizeChange" |
|
|
|
@current-change="handleCurrentChange" |
|
|
|
:current-page.sync="pageNo" |
|
|
|
:page-sizes="[20, 50, 100, 200]" |
|
|
|
:page-size="pageSize" |
|
|
|
layout="sizes, prev, pager, next, total" |
|
|
|
:total="total" |
|
|
|
></el-pagination> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<addForm |
|
|
|
v-if="dialogVisible" |
|
|
|
:dialogVisible="dialogVisible" |
|
|
|
:pageType="pageType" |
|
|
|
:disabled="disabled" |
|
|
|
:detailId="detailId" |
|
|
|
:detailData="detailData" |
|
|
|
@handleClose="handleClose" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div><addForm v-if="dialogVisible" :dialogVisible="dialogVisible" :pageType="pageType" :detailId="detailId" @handleClose="handleClose" /></div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -100,7 +91,7 @@ let loading; // 加载动画 |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
dialogVisible:false, |
|
|
|
dialogVisible: false, |
|
|
|
loading: false, |
|
|
|
total: 0, |
|
|
|
pageSize: 20, |
|
|
@ -136,7 +127,7 @@ export default { |
|
|
|
tableData: [] |
|
|
|
}; |
|
|
|
}, |
|
|
|
components: {addForm}, |
|
|
|
components: { addForm }, |
|
|
|
|
|
|
|
async mounted() { |
|
|
|
//获取场所类型 |
|
|
@ -169,7 +160,7 @@ export default { |
|
|
|
add() { |
|
|
|
this.dialogVisible = true; |
|
|
|
this.pageType = 'add'; |
|
|
|
// this.detailId = row.messageId; |
|
|
|
this.detailId = ''; |
|
|
|
// this.detailData = row; |
|
|
|
}, |
|
|
|
show(row) { |
|
|
@ -182,7 +173,7 @@ export default { |
|
|
|
this.dialogVisible = false; |
|
|
|
this.pageType = 'list'; |
|
|
|
this.detailId = ''; |
|
|
|
this.getTableData(); |
|
|
|
this.loadTable(); |
|
|
|
}, |
|
|
|
getOrgTreeList() { |
|
|
|
const { user } = this.$store.state; |
|
|
@ -263,7 +254,7 @@ export default { |
|
|
|
}; |
|
|
|
this.timeRange = []; |
|
|
|
this.pageNo = 0; |
|
|
|
// this.loadTable() |
|
|
|
this.loadTable() |
|
|
|
}, |
|
|
|
|
|
|
|
handleSizeChange(val) { |
|
|
|