修改已知问题

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
@@ -181,6 +181,7 @@
<script>
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
import PersonnelSelection from '@/components/PersonnelSelection/index'
import store from '@/store/'
export default {
name: 'projectNonConformance',
@@ -201,56 +202,56 @@
align: 'center',
dataIndex: 'serialNumber',
ellipsis: true,
width:180,
scopedSlots: { customRender: 'standard' },
width: 180,
scopedSlots: { customRender: 'standard' }
},
{
title: this.$t('title'),
align: 'center',
dataIndex: 'title',
ellipsis: true,
width:180,
width: 180,
scopedSlots: { customRender: 'standard' }
},
{
title: this.$t('ProcessType'),
align: 'center',
dataIndex: 'flowType',
width:180,
width: 180,
ellipsis: true
},
{
title: this.$t('areaOfResponsibility'),
align: 'center',
dataIndex: 'dutyTerritory_dictText',
width:180,
width: 180,
ellipsis: true
},
{
title: this.$t('RelatedItems'),
align: 'center',
dataIndex: 'projectName',
width:180,
width: 180,
ellipsis: true
},
{
title: this.$t('problemType'),
align: 'center',
dataIndex: 'problemType',
width:140,
ellipsis: true,
width: 140,
ellipsis: true
},
{
title: this.$t('Sponsor'),
align: 'center',
dataIndex: 'initiator',
width:140,
width: 140
},
{
title: this.$t('personLiable'),
align: 'center',
dataIndex: 'duty',
width:140,
width: 140
}
],
total: 0,
@@ -263,10 +264,27 @@
content: []
}
},
created() {
if (store.getters.userInfo) {
this.$socketPublic.dispatch('webSocketInit')//初始化ws
}
},
mounted() {
this.getList()
this.getNameList()
},
watch: {
'$socketPublic.state.msg': {
//处理接收到的消息
handler: function(res) {
let that = this
let data = JSON.parse(res.data)
if (data.msgId) {
this.getList()
}
}
}
},
methods: {
getNameList() {
getAction('project/projectNameInfoEO/list', {}).then((res) => {