业务办理-领用记录查询查看时没有值
This commit is contained in:
parent
17c0d69623
commit
f7dd157444
|
|
@ -586,22 +586,48 @@ export default {
|
||||||
}
|
}
|
||||||
// 重置表单验证状态,避免旧的错误提示残留
|
// 重置表单验证状态,避免旧的错误提示残留
|
||||||
this.$refs.maForm.clearValidate('deviceType')
|
this.$refs.maForm.clearValidate('deviceType')
|
||||||
|
},
|
||||||
|
|
||||||
|
// 监听一下路由的type
|
||||||
|
$route: {
|
||||||
|
handler(newVal) {
|
||||||
|
if (newVal.query.type == 'edit') {
|
||||||
|
this.isEdit = true
|
||||||
|
this.isDetail = false
|
||||||
|
this.id = newVal.query.id
|
||||||
|
const obj = Object.assign({}, newVal, { title: '领用申请编辑' })
|
||||||
|
this.$tab.updatePage(obj)
|
||||||
|
} else if (newVal.query.type == 'detail') {
|
||||||
|
this.isEdit = false
|
||||||
|
this.isDetail = true
|
||||||
|
this.id = newVal.query.id
|
||||||
|
const obj = Object.assign({}, this.$route, { title: '领用申请详情' })
|
||||||
|
this.$tab.updatePage(obj)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.isEdit || this.isDetail) {
|
||||||
|
console.log('isEdit', this.isEdit)
|
||||||
|
this.getTaskInfo()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
deep: true,
|
||||||
|
immediate: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// getCode()
|
// getCode()
|
||||||
if (this.$route.query.type == 'edit') {
|
if (this.$route.query.type == 'edit') {
|
||||||
this.isEdit = true
|
// this.isEdit = true
|
||||||
this.isDetail = false
|
// this.isDetail = false
|
||||||
this.id = this.$route.query.id
|
// this.id = this.$route.query.id
|
||||||
const obj = Object.assign({}, this.$route, { title: '领用申请编辑' })
|
// const obj = Object.assign({}, this.$route, { title: '领用申请编辑' })
|
||||||
this.$tab.updatePage(obj)
|
// this.$tab.updatePage(obj)
|
||||||
} else if (this.$route.query.type == 'detail') {
|
} else if (this.$route.query.type == 'detail') {
|
||||||
this.isEdit = false
|
// this.isEdit = false
|
||||||
this.isDetail = true
|
// this.isDetail = true
|
||||||
this.id = this.$route.query.id
|
// this.id = this.$route.query.id
|
||||||
const obj = Object.assign({}, this.$route, { title: '领用申请详情' })
|
// const obj = Object.assign({}, this.$route, { title: '领用申请详情' })
|
||||||
this.$tab.updatePage(obj)
|
// this.$tab.updatePage(obj)
|
||||||
} else {
|
} else {
|
||||||
this.isEdit = false
|
this.isEdit = false
|
||||||
this.isDetail = false
|
this.isDetail = false
|
||||||
|
|
@ -613,10 +639,10 @@ export default {
|
||||||
this.equipmentType() //机具类型下拉选
|
this.equipmentType() //机具类型下拉选
|
||||||
this.getStandardConfigList() // 标准配置下拉选
|
this.getStandardConfigList() // 标准配置下拉选
|
||||||
this.getMaTypeNameOpt() // 类型名称下拉选
|
this.getMaTypeNameOpt() // 类型名称下拉选
|
||||||
if (this.isEdit || this.isDetail) {
|
// if (this.isEdit || this.isDetail) {
|
||||||
console.log('isEdit', this.isEdit)
|
// console.log('isEdit', this.isEdit)
|
||||||
this.getTaskInfo()
|
// this.getTaskInfo()
|
||||||
}
|
// }
|
||||||
console.log('🚀 ~ created ~ this.isDetail:', this.isDetail)
|
console.log('🚀 ~ created ~ this.isDetail:', this.isDetail)
|
||||||
console.log(this.$store, 'this.$store.getters')
|
console.log(this.$store, 'this.$store.getters')
|
||||||
console.log(this.$route.query, 'this.$route.query')
|
console.log(this.$route.query, 'this.$route.query')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue