You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.6 KiB
79 lines
2.6 KiB
{template 'common/header'}
|
|
<ul class="we7-page-tab"></ul>
|
|
<div class="system-check" id="js-system-check" ng-controller="systemCheckCtrl" ng-cloak>
|
|
<div class="system-check-header clearfix we7-margin-bottom">
|
|
<a href="#" onclick="url_reload()" class="btn btn-primary pull-right">检测</a>
|
|
</div>
|
|
<div>
|
|
<table class="tbale we7-table">
|
|
<tr>
|
|
<th>全部检测{{ check_num }}项,错误检测项<span class="color-red">{{ check_wrong_num }}</span>项</th>
|
|
<th>检测结果</th>
|
|
<th>解决建议</th>
|
|
<th>建议操作</th>
|
|
<th>解决方案</th>
|
|
</tr>
|
|
|
|
{loop $system_check_items $check_item_name $check_item}
|
|
<tr>
|
|
<td>{$check_item['description']}</td>
|
|
{if !$check_item['check_result']}
|
|
<td><span class="color-red wi wi-info-sign">{$check_item['error_message']}</span></td>
|
|
{else}
|
|
<td><span class="color-green wi wi-right-sign">正确</span></td>
|
|
{/if}
|
|
<td>
|
|
<div>
|
|
{if !$check_item['check_result']}
|
|
<a href="#" onclick="url_reload()">重新检测</a>
|
|
{else} -- {/if}
|
|
</div>
|
|
</td>
|
|
<td>{if !$check_item['check_result']} {$check_item['solution']} {else} -- {/if}</td>
|
|
<td>{if !$check_item['check_result']} <a href="{$check_item['handle']}" target="_balnk">查看</a> {else} -- {/if}</td>
|
|
</tr>
|
|
{/loop}
|
|
|
|
|
|
<!-- fpm 环境 start -->
|
|
<tr>
|
|
<td>php-fpm 运行环境</td>
|
|
<td ng-if="checkFpmStatus == 0"><span class="color-gray wi wi-info-sign">检测中...</span></td>
|
|
<td ng-if="checkFpmStatus == 1"><span class="color-green wi wi-right-sign">正确</span></td>
|
|
<td ng-if="checkFpmStatus == 2"><span class="color-red wi wi-info-sign">错误</span></td>
|
|
<td>
|
|
<span ng-if="checkFpmStatus != 2">--</span>
|
|
<a ng-if="checkFpmStatus == 2" href="javascript:void(0);" ng-click="checkFpm()">重新检测</a>
|
|
</td>
|
|
<td>
|
|
<span ng-if="checkFpmStatus != 2">--</span>
|
|
<span ng-if="checkFpmStatus == 2">安装配置 FPM</span>
|
|
</td>
|
|
<td>
|
|
<span ng-if="checkFpmStatus != 2">--</span>
|
|
<span ng-if="checkFpmStatus == 2">--</span>
|
|
</td>
|
|
</tr>
|
|
<!-- fpm 环境 end -->
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function url_reload() {
|
|
location.reload();
|
|
}
|
|
angular.module('systemApp').value('config', {
|
|
'check_num' : {$check_num},
|
|
'check_wrong_num' : {$check_wrong_num},
|
|
'links': {
|
|
'account_post_url': "{php echo url('account/post')}",
|
|
'check_table_link': "",
|
|
'check_fpm_link': "{php echo url('system/check/check_fpm')}",
|
|
'check_auth_accounts': "",
|
|
},
|
|
});
|
|
angular.bootstrap($('#js-system-check'), ['systemApp']);
|
|
</script>
|
|
|
|
{template 'common/footer'}
|