<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>管理后台</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="renderer" content="webkit"> <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"> <link href="/sitefiles/assets/images/favicon.png" rel="icon" type="image/png"> <link href="/sitefiles/assets/css/font-awesome-4.7.0.min.css?v=1618992755943" rel="stylesheet" type="text/css"> <link href="/sitefiles/assets/css/ionicons-2.0.0.min.css?v=1618992755943" rel="stylesheet" type="text/css"> <link href="/sitefiles/assets/lib/elementui/themechalk/index.css?v=1618992755943" rel="stylesheet" type="text/css"> <link href="/sitefiles/assets/css/element-ui.css?v=1618992755943" rel="stylesheet" type="text/css"> </head> <body> <div id="main"> <div v-if="this.pageLoad" style="display: none" :style="{display: ''}"> <el-table :data="sites" style="width: 100%;margin-bottom: 20px;" row-key="id" default-expand-all :tree-props="{children: 'children', hasChildren: 'hasChildren'}"> <el-table-column prop="siteName" label="站点名称" :sortable="true"> <template slot-scope="scope"> <el-badge v-if="scope.row.root" style="margin-top: 10px;" value="主站"> <el-link :underline="false" type="primary" :href="scope.row.web" target="_blank">{{scope.row.siteName}}</el-link> </el-badge> <el-link :underline="false" type="primary" v-else :href="scope.row.web" target="_blank">{{scope.row.siteName}}</el-link> </template> </el-table-column> <el-table-column prop="siteDir" label="站点文件夹" width="120" :sortable="true"></el-table-column> <el-table-column prop="web" label="站点地址" :sortable="true"> <template slot-scope="scope"> <el-link :underline="false" type="primary" :href="scope.row.web" target="_blank">{{scope.row.web}}</el-link> </template> </el-table-column> <el-table-column prop="assetsDir" label="上传文件夹" width="120" :sortable="true"></el-table-column> <el-table-column prop="assets" label="上传地址" :sortable="true"> <template slot-scope="scope"> <el-link :underline="false" type="primary" :href="scope.row.assets" target="_blank">{{scope.row.assets}}</el-link> </template> </el-table-column> <el-table-column prop="api" label="API地址" :sortable="true"> <template slot-scope="scope"> <el-link :underline="false" type="primary" :href="scope.row.api" target="_blank">{{scope.row.api}}</el-link> </template> </el-table-column> <el-table-column align="center" label="操作" width="100"> <template slot-scope="scope"> <el-button-group> <el-button size="mini" v-on:click="btnEditClick(scope.row)">修改</el-button> </el-button-group> </template> </el-table-column> </el-table> <el-drawer v-if="editForm" title="修改站点访问地址" ref="editPanel" :visible.sync="editPanel" destroy-on-close direction="rtl" size="50%"> <div class="drawer__content"> <el-form ref="editForm" :model="editForm" size="small" :rules="editRules" label-width="200px"> <el-form-item label="站点名称">{{ editForm.siteName }}</el-form-item> <el-form-item label="站点部署方式"> <el-radio-group v-model="editForm.isSeparatedWeb"> <el-radio :label="true">站点独立部署</el-radio> <el-radio :label="false">站点与CMS部署在一起</el-radio> </el-radio-group> <div class="tips">设置站点页面部署方式</div> </el-form-item> <el-form-item v-if="editForm.isSeparatedWeb" label="独立部署站点访问地址" prop="separatedWebUrl"> <el-input v-model="editForm.separatedWebUrl"></el-input> </el-form-item> <el-form-item label="上传文件部署方式"> <el-radio-group v-model="editForm.isSeparatedAssets"> <el-radio :label="true">上传文件独立部署</el-radio> <el-radio :label="false">上传文件与站点部署在一起</el-radio> </el-radio-group> <div class="tips">上传文件包含图片、视频、附件等除了HTML页面之外的所有文件</div> </el-form-item> <el-form-item v-if="editForm.isSeparatedAssets" label="上传文件存储文件夹" prop="assetsDir"> <el-input v-model="editForm.assetsDir"></el-input> </el-form-item> <el-form-item v-if="editForm.isSeparatedAssets" label="独立部署上传文件访问地址" prop="separatedAssetsUrl"> <el-input v-model="editForm.separatedAssetsUrl"></el-input> </el-form-item> <el-form-item label="API部署方式"> <el-radio-group v-model="editForm.isSeparatedApi"> <el-radio :label="true">API独立部署</el-radio> <el-radio :label="false">API与CMS部署在一起</el-radio> </el-radio-group> <div class="tips">设置API部署方式</div> </el-form-item> <el-form-item v-if="editForm.isSeparatedApi" label="独立部署API访问地址" prop="separatedApiUrl"> <el-input v-model="editForm.separatedApiUrl"></el-input> <div class="tips">“/api”结尾字符串系统将自动添加</div> </el-form-item> </el-form> <div class="drawer__footer"> <el-button type="primary" size="small" v-on:click="btnEditSubmitClick" :loading="editLoading">{{ editLoading ? '提交中 ...' : '确 定' }}</el-button> <el-button size="small" v-on:click="btnEditCancelClick">取 消</el-button> </div> </div> </el-drawer> </div> <div v-else :style="{top: ($(window).height()/2 - 30) + 'px'}" v-loading="true" element-loading-text="页面加载中"></div> </div> </body> </html> <script src="/sitefiles/assets/lib/es6-promise.auto.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/axios-0.17.1.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/core-js-3.6.5.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/lodash-4.17.10.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/jquery-1.9.1.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/layer/layer-3.1.1.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/sweetalert2-7.28.4.all.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/vue-2.5.16.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/elementui/index.js?v=1618992755943"></script> <script src="/sitefiles/assets/js/admin.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/js/utils.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/js/cloud.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/js/admin/settings/sitesUrl.js?v=1618992755943" type="text/javascript"></script> 