1
Surpriseplus
2022-10-13 4d9eb3412fbf823aa86c59ef086f95e45be0b6a1
1
已修改2个文件
23 ■■■■ 文件已修改
src/views/maintenance/databaseMonitoring.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/maintenance/systemMonitoring.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/maintenance/databaseMonitoring.vue
@@ -13,8 +13,8 @@
</template>
<script>
import MyBread from "../../components/MyBread.vue";
import { getToken } from "../../utils/auth.js";
import MyBread from '../../components/MyBread.vue';
import { getToken } from '../../utils/auth.js';
export default {
  //import引入的组件需要注入到对象中才能使用
  components: {
@@ -23,14 +23,14 @@
  data() {
    //这里存放数据
    return {
      sql_Url: "",
      sql_Url: '',
    };
  },
  //方法集合
  methods: {
    handleSelectionChange() {},
    getUrl() {
      if (this.$store.state.iframeMsg.indexOf("Token=") != -1) {
      if (this.$store.state.iframeMsg.indexOf('token=') != -1) {
        this.sql_Url = this.$store.state.iframeMsg + getToken();
      } else {
        this.sql_Url = this.$store.state.iframeMsg;
src/views/maintenance/systemMonitoring.vue
@@ -210,7 +210,7 @@
      }
      this.echartData.push(parseFloat(res.cpuInfo.cpuSysUsage));
      this.lineChart1();
      console.log(this.memInfo.usage);
      this.lineChart2(this.memInfo.usage);
    },
    SetTableData2(res) {
@@ -268,7 +268,7 @@
            fontSize: 15,
            fontFamily: 'Microsoft Yahei',
            fontWeight: 'normal',
            color: '#00FFFF',
            color: 'black',
            rich: {
              a: {
                fontSize: 15,
@@ -290,9 +290,10 @@
                left: '10',
                top: '50',
                style: {
                  fill: '#00FFFF',
                  fill: 'black',
                  text: '使用率',
                  font: '14px Microsoft YaHei',
                  font: '20px Microsoft YaHei',
                  fontWeight: '900',
                },
              },
            ],
@@ -315,15 +316,15 @@
                colorStops: [
                  {
                    offset: 1,
                    color: 'rgba(68, 145, 253, 0)',
                    color: 'rgba(126,147,211, 0)',
                  },
                  {
                    offset: 0.5,
                    color: 'rgba(68, 145, 253, .25)',
                    color: 'rgba(126,147,211, .25)',
                  },
                  {
                    offset: 0,
                    color: 'rgba(68, 145, 253, 1)',
                    color: 'rgba(126,147,211, 1)',
                  },
                ],
                globalCoord: false,