|
|
@ -68,6 +68,10 @@ export default { |
|
|
name: "SelectStudyDialog", |
|
|
name: "SelectStudyDialog", |
|
|
components: { SelectDeptUser }, |
|
|
components: { SelectDeptUser }, |
|
|
props: { |
|
|
props: { |
|
|
|
|
|
showSn: { |
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
default: false |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
}, |
|
|
}, |
|
|
@ -106,11 +110,13 @@ export default { |
|
|
this.selectList = selection |
|
|
this.selectList = selection |
|
|
this.selectedId = _.map(this.selectList, 'id').join(',') |
|
|
this.selectedId = _.map(this.selectList, 'id').join(',') |
|
|
this.selectedName = _.map(this.selectList, 'name').join(',') |
|
|
this.selectedName = _.map(this.selectList, 'name').join(',') |
|
|
|
|
|
this.selectedSn = _.map(this.selectList, 'sn').join(',') |
|
|
}, |
|
|
}, |
|
|
show(val) { |
|
|
show(val) { |
|
|
this.searchForm = _.merge({}, this.searchForm, val) |
|
|
this.searchForm = _.merge({}, this.searchForm, val) |
|
|
this.selectedId = '' |
|
|
this.selectedId = '' |
|
|
this.selectedName = '' |
|
|
this.selectedName = '' |
|
|
|
|
|
this.selectedSn = '' |
|
|
this.checkedOther = false |
|
|
this.checkedOther = false |
|
|
this.others = '' |
|
|
this.others = '' |
|
|
this.$emit('callback', { id: '', name: '', other: '' }) |
|
|
this.$emit('callback', { id: '', name: '', other: '' }) |
|
|
@ -121,6 +127,7 @@ export default { |
|
|
this.open = true |
|
|
this.open = true |
|
|
this.selectedId = '' |
|
|
this.selectedId = '' |
|
|
this.selectedName = '' |
|
|
this.selectedName = '' |
|
|
|
|
|
this.selectedSn = '' |
|
|
this.checkedOther = false |
|
|
this.checkedOther = false |
|
|
this.others = '' |
|
|
this.others = '' |
|
|
this.$emit('callback', { id: '', name: '', other: '' }) |
|
|
this.$emit('callback', { id: '', name: '', other: '' }) |
|
|
@ -146,12 +153,15 @@ export default { |
|
|
}, |
|
|
}, |
|
|
handleSelect() { |
|
|
handleSelect() { |
|
|
let name='' |
|
|
let name='' |
|
|
|
|
|
let sn = '' |
|
|
if(this.selectedName!=''&&this.others!=''){ |
|
|
if(this.selectedName!=''&&this.others!=''){ |
|
|
name=this.selectedName+','+this.others |
|
|
name=this.selectedName+','+this.others |
|
|
|
|
|
sn=this.selectedSn+','+this.others |
|
|
}else{ |
|
|
}else{ |
|
|
name=this.selectedName+this.others |
|
|
name=this.selectedName+this.others |
|
|
|
|
|
sn=this.selectedSn+this.others |
|
|
} |
|
|
} |
|
|
this.$emit('callback', { id: this.selectedId, name: name, mdOther: this.others }) |
|
|
|
|
|
|
|
|
this.$emit('callback', { id: this.selectedId, name: name, mdOther: this.others, sn: sn }) |
|
|
this.open = false |
|
|
this.open = false |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|