Browse Source

联名选择领衔修改

zouling 1 năm trước cách đây
mục cha
commit
49605dcc50
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      work/components/zb-table/zb-tablesearch.vue

+ 6 - 1
work/components/zb-table/zb-tablesearch.vue

@@ -591,7 +591,12 @@ export default {
           if(item.checked){
             if(!this.selectArr.length){
               this.selectArr.push(item)
-            }
+            }else{
+				var indexNum = (this.selectArr || []).findIndex((ite) => ite.userId === item.userId);
+				if(indexNum!=-1){
+					this.selectArr[indexNum].type=item.type
+				}
+			}
           }else{
 			  var indexNum = (this.selectArr || []).findIndex((ite) => ite.userId === item.userId);
 			  if(indexNum!=-1){