摘要: echarts图表显示,这儿有个查询功能,选择条件点击查询后,通过接口获取的数据变了,但是图表显示还是没变 在myChart.setOption前面myChart.clear()一下即可 阅读全文
posted @ 2020-12-29 16:28 武向前 阅读(1344) 评论(0) 推荐(0) 编辑
摘要: 两种方式都可以,主要是后台传过来数据,有的是字母比如,NY之类的,N代表好,Y代表不好,我们在页面显示时候要显示文字,这个时候用 <el-table-column prop="createTime" label="创建时间" :formatter="dateFormat"> 然后js dateFor 阅读全文
posted @ 2020-12-24 14:58 武向前 阅读(10043) 评论(0) 推荐(1) 编辑
摘要: 需要是,table中有一个元素值为“超时”和“未超时”,要求如果是超时的时候,让这一行的每个元素字体都变成红色 给el-table添加 :row-class-name="tableRowClassName" 然后是方法 tableRowClassName( { row, rowIndex }){ i 阅读全文
posted @ 2020-12-24 14:22 武向前 阅读(2891) 评论(0) 推荐(0) 编辑
摘要: 直接上代码 exportData(){ let urlstr = "/StatisticalAnalysis/exportAreaTargetStatistical" if(this.beginTime != "" && this.endTime != ""){ urlstr=urlstr+"?b= 阅读全文
posted @ 2020-12-08 11:19 武向前 阅读(510) 评论(0) 推荐(0) 编辑
摘要: npm ERR! -4058 npm ERR! Unexpected end of JSON input while parsing near '...TuHxXJaknDulF3AdSBoul' npm ERR! A complete log of this run can be found in 阅读全文
posted @ 2020-11-27 13:43 武向前 阅读(3385) 评论(0) 推荐(0) 编辑
摘要: git add . 把当前目录下修改的文件追加到暂存区git checkout -- . 把当前目录下修改的文件内容撤销掉git commit -m "注释内容 见名知意" 将当前暂存区的内容提交到本地仓库中git push -u origin 远程分支名 branchName1:将当前本地分支提交 阅读全文
posted @ 2020-11-27 11:12 武向前 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1.config/api.js 94行加了||token config/config.js 第一行export const apiBaseUrl = 'https://www.wuku9.com/api/'注释掉 加了第二行 export const apiBaseUrl = '/api/' man 阅读全文
posted @ 2020-11-26 14:45 武向前 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 这个是瞎捣鼓出来的。需要是做一个下拉select选择框,因为用的是vant,所以代码是这样的 <van-field readonly clickable name="areaCode" :value="value" label="区域编码" placeholder="点击选择区域编码" @click 阅读全文
posted @ 2020-11-12 15:29 武向前 阅读(8508) 评论(0) 推荐(2) 编辑
摘要: vue在写移动端,引用vant框架,使用弹框dialog时候,按照api发现一直提示未定义,不能按照api实例的写法,要换成this.$dialog.confirm 阅读全文
posted @ 2020-11-12 13:43 武向前 阅读(895) 评论(0) 推荐(0) 编辑
摘要: 一行代码搞定 this.tableData = rs.result.map(o=>{return{name:o.itemName,value:o.itemValue}}); 阅读全文
posted @ 2020-11-03 09:38 武向前 阅读(3529) 评论(0) 推荐(0) 编辑