|
@@ -125,7 +125,7 @@ export default {
|
|
},
|
|
},
|
|
// 开始打印
|
|
// 开始打印
|
|
handleSave () {
|
|
handleSave () {
|
|
- if (!this.rowSelectionInfo || (this.rowSelectionInfo && this.rowSelectionInfo.selectedRows.length < 1)) {
|
|
|
|
|
|
+ if (this.rowSelectionInfo && this.rowSelectionInfo.selectedRows && this.rowSelectionInfo.selectedRows.length < 1) {
|
|
this.$message.warning('请至少选择一个产品')
|
|
this.$message.warning('请至少选择一个产品')
|
|
} else {
|
|
} else {
|
|
const nowData = this.nowData
|
|
const nowData = this.nowData
|
|
@@ -154,7 +154,9 @@ export default {
|
|
isShow (newValue, oldValue) {
|
|
isShow (newValue, oldValue) {
|
|
if (!newValue) {
|
|
if (!newValue) {
|
|
this.$emit('close')
|
|
this.$emit('close')
|
|
|
|
+ this.rowSelectionInfo = null
|
|
this.$refs.table.clearTable()
|
|
this.$refs.table.clearTable()
|
|
|
|
+ this.$refs.table.clearSelected()
|
|
} else {
|
|
} else {
|
|
const _this = this
|
|
const _this = this
|
|
this.getDetail()
|
|
this.getDetail()
|