|
@@ -12,7 +12,7 @@ use think\Exception;
|
|
|
class Usercompany extends Apic
|
|
|
{
|
|
|
protected $noNeedLogin = [];
|
|
|
- protected $noNeedRight = ['find_user'];
|
|
|
+ protected $noNeedRight = ['selectpage'];
|
|
|
|
|
|
protected $table = 'user_company';
|
|
|
|
|
@@ -53,6 +53,18 @@ class Usercompany extends Apic
|
|
|
$this->success(1,$rs);
|
|
|
}
|
|
|
|
|
|
+ //下拉
|
|
|
+ public function selectpage(){
|
|
|
+
|
|
|
+ $list = Db::name($this->table)
|
|
|
+ ->field('id,projectname')
|
|
|
+ ->where('company_id',$this->auth->company_id)
|
|
|
+ ->where('deletetime',NULL)
|
|
|
+ ->select();
|
|
|
+
|
|
|
+ $this->success(1,$list);
|
|
|
+ }
|
|
|
+
|
|
|
//添加客户
|
|
|
public function add(){
|
|
|
$mobile = input('user_mobile','');
|