Compare commits

...

5 Commits

Author SHA1 Message Date
89f9d56ceb alert public root 2020-08-11 15:46:42 +07:00
0fcd7997d2 update public config 2020-08-11 15:38:40 +07:00
1956d54989 update default manager password 2020-08-10 16:15:41 +07:00
aaef6c624b fix position save button 2020-06-10 14:43:54 +07:00
ec8728d856 fix bug encode config 2020-06-10 14:34:31 +07:00
5 changed files with 9 additions and 10 deletions

View File

@ -34,6 +34,7 @@ class ConfigController extends Controller {
} }
public $config_json = [ public $config_json = [
"lang" => "vi",
"camera" => [ "camera" => [
"auto_check" => 1, "auto_check" => 1,
"num_cam" => 2, "num_cam" => 2,
@ -252,7 +253,7 @@ class ConfigController extends Controller {
'content' => json_encode([ 'content' => json_encode([
'path' => $engineConfig['data']['engines'][0]['path'], 'path' => $engineConfig['data']['engines'][0]['path'],
'config' => $engineConfig, 'config' => $engineConfig,
'configEngine' => $config_json 'configEngine' => json_encode($config_json, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)
]) ])
] ]
])); ]));

BIN
db/app.db

Binary file not shown.

View File

@ -165,13 +165,11 @@
</div> </div>
<br> <br>
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6 col-md-push-1">
{$config_json} {$config_json}
<div class="text-center"> <button style="position: fixed;left: 0;top: 170px;" class="btn btn-primary" onclick="saveStep2(this);" data-href="{Url::to(['/config/cau-hinh-nhan-dien'])}">
<button class="btn btn-primary" onclick="saveStep2(this);" data-href="{Url::to(['/config/cau-hinh-nhan-dien'])}"> <i class="fa fa-floppy-o"></i> Lưu lại
<i class="fa fa-floppy-o"></i> Lưu lại </button>
</button>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -28,7 +28,7 @@
<i class="fa fa-check"></i> Đổi mật khẩu thành công! <i class="fa fa-check"></i> Đổi mật khẩu thành công!
</div> </div>
<div class="text-center"> <div class="text-center">
<button class="btn btn-primary" onclick="user.password(this);" data-href="{Url::to(['/user/change-password','id'=>$model->id])}"> <button class="btn btn-primary" onclick="user.changePassword(this);" data-href="{Url::to(['/user/change-password','id'=>$model->id])}">
<i class="fa fa-lock"></i> Đổi mật khẩu <i class="fa fa-lock"></i> Đổi mật khẩu
</button> </button>
</div> </div>

View File

@ -17,8 +17,8 @@ class ConfigTree extends Widget {
public function run() { public function run() {
$public_root = ['engine', 'recognition', 'open_door']; $public_root = ['engine', 'recognition', 'open_door', 'screen', 'lang'];
$public_cfg = ['engine|cam_id', 'engine|server_authen', 'recognition|server_recog', 'open_door|enable', 'open_door|port_name']; $public_cfg = ['engine|cam_id', 'engine|server_authen', 'recognition|server_recog', 'open_door|enable', 'open_door|port_name', 'screen|banner', 'lang'];
return $this->render("config-tree", [ return $this->render("config-tree", [
"configLists" => $this->configLists, "configLists" => $this->configLists,