|
@@ -48,6 +48,7 @@ export default {
|
|
|
item.img1 = curImg[0] || ''
|
|
|
item.img2 = curImg[1] || ''
|
|
|
item.img3 = curImg[2] || ''
|
|
|
+ if (item.is_dispose === '1') item.deal1 = true
|
|
|
})
|
|
|
return arr
|
|
|
}
|
|
@@ -61,12 +62,14 @@ export default {
|
|
|
{ label: '反馈图2', prop: 'img2', type: 'img' },
|
|
|
{ label: '反馈图3', prop: 'img3', type: 'img' },
|
|
|
{ label: '反馈内容', prop: 'feedback_count', fullShow: true, minWidth: '300' },
|
|
|
- { label: '类型', prop: 'feedback_type', type: 'tag', tags: arrToObj(this.$dictData.feedback_type) },
|
|
|
+ { label: '类型', prop: 'feedback_type', fullShow: true, type: 'flag', flags: arrToObj(this.$dictData.feedback_type) },
|
|
|
+ { label: '已处理', prop: 'is_dispose', type: 'tag', tags: arrToObj(this.$dictData.sys_yesno) },
|
|
|
{ label: '联系方式', prop: 'contact' },
|
|
|
{ label: '微信昵称', prop: 'nickname' },
|
|
|
{ label: '微信头像', prop: 'avatar', type: 'img' },
|
|
|
- { label: '操作', width: 60, type: 'handle2', operations:
|
|
|
+ { label: '操作', width: 150, type: 'handle2', operations:
|
|
|
[
|
|
|
+ { label: '标记已处理', func: this.dealHandle, btnType: 'primary', hide: 'deal1' },
|
|
|
{ label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
|
]
|
|
|
}
|
|
@@ -74,6 +77,17 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ dealHandle (row) {
|
|
|
+ this.$msg(`您确定要标记成已处理吗`, 'confirm', () => {
|
|
|
+ this.$api.user.admfeedbackdispose({
|
|
|
+ id: row.id,
|
|
|
+ is_dispose: 1,
|
|
|
+ }).then(data => {
|
|
|
+ this.$msgs(`已处理!`)
|
|
|
+ this.fetchData()
|
|
|
+ })
|
|
|
+ }, null, true)
|
|
|
+ },
|
|
|
delHandle(row) {
|
|
|
this.$msg(`您确定要删除该文章吗?`, 'confirm', () => {
|
|
|
this.$api.user.admfeedbackdel({
|