Browse Source

修改接口

feature/rentalRevision
zhaoyongnian 3 years ago
parent
commit
f82895a7e1
  1. 4
      src/views/modules/plugins/rent/rentcontractinfo-look-or-check.vue
  2. 1
      src/views/modules/plugins/rent/rentcontractinfo.vue

4
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)
}

1
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()
})
},

Loading…
Cancel
Save