Commit 7c5e4cce by lichengming

修改了试样任务分配tab切换

parent 1097d936
...@@ -68,13 +68,17 @@ export default { ...@@ -68,13 +68,17 @@ export default {
// this._issuedPage() // this._issuedPage()
} else if (tab.name === 'waitReceive') { } else if (tab.name === 'waitReceive') {
// this._waitPage() // this._waitPage()
this.$refs.waitScanModal._clearTable()
this.$refs.waitReceiveModal._open(this.entrustId) this.$refs.waitReceiveModal._open(this.entrustId)
} else if (tab.name === 'waitScan') { } else if (tab.name === 'waitScan') {
this.$refs.waitReceiveModal._clearTable()
this.$refs.waitScanModal._open(this.entrustId) this.$refs.waitScanModal._open(this.entrustId)
// this._waitSend() // this._waitSend()
} }
}, },
_search() { _search() {
this.$refs.waitScanModal._clearTable()
this.$refs.waitReceiveModal._clearTable()
this.$emit('on-result-change') this.$emit('on-result-change')
}, },
// 关闭弹框的时候刷新上个界面 // 关闭弹框的时候刷新上个界面
......
...@@ -170,6 +170,10 @@ export default { ...@@ -170,6 +170,10 @@ export default {
this.formObj.sampleCode = '' this.formObj.sampleCode = ''
this.getPage = {} this.getPage = {}
}, },
_clearAll() {
this.getPage.records = []
this.selectIds = []
},
_modalResult(data) { _modalResult(data) {
switch (this.currentComponent) { switch (this.currentComponent) {
case 'AssignPerson': case 'AssignPerson':
......
...@@ -40,6 +40,9 @@ export default { ...@@ -40,6 +40,9 @@ export default {
console.log(id) console.log(id)
this.$refs.leftModal._open(this.id) this.$refs.leftModal._open(this.id)
// this.$refs.rightModal._getColumn() // this.$refs.rightModal._getColumn()
},
_clearTable() {
this.$refs.rightModal._clearAll()
} }
} }
} }
......
...@@ -318,6 +318,10 @@ export default { ...@@ -318,6 +318,10 @@ export default {
this._page() this._page()
} }
}, },
_clearAll() {
this.getPage.records = []
this.selectIds = []
},
_refresh() { _refresh() {
this.$emit('on-result-change') this.$emit('on-result-change')
}, },
......
...@@ -35,6 +35,9 @@ export default { ...@@ -35,6 +35,9 @@ export default {
_open(id) { _open(id) {
this.$refs.SampleleftModal._open(id) this.$refs.SampleleftModal._open(id)
// this.$refs.rightModal._getColumn() // this.$refs.rightModal._getColumn()
},
_clearTable() {
this.$refs.SamplerightModal._clearAll()
} }
} }
} }
......
...@@ -78,6 +78,8 @@ export default { ...@@ -78,6 +78,8 @@ export default {
} }
}, },
_search() { _search() {
this.$refs.waitScanModal._clearTab()
this.$refs.waitReceiveModal._clearTab()
this.$emit('on-result-change') this.$emit('on-result-change')
}, },
// 关闭弹框的时候刷新上个界面 // 关闭弹框的时候刷新上个界面
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment