对接握手流程

This commit is contained in:
qq787203167
2022-04-26 14:02:01 +08:00
parent eb2fc10bc7
commit 3c0f7798cd
2 changed files with 25 additions and 15 deletions
@@ -150,7 +150,8 @@
],
url: {
urlFrom: 'project/projectLibraryBase/queryById',
queryProjectLawsInventoryInfoById: 'project/projectLawsInventoryEO/queryProjectLawsInventoryInfoById'
queryProjectLawsInventoryInfoById: 'project/projectLawsInventoryEO/queryProjectLawsInventoryInfoById',
queryTaskDetailByTaskIds: '/task/queryTaskDetailByTaskIds'
},
queryBy: {},
queryProject: {},
@@ -158,10 +159,10 @@
}
},
mounted() {
if (this.$route.query.mes) {
this.queryBy = JSON.parse(this.$route.query.mes)
}
this.queryProjectLawsInventoryInfo()
let _this = this
this.queryTaskDetailByTask(function() {
_this.queryProjectLawsInventoryInfo()
})
},
methods: {
...mapGetters(['userInfo']),
@@ -169,10 +170,22 @@
this.completeTask({ flag: 2 })
},
submit() {
this.$refs.examineInformationRef.submit(function(res) {
this.$refs.examineInformationRef.submit((res) => {
this.completeTask(res)
})
},
queryTaskDetailByTask(callback) {
this.loading = true
getAction(this.url.queryTaskDetailByTaskIds, { taskIds: this.$route.query.taskIds }).then((res) => {
if (res instanceof String) {
this.queryBy = JSON.parse(res)
callback()
} else {
this.queryBy = res
callback()
}
})
},
completeTask(value) {
let json = Object.assign({}, this.queryBy, value)
let data = JSON.stringify(json).replace(/\"/g, '\'')
@@ -193,7 +206,6 @@
})
},
queryProjectLawsInventoryInfo() {
this.loading = true
let query = {
id: this.queryBy.id,
operatorType: 'taskAffirmQuery'