先提交一波群众留言
This commit is contained in:
@@ -12,7 +12,7 @@ import PumList from "./mmList";
|
||||
export default {
|
||||
name: "AppMassMessage",
|
||||
components: {PumList, PumDetail},
|
||||
label: "群众留言",
|
||||
label: "群众留言(秀山)",
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
@@ -24,6 +24,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.dict.load("leaveMessageType","yesOrNo")
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -13,9 +13,9 @@
|
||||
<template #title>
|
||||
<b v-text="detail.title||'标题'"/>
|
||||
<el-row type="flex">
|
||||
<el-form-item label="留言编号">{{ detail.createTime || "-" }}</el-form-item>
|
||||
<el-form-item label="留言编号">{{ detail.messageCode || "-" }}</el-form-item>
|
||||
<el-form-item label="留言时间">{{ detail.createTime || "-" }}</el-form-item>
|
||||
<el-form-item label="留言人">{{ detail.createUserName || "-" }}</el-form-item>
|
||||
<el-form-item label="留言人">{{ detail.leaveName || "-" }}</el-form-item>
|
||||
</el-row>
|
||||
<ai-icon type="svg" :icon="statusImages[detail.status||0]"/>
|
||||
</template>
|
||||
@@ -25,7 +25,14 @@
|
||||
</ai-card>
|
||||
<ai-card title="沟通记录">
|
||||
<template #content>
|
||||
|
||||
<div class="commentItem" v-for="op in detail.appLeaveMessageReplyList" :key="op.id">
|
||||
<b v-text="userTypeLabel[op.userType]"/>
|
||||
<div :class="{reply:op.userType==1}">
|
||||
<div v-text="op.content"/>
|
||||
<div class="rightText" v-text="`留言时间:${op.createTime}`"/>
|
||||
</div>
|
||||
</div>
|
||||
<ai-empty v-if="!detail.appLeaveMessageReplyList"/>
|
||||
</template>
|
||||
</ai-card>
|
||||
</el-form>
|
||||
@@ -49,6 +56,12 @@ export default {
|
||||
1: "iconreplied",
|
||||
2: "iconfinished"
|
||||
}
|
||||
},
|
||||
userTypeLabel() {
|
||||
return {
|
||||
0: "留言",
|
||||
1: "回复"
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -59,7 +72,7 @@ export default {
|
||||
methods: {
|
||||
getDetail() {
|
||||
let {id} = this.$route.query
|
||||
this.instance.post("/appportaluserenterprise/queryDetailById", null, {
|
||||
this.instance.post("/appleavemessage/queryDetailById", null, {
|
||||
params: {id}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
@@ -106,5 +119,45 @@ export default {
|
||||
height: 80px;
|
||||
}
|
||||
}
|
||||
|
||||
.commentItem {
|
||||
min-height: 50px;
|
||||
margin-bottom: 40px;
|
||||
|
||||
& > b {
|
||||
font-size: 14px;
|
||||
font-weight: normal;
|
||||
background: #408CFF;
|
||||
color: #fff;
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
border-radius: 4px 4px 0 0;
|
||||
overflow: hidden;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
width: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
& > div {
|
||||
position: relative;
|
||||
padding: 16px 8px;
|
||||
box-sizing: border-box;
|
||||
font-size: 14px;
|
||||
color: #000;
|
||||
background: #fff;
|
||||
border: 1px solid #ccc;
|
||||
|
||||
&.reply {
|
||||
background: #ddd;
|
||||
}
|
||||
}
|
||||
|
||||
.rightText {
|
||||
text-align: right;
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user