|
|
@ -1,5 +1,5 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="select-template"> |
|
|
|
|
|
|
|
|
<div > |
|
|
<el-dialog :title="$t('page.business.study.study.qxzsy')" :visible.sync="open" width="1200px" append-to-body |
|
|
<el-dialog :title="$t('page.business.study.study.qxzsy')" :visible.sync="open" width="1200px" append-to-body |
|
|
:close-on-click-modal="false" style="padding: 20px 20px;"> |
|
|
:close-on-click-modal="false" style="padding: 20px 20px;"> |
|
|
<div class="dialog-container"> |
|
|
<div class="dialog-container"> |
|
|
@ -75,8 +75,8 @@ export default { |
|
|
return { |
|
|
return { |
|
|
checkedOther: false, |
|
|
checkedOther: false, |
|
|
others: '', |
|
|
others: '', |
|
|
selectedId: null, |
|
|
|
|
|
selectedName: null, |
|
|
|
|
|
|
|
|
selectedId: '', |
|
|
|
|
|
selectedName: '', |
|
|
selectList: [], |
|
|
selectList: [], |
|
|
loading: false, |
|
|
loading: false, |
|
|
open: false, |
|
|
open: false, |
|
|
@ -109,20 +109,20 @@ export default { |
|
|
}, |
|
|
}, |
|
|
show(val) { |
|
|
show(val) { |
|
|
this.searchForm = _.merge({}, this.searchForm, val) |
|
|
this.searchForm = _.merge({}, this.searchForm, val) |
|
|
this.selectedId = null |
|
|
|
|
|
this.selectedName = null |
|
|
|
|
|
|
|
|
this.selectedId = '' |
|
|
|
|
|
this.selectedName = '' |
|
|
this.checkedOther = false |
|
|
this.checkedOther = false |
|
|
this.others = null |
|
|
|
|
|
|
|
|
this.others = '' |
|
|
this.$emit('callback', { id: '', name: '', other: '' }) |
|
|
this.$emit('callback', { id: '', name: '', other: '' }) |
|
|
this.search() |
|
|
this.search() |
|
|
}, |
|
|
}, |
|
|
search() { |
|
|
search() { |
|
|
this.searchForm.pageNum = 1; |
|
|
this.searchForm.pageNum = 1; |
|
|
this.open = true |
|
|
this.open = true |
|
|
this.selectedId = null |
|
|
|
|
|
this.selectedName = null |
|
|
|
|
|
|
|
|
this.selectedId = '' |
|
|
|
|
|
this.selectedName = '' |
|
|
this.checkedOther = false |
|
|
this.checkedOther = false |
|
|
this.others = null |
|
|
|
|
|
|
|
|
this.others = '' |
|
|
this.$emit('callback', { id: '', name: '', other: '' }) |
|
|
this.$emit('callback', { id: '', name: '', other: '' }) |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
}, |
|
|
}, |
|
|
@ -151,13 +151,9 @@ export default { |
|
|
}else{ |
|
|
}else{ |
|
|
name=this.selectedName+this.others |
|
|
name=this.selectedName+this.others |
|
|
} |
|
|
} |
|
|
this.$emit('callback', { id: this.selectedId, name: name, other: this.others }) |
|
|
|
|
|
|
|
|
this.$emit('callback', { id: this.selectedId, name: name, mdOther: this.others }) |
|
|
this.open = false |
|
|
this.open = false |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style rel="stylesheet/scss" lang="scss"> |
|
|
|
|
|
.select-template {} |
|
|
|
|
|
</style> |
|
|
|