fixed
This commit is contained in:
@@ -12,7 +12,7 @@ use think\Db;
|
||||
*/
|
||||
class Firm extends Backend
|
||||
{
|
||||
protected $noNeedRight = ['index','getAiService'];
|
||||
protected $noNeedRight = ['index','getAiService','firmGetList'];
|
||||
|
||||
/**
|
||||
* Firm模型对象
|
||||
@@ -36,6 +36,11 @@ class Firm extends Backend
|
||||
*/
|
||||
|
||||
|
||||
function firmGetList(){
|
||||
$data = Db::table('fa_firm')
|
||||
->select();
|
||||
return json(['list' => $data, 'total' => count($data)]);
|
||||
}
|
||||
|
||||
//查询企业的AI客服
|
||||
function getAiService(){
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-firm_id" min="0" data-rule="required"
|
||||
data-source="firm/index"
|
||||
data-source="firm/firmGetList"
|
||||
class="form-control selectpage" disabled
|
||||
name="row[firm_id]" type="text" value="{:session_admin_firm_id()}">
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user