修改已知问题
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user