whychdw
2022-02-10 bc2094a7055a063c01ed60d6dc62b3e0251a743c
内容提交
3个文件已修改
19 ■■■■ 已修改文件
src/assets/js/config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/dataTest/HistoryRealtimeData.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/login.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/config.js
@@ -44,7 +44,7 @@
    bigScreen: {
        label: '大屏数据展示',
        des: '首页显示大屏展示',
        value: true,
        value: false,
    },
    verifyCode: {
        label: '验证码',
src/pages/dataTest/HistoryRealtimeData.vue
@@ -187,7 +187,9 @@
            searchParams: {
                BattGroupId: '',
                recrod_time: '',
                recrod_time1: ''
                recrod_time1: '',
                mon_num: 0,
                note: 0
            },
            progress: {
                show: false,
@@ -226,8 +228,8 @@
                this.filter.txt = '选择日期';
                this.timeRange = [];
            }
            let date = new Date();
            // 获取选中日期
            const date = new Date();
            date.setTime(date.getTime() - 3600 * 1000 * 24 * this.filter.timeType);
            // 获取时间段
            const startTime = new Date().format("yyyy-MM-dd hh:mm:ss");
@@ -243,6 +245,9 @@
        },
        loopSearch() {
            let BattGroupId = this.searchParams.BattGroupId;
            let monNum = this.searchParams.note;    // 单体的个数
            let monFlag = this.monSelect.replace("#", "");    // 单体的编号
            let start = new Date(this.searchParams.recrod_time).getTime();
            let end = new Date(this.searchParams.recrod_time1).getTime();
            let times = [];
@@ -251,6 +256,8 @@
                recrod_time1 = recrod_time1>end?end:recrod_time1;
                let tmp = {
                    BattGroupId: BattGroupId,
                    note: monNum,
                    mon_num: monFlag,
                    recrod_time: new Date(start).format("yyyy-MM-dd hh:mm:ss"),
                    recrod_time1: new Date(recrod_time1).format("yyyy-MM-dd hh:mm:ss"),
                };
@@ -444,7 +451,8 @@
            this.$refs.monResGraph.setLegend(this.monSelect);
        },
        monSelectChange: function() {
            this.setLegends();
            //this.setLegends();
            this.loopSearch();
        }
    },
    computed: {
@@ -467,6 +475,7 @@
        });
        // 设置电池组id
        this.searchParams.BattGroupId = this.batt.BattGroupId;
        this.searchParams.note = this.batt.MonCount;
        // 设置单体的个数
        this.monCount = this.batt.MonCount;
src/pages/login.vue
@@ -757,7 +757,7 @@
    // console.log(AES.encrypt("sys_123456"));
    // console.log(encodeURIComponent("B17jjjYoBkbfZChw/fHzcA=="));
    // console.log(decodeURIComponent("B17jjjYoBkbfZChw%2FfHzcA%3D%3D"))
    //console.log(AES.decrypt("5OUaEnC33sVNY+jeXlx3Qg=="));
    //console.log(AES.decrypt("8zvkvkmP3SdzKW49GZSSXw=="));
    // console.log(md5("a123456"));
    // console.log(JSON.stringify("5OUaEnC33sVNY+jeXlx3Qg=="));
  },