|
@@ -88,6 +88,33 @@
|
|
|
},
|
|
},
|
|
|
onCheck (o) {
|
|
onCheck (o) {
|
|
|
if(this.checkStrictly){
|
|
if(this.checkStrictly){
|
|
|
|
|
+ if (this.checkedKeys.length<o.checked.length){
|
|
|
|
|
+ if (o.checked.includes("1692075961975046146")&& !o.checked.includes("1703718760638693377")){
|
|
|
|
|
+ o.checked.push("1703718760638693377");
|
|
|
|
|
+ }
|
|
|
|
|
+ if (o.checked.includes("1703718760638693377")&&!o.checked.includes("1692075961975046146")){
|
|
|
|
|
+ o.checked.push("1692075961975046146");
|
|
|
|
|
+ }
|
|
|
|
|
+ }else {
|
|
|
|
|
+ //在减少
|
|
|
|
|
+ if (this.checkedKeys.includes("1703718760638693377")&& !o.checked.includes("1703718760638693377")){
|
|
|
|
|
+ let index = o.checked.indexOf("1692075961975046146");
|
|
|
|
|
+ if (index !== -1) {
|
|
|
|
|
+ o.checked.splice(index, 1);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.checkedKeys.includes("1692075961975046146")&& !o.checked.includes("1692075961975046146")){
|
|
|
|
|
+ let index = o.checked.indexOf("1703718760638693377");
|
|
|
|
|
+ if (index !== -1) {
|
|
|
|
|
+ o.checked.splice(index, 1);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ // else {
|
|
|
|
|
+ // let index = o.checked.indexOf("1692075961975046146");
|
|
|
|
|
+ // if (index !== -1) {
|
|
|
|
|
+ // o.checked.splice(index, 1);
|
|
|
|
|
+ // }
|
|
|
this.checkedKeys = o.checked;
|
|
this.checkedKeys = o.checked;
|
|
|
}else{
|
|
}else{
|
|
|
this.checkedKeys = o
|
|
this.checkedKeys = o
|