Your Name 3 years ago
parent
commit
dcc361cde5

+ 6 - 2
tool/work/assets/pc/html/index.html

@@ -193,7 +193,9 @@ body{
     <div class="anniu">
       <button class="layui-btn layui-btn-radius  " type="button" style="vertical-align: middle;margin-bottom: 2px;" onclick="finish()">完成关闭</button>
       <button class="layui-btn layui-btn-radius  " id="quxiao" style="vertical-align: middle;margin-bottom: 2px;" onclick="quxiao();">取消关闭</button>
+      <{if(isset($hui)):}>
       <button class="layui-btn layui-btn-radius  " id="huifu" style="vertical-align: middle;margin-bottom: 2px;" onclick="fastEdit($(this),'<{$hui}>')">回复/指派</button>
+      <{endif}>
     </div>
   </div>
   <{endif}>
@@ -384,8 +386,9 @@ function finish()
 
              },
           });
-          layui.layer.closeAll();
           location.reload();
+          layui.layer.closeAll();
+          
         });
     }
     function quxiao()
@@ -413,8 +416,9 @@ function finish()
               });
              },
           });
-          layui.layer.closeAll();
           location.reload();
+          layui.layer.closeAll();
+          
         });
     }
     // var function fastEdit 

+ 18 - 14
tool/work/database/info.php

@@ -135,12 +135,18 @@ return array
         'mobile'      => array
         (
             'type'      => 'bigint-11',
-            'name'      => '手机号',
+            'name'      => '手机号/姓名',
             'default'   => '',
             'desc'      => '请输入手机号',
             'match'     => 'option',
             'update'    => 'text',
-            'search'    => 'fulltext',
+            'search'    => array
+            (
+                'api' => 'work/info-getSearch',
+                'col' => 'col',
+                'result' => 'id',
+                'search' => 'id',
+            ),
             'value'     => Dever::input('search_option_mobile'),
             # 绑定js脚本,更新时使用,第一个参数是执行的方式,第二个参数执行的方法,第三个参数是传值。
             'bind'        => array('onblur', 'loading', array('url' => Dever::url("lib/manage.search","work"))),
@@ -405,18 +411,16 @@ return array
         (
          'col' => 'yes-appoint_id,audit_admin',
         ),
-        // 'getData' => array
-        // (
-        //     # 匹配的正则或函数 选填项
-        //     'option' => array
-        //     (
-        //         //'id' => array('yes', '!='),
-        //         'state' => 1,
-        //     ),
-        //     'type' => 'all',
-        //     'order' => array('id' => 'desc'),
-        //     'col' => '*|id',
-        // ),
+        'getSearch' => array
+        (
+            # 匹配的正则或函数 选填项
+            'option' => array
+            (
+                'col' => array('yes-mobile,name', 'like'),
+            ),
+            'type' => 'all',
+            'col' => '*|id',
+        ),
         'getTotal' => array
         (
             # 匹配的正则或函数 选填项

+ 1 - 0
tool/work/database/question.php

@@ -227,6 +227,7 @@ return array
             (
                 'cate_id'=>'yes',
                 'state' => 1,
+                'type' => 1,
             ),
             'type' => 'all',
             'order' => array('reorder' => 'desc', 'id' => 'asc'),

+ 3 - 1
tool/work/lib/Appoint.php

@@ -352,7 +352,9 @@ Class Appoint
         		}
         	}
 		}
-		$data['hui'] = Dever::url('project/database/update?project=work&table=appoint&search_option_info_id='.$info_id, 'manage');
+        if ($data['info']['status'] < 3) {
+            $data['hui'] = Dever::url('project/database/update?project=work&table=appoint&search_option_info_id='.$info_id, 'manage');
+        } 
     	return Dever::render('index', $data);
     }