...
|
...
|
@@ -12,6 +12,7 @@ namespace app\portal\controller; |
|
|
use app\portal\model\EquipmentModel;
|
|
|
use cmf\controller\AdminBaseController;
|
|
|
use QRcode;
|
|
|
use think\Db;
|
|
|
|
|
|
/**
|
|
|
* Class AdminEquipmentController
|
...
|
...
|
@@ -41,7 +42,14 @@ class AdminEquipmentController extends AdminBaseController{ |
|
|
}
|
|
|
|
|
|
public function addPost(){
|
|
|
|
|
|
$data=$this->request->post();
|
|
|
$Equipment=new EquipmentModel();
|
|
|
$res=$Equipment->save($data);
|
|
|
if ($res){
|
|
|
$this->apiResponse(200,'保存成功');
|
|
|
}else{
|
|
|
$this->apiResponse(301,'error');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//批量导入设备信息
|
...
|
...
|
|