Your Name 3 年之前
父节点
当前提交
336edc9bd4
共有 2 个文件被更改,包括 12 次插入2 次删除
  1. 1 1
      tool/clue/database/info.php
  2. 11 1
      tool/clue/lib/Info.php

+ 1 - 1
tool/clue/database/info.php

@@ -93,7 +93,7 @@ if ($search_auth ==2) {
 }
 $list_button = array();
 $list_button['location'] = array('查看详情',Dever::url('lib/info.show','clue'));
-$list_button ['fast_add'] = array('转派',Dever::url('project/database/update?project=clue&table=info&where_id={id}&col=follow', 'manage'),'{type}<4');
+$list_button ['fast_add'] = array('转派',Dever::url('project/database/update?project=clue&table=info&where_id={id}&col=follow', 'manage'),'{type}<4 || {type}>5');
 
 $excel[] = array('数据导出','线索列表数据导出', 'clue/lib/manage.out_info');
 $button = array();

+ 11 - 1
tool/clue/lib/Info.php

@@ -86,6 +86,11 @@ Class Info
 				$where['type'] = 3;
 			} else {
 				$where['type'] = 2;
+				if ($where['status_id'] == 3 || $where['status_id'] == 4){
+					$where['type'] = 3;
+				} elseif ($where['status_id'] == 7) {
+					$where['type'] = 6;
+				}
 			}
 			$where['follow'] = $follow;
 			if ($info['follow_group_id'] && $info['follow_group_id']!=$follow[0]) {
@@ -112,6 +117,11 @@ Class Info
 		if ($info) {
 			if ($follow && $follow[0]<0) {
 				$where['type'] = 2;
+				if ($where['status_id'] == 3 || $where['status_id'] == 4){
+					$where['type'] = 3;
+				} elseif ($where['status_id'] == 7) {
+					$where['type'] = 6;
+				}
 				$auth = Dever::load("manage/auth.info");
 				$admin_group = Dever::db('manage/admin_group')->all(array('admin_id'=>$auth['id']));
 				foreach ($admin_group as $k => $v) {
@@ -139,7 +149,7 @@ Class Info
 						} 
 					}
 				}
-				
+
 				
 				$w['admin_id'] = $where['follow'];
 				$w['info_id'] = $id;