caipin 5 vuotta sitten
vanhempi
commit
e8d6b13642
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 2 2
      global/js/columnShow/columnShow.js
  2. 2 2
      views/cloud/curing.html

+ 2 - 2
global/js/columnShow/columnShow.js

@@ -5,10 +5,10 @@ $(function() {
 		var isAccept = $(this).prop("checked");
 		
 		if (isAccept) {
-			$('table[columnShow] th').find('td:eq('+column+')').hide();
+			$('table[columnShow] tr').find('th:eq('+column+')').hide();
 			$('table[columnShow] tr').find('td:eq('+column+')').hide();
 		} else {
-			$('table[columnShow] th').find('td:eq('+column+')').show();
+			$('table[columnShow] tr').find('th:eq('+column+')').show();
 			$('table[columnShow] tr').find('td:eq('+column+')').show();
 		}
 		

+ 2 - 2
views/cloud/curing.html

@@ -144,13 +144,13 @@
                                                 	
                                                   <li class="mb-2">
                                                     <div class="custom-control custom-switch">
-                                                      <input type="checkbox" name="columnShow" column="2" class="custom-control-input"  id="lie1">
+                                                      <input type="checkbox" name="columnShow" column="1" class="custom-control-input"  id="lie1">
                                                       <label class="custom-control-label" for="lie1">企业名称</label>
                                                     </div>
                                                   </li>
                                                   <li class="mb-2">
                                                     <div class="custom-control custom-switch">
-                                                      <input type="checkbox" name="columnShow" column="3" class="custom-control-input" id="lie2">
+                                                      <input type="checkbox" name="columnShow" column="2" class="custom-control-input" id="lie2">
                                                       <label class="custom-control-label" for="lie2">CLD联系人</label>
                                                     </div>
                                                   </li>