This commit is contained in:
2025-03-28 11:43:25 +08:00
parent 87aa8e7e6a
commit b16b51ec35
2 changed files with 7 additions and 2 deletions

View File

@@ -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(){

View File

@@ -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>