From 930c66126ddc02289f8f0180976a8b1101718316 Mon Sep 17 00:00:00 2001 From: unknown <1275919414@qq.com> Date: Sun, 10 Mar 2019 18:32:55 +0800 Subject: [PATCH 1/6] error edit --- package-lock.json | 13 ++++++++---- src/router/stuPath.js | 2 +- src/views/common/buss.js | 2 +- .../evaluation/components/bodybase.vue | 8 ++++---- .../evaluation/components/moralitybase.vue | 7 +++---- .../evaluation/components/moralityimprove.vue | 10 +++++----- .../components/professionalcomprehensive.vue | 6 +++--- .../evaluation/components/societypractice.vue | 8 ++++---- .../evaluation/components/techinovation.vue | 8 ++++---- src/views/students/evaluation/sself.vue | 20 +++++++++---------- 10 files changed, 44 insertions(+), 40 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5f92c17..da46e9c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4212,7 +4212,8 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -4627,7 +4628,8 @@ "safe-buffer": { "version": "5.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -4683,6 +4685,7 @@ "version": "3.0.1", "bundled": true, "dev": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -4726,12 +4729,14 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true } } }, diff --git a/src/router/stuPath.js b/src/router/stuPath.js index 4f8cb3b..21a1dfe 100644 --- a/src/router/stuPath.js +++ b/src/router/stuPath.js @@ -86,7 +86,7 @@ export default [ auth: false }, component: () => import('@/views/students/evaluation/components/techinovation.vue') - }, + } ] }, { diff --git a/src/views/common/buss.js b/src/views/common/buss.js index f9ef51b..b0230b5 100644 --- a/src/views/common/buss.js +++ b/src/views/common/buss.js @@ -1,2 +1,2 @@ import Vue from 'vue' -export default new Vue() \ No newline at end of file +export default new Vue() diff --git a/src/views/students/evaluation/components/bodybase.vue b/src/views/students/evaluation/components/bodybase.vue index fb7aaaf..4c05f5e 100644 --- a/src/views/students/evaluation/components/bodybase.vue +++ b/src/views/students/evaluation/components/bodybase.vue @@ -53,14 +53,14 @@ export default { methods: { prevent () { Bus.$emit('val', this.active - 2) - if (this.active > 6) this.active = 0; - this.$router.push({ path: 'moralitybase'}) + if (this.active > 6) this.active = 0 + this.$router.push({ path: 'moralitybase' }) }, next () { Bus.$emit('val', this.active) Bus.$emit('finishAct', this.active) - if (this.active > 6) this.active = 0; - this.$router.push({ path: 'moralityimprove'}) + if (this.active > 6) this.active = 0 + this.$router.push({ path: 'moralityimprove' }) } } } diff --git a/src/views/students/evaluation/components/moralitybase.vue b/src/views/students/evaluation/components/moralitybase.vue index 27a28ab..fddcb15 100644 --- a/src/views/students/evaluation/components/moralitybase.vue +++ b/src/views/students/evaluation/components/moralitybase.vue @@ -38,15 +38,15 @@ export default { data () { return { moralityBbaseForm: {}, - active: 1, + active: 1 } }, methods: { next () { Bus.$emit('val', this.active) Bus.$emit('finishAct', this.active) - if (this.active > 6) this.active = 0; - this.$router.push({ path: 'bodybase'}) + if (this.active > 6) this.active = 0 + this.$router.push({ path: 'bodybase' }) } } } @@ -55,4 +55,3 @@ export default { .el-input max-width 72px - diff --git a/src/views/students/evaluation/components/moralityimprove.vue b/src/views/students/evaluation/components/moralityimprove.vue index 57da4fc..f35a3b8 100644 --- a/src/views/students/evaluation/components/moralityimprove.vue +++ b/src/views/students/evaluation/components/moralityimprove.vue @@ -43,15 +43,15 @@ export default { methods: { prevent () { Bus.$emit('val', this.active - 2) - if (this.active > 6) this.active = 0; - this.$router.push({ path: 'bodybase'}) + if (this.active > 6) this.active = 0 + this.$router.push({ path: 'bodybase' }) }, next () { Bus.$emit('val', this.active) Bus.$emit('finishAct', this.active) - if (this.active > 6) this.active = 0; - this.$router.push({ path: 'societypractice'}) + if (this.active > 6) this.active = 0 + this.$router.push({ path: 'societypractice' }) } } } - \ No newline at end of file + diff --git a/src/views/students/evaluation/components/professionalcomprehensive.vue b/src/views/students/evaluation/components/professionalcomprehensive.vue index e176d63..309d5f6 100644 --- a/src/views/students/evaluation/components/professionalcomprehensive.vue +++ b/src/views/students/evaluation/components/professionalcomprehensive.vue @@ -53,8 +53,8 @@ export default { methods: { prevent () { Bus.$emit('val', this.active - 2) - if (this.active > 7) this.active = 0; - this.$router.push({ path: 'techinovation'}) + if (this.active > 7) this.active = 0 + this.$router.push({ path: 'techinovation' }) }, next () { Bus.$emit('val', this.active) @@ -64,7 +64,7 @@ export default { cancelButtonText: '关闭', type: 'success' }).then(() => { - this.$router.push({ path: '/student/evaluation/evaluationresult'}) + this.$router.push({ path: '/student/evaluation/evaluationresult' }) }).catch(() => {}) } } diff --git a/src/views/students/evaluation/components/societypractice.vue b/src/views/students/evaluation/components/societypractice.vue index 393ca81..b888467 100644 --- a/src/views/students/evaluation/components/societypractice.vue +++ b/src/views/students/evaluation/components/societypractice.vue @@ -41,14 +41,14 @@ export default { methods: { prevent () { Bus.$emit('val', this.active - 2) - if (this.active > 6) this.active = 0; - this.$router.push({ path: 'moralityimprove'}) + if (this.active > 6) this.active = 0 + this.$router.push({ path: 'moralityimprove' }) }, next () { Bus.$emit('val', this.active) Bus.$emit('finishAct', this.active) - if (this.active > 6) this.active = 0; - this.$router.push({ path: 'techinovation'}) + if (this.active > 6) this.active = 0 + this.$router.push({ path: 'techinovation' }) } } } diff --git a/src/views/students/evaluation/components/techinovation.vue b/src/views/students/evaluation/components/techinovation.vue index 8852b3d..364abf9 100644 --- a/src/views/students/evaluation/components/techinovation.vue +++ b/src/views/students/evaluation/components/techinovation.vue @@ -49,14 +49,14 @@ export default { methods: { prevent () { Bus.$emit('val', this.active - 2) - if (this.active > 6) this.active = 0; - this.$router.push({ path: 'societypractice'}) + if (this.active > 6) this.active = 0 + this.$router.push({ path: 'societypractice' }) }, next () { Bus.$emit('val', this.active) Bus.$emit('finishAct', this.active) - if (this.active > 6) this.active = 0; - this.$router.push({ path: 'professionalcomprehensive'}) + if (this.active > 6) this.active = 0 + this.$router.push({ path: 'professionalcomprehensive' }) } } } diff --git a/src/views/students/evaluation/sself.vue b/src/views/students/evaluation/sself.vue index e85cfcf..eb51431 100644 --- a/src/views/students/evaluation/sself.vue +++ b/src/views/students/evaluation/sself.vue @@ -28,22 +28,22 @@ export default { }, methods: { clickSteps (index) { - if (index == this.active) { + if (index === this.active) { this.$message({ message: '警告,已经在当前步骤,不需要跳转!', type: 'warning' - }); + }) } else if (index <= this.finashiActive) { switch (index) { - case 0: Bus.$emit('val', index); this.$router.push({ path: 'moralitybase'}); break; - case 1: Bus.$emit('val', index); this.$router.push({ path: 'bodybase'}); break; - case 2: Bus.$emit('val', index); this.$router.push({ path: 'moralityimprove'}); break; - case 3: Bus.$emit('val', index); this.$router.push({ path: 'societypractice'}); break; - case 4: Bus.$emit('val', index); this.$router.push({ path: 'techinovation'}); break; - case 5: Bus.$emit('val', index); this.$router.push({ path: 'professionalcomprehensive'}); break; + case 0: Bus.$emit('val', index); this.$router.push({ path: 'moralitybase' }); break + case 1: Bus.$emit('val', index); this.$router.push({ path: 'bodybase' }); break + case 2: Bus.$emit('val', index); this.$router.push({ path: 'moralityimprove' }); break + case 3: Bus.$emit('val', index); this.$router.push({ path: 'societypractice' }); break + case 4: Bus.$emit('val', index); this.$router.push({ path: 'techinovation' }); break + case 5: Bus.$emit('val', index); this.$router.push({ path: 'professionalcomprehensive' }); break } } else { - this.$message.error('错误,当前点击步骤之前有没完成的步骤!'); + this.$message.error('错误,当前点击步骤之前有没完成的步骤!') } } }, @@ -56,7 +56,7 @@ export default { this.finashiActive = res } }) - this.$router.push({ path: 'moralitybase'}) + this.$router.push({ path: 'moralitybase' }) } } From 2b8714a39e522ff96550566f3eb41129a73de7f4 Mon Sep 17 00:00:00 2001 From: Blank Date: Sun, 10 Mar 2019 19:01:57 +0800 Subject: [PATCH 2/6] router change --- config/index.js | 2 +- src/router/stuPath.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/index.js b/config/index.js index 542ca57..7c8d836 100644 --- a/config/index.js +++ b/config/index.js @@ -12,7 +12,7 @@ module.exports = { assetsPublicPath: '/', proxyTable: { '/api': { - target: 'http://10.10.18.131:7007', + target: 'http://127.0.0.1:7007', pathRewrite: { '^/api': '/api' } diff --git a/src/router/stuPath.js b/src/router/stuPath.js index 4f8cb3b..21a1dfe 100644 --- a/src/router/stuPath.js +++ b/src/router/stuPath.js @@ -86,7 +86,7 @@ export default [ auth: false }, component: () => import('@/views/students/evaluation/components/techinovation.vue') - }, + } ] }, { From 98f405dd122880ce5534d8e716d4410c594123d8 Mon Sep 17 00:00:00 2001 From: Blank Date: Sun, 10 Mar 2019 19:17:38 +0800 Subject: [PATCH 3/6] fix code style --- src/main.js | 3 +-- src/router/siderPath.js | 2 +- src/views/admin/layout/components/aside.vue | 6 ++--- src/views/admin/layout/components/user.vue | 14 +++++------ src/views/login/login.vue | 4 +--- .../evaluation/components/moralitybase.vue | 7 ++---- src/views/students/layout/components/user.vue | 23 ++++++++++--------- 7 files changed, 27 insertions(+), 32 deletions(-) diff --git a/src/main.js b/src/main.js index 5ca3a46..03bcabc 100644 --- a/src/main.js +++ b/src/main.js @@ -5,7 +5,6 @@ import store from './store' import App from './App' import router from './router' import echarts from 'echarts' -import axios from 'axios' import Vuex from 'vuex' import './utils/Axios' import 'element-ui/lib/theme-chalk/index.css' @@ -23,7 +22,7 @@ Vue.config.productionTip = false // 路由拦截器 router.beforeEach(({meta, path}, from, next) => { - if(!localStorage.getItem('token') && path !== '/login') { + if (!localStorage.getItem('token') && path !== '/login') { return next({ path: '/login' }) } else { next() diff --git a/src/router/siderPath.js b/src/router/siderPath.js index 99fb0e2..4e45b60 100644 --- a/src/router/siderPath.js +++ b/src/router/siderPath.js @@ -290,4 +290,4 @@ export default [ // } // return hidden // console.log(hidden) -// } \ No newline at end of file +// } diff --git a/src/views/admin/layout/components/aside.vue b/src/views/admin/layout/components/aside.vue index f7e617d..dea6c51 100644 --- a/src/views/admin/layout/components/aside.vue +++ b/src/views/admin/layout/components/aside.vue @@ -40,11 +40,11 @@ export default { let hidden = null let level = null if (scope < 5) { - if(scope == 1 || scope == 4) { + if (scope === 1 || scope === 4) { level = 1 - } else if (scope == 2) { + } else if (scope === 2) { level = 2 - } else if (scope == 3) { + } else if (scope === 3) { level = 3 } if (level > num) { diff --git a/src/views/admin/layout/components/user.vue b/src/views/admin/layout/components/user.vue index e7a9fbc..c6ed83c 100644 --- a/src/views/admin/layout/components/user.vue +++ b/src/views/admin/layout/components/user.vue @@ -23,13 +23,13 @@ export default { methods: { teaLogout () { this.$axios - .post('/api/zongce/admin/loginout', { - Authorization: this.Authorization - }) - .then(res => { - this.$router.push({ path: '/login' }) - }) - .catch(res => {}) + .post('/api/zongce/admin/loginout', { + Authorization: this.Authorization + }) + .then(res => { + this.$router.push({ path: '/login' }) + }) + .catch(res => {}) } } } diff --git a/src/views/login/login.vue b/src/views/login/login.vue index c27ec56..0c3d338 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -40,8 +40,6 @@ + diff --git a/src/views/admin/layout/layout.vue b/src/views/admin/layout/layout.vue index ec66dc2..2501814 100644 --- a/src/views/admin/layout/layout.vue +++ b/src/views/admin/layout/layout.vue @@ -18,7 +18,7 @@ import HomeAside from './components/aside' import BreadCrumb from './components/breadcrumb' import FullPage from '@/views/common/fullpage' -import HomeUser from '@/views/common/user' +import HomeUser from './components/user' import HomeMain from '@/views/common/main' export default { name: 'Layout', diff --git a/src/views/admin/manager/mclass/mclass.vue b/src/views/admin/manager/mclass/mclass.vue new file mode 100644 index 0000000..542d397 --- /dev/null +++ b/src/views/admin/manager/mclass/mclass.vue @@ -0,0 +1,200 @@ + + + diff --git a/src/views/admin/manager/mfaculty/mfaculty.vue b/src/views/admin/manager/mfaculty/mfaculty.vue new file mode 100644 index 0000000..db160bc --- /dev/null +++ b/src/views/admin/manager/mfaculty/mfaculty.vue @@ -0,0 +1,154 @@ + + + diff --git a/src/views/admin/manager/mmember/mmember.vue b/src/views/admin/manager/mmember/mmember.vue new file mode 100644 index 0000000..9b9af24 --- /dev/null +++ b/src/views/admin/manager/mmember/mmember.vue @@ -0,0 +1,3 @@ + diff --git a/src/views/admin/manager/mschool/mschool.vue b/src/views/admin/manager/mschool/mschool.vue new file mode 100644 index 0000000..d274bf7 --- /dev/null +++ b/src/views/admin/manager/mschool/mschool.vue @@ -0,0 +1,154 @@ + + + diff --git a/src/views/admin/manager/msystem/msystem.vue b/src/views/admin/manager/msystem/msystem.vue new file mode 100644 index 0000000..b6ee614 --- /dev/null +++ b/src/views/admin/manager/msystem/msystem.vue @@ -0,0 +1,3 @@ + diff --git a/src/views/login/login.vue b/src/views/login/login.vue index d5502f3..3924445 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -5,30 +5,41 @@
大学生综合素质测评系统
- + - + @@ -124,16 +137,14 @@ export default { font-family STKaiti text-align center .right-login - width 250px border-radius 10px margin-top 150px margin-left 60px - padding 60px 30px 20px 30px background rgba(255,255,255,.4) - .select - width 250px - .login-btn - width 100% + .demo-ruleForm + padding 30px + .login-btn + width 100% .copyright position absolute width 100% diff --git a/src/views/login/login2.vue b/src/views/login/login2.vue new file mode 100644 index 0000000..11d232a --- /dev/null +++ b/src/views/login/login2.vue @@ -0,0 +1,20 @@ + + + + diff --git a/src/views/students/evaluation/components/bodybase.vue b/src/views/students/evaluation/components/bodybase.vue index 4c05f5e..c45b3b3 100644 --- a/src/views/students/evaluation/components/bodybase.vue +++ b/src/views/students/evaluation/components/bodybase.vue @@ -12,31 +12,101 @@ 出勤情况 体育锻炼态度 军训 - 扣分 - 扣分原因 + 体育课出勤 体育活动出勤 - ①②③ + + + + + + + + + + + + + + + - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +  添加定量考评数据 + + + + + + + + + + + + +
证明文件拖到此处,或点击上传
+
只能上传jpg/png文件,且不超过500kb
+
+
+ + 取 消 + 确 定 + +
返回上一步 - 提交并下一步 + 提交并下一步 @@ -46,7 +116,23 @@ export default { name: 'StudentBodyBase', data () { return { - bodyBaseForm: {}, + number1: [20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0], + number2: [15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0], + number3: [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0], + number4: [5, 4, 3, 2, 1, 0], + bodyBaseForm: { + 1: '', + 2: '', + 3: '', + 4: '', + 5: '', + 6: '', + 7: '', + 8: '', + 9: '' + }, + MoreData: false, + moreDataUpdate: {}, active: 2 } }, @@ -56,11 +142,21 @@ export default { if (this.active > 6) this.active = 0 this.$router.push({ path: 'moralitybase' }) }, - next () { + nextStep () { Bus.$emit('val', this.active) Bus.$emit('finishAct', this.active) if (this.active > 6) this.active = 0 this.$router.push({ path: 'moralityimprove' }) + }, + showMoreData () { + this.MoreData = true + }, + beforeupload (file) { + console.log(file) + console.log(file.name) + }, + submitData () { + this.MoreData = false } } } diff --git a/src/views/students/evaluation/components/moralitybase.vue b/src/views/students/evaluation/components/moralitybase.vue index fddcb15..1d6a76e 100644 --- a/src/views/students/evaluation/components/moralitybase.vue +++ b/src/views/students/evaluation/components/moralitybase.vue @@ -1,33 +1,75 @@ @@ -37,16 +79,38 @@ export default { name: 'StudentMoralityBase', data () { return { - moralityBbaseForm: {}, - active: 1 + number1: [15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0], + number2: [20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0], + baseDataForm: { + political: '0', + compliance: '0', + morality: '0', + quality: '0', + relationship: '0', + performance: '0' + }, + moreDataUpdate: {}, + active: 1, + MoreData: false } }, methods: { - next () { + nextStep () { Bus.$emit('val', this.active) Bus.$emit('finishAct', this.active) if (this.active > 6) this.active = 0 this.$router.push({ path: 'bodybase' }) + console.log(this.baseDataForm) + }, + showMoreData () { + this.MoreData = true + }, + submitData () { + this.MoreData = false + }, + beforeupload (file) { + console.log(file) + console.log(file.name) } } } @@ -54,4 +118,7 @@ export default { diff --git a/src/views/students/evaluation/evaluationresult.vue b/src/views/students/evaluation/evaluationresult.vue index 498064f..58666ce 100644 --- a/src/views/students/evaluation/evaluationresult.vue +++ b/src/views/students/evaluation/evaluationresult.vue @@ -1,3 +1,3 @@ diff --git a/src/views/students/evaluation/sevidence.vue b/src/views/students/evaluation/sevidence.vue index c98f1ed..6779219 100644 --- a/src/views/students/evaluation/sevidence.vue +++ b/src/views/students/evaluation/sevidence.vue @@ -1,6 +1,6 @@ diff --git a/src/views/students/info/sinfo.vue b/src/views/students/info/sinfo.vue index 1091eae..0723d7b 100644 --- a/src/views/students/info/sinfo.vue +++ b/src/views/students/info/sinfo.vue @@ -1,6 +1,6 @@ - - - - - - - -
-
-
-
服务器实时监控舱
-
-
-
- - - -
-
-
-
-
- - - - - -
服务器存储信息
-
-
-
-
-
-
-
- - - - - -
CPU使用记录
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - -
服务器网络流量
-
-
-
-
-
-
-
- - - - - -
内存使用记录
-
-
-
-
-
-
- - - \ No newline at end of file diff --git a/cockpit/show.js b/cockpit/show.js deleted file mode 100644 index e8aa00e..0000000 --- a/cockpit/show.js +++ /dev/null @@ -1,55 +0,0 @@ -var togofullScreen = function(othis) { - var SCREEN_FULL = 'layui-icon-screen-full', SCREEN_REST = 'layui-icon-screen-restore', iconElem = $( - othis).children("i"); - - if (iconElem.hasClass(SCREEN_FULL)) { - fullScreen(); - iconElem.addClass(SCREEN_REST).removeClass(SCREEN_FULL); - } else { - exitScreen(); - iconElem.addClass(SCREEN_FULL).removeClass(SCREEN_REST); - } -}; -function fullScreen() { - var ele = document.documentElement, reqFullScreen = ele.requestFullScreen - || ele.webkitRequestFullScreen || ele.mozRequestFullScreen - || ele.msRequestFullscreen; - if (typeof reqFullScreen !== 'undefined' && reqFullScreen) { - reqFullScreen.call(ele); - } - ; -} -function exitScreen() { - var ele = document.documentElement - if (document.exitFullscreen) { - document.exitFullscreen(); - } else if (document.mozCancelFullScreen) { - document.mozCancelFullScreen(); - } else if (document.webkitCancelFullScreen) { - document.webkitCancelFullScreen(); - } else if (document.msExitFullscreen) { - document.msExitFullscreen(); - } -} -$(document).ready(function() { - $("#top").bind("mouseout", function() { - $("#screenbar").hide(); - }); - $("#top").bind("mouseover", function() { - $("#screenbar").show(); - }); - $("#screenbar").hide(); - $("iframe").each(function() { - var win = this.contentWindow; - $(win.document).css("overflow", "hidden"); - }); - $(window).resize(function() { - var tpcenter = $(".top-center"); - var lheight = tpcenter.parent().height(); - tpcenter.css("line-height", lheight + "px"); - tpcenter.css("font-size", (lheight * 36 / 60) + "px"); - $(".p15").each(function() { - $(this).css("font-size", ($(this).height() * 15 / 46) + "px"); - }); - }); -}); \ No newline at end of file diff --git a/home/TrafficMonitoring.echt b/home/TrafficMonitoring.echt deleted file mode 100644 index 30395e5..0000000 --- a/home/TrafficMonitoring.echt +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - { - title: { - textStyle: { - fontWeight: 'normal', - color: '#666' - }, - x: 'center', - text: '服务器网络信息', - subtext: '收发数据包' - }, - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'shadow' - } - }, - grid: { - left: '3%', - right: '4%', - bottom: '3%', - containLabel: true - }, - xAxis: { - type: 'value', - boundaryGap: [0, 0.01] - }, - yAxis: { - type: 'category', - data: ['接收','发送'] - }, - series: [ - { - name: '总字包数', - type: 'bar', - data: [0, 0] - } - ] - } - - - \ No newline at end of file diff --git a/home/console.html b/home/console.html deleted file mode 100644 index 4df89a9..0000000 --- a/home/console.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - layuiAdmin 控制台主页一 - - - - - - - - - -
-
-
-
- -
-
-
待办事项
- -
-
-
-
-
数据概览
-
- - - -
-
- -
-
-
- -
-
-
邮件提醒
-
- -
-
- -
-
实时监控
-
-
-

CPU使用率

-
-
-
-

内存占用率

-
-
-
-
- -
-
流量监控
-
- -
-
- -
- -
-
- - - - - - - diff --git a/home/console.js b/home/console.js deleted file mode 100644 index d8aee77..0000000 --- a/home/console.js +++ /dev/null @@ -1,126 +0,0 @@ -//待办事项 -function loadTopTip() { - $.ajax({ - type : "post", - async : true, - url : "getWaitTaskAction",//待办任务 - success : function(result, textStatus) { - if (result.count) { - $("#taskCount").text(result.count); - } - delete result; - }, - error : function() { - // 请求出错处理 - } - }); - $.ajax({ - type : "post", - async : true, - url : "getPortalNotesAction",//通知 - success : function(result, textStatus) { - var news = result.data; - if (typeof news.data == "string") { - news.data = window.eval("(" + news.data + ")"); - } - $("#notesCount").text(news.data.length); - delete news; - delete result; - }, - error : function() { - // 请求出错处理 - } - }); - $.ajax({ - type : "post", - async : true, - url : "loadNewsAction",//新闻 - success : function(result, textStatus) { - var news = result.data; - if (typeof news.data == "string") { - news.data = window.eval("(" + news.data + ")"); - } - $("#newsCount").text(news.data.length); - delete news; - delete result; - }, - error : function() { - // 请求出错处理 - } - }); - $.ajax({ - type : "post", - async : true, - url : "getPortalBofoAction",//发帖 - success : function(result, textStatus) { - var news = result.data; - if (typeof news.data == "string") { - news.data = window.eval("(" + news.data + ")"); - } - $("#topicCount").text(news.data.length); - delete news; - delete result; - }, - error : function() { - // 请求出错处理 - } - }); - setTimeout(loadTopTip, 60 * 1000); -} -loadTopTip(); - -//实时监控 -function refreshMonitorInfo(){ - $.ajax({ - type : "post", - async : true, - url : "getCPUPercAction", - success : function(data, textStatus) { - try { - if (data.data) { - data = window["eval"]("(" + data.data.data + ")"); - } else { - data = {}; - } - var usedpex = data.usedpex||0; - if(usedpex<30){ - $("#cpuprs").attr("class","layui-progress-bar"); - }else if(usedpex<80){ - $("#cpuprs").attr("class","layui-progress-bar layui-bg-blue"); - }else{ - $("#cpuprs").attr("class","layui-progress-bar layui-bg-red"); - } - layui.element.progress("progress-cpuprs",usedpex+"%"); - } catch (e) { - } - delete data; - } - }); - $.ajax({ - type : "post", - async : true, - url : "getMemoryInfoAction", - success : function(data, textStatus) { - try { - if (data.data) { - data = window["eval"]("(" + data.data.data + ")"); - } else { - data = {}; - } - var usedpex = data.usedpex||0; - if(usedpex<50){ - $("#memprs").attr("class","layui-progress-bar"); - }else if(usedpex<80){ - $("#memprs").attr("class","layui-progress-bar layui-bg-blue"); - }else{ - $("#memprs").attr("class","layui-progress-bar layui-bg-red"); - } - layui.element.progress("progress-memprs",usedpex+"%"); - } catch (e) { - } - delete data; - } - }); - setTimeout(refreshMonitorInfo,1000); -} -refreshMonitorInfo(); \ No newline at end of file diff --git a/home/filesystem.echt b/home/filesystem.echt deleted file mode 100644 index c67f4a7..0000000 --- a/home/filesystem.echt +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - { - // 默认色板 - color: [ - '#009688','#1E9FFF','#5FB878','#FFB980','#D87A80', - '#8d98b3','#e5cf0d','#97b552','#95706d','#dc69aa', - '#07a2a4','#9a7fd1','#588dd5','#f5994e','#c05050', - '#59678c','#c9ab00','#7eb00a','#6f5553','#c14089' - ], - title:{ - textStyle: { - fontWeight: 'normal', - color: '#666' // 主标题文字颜色 - }, - text: '服务器存储信息', - x: 'left' - }, - legend: {}, - tooltip: {}, - dataset: { - source: [ - ['product', 'disk1', 'disk2'], - ['未使用(GB)', 41.1, 30.4], - ['已使用(GB)', 86.5, 92.1] - ] - }, - series: [{ - name: 'C:', - type: 'pie', - radius: 60, - center: ['15%', '30%'], - encode: { - itemName: 'product', - value: 'disk1' - } - }, { - name: 'D:', - type: 'pie', - radius: 60, - center: ['45%', '30%'], - encode: { - itemName: 'product', - value: 'disk2' - } - }] -} - - - \ No newline at end of file diff --git a/src/views/admin/layout/components/user.vue~upstream_master b/src/views/admin/layout/components/user.vue~upstream_master deleted file mode 100644 index 8f75f5d..0000000 --- a/src/views/admin/layout/components/user.vue~upstream_master +++ /dev/null @@ -1,62 +0,0 @@ - - - diff --git a/src/views/admin/manager/mclass/mclass.vue b/src/views/admin/manager/mclass/mclass.vue index bdc54c6..40d2a33 100644 --- a/src/views/admin/manager/mclass/mclass.vue +++ b/src/views/admin/manager/mclass/mclass.vue @@ -33,7 +33,7 @@ -