对接设计符合性确认

This commit is contained in:
qq787203167
2022-05-09 10:01:05 +08:00
parent 83ddb9bff8
commit 7eaa8172f1
3 changed files with 76 additions and 10 deletions
@@ -68,7 +68,7 @@
queryBy: {},
queryProject: {},
loading: false,
textLoading:this.$t('dataLoading'),
textLoading: this.$t('dataLoading'),
projectInformationList: [
{
title: this.$t('entryName'),
@@ -183,6 +183,10 @@
}
},
mounted() {
let _this = this
this.queryTaskDetailByTask(function() {
_this.queryProjectLawsInventoryInfo()
})
},
methods: {
...mapGetters(['userInfo']),
@@ -194,6 +198,33 @@
},
sendBack() {
},
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()
}
})
},
queryProjectLawsInventoryInfo() {
let query = {
id: this.queryBy.id,
operatorType: 'taskAffirmQuery'
}
getAction(this.url.queryProjectLawsInventoryInfoById, query).then((res) => {
if (res.success) {
this.queryProject = res.result.projectLawsInventory || {}
this.loading = false
} else {
this.queryProject = {}
this.loading = false
}
})
}
}
}