From 85da22c4861736f7b0cabbc75daecbe4fea1bf80 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期日, 04 七月 2021 21:01:12 +0800 Subject: [PATCH] 周天更改 --- src/pages/settings/components/BasicSetting.vue | 74 ++++++++++++------------------------ 1 files changed, 25 insertions(+), 49 deletions(-) diff --git a/src/pages/settings/components/BasicSetting.vue b/src/pages/settings/components/BasicSetting.vue index 3c05bf4..f36761c 100644 --- a/src/pages/settings/components/BasicSetting.vue +++ b/src/pages/settings/components/BasicSetting.vue @@ -71,7 +71,6 @@ </el-menu-item-group> </el-submenu> - <!-- 璇︾粏淇℃伅 --> <el-submenu index="1"> <template slot="title"> <b class="tree-font">璇︾粏淇℃伅</b> @@ -79,20 +78,24 @@ <el-menu-item-group class="item-group desc-info"> <el-row :gutter="gutter"> <el-col :span="12" class="flex-box"> - <div class="xiangqin-label">ID</div> + <div class="xiangqin-label">璁惧ID</div> <div class="xiangqing-info">{{sysinfo.server_id}}</div> </el-col> - <el-col :span="12" class="flex-box"> + <!-- <el-col :span="12" class="flex-box"> <div class="xiangqin-label">璁惧缂栧彿</div> <div class="xiangqing-info">{{sysinfo.deviceNum}}</div> - </el-col> + </el-col>--> <el-col :span="12" class="flex-box"> <div class="xiangqin-label">璁惧鍨嬪彿</div> - <div class="xiangqing-info">{{sysinfo.deviceType}}</div> + <div class="xiangqing-info">{{sysinfo.deviceModel}}</div> </el-col> <el-col :span="12" class="flex-box"> - <div class="xiangqin-label">璁惧搴忓垪鍙�</div> - <div class="xiangqing-info">{{sysinfo.deviceSerialNum}}</div> + <div class="xiangqin-label">璁惧绫诲瀷</div> + <div class="xiangqing-info">{{sysinfo.deviceDesc}}</div> + </el-col> + <el-col :span="12" class="flex-box"> + <div class="xiangqin-label">閫氶亾涓暟</div> + <div class="xiangqing-info">{{sysinfo.channelCount}}</div> </el-col> <el-col :span="12" class="flex-box"> <div class="xiangqin-label">涓绘帶鐗堟湰</div> @@ -101,14 +104,6 @@ <el-col :span="12" class="flex-box"> <div class="xiangqin-label">web鐗堟湰</div> <div class="xiangqing-info">{{sysinfo.webVersion}}</div> - </el-col> - <el-col :span="12" class="flex-box"> - <div class="xiangqin-label">閫氶亾涓暟</div> - <div class="xiangqing-info">{{sysinfo.channelCount}}</div> - </el-col> - <el-col :span="12" class="flex-box"> - <div class="xiangqin-label">纭洏涓暟</div> - <div class="xiangqing-info">{{sysinfo.diskCount}}</div> </el-col> <el-col :span="12" class="flex-box"> <div class="xiangqin-label">纭洏淇℃伅</div> @@ -182,26 +177,8 @@ <el-tab-pane label="鏃堕棿閰嶇疆" name="timeSet" v-if="isShow('settings:timeSet')"> <el-form label-width="100px"> <el-form-item label="璁惧鏃堕棿"> - <!-- <el-input v-model="equipmentTime" placeholder="璇疯緭鍏�" size="small"></el-input> --> {{ equipmentTime }} </el-form-item> - - <!-- <el-form-item label="鏃跺尯" prop="timezone"> - <el-select - v-model="timezone" - placeholder="璇烽�夋嫨" - style="width: 360px; height: 32px" - size="small" - @change="checkTimeZone" - > - <el-option - v-for="item in timeZoneOption" - :key="item.value" - :label="item.label" - :value="item.value" - ></el-option> - </el-select> - </el-form-item>--> <div style="text-align: left;padding: 10px 0px"> <div class="time-type">NTP鏍℃椂</div> <div style="padding: 10px 0px;"> @@ -342,6 +319,7 @@ import ClusterManagement from "./ClusterManagement"; import AuthorityManagement from "./AuthorityManagement"; import RadioSet from "./RadioSet"; +import config from '../../../../package.json' export default { name: "BasicSettings", @@ -352,15 +330,15 @@ RadioSet }, computed: { - timeZoneOption() { - let options = [] - TimeZones.forEach(zone => { - options = options.concat(zone.utc.map(v => { - return { value: v, label: v } - })) - }) - return options - }, + // timeZoneOption() { + // let options = [] + // TimeZones.forEach(zone => { + // options = options.concat(zone.utc.map(v => { + // return { value: v, label: v } + // })) + // }) + // return options + // }, isAdmin() { if ( sessionStorage.getItem("userInfo") && @@ -506,7 +484,6 @@ this.initResourceConfig(); this.initClockConf(); //this.markStartTime(); - }); }, beforeDestroy() { @@ -534,7 +511,7 @@ let devInfo = this.sysinfo.deviceInfo; this.sysinfo.cpuInfo = devInfo.cpu[0].modelName; - this.sysinfo.disks = devInfo.disk; + this.sysinfo.disks = "( " + devInfo.disk + ") "; this.sysinfo.mem = (devInfo.mem.total / 1024 / 1024 / 1024).toFixed(2) + "GB"; // this.sysinfo.arch = devInfo.host.kernelArch; this.sysinfo.uptime = this.secondsFormat(devInfo.host.uptime); @@ -545,6 +522,8 @@ } this.webPort = this.sysinfo.server_port; + + this.sysinfo.webVersion = 'V' + config.version; } this.loading = false; @@ -579,7 +558,6 @@ }, runClock() { this.equipmentTime = this.formatTime(++this.timestamp, 'Y-M-D h:m:s'); - // console.log(this.equipmentTime) this.clockTimer = setTimeout(() => { this.runClock(); }, 1000) @@ -626,7 +604,7 @@ if (this.sysinfo.ip !== this.originNetConfig.ip) { let newUri = location.protocol + "//" + this.sysinfo.ip + ":" + this.sysinfo.server_port; var changeIPTimer = setTimeout(() => { - this.$alert('<strong>鎮ㄥ凡淇敼浜嗘湇鍔″櫒ip, 璇烽噸鏂扮櫥褰�</strong><a href="' + newUri + '"> ' + newUri + '<a/>', '鎻愮ず', { + this.$alert('<strong>鎮ㄥ凡淇敼浜嗘湇鍔″櫒ip, 璇烽噸鏂扮櫥褰�</strong><a target="_parent" href="' + newUri + '"> ' + newUri + '<a/>', '鎻愮ず', { dangerouslyUseHTMLString: true }); }, 10000) @@ -672,7 +650,7 @@ if (this.sysinfo.server_port !== this.webPort) { let newUri = location.protocol + "//" + this.sysinfo.ip + ":" + this.sysinfo.server_port; var changeIPTimer = setTimeout(() => { - this.$alert('<strong>鎮ㄥ凡淇敼浜嗘湇鍔″櫒绔彛, 璇烽噸鏂扮櫥褰�</strong><a href="' + newUri + '"> ' + newUri + '<a/>', '鎻愮ず', { + this.$alert('<strong>鎮ㄥ凡淇敼浜嗘湇鍔″櫒绔彛, 璇烽噸鏂扮櫥褰�</strong><a target="_parent" href="' + newUri + '"> ' + newUri + '<a/>', '鎻愮ず', { dangerouslyUseHTMLString: true }); }, 5000) @@ -685,7 +663,6 @@ }); }, checkTimeZone(val) { - debugger; }, submitClock() { @@ -722,7 +699,6 @@ message: "璁剧疆鎴愬姛" }); } - this.initClockConf(); }) }, -- Gitblit v1.8.0