97 lines
2.1 KiB
PHP
97 lines
2.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* @author Any
|
|
* @description KISS
|
|
* @date 2020-11-5
|
|
* @version 1.0.0
|
|
*
|
|
* _____LOG_____
|
|
*
|
|
*/
|
|
namespace app\modules\admin\controllers;
|
|
|
|
use app\modules\admin\behaviors\LoginBehavior;
|
|
use app\modules\admin\models\UserListForm;
|
|
use app\modules\admin\models\UserActionForm;
|
|
use app\components\EncryptHelper;
|
|
use app\modules\admin\models\XtOpenForm;
|
|
|
|
|
|
class XtOpenController extends Controller
|
|
{
|
|
public function behaviors()
|
|
{
|
|
return array_merge(parent::behaviors(), [
|
|
'login' => [
|
|
'class' => LoginBehavior::className(),
|
|
],
|
|
]);
|
|
}
|
|
|
|
// 小区列表
|
|
public function actionXqList()
|
|
{
|
|
return $this->render('xq_list');
|
|
}
|
|
|
|
// 楼栋管理
|
|
public function actionLdList()
|
|
{
|
|
return $this->render('ld_list');
|
|
}
|
|
|
|
// 单元管理
|
|
public function actionDyList()
|
|
{
|
|
return $this->render('dy_list');
|
|
}
|
|
|
|
// 房屋管理
|
|
public function actionFwList()
|
|
{
|
|
return $this->render('fw_list');
|
|
}
|
|
|
|
// 云盒管理
|
|
public function actionYhList()
|
|
{
|
|
return $this->render('yh_list');
|
|
}
|
|
|
|
// 获取列表
|
|
public function actionListData()
|
|
{
|
|
|
|
$form = new XtOpenForm();
|
|
$form->attributes = \Yii::$app->request->get();
|
|
$data = $form->actionListData();
|
|
return $this->responseHandler($data);
|
|
}
|
|
|
|
// 删除数据
|
|
public function actionDeleteData()
|
|
{
|
|
$form = new XtOpenForm();
|
|
$form->attributes = \Yii::$app->request->post();
|
|
$data = $form->actionDeleteData();
|
|
return $this->responseHandler($data);
|
|
}
|
|
|
|
// 添加数据
|
|
public function actionAddData(){
|
|
$form = new XtOpenForm();
|
|
$form->attributes = \Yii::$app->request->post();
|
|
$data = $form->actionAddSnData();
|
|
return $this->responseHandler($data);
|
|
}
|
|
|
|
//获取开门二维码
|
|
public function actionGetOpendoorQrcode()
|
|
{
|
|
$form = new XtOpenForm();
|
|
$params = \Yii::$app->request->post();
|
|
$data = $form->actionGetOpendoorQrcode($params);
|
|
return $this->responseHandler($data);
|
|
}
|
|
} |