修改已知问题

This commit is contained in:
qq787203167
2022-05-31 16:37:03 +08:00
parent 9ff43ed755
commit 2c0394ffda
6 changed files with 108 additions and 13 deletions
@@ -32,6 +32,7 @@
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
import { mapGetters } from 'vuex'
import moment from 'moment'
import store from '@/store/'
export default {
name: 'myList',
@@ -40,7 +41,7 @@
pageSize: 4,
pageNo: 1,
dataSource: [],
loading:false,
loading: false,
prcTypeName: {
1: this.$t('taskConfirmationProcess')
}
@@ -49,6 +50,23 @@
mounted() {
this.queryProcess()
},
watch: {
'$socketPublic.state.msg': {
//处理接收到的消息
handler: function(res) {
let that = this
let data = JSON.parse(res.data)
if (data.msgId) {
this.queryProcess()
}
}
}
},
created() {
if (store.getters.userInfo) {
this.$socketPublic.dispatch('webSocketInit')//初始化ws
}
},
methods: {
...mapGetters(['userInfo']),
queryProcess() {
@@ -121,6 +139,7 @@
margin-bottom: 14px;
position: relative;
cursor: pointer;
.top {
.top-text {
font-size: 16px;