diff --git a/src/views/modules/plugins/rent/rentcontractinfo-look-or-check.vue b/src/views/modules/plugins/rent/rentcontractinfo-look-or-check.vue index 794f39b3f..7dbf7fbb2 100644 --- a/src/views/modules/plugins/rent/rentcontractinfo-look-or-check.vue +++ b/src/views/modules/plugins/rent/rentcontractinfo-look-or-check.vue @@ -252,6 +252,7 @@ export default { data () { return { visible: false, + pageId:'', dataForm: { id: '', flag: '', @@ -382,7 +383,8 @@ export default { }, // 获取信息 getInfo () { - this.$http.get(`/pli/power/rentContractInfo/${this.dataForm.id}`).then(({ data: res }) => { + let Url = this.pageId === 'rentcontractinfo' ? 'plirentcontractinfolog' : 'rentContractInfo' + this.$http.get(`/pli/power/${Url}/${this.dataForm.id}`).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } diff --git a/src/views/modules/plugins/rent/rentcontractinfo.vue b/src/views/modules/plugins/rent/rentcontractinfo.vue index 7ae1c67ea..6a1f7533e 100644 --- a/src/views/modules/plugins/rent/rentcontractinfo.vue +++ b/src/views/modules/plugins/rent/rentcontractinfo.vue @@ -295,6 +295,7 @@ export default { this.$nextTick(() => { this.$refs.addOrUpdate.dataForm.id = id this.$refs.addOrUpdate.dataForm.flag = flag + this.$refs.addOrUpdate.pageId= 'rentcontractinfo' this.$refs.addOrUpdate.init() }) },