Browse Source

死亡。迁出,接口地址修改

shibei_master
wanggongfeng 3 years ago
parent
commit
1f8717c422
  1. 42
      src/views/components/resiChangeTransfer.vue
  2. 2
      src/views/modules/plugins/change/resideath.vue

42
src/views/components/resiChangeTransfer.vue

@ -505,7 +505,7 @@ export default {
},
async saveForm () {
const url = '/pli/power/changeRelocation/saveOutOfInfo'
const url = '/epmetuser/changeRelocation/saveOutOfInfo'
let noData = new Date()
noData = util.dateFormatter(noData, 'time')
this.dataForm.transferTime = noData
@ -513,31 +513,29 @@ export default {
const { data, code, msg } = await requestPost(url, this.dataForm)
if (code === 0) {
// this.$message.success('')
//
this.saveFormOld()
// this.handleCancle()
this.$message.success('调动成功')
this.handleCancle()
} else {
this.$message.error(msg)
}
},
async saveFormOld () {
const url = '/epmetuser/icusertransferrecord/add'
let noData = new Date()
noData = util.dateFormatter(noData, 'time')
this.dataForm.transferTime = noData
console.log('-----------3--------------')
console.log(this.dataForm)
const { data, code, msg } = await requestPost(url, this.dataForm)
if (code === 0) {
this.$message.success('调动成功')
this.handleCancle()
} else {
this.$message.error(msg)
}
},
// async saveForm () {
// const url = '/epmetuser/icusertransferrecord/add'
// let noData = new Date()
// noData = util.dateFormatter(noData, 'time')
// this.dataForm.transferTime = noData
//
// console.log('-----------3--------------')
// console.log(this.dataForm)
// const { data, code, msg } = await requestPost(url, this.dataForm)
//
// if (code === 0) {
// this.$message.success('')
// this.handleCancle()
// } else {
// this.$message.error(msg)
// }
// },
handleCancle () {
this.resetData()

2
src/views/modules/plugins/change/resideath.vue

@ -429,7 +429,7 @@ export default {
joinReason: this.blacklistReason,
welfareFlag: this.welfareFlag
}
this.$http.post('/pli/power/rentDeath/save', params).then(({ data: res }) => {
this.$http.post('/epmetuser/rentDeath/save', params).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}

Loading…
Cancel
Save