diff --git a/src/components/ServiceWatch/components/monitor.vue b/src/components/ServiceWatch/components/monitor.vue index 89044b3..983a188 100644 --- a/src/components/ServiceWatch/components/monitor.vue +++ b/src/components/ServiceWatch/components/monitor.vue @@ -315,6 +315,7 @@ if (this.choiceRange === 2) return arr.slice(3); } }, + methods: { selectChange(val) { if (val === 0) @@ -342,12 +343,9 @@ }, periodChange() {}, refresh() { - // console.log(this.targetAll) - // this.echartsData1={} this.targetAll.forEach(item => { this.getInterface(item); }); - // console.log(this.dataAll,'99999') }, showBigEcharts(target) { this.dialogVisible = true; @@ -375,7 +373,6 @@ axis: "x" } // formatter: params => { - // // console.log(params[0],'params') // // let axisValue = this.moment(params['axisValueLabel']).format("YYYY-MM-DD HH:mm:ss") // // return `

${axisValue}

${params[0].value}%

` // var res = params[0].name; @@ -466,13 +463,9 @@ // 点击导出 downImg(target) { this.showBigEcharts(target); - // console.log(this.bigEachartsTest,'myChart') // this.bigEachartsTest.on('finished', function () { - // console.log(2222) // }); setTimeout(() => { - // console.log(this.bigEachartsTest,'myChart') - // var img = new Image(); // img.src = this.bigEacharts.getDataURL({ // pixelRatio: 2, @@ -520,7 +513,7 @@ }); }); }); - console.log(arr, "arr"); + // console.log(arr, "arr"); var param = { regionId: "ap-chengdu", instanceId: this.$route.query.instanceId, diff --git a/src/components/ServiceWatch/components/monitor.vue b/src/components/ServiceWatch/components/monitor.vue index 89044b3..983a188 100644 --- a/src/components/ServiceWatch/components/monitor.vue +++ b/src/components/ServiceWatch/components/monitor.vue @@ -315,6 +315,7 @@ if (this.choiceRange === 2) return arr.slice(3); } }, + methods: { selectChange(val) { if (val === 0) @@ -342,12 +343,9 @@ }, periodChange() {}, refresh() { - // console.log(this.targetAll) - // this.echartsData1={} this.targetAll.forEach(item => { this.getInterface(item); }); - // console.log(this.dataAll,'99999') }, showBigEcharts(target) { this.dialogVisible = true; @@ -375,7 +373,6 @@ axis: "x" } // formatter: params => { - // // console.log(params[0],'params') // // let axisValue = this.moment(params['axisValueLabel']).format("YYYY-MM-DD HH:mm:ss") // // return `

${axisValue}

${params[0].value}%

` // var res = params[0].name; @@ -466,13 +463,9 @@ // 点击导出 downImg(target) { this.showBigEcharts(target); - // console.log(this.bigEachartsTest,'myChart') // this.bigEachartsTest.on('finished', function () { - // console.log(2222) // }); setTimeout(() => { - // console.log(this.bigEachartsTest,'myChart') - // var img = new Image(); // img.src = this.bigEacharts.getDataURL({ // pixelRatio: 2, @@ -520,7 +513,7 @@ }); }); }); - console.log(arr, "arr"); + // console.log(arr, "arr"); var param = { regionId: "ap-chengdu", instanceId: this.$route.query.instanceId, diff --git a/src/components/index.vue b/src/components/index.vue index f8fd329..8395f05 100644 --- a/src/components/index.vue +++ b/src/components/index.vue @@ -244,7 +244,7 @@ import * as locasto from "./../util/item"; export default { name: "IndexTop", - data: function () { + data: function() { return { MenuWidth: 200, LoginName: "系统管理员", //登录用户名称 @@ -254,7 +254,7 @@ //弹窗相关 dialogInfo: { title: { - updatePw: "修改密码", + updatePw: "修改密码" }, visible: false, btLoading: false, @@ -268,9 +268,9 @@ icon: "", event: "save", show: true, - loading: true, - }, - ], + loading: true + } + ] }, //表单相关 formInfo: { @@ -278,7 +278,7 @@ data: { userNo: "", //账户 password: "", //原始密码 - newpassword: "", //新密码 + newpassword: "" //新密码 }, fieldList: [ { @@ -287,26 +287,26 @@ disabled: true, type: "input", required: true, - className: "el-form-block", + className: "el-form-block" }, { label: "原密码", value: "password", type: "password", required: true, - className: "el-form-block", + className: "el-form-block" }, { label: "新密码", value: "newpassword", type: "password", required: true, - className: "el-form-block", - }, + className: "el-form-block" + } ], rules: {}, - labelWidth: "100px", - }, + labelWidth: "100px" + } }; }, watch: { @@ -319,10 +319,10 @@ this.resetForm(); this.dialogInfo.btLoading = false; } - }, + } }, methods: { - MenuSHOW: function () { + MenuSHOW: function() { if (this.MenuWidth == 200) { this.MenuWidth = 0; } else { @@ -334,11 +334,10 @@ }, ChangeBGC() { // 给予gis的方法调用demo A - if(this.$refs["PathView"].hasOwnProperty('REFSFunctionToGis')) - this.$refs["PathView"].REFSFunctionToGis(this.flag); + if (this.$refs["PathView"].hasOwnProperty("REFSFunctionToGis")) + this.$refs["PathView"].REFSFunctionToGis(this.flag); // 给予gis的方法调用demo E - console.log(9999); let root = document.querySelector(":root"); if (this.flag) { root.style.setProperty("--color", "rgb(253, 44, 79)"); @@ -459,14 +458,14 @@ switch (event) { //保存 case "save": - formInfo.ref.validate((valid) => { + formInfo.ref.validate(valid => { if (valid) { let api; let params = formInfo.data; dialogInfo.btLoading = true; this.$http .post(this.nozzle.updateUserPwd, { data: params }) - .then((res) => { + .then(res => { dialogInfo.btLoading = false; if (res.data.code === 1) { dialogInfo.visible = false; @@ -474,12 +473,12 @@ this.$message({ message: res.data.msg, type: res.data.code === 1 ? "success" : "error", - showClose: true, + showClose: true }); }) - .catch((e) => { + .catch(e => { dialogInfo.btLoading = false; - console.log(e); + // console.log(e); }); } }); @@ -495,17 +494,17 @@ this.formInfo.data = { userNo: "", //账户 password: "", //原始密码 - newpassword: "", //新密码 + newpassword: "" //新密码 }; - }, + } }, - mounted: function () { + mounted: function() { //添加菜单 // this.LoadMenu(); // this.loadLoginName(); this.initRules(); this.LoginName = locasto.getItem("USERName"); - }, + } };