wupengfei 1 gadu atpakaļ
vecāks
revīzija
262565861a
2 mainītis faili ar 6 papildinājumiem un 7 dzēšanām
  1. 1 2
      .idea/workspace.xml
  2. 5 5
      application/operate/view/recruit/form.html

+ 1 - 2
.idea/workspace.xml

@@ -2,7 +2,6 @@
 <project version="4">
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
-      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/operate/view/recruit/form.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/view/recruit/form.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
@@ -398,7 +397,7 @@
       <workItem from="1691974595544" duration="15534000" />
       <workItem from="1692060688799" duration="12436000" />
       <workItem from="1692146877063" duration="17234000" />
-      <workItem from="1692234047138" duration="2359000" />
+      <workItem from="1692234047138" duration="2546000" />
     </task>
     <servers />
   </component>

+ 5 - 5
application/operate/view/recruit/form.html

@@ -661,7 +661,7 @@
     // 三级分类联动 start
     var sel_second  = {:isset($vo['second_classify']) ? $vo['second_classify']:0};
     var sel_third   = {:isset($vo['third_classify']) ? $vo['third_classify']:0};
-    var goods_spec  = {:json_encode($cate_tree)};
+    var cate_tree  = {:json_encode($cate_tree)};
     first_c(1);
     function first_c(source){
         // 将其他选择框置空
@@ -671,14 +671,14 @@
         $("select[name='third_classify']").html('');
         $("select[name='fourth_classify']").html('');
         // 没有下级不继续
-        if(first_key == -1 || !("children" in goods_spec[first_key])){
+        if(first_key == -1 || !("children" in cate_tree[first_key])){
             $("#second").val(-1);
             $("#third").val(-1);
             window.form.render();
             return true;
         }else{
             var second_html = '<option data-second_key="-1" selected value="0">请选择分类</option>';
-            var to_each =  goods_spec[first_key]['children'];
+            var to_each =  cate_tree[first_key]['children'];
             $.each(to_each,function (ck,cv) {
                 if(source == 1 && sel_second == cv.id){
                     second_html +='<option selected data-second_key="'+ck+'" value="'+cv.id+'">'+cv.title+'</option>';
@@ -700,12 +700,12 @@
         $("select[name='third_classify']").html('');
         $("select[name='fourth_classify']").html('');
         // 没有下级不继续
-        if(second_key == -1 ||  !("children" in  goods_spec[first_key]['children'][second_key])){
+        if(second_key == -1 ||  !("children" in  cate_tree[first_key]['children'][second_key])){
             $("#third").val(-1);
             window.form.render();
             return true;
         }
-        var to_each = goods_spec[first_key]['children'][second_key]['children'];
+        var to_each = cate_tree[first_key]['children'][second_key]['children'];
         var third_html = '<option data-third_key="-1" selected value="0">请选择分类</option>';
         $.each(to_each,function (ck,cv) {
             if(source == 1 && sel_third == cv.id){