优化消息已读
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "vue-admin",
|
"name": "vue-admin",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.3.1",
|
"version": "1.3.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -33,13 +33,16 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="120">
|
<el-table-column label="操作" width="120">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
<el-button type="success" size="small" icon="ChatDotSquare"
|
||||||
|
v-if="scope.row.typefirst != 1 || scope.row.typesecond != 1" :disabled="scope.row.isdeal == 1"
|
||||||
|
@click="readerHandle(scope.row)">已读</el-button>
|
||||||
<el-link :href="scope.row.url" target="_blank" :underline="false" v-if="scope.row.url">
|
<el-link :href="scope.row.url" target="_blank" :underline="false" v-if="scope.row.url">
|
||||||
<el-button type="primary" size="small" icon="Link"
|
<el-button type="warning" size="small" icon="Link"
|
||||||
@click="readerHandle(scope.row)">跳转</el-button>
|
@click="readerHandle(scope.row)">跳转</el-button>
|
||||||
</el-link>
|
</el-link>
|
||||||
<RouterLink :to="{ name: 'shop_detail', query: { id: scope.row.userid, type: 'msg1' } }"
|
<RouterLink :to="{ name: 'shop_detail', query: { id: scope.row.userid, type: 'msg1' } }"
|
||||||
v-if="scope.row.typefirst == 1 && scope.row.typesecond == 1">
|
v-if="scope.row.typefirst == 1 && scope.row.typesecond == 1">
|
||||||
<el-button type="primary" size="small" icon="Link"
|
<el-button type="primary" size="small" icon="Edit"
|
||||||
@click="readerHandle(scope.row)">处理</el-button>
|
@click="readerHandle(scope.row)">处理</el-button>
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
</template>
|
</template>
|
||||||
@@ -94,10 +97,11 @@ async function getNoticesAjax() {
|
|||||||
|
|
||||||
// 已读消息
|
// 已读消息
|
||||||
function readerHandle(item) {
|
function readerHandle(item) {
|
||||||
|
console.log(item)
|
||||||
if (!item.isdeal) {
|
if (!item.isdeal) {
|
||||||
unread({ noticecode: item.noticecode })
|
unread({ noticecode: item.noticecode })
|
||||||
|
paginationChange()
|
||||||
}
|
}
|
||||||
paginationChange()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
@@ -107,6 +111,6 @@ onMounted(() => {
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.table {
|
.table {
|
||||||
height: calc(100vh - 263px);
|
height: calc(100vh - 218px);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user