Merge branch 'v_1.0.0' of http://gitlab.ldxinyong.com/enterpriseManagement/digitization-ui into v_1.0.0
This commit is contained in:
commit
59eb1f8702
@ -24,7 +24,7 @@
|
||||
</div>
|
||||
<div class="popup-item-content">
|
||||
<div class="popup-item-content-item">
|
||||
<div class="content">
|
||||
<div class="content" v-show="!isSignle">
|
||||
<el-checkbox :value ='isAll' @change="handleChangChoose($event)">全选</el-checkbox>
|
||||
</div>
|
||||
</div>
|
||||
@ -79,6 +79,11 @@ export default {
|
||||
title: {
|
||||
type: String,
|
||||
default: '选择参与部门'
|
||||
},
|
||||
// add by sean 添加单选功能
|
||||
isSignle: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data () {
|
||||
@ -139,6 +144,10 @@ export default {
|
||||
}
|
||||
return
|
||||
}
|
||||
// add by sean 添加单选功能
|
||||
if (this.isSignle && this.tags.length > 0) {
|
||||
this.tags.splice(0, this.tags.length)
|
||||
}
|
||||
const isHas = this.tags.some(i => i.departmentId === item.departmentId)
|
||||
if (isHas && !event) {
|
||||
this.tags = this.tags.filter(i => i.departmentId !== item.departmentId)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user