|
@@ -5,7 +5,12 @@
|
|
mode="horizontal"
|
|
mode="horizontal"
|
|
@select="handleSelect"
|
|
@select="handleSelect"
|
|
>
|
|
>
|
|
- <el-menu-item index="1">我的消息</el-menu-item>
|
|
|
|
|
|
+ <el-menu-item index="1">
|
|
|
|
+
|
|
|
|
+ <el-badge :value="msgCount.myMessageCount" style="display: flex;" >
|
|
|
|
+ <span class="font-bold">我的消息 </span>
|
|
|
|
+ </el-badge>
|
|
|
|
+ </el-menu-item>
|
|
<el-menu-item index="2">所有消息</el-menu-item>
|
|
<el-menu-item index="2">所有消息</el-menu-item>
|
|
</el-menu>
|
|
</el-menu>
|
|
<avue-crud
|
|
<avue-crud
|
|
@@ -138,6 +143,7 @@
|
|
<script>
|
|
<script>
|
|
import { queryBusinessUserOpinionList, manageUserOperationStatus, queryBusinessUserOpinionListAll } from "@/api/news/news.js";
|
|
import { queryBusinessUserOpinionList, manageUserOperationStatus, queryBusinessUserOpinionListAll } from "@/api/news/news.js";
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
|
+import ws from "@/api/ws.js";
|
|
export default {
|
|
export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
@@ -233,6 +239,14 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ props:{
|
|
|
|
+ msgCount:{
|
|
|
|
+ type: Object,
|
|
|
|
+ default: {
|
|
|
|
+ myMessageCount:0
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
created () {
|
|
created () {
|
|
this.init();
|
|
this.init();
|
|
//console.log(this.userInfo)
|
|
//console.log(this.userInfo)
|
|
@@ -272,6 +286,7 @@ export default {
|
|
this.activeIndex = key
|
|
this.activeIndex = key
|
|
},
|
|
},
|
|
async SubmissionProgress () {//提交进度弹框保存按钮事件
|
|
async SubmissionProgress () {//提交进度弹框保存按钮事件
|
|
|
|
+
|
|
if (this.curRow.currentLink == 2) {
|
|
if (this.curRow.currentLink == 2) {
|
|
if (this.operation.manageTime) {
|
|
if (this.operation.manageTime) {
|
|
await this.manageUserOperationStatus({
|
|
await this.manageUserOperationStatus({
|
|
@@ -314,6 +329,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async queryBusinessUserOpinionList () {//获取分配给当前登录用户的工单记录
|
|
async queryBusinessUserOpinionList () {//获取分配给当前登录用户的工单记录
|
|
|
|
+ this.showLoading=true
|
|
const { data: res } = await queryBusinessUserOpinionList({
|
|
const { data: res } = await queryBusinessUserOpinionList({
|
|
current: this.page.currentPage,
|
|
current: this.page.currentPage,
|
|
size: this.page.pageSize
|
|
size: this.page.pageSize
|
|
@@ -322,6 +338,8 @@ export default {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.data = res.data.records
|
|
this.data = res.data.records
|
|
this.page.total = res.data.total
|
|
this.page.total = res.data.total
|
|
|
|
+ this.showLoading=false
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async manageUserOperationStatus (da) {//业务人员提交环节操作
|
|
async manageUserOperationStatus (da) {//业务人员提交环节操作
|
|
@@ -333,7 +351,10 @@ export default {
|
|
message: '提交成功!'
|
|
message: '提交成功!'
|
|
})
|
|
})
|
|
//重新刷新列表
|
|
//重新刷新列表
|
|
- await this.queryBusinessUserOpinionList();
|
|
|
|
|
|
+ // await this.queryBusinessUserOpinionList();
|
|
|
|
+ //刷新页面
|
|
|
|
+ window.location.reload()
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async queryBusinessUserOpinionListAll () {//所有工单处理列表
|
|
async queryBusinessUserOpinionListAll () {//所有工单处理列表
|