/** * 刷新面板、链路数据 */ public function actionAjaxLinksRefresh() { $type = Yii::$app->request->post('type'); if (!$type) { $type = ViewTemplate::TYPE_BUILD; } $data = []; $selected = ViewTemplate::getTempateSet($type); $data["build"] = $selected; return Json::encode($data); }
/** * 无线网络 */ public function actionWireless() { $lists = WirelessDeviceInfo::getDeviceList(); $selected = ViewTemplate::getTempateSet(ViewTemplate::TYPE_WIFI); $categorys = ArrayHelper::map(WirelessDeviceCategory::find()->all(), "node_group", "name"); return $this->render('editWireless', ['deviceList' => $lists, 'selected' => json_encode($selected), 'type' => ViewTemplate::TYPE_WIFI, "categorys" => $categorys]); }