canyin-project/ybcy/views/admin/site/site_environment.php
2024-11-01 16:07:54 +08:00

186 lines
9.4 KiB
PHP

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit">
<?php if($this->params['site_image']):?>
<link rel="shortcut icon" type="image/x-icon" href="<?php echo $this->params['site_image'];?>" />
<?php else:?>
<link rel="shortcut icon" type="image/x-icon" href="<?=Yii::$app->request->baseUrl?>/web/favicon.ico" />
<?php endif;?>
<title><?php if($this->params['site_title']):?>
<?php echo $this->params['site_title']; ?>
<?php else:?>
应用管理后台
<?php endif;?>-系统环境</title>
<link rel="stylesheet" type="text/css" href="<?=Yii::$app->request->baseUrl?>/web/static/css/globle.css"/>
<script src="<?=Yii::$app->request->baseUrl?>/web/static/js/config.js" type="text/javascript" charset="utf-8"></script>
</head>
<style>
.main_con .elinput{
width: 330px;
}
.ysq{
color: #1F8C0D;
background-color: #F4F9F3;
border-color: #F4F9F3;
}
</style>
<body>
<div class="pHead">
<div class="publicHeader"><?php echo $this->render('@app/views/admin/public/publicHeader.html');?></div>
</div>
<div class="pLeft">
<div class="publicAside hei"><?php echo $this->render('@app/views/admin/public/publicAside.html');?></div>
</div>
<div class="yb_body">
<div class="layout" id="platformList" v-cloak v-loading="cardLoading">
<el-container>
<el-container>
<el-main>
<div class="main" style="min-width: 800px">
<div class="ba_f">
<div class="main-tab ba_f bor_rad5 mar_l20 pad_t_20">
<div class="main-search-tit t_l fon_16 wei pad_20 ">系统环境</div>
</div>
<div class="main_con pad_b_30 mar_l50">
<div class="flex-bet wid pad_tb_20">
<div class="flex-grow-0 t_r pad_r_25 right-left">授权域名</div>
<div class="flex-grow-1 t_l right-width">
<el-input v-model="formInline.domainName" disabled placeholder=""
class="elinput"></el-input>
</div>
</div>
<div class="flex-bet wid pad_tb_20">
<div class="flex-grow-0 t_r pad_r_25 right-left">服务器ip</div>
<div class="flex-grow-1 t_l right-width">
<el-input v-model="formInline.ip" disabled placeholder=""
class="elinput"></el-input>
</div>
</div>
<div class="flex-bet wid pad_tb_20">
<div class="flex-grow-0 t_r pad_r_25 right-left">程序版本</div>
<div class="flex-grow-1 t_l right-width">
<el-input v-model="formInline.version" disabled placeholder=""
class="elinput"></el-input>
</div>
</div>
<div class="flex-bet wid pad_tb_20">
<div class="flex-grow-0 t_r pad_r_25 right-left">服务器操作系统</div>
<div class="flex-grow-1 t_l right-width">
<el-input v-model="formInline.system" disabled placeholder=""
class="elinput"></el-input>
</div>
</div>
<div class="flex-bet wid pad_tb_20">
<div class="flex-grow-0 t_r pad_r_25 right-left">上传文件限制</div>
<div class="flex-grow-1 t_l right-width">
<el-input v-model="formInline.size_max" disabled placeholder=""
class="elinput"></el-input>
</div>
</div>
<div class="flex-bet wid pad_tb_20">
<div class="flex-grow-0 t_r pad_r_25 right-left">服务器环境</div>
<div class="flex-grow-1 t_l right-width">
<el-input v-model="formInline.linux_version" disabled placeholder=""
class="elinput"></el-input>
</div>
</div>
<div class="flex-bet wid pad_tb_20">
<div class="flex-grow-0 t_r pad_r_25 right-left">PHP版本</div>
<div class="flex-grow-1 t_l right-width">
<el-input v-model="formInline.php_version" disabled placeholder=""
class="elinput"></el-input>
</div>
</div>
<div class="flex-bet wid pad_tb_20">
<div class="flex-grow-0 t_r pad_r_25 right-left">PHP扩展</div>
<div class="flex-grow-1 t_l right-width">
<el-input v-model="formInline.php_module" disabled placeholder=""
class="elinput"></el-input>
</div>
</div>
<!-- <div class="flex-bet wid pad_tb_20">-->
<!-- <div class="flex-grow-0 t_r pad_r_25 right-left">PHP扩展</div>-->
<!-- <div class="flex-grow-1 t_l right-width">-->
<!-- <el-input v-model="formInline.key" disabled placeholder="5.6.44-log 拷贝"-->
<!-- class="elinput"></el-input>-->
<!-- </div>-->
<!-- </div>-->
<div class="flex-bet wid pad_tb_20">
<div class="flex-grow-0 t_r pad_r_25 right-left">MySQL版本</div>
<div class="flex-grow-1 t_l right-width">
<el-input v-model="formInline.mysql_version" disabled placeholder=""
class="elinput"></el-input>
</div>
</div>
<div class="flex-bet wid pad_tb_20">
<div class="flex-grow-0 t_r pad_r_25 right-left">服务器运行状态</div>
<div class="flex-grow-1 t_l right-width">
<div class="flex-grow-1 t_l right-width"> <el-tag type="repair" class="ysq">运行中</el-tag></div>
</div>
</div>
</div>
</div>
</div>
</el-main>
</el-container>
</el-container>
</div>
</div>
<script>
$(document).ready(function () {
$(".slimScrollDiv ul .main-nav-li a").eq(10).addClass("menu_active");
$(".main-nav .main-nav-li .submenu").eq(4).addClass("block");
$(".main-nav .main-nav-li .submenu").children().children().eq(13).addClass("menu_active2")
});
</script>
<script>
new Vue({
el: '#platformList',
created() {
this.init();
},
data: function () {
return {
cardLoading: true,
activeName: 'msg',
formInline: {
domainName: '',
ip: '',
linux_version: '',
mysql_version:'',
php_version:'',
size_max:'',
system:'',
php_module:''
},
}
},
methods: {
async init() {
res = await utils.requestGet({data: '', url: "admin/site/system_variable"},this)
if (res.code == 1) {
this.cardLoading= false
// console.log(res)
this.formInline = res
}
},
handleClick(tab, event) {
if (tab.name == 'msg') {
location.href = "<?= Yii::$app->urlManager->createUrl('admin/apply/platform_add');?>";
}
if (tab.name == 'user') {
location.href = "<?= Yii::$app->urlManager->createUrl('admin/apply/platform_userm');?>";
}
if (tab.name == 'enclosure') {
location.href = "<?= Yii::$app->urlManager->createUrl('admin/apply/platform_enclosure');?>";
}
},
}
})
</script>
</body>
</html>