对接握手流程
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user