完善数据初始化逻辑
This commit is contained in:
@@ -78,7 +78,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.initData()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initData() {
|
initData() {
|
||||||
@@ -144,8 +144,11 @@
|
|||||||
}
|
}
|
||||||
this.$emit('doback')
|
this.$emit('doback')
|
||||||
},
|
},
|
||||||
showAdd() {},
|
showAdd() {
|
||||||
|
this.initData()
|
||||||
|
},
|
||||||
showEdit(row) {
|
showEdit(row) {
|
||||||
|
this.initData()
|
||||||
req.initGoodsShelves(row.sid)
|
req.initGoodsShelves(row.sid)
|
||||||
.then(resp => {
|
.then(resp => {
|
||||||
if (resp.success) {
|
if (resp.success) {
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.initData()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initData() {
|
initData() {
|
||||||
@@ -171,8 +171,11 @@
|
|||||||
}
|
}
|
||||||
this.$emit('doback')
|
this.$emit('doback')
|
||||||
},
|
},
|
||||||
showAdd() {},
|
showAdd() {
|
||||||
|
this.initData()
|
||||||
|
},
|
||||||
showEdit(row) {
|
showEdit(row) {
|
||||||
|
this.initData()
|
||||||
req.initWarehousearea(row.sid)
|
req.initWarehousearea(row.sid)
|
||||||
.then(resp => {
|
.then(resp => {
|
||||||
if (resp.success) {
|
if (resp.success) {
|
||||||
|
|||||||
@@ -204,7 +204,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.initData()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initData() {
|
initData() {
|
||||||
@@ -307,8 +307,11 @@
|
|||||||
}
|
}
|
||||||
this.$emit('doback')
|
this.$emit('doback')
|
||||||
},
|
},
|
||||||
showAdd() {},
|
showAdd() {
|
||||||
|
this.initData()
|
||||||
|
},
|
||||||
showEdit(row) {
|
showEdit(row) {
|
||||||
|
this.initData()
|
||||||
req.initTypes(row.sid)
|
req.initTypes(row.sid)
|
||||||
.then(resp => {
|
.then(resp => {
|
||||||
if (resp.success) {
|
if (resp.success) {
|
||||||
|
|||||||
@@ -850,7 +850,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.initData()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initData() {
|
initData() {
|
||||||
@@ -880,6 +880,7 @@
|
|||||||
|
|
||||||
this.hideUploadBtn = this.imgList.length != 0
|
this.hideUploadBtn = this.imgList.length != 0
|
||||||
console.log('this.hideUploadBtn', this.hideUploadBtn)
|
console.log('this.hideUploadBtn', this.hideUploadBtn)
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
saveOrUpdate() {
|
saveOrUpdate() {
|
||||||
@@ -934,6 +935,7 @@
|
|||||||
this.$emit('doback')
|
this.$emit('doback')
|
||||||
},
|
},
|
||||||
showAdd() {
|
showAdd() {
|
||||||
|
this.initData()
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['form_obj'].clearValidate()
|
this.$refs['form_obj'].clearValidate()
|
||||||
})
|
})
|
||||||
@@ -946,6 +948,7 @@
|
|||||||
return index + 1
|
return index + 1
|
||||||
},
|
},
|
||||||
showEdit(row) {
|
showEdit(row) {
|
||||||
|
this.initData()
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['form_obj'].clearValidate()
|
this.$refs['form_obj'].clearValidate()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user