<!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: ''}"> <template v-if="pageType === 'columns'"> <el-form label-width="150px" size="mini"> <el-form-item label="表名称"> {{ tableName }} </el-form-item> <el-form-item label="关联的站点"> <el-tag size="small" style="margin-right: 5px;" v-for="siteName in nameDict[tableName]"> {{ siteName }} </el-tag> </el-form-item> <el-form-item label="内容数"> {{ count.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") }} </el-form-item> </el-form> <el-alert type="warning"> 可以直接在数据库管理工具中修改表 {{ tableName }} 的字段，修改字段后需要 <el-link :underline="false" type="primary" v-on:click="btnRemoveCacheClick" href="javascript:;"> 清除缓存 </el-link> 才能体现在系统内容表中 </el-alert> <div style="height: 10px"></div> <el-table :data="columns" size="small" style="width: 100%"> <el-table-column label="字段名称"> <template slot-scope="scope"> {{ scope.row.attributeName }} </template> </el-table-column> <el-table-column label="字段类型"> <template slot-scope="scope"> {{ scope.row.dataType + (scope.row.dataType === 'VarChar' ? '(' + scope.row.dataLength + ')' : '') }} </template> </el-table-column> </el-table> <el-divider></el-divider> <div style="height: 10px"></div> <el-button size="small" v-on:click="btnCancelClick">返 回</el-button> </template> <template v-else> <el-table :data="tableNames" size="small" style="width: 100%"> <el-table-column label="表名称"> <template slot-scope="scope"> <el-link :underline="false" type="primary" v-on:click="btnColumnsClick(scope.row)">{{ scope.row }}</el-link> </template> </el-table-column> <el-table-column label="关联的站点"> <template slot-scope="scope"> <el-tag size="small" style="margin-right: 5px;" v-for="siteName in nameDict[scope.row]"> {{ siteName }} </el-tag> </template> </el-table-column> </el-table> </template> </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/sitesTables.js?v=1618992755943" type="text/javascript"></script> 