12 2020 档案
摘要:接口返回的数组: js 操作后的数组 : 方法: 先遍历一遍 处理时间格式 为 2020-12-12 这中 echartData.map(item=>{ item.createTime = this.subStr(item.createTime) }) js 方法处理 : echartData =
阅读全文
摘要:Vue.js 不能检测到下面数组变化,所以,想要正常是不能通过操作数组来渲染dom的,解决的方法是通过set方法 使用场景: 修改图片 修改数组里面的对象的属性值 修改 : 编辑操作: if (data.edit) { this.$set(this.imgList, this.index, data
阅读全文
摘要:代码: <template> <div class="container-echart"> <div class="lineWrap"> <div class="line_header"> <span class="line-name">近10天趋势</span> </div> <div> <a-r
阅读全文
摘要:代码: <template> <div class="echart-left-content"> <div class="echart-head"> <div class="echart-head-title"> 推广完成率 </div> </div> <a-row class="left-row"
阅读全文
摘要:<a-range-picker format="YYYY-MM-DD HH:mm:ss" :defaultValue="[momentTime(startTime, 'YYYY-MM-DD HH:mm:ss'), momentTime(endTime, 'YYYY-MM-DD HH:mm:ss')]
阅读全文
摘要:html <div class="flex-img" @click="changOption"> <img :src="flag== true ? require('@/assets/images/statistics/analytics-graph-chart.png'): require('@/
阅读全文
摘要:1. utils // echarts 配置 // 引入 ECharts 模块 const echarts = require('echarts/lib/echarts') //引入图表组件 require('echarts/lib/chart/bar') require("echarts/lib/
阅读全文