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

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

@ -429,7 +429,7 @@ export default {
joinReason: this.blacklistReason, joinReason: this.blacklistReason,
welfareFlag: this.welfareFlag 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) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }

Loading…
Cancel
Save