diff --git a/jero-web/src/utils/request.js b/jero-web/src/utils/request.js index 43c3e00c2..b447b3d9a 100644 --- a/jero-web/src/utils/request.js +++ b/jero-web/src/utils/request.js @@ -149,7 +149,6 @@ service.interceptors.request.use(config => { ...config.data } } - console.log(config) return config }, (error) => { return Promise.reject(error) diff --git a/jero-web/src/views/processCenter/processForm/taskListProcess/index.vue b/jero-web/src/views/processCenter/processForm/taskListProcess/index.vue index d0796936e..40d900739 100644 --- a/jero-web/src/views/processCenter/processForm/taskListProcess/index.vue +++ b/jero-web/src/views/processCenter/processForm/taskListProcess/index.vue @@ -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 + } + }) } } } diff --git a/jero-web/src/views/projectManagement/components/TaskList.vue b/jero-web/src/views/projectManagement/components/TaskList.vue index 6b4257f52..74c50aacd 100644 --- a/jero-web/src/views/projectManagement/components/TaskList.vue +++ b/jero-web/src/views/projectManagement/components/TaskList.vue @@ -52,8 +52,8 @@ >