修改已知问题

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 { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import moment from 'moment' import moment from 'moment'
import store from '@/store/'
export default { export default {
name: 'myList', name: 'myList',
@@ -40,7 +41,7 @@
pageSize: 4, pageSize: 4,
pageNo: 1, pageNo: 1,
dataSource: [], dataSource: [],
loading:false, loading: false,
prcTypeName: { prcTypeName: {
1: this.$t('taskConfirmationProcess') 1: this.$t('taskConfirmationProcess')
} }
@@ -49,6 +50,23 @@
mounted() { mounted() {
this.queryProcess() 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: { methods: {
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
queryProcess() { queryProcess() {
@@ -121,6 +139,7 @@
margin-bottom: 14px; margin-bottom: 14px;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
.top { .top {
.top-text { .top-text {
font-size: 16px; font-size: 16px;
@@ -35,6 +35,7 @@
<script> <script>
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage' import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import store from '@/store/'
import moment from 'moment' import moment from 'moment'
export default { export default {
@@ -94,7 +95,7 @@
title: this.$t('cutoffTime'), title: this.$t('cutoffTime'),
dataIndex: 'taskAffirmDueDate', dataIndex: 'taskAffirmDueDate',
align: 'center', align: 'center',
ellipsis: true, ellipsis: true
}, },
{ {
title: this.$t('operation'), title: this.$t('operation'),
@@ -109,6 +110,23 @@
} }
}, },
computed: {}, computed: {},
created() {
if (store.getters.userInfo) {
this.$socketPublic.dispatch('webSocketInit')//初始化ws
}
},
watch: {
'$socketPublic.state.msg': {
//处理接收到的消息
handler: function(res) {
let that = this
let data = JSON.parse(res.data)
if (data.msgId) {
this.queryProcess()
}
}
}
},
methods: { methods: {
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
onSelectChange() { onSelectChange() {
@@ -134,6 +134,7 @@
import TaskListModel from './TaskListModel' import TaskListModel from './TaskListModel'
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage' import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import store from '@/store/'
export default { export default {
name: 'TaskList', name: 'TaskList',
@@ -254,8 +255,25 @@
long: '' long: ''
} }
}, },
watch: {
'$socketPublic.state.msg': {
//处理接收到的消息
handler: function(res) {
let that = this
let data = JSON.parse(res.data)
if (data.msgId) {
this.getList()
}
}
}
},
created() {
if (store.getters.userInfo) {
this.$socketPublic.dispatch('webSocketInit')//初始化ws
}
},
mounted() { mounted() {
if (this.areaOfResponsibility.dutyTerritory){ if (this.areaOfResponsibility.dutyTerritory) {
this.queryParam.dutyTerritory = this.areaOfResponsibility.dutyTerritory this.queryParam.dutyTerritory = this.areaOfResponsibility.dutyTerritory
} }
this.getList() this.getList()
@@ -290,6 +290,10 @@
line-height: 38px; line-height: 38px;
height: 38px; height: 38px;
} }
.box-input .ant-calendar-picker-input {
padding: 4px 30px 4px 11px;
}
</style> </style>
<style scoped> <style scoped>
.box-title-text { .box-title-text {
@@ -80,6 +80,7 @@
<script> <script>
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage' import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
import store from '@/store/'
export default { export default {
name: 'nonConformance', name: 'nonConformance',
@@ -154,6 +155,23 @@
mounted() { mounted() {
this.getList() this.getList()
}, },
created() {
if (store.getters.userInfo) {
this.$socketPublic.dispatch('webSocketInit')//初始化ws
}
},
watch: {
'$socketPublic.state.msg': {
//处理接收到的消息
handler: function(res) {
let that = this
let data = JSON.parse(res.data)
if (data.msgId) {
this.getList()
}
}
}
},
methods: { methods: {
searchQuery() { searchQuery() {
this.pageNo = 1 this.pageNo = 1
@@ -181,6 +181,7 @@
<script> <script>
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage' import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
import PersonnelSelection from '@/components/PersonnelSelection/index' import PersonnelSelection from '@/components/PersonnelSelection/index'
import store from '@/store/'
export default { export default {
name: 'projectNonConformance', name: 'projectNonConformance',
@@ -201,56 +202,56 @@
align: 'center', align: 'center',
dataIndex: 'serialNumber', dataIndex: 'serialNumber',
ellipsis: true, ellipsis: true,
width:180, width: 180,
scopedSlots: { customRender: 'standard' }, scopedSlots: { customRender: 'standard' }
}, },
{ {
title: this.$t('title'), title: this.$t('title'),
align: 'center', align: 'center',
dataIndex: 'title', dataIndex: 'title',
ellipsis: true, ellipsis: true,
width:180, width: 180,
scopedSlots: { customRender: 'standard' } scopedSlots: { customRender: 'standard' }
}, },
{ {
title: this.$t('ProcessType'), title: this.$t('ProcessType'),
align: 'center', align: 'center',
dataIndex: 'flowType', dataIndex: 'flowType',
width:180, width: 180,
ellipsis: true ellipsis: true
}, },
{ {
title: this.$t('areaOfResponsibility'), title: this.$t('areaOfResponsibility'),
align: 'center', align: 'center',
dataIndex: 'dutyTerritory_dictText', dataIndex: 'dutyTerritory_dictText',
width:180, width: 180,
ellipsis: true ellipsis: true
}, },
{ {
title: this.$t('RelatedItems'), title: this.$t('RelatedItems'),
align: 'center', align: 'center',
dataIndex: 'projectName', dataIndex: 'projectName',
width:180, width: 180,
ellipsis: true ellipsis: true
}, },
{ {
title: this.$t('problemType'), title: this.$t('problemType'),
align: 'center', align: 'center',
dataIndex: 'problemType', dataIndex: 'problemType',
width:140, width: 140,
ellipsis: true, ellipsis: true
}, },
{ {
title: this.$t('Sponsor'), title: this.$t('Sponsor'),
align: 'center', align: 'center',
dataIndex: 'initiator', dataIndex: 'initiator',
width:140, width: 140
}, },
{ {
title: this.$t('personLiable'), title: this.$t('personLiable'),
align: 'center', align: 'center',
dataIndex: 'duty', dataIndex: 'duty',
width:140, width: 140
} }
], ],
total: 0, total: 0,
@@ -263,10 +264,27 @@
content: [] content: []
} }
}, },
created() {
if (store.getters.userInfo) {
this.$socketPublic.dispatch('webSocketInit')//初始化ws
}
},
mounted() { mounted() {
this.getList() this.getList()
this.getNameList() this.getNameList()
}, },
watch: {
'$socketPublic.state.msg': {
//处理接收到的消息
handler: function(res) {
let that = this
let data = JSON.parse(res.data)
if (data.msgId) {
this.getList()
}
}
}
},
methods: { methods: {
getNameList() { getNameList() {
getAction('project/projectNameInfoEO/list', {}).then((res) => { getAction('project/projectNameInfoEO/list', {}).then((res) => {