先提交一波群众留言

This commit is contained in:
aixianling
2022-03-21 21:29:06 +08:00
parent 5364c2571a
commit 729d644e8b
3 changed files with 69 additions and 13 deletions

View File

@@ -17,8 +17,8 @@
@getList="getTableData" :col-configs="colConfigs" :dict="dict">
<el-table-column slot="options" label="操作" fixed="right" align="center">
<template slot-scope="{row}">
<el-button v-if="row.status==0" type="text" @click="handleEnable(row)">公示</el-button>
<el-button v-else-if="row.status==1" type="text" @click="handleEnable(row)">取消公示</el-button>
<el-button v-if="row.isPublic==0" type="text" @click="handleEnable(row)">公示</el-button>
<el-button v-else-if="row.isPublic==1" type="text" @click="handleEnable(row)">取消公示</el-button>
<el-button type="text" @click="showDetail(row.id)">详情</el-button>
</template>
</el-table-column>
@@ -47,20 +47,21 @@ export default {
page: {current: 1, size: 10, total: 0},
tableData: [],
colConfigs: [
{label: "标题", prop: "enterpriseName"},
{label: "类型", prop: "enterpriseType", dict: "enterpriseType"},
{label: "标题", prop: "title"},
{label: "类型", prop: "type", dict: "leaveMessageType"},
{label: "内容", prop: "content"},
{label: "留言人", prop: "createUserName"},
{label: "留言人", prop: "leaveName"},
{label: "留言提交时间", prop: "createTime"},
{label: "最后回复时间", prop: "loginAccount"},
{label: "最后回复时间", prop: "lastReplyTime"},
{label: "是否公示", prop: "isPublic",dict:"yesOrNo"},
{slot: "options"}
]
}
},
methods: {
getTableData() {
this.instance.post("/appportaluserenterprise/list", null, {
params: {...this.page, ...this.search, status: 1}
this.instance.post("/appleavemessage/list", null, {
params: {...this.page, ...this.search}
}).then(res => {
if (res?.data) {
this.tableData = res.data?.records
@@ -92,5 +93,6 @@ export default {
<style lang="scss" scoped>
.mmList {
height: 100%;
}
</style>