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