修改已知问题

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;
@@ -35,6 +35,7 @@
<script>
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
import { mapGetters } from 'vuex'
import store from '@/store/'
import moment from 'moment'
export default {
@@ -94,7 +95,7 @@
title: this.$t('cutoffTime'),
dataIndex: 'taskAffirmDueDate',
align: 'center',
ellipsis: true,
ellipsis: true
},
{
title: this.$t('operation'),
@@ -109,6 +110,23 @@
}
},
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: {
...mapGetters(['userInfo']),
onSelectChange() {
@@ -134,6 +134,7 @@
import TaskListModel from './TaskListModel'
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
import { mapGetters } from 'vuex'
import store from '@/store/'
export default {
name: 'TaskList',
@@ -254,8 +255,25 @@
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() {
if (this.areaOfResponsibility.dutyTerritory){
if (this.areaOfResponsibility.dutyTerritory) {
this.queryParam.dutyTerritory = this.areaOfResponsibility.dutyTerritory
}
this.getList()
@@ -290,6 +290,10 @@
line-height: 38px;
height: 38px;
}
.box-input .ant-calendar-picker-input {
padding: 4px 30px 4px 11px;
}
</style>
<style scoped>
.box-title-text {
@@ -80,6 +80,7 @@
<script>
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
import store from '@/store/'
export default {
name: 'nonConformance',
@@ -154,6 +155,23 @@
mounted() {
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: {
searchQuery() {
this.pageNo = 1
@@ -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) => {