+
@@ -105,9 +130,15 @@ import lendAcross from '@/views/components/echarts/lendAcross.vue'
import catePie from '@/views/components/echarts/catePie.vue'
import typePie from '@/views/components/echarts/typePie.vue'
import serverProgress from '@/views/components/echarts/serverProgress.vue'
+import serverGpu from '@/views/components/echarts/serverGpu.vue'
+import serverGpuUse from '@/views/components/echarts/serverGpuUse.vue'
+import serverGpuOther from '@/views/components/echarts/serverGpuOther.vue'
+import serveTerminal from '@/views/components/serveTerminal.vue'
import { FetchMainData } from '@/api/archivesManage/library'
import { FetchSystemInfo } from '@/api/home/cpu/index'
import { mapGetters } from 'vuex'
+import { swiper, swiperSlide } from 'vue-awesome-swiper'
+import 'swiper/css/swiper.css'
export default {
name: 'Dashboard',
@@ -116,7 +147,13 @@ export default {
lendAcross,
catePie,
typePie,
- serverProgress
+ serverProgress,
+ serveTerminal,
+ serverGpu,
+ serverGpuUse,
+ serverGpuOther,
+ swiper,
+ swiperSlide
},
data() {
return {
@@ -148,7 +185,20 @@ export default {
cpuPercentage: 0,
memPercentage: 0,
sysFilesPercentage: 0
- }
+ },
+ swiperOptionServer: {
+ autoplay: false,
+ slidesPerView: 'auto',
+ pagination: {
+ el: '.swiper-pagination',
+ clickable: true
+ }
+ },
+ memoryFree: 0,
+ memoryTotal: 0,
+ GPUName: '',
+ temperature: 0,
+ utilization: 0
}
},
computed: {
@@ -159,7 +209,9 @@ export default {
created() {
this.handleMainData()
this.getSystemInfo()
- // this.get()
+ this.$nextTick(() => {
+ this.$refs.serveTerminalRefs.initData()
+ })
},
mounted() {
// const _this = this
@@ -191,6 +243,21 @@ export default {
// }, 3000)
},
methods: {
+ refreshSystemData() {
+ this.systemData = {
+ cpuPercentage: 0,
+ memPercentage: 0,
+ sysFilesPercentage: 0
+ }
+ this.memoryFree = 0
+ this.memoryTotal = 0
+ this.GPUName = ''
+ this.temperature = 0
+ this.utilization = 0
+
+ this.getSystemInfo()
+ this.$refs.serveTerminalRefs.initData()
+ },
getSystemInfo() {
FetchSystemInfo().then(res => {
// cpu 占有率 (总的cpuTotal-空闲的cpuFree)/总的cpuTotal
@@ -207,6 +274,12 @@ export default {
sysFilesTotal += parseFloat(item.total)
})
this.systemData.sysFilesPercentage = Math.round((sysFilesTotalUsed / sysFilesTotal) * 100)
+
+ this.memoryFree = res.memoryFree
+ this.memoryTotal = res.memoryTotal
+ this.GPUName = res.GPUName
+ this.temperature = res.temperature
+ this.utilization = res.utilization
})
},
toMoreProcess() {
@@ -312,7 +385,7 @@ export default {
position: relative;
.chart-wrapper {
- height: calc(100% - 55px);
+ height: calc(100% - 92px);
}
}
@media (max-width: 1024px) {
@@ -386,4 +459,28 @@ export default {
::v-deep .home-flowable-list .el-table__body-wrapper::-webkit-scrollbar-corner {
background-color: #DDE8FB !important;
}
+
+.swiper-server{
+ position: relative;
+ height: 300px;
+ ::v-deep .swiper-wrapper{
+ height: 344px;
+ }
+ .swiper-pagination{
+ bottom: 80px;
+ }
+}
+
+.cpu-echarts{
+ position: relative;
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+ .cpu-right{
+ flex: 1;
+ height: 100%;
+ display: flex;
+ justify-content: flex-start;
+ }
+}
diff --git a/src/views/login.vue b/src/views/login.vue
index 454cb8e..339b2e0 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -124,7 +124,9 @@ export default {
}
},
created() {
- localStorage.clear()
+ // localStorage.clear()
+ // 调用函数清除缓存
+ this.clearLocalStorageExceptStatusBar()
// 获取验证码
this.getCode()
// 获取用户名密码等Cookie
@@ -133,6 +135,14 @@ export default {
this.point()
},
methods: {
+ clearLocalStorageExceptStatusBar() {
+ const keys = Object.keys(localStorage)
+ keys.forEach(key => {
+ if (key !== 'statusBarManagement') {
+ localStorage.removeItem(key)
+ }
+ })
+ },
getCode() {
getCodeImg().then((res) => {
this.codeUrl = res.img
diff --git a/src/views/system/paramSetting/index.vue b/src/views/system/paramSetting/index.vue
new file mode 100644
index 0000000..3a52210
--- /dev/null
+++ b/src/views/system/paramSetting/index.vue
@@ -0,0 +1,492 @@
+
+
+
+
+
+
+
+
+
+
+
+ 设置成功后,方可执行视觉盘点任务
+
+ 重启服务
+
+
+
+
+
+
+ 保存
+ 设置需要超级管理员权限授权!
+
+
+
+
+
+
+
这里为技术人员维护系统时使用,普通用户无需设置
+
注意:强行修改会导致系统数据异常或丢失!如因用户强行修改,本系统不负责因此导致的相关后果!
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
终端连接超时,请检查配置是否正确或终端是否运行成功!
+
请尽快联系系统维护人员进行恢复
+
+
+
+
+
+
+
终端连接正常
+
+
+ -
+
{{ item.serviceName }}
+
+
+
+
+
+
所有服务均正常运行,请放心使用
+
请尽快联系系统维护人员进行恢复
+
+
+
+
+
+
+
+
+