-
{{index+1}} {{item.rptName}}
-
-
![]()
-
-
{{item.desc}}
+
{{index+1}} {{item.rptName}}
+
+
![]()
+
+ {{item.desc}}
+
-
-
+
@@ -211,16 +211,18 @@ export default {
})
},
onChange(comp,checked){
- this.$emit('change',comp,checked)
- if(checked!=='true'){
+ this.$emit('change',comp,checked)
+ if(checked){
+ this.comps.forEach(k=>k.isCurr=false)
+ item.isCurr=true
+ }else{
comp.isCurr=false
}
},
onCategroySelect(){
this.selectItem(this.rptListCpd[0])
},
- selectItem(item){
-
+ selectItem(item){
this.comps.forEach(k=>k.isCurr=false)
item.isCurr=true
item.isChecked=true;
@@ -232,6 +234,9 @@ export default {
console.log('拖动前的索引 :' + evt.oldIndex)
console.log('拖动后的索引 :' + evt.newIndex)
this.$emit('sort',evt,this.datas)
+ },
+ stopDefault(e){
+ e.stopPropagation()
}