工作
Budong__budong
这个作者很懒,什么都没留下…
展开
-
vue生成二维码
【代码】vue生成二维码。原创 2023-04-20 17:16:05 · 642 阅读 · 0 评论 -
解决element 树形表格 row-key为0时 表格无法折叠bug
<el-tablemax-height="840px":data="treeData"default-expand-all:row-key="getRowKey"border:tree-props="{children:'children',hasChildren:'hasChildren'}":header-cell-style="{background...原创 2021-09-13 10:51:36 · 451 阅读 · 0 评论 -
uni 倒计时功能
<view class="">完结倒计时: {{finishitime}}</view>this.counttime = this.shipments.planLeaveTimethis.djs()djs(){ let endtime = new Date(this.counttime) let nowtime = new Date() //当前时间 let lefttime = parseInt((endtime.getTime() - nowti原创 2021-04-01 13:30:40 · 186 阅读 · 0 评论 -
前端post get请求
get 请求1.直接调用后台接口getAction('后台接口').then((res) => { if (res.success) { this.List = res.result } else { this.$message.warning(res.message) } })2.在接口后拼接字符串 let params = { ledId: this.ledId,原创 2021-03-29 15:56:16 · 344 阅读 · 0 评论 -
总结uni定位遇到的问题
1.uni.getlocation 可以获取到经纬度 但是获取到的地点一直是在市政府原因:项目未部署在https上 部署在https上之后就可以获取到准确经纬度2.通过获取到的经纬度来获取地址详细信息解决办法:高德api uni.getLocation({ type: 'wgs84', altitude: true, success: (res) => { console.log('定位成功', res.latitude, res.longitude)原创 2021-03-29 15:23:08 · 1791 阅读 · 1 评论 -
ant Design Vue 日期选择器之日期禁用
账号有效期为最长90天import moment from 'moment'<a-date-picker style="width:100%" v-decorator="['effectiveTime',{rules:[{required:true,message:'请选择账号有效期'}],initialValue:!model.effectiveTime?null:moment(model.effectiveTime,dateFormat)}]"原创 2021-03-15 14:42:59 · 572 阅读 · 0 评论 -
u-checkbox
问题:checkbox默认全选 不生效之前的错误写法this.list[i].checked = true改正之后this.$set(this.list[i], ‘checked’, true) this.$http.post(this.urlList, params).then((res) => { if (res.data.success) { let result = res.data.result this.led = res原创 2021-03-15 13:45:18 · 2646 阅读 · 1 评论 -
解决TypeError: Cannot read property ‘_t‘ of undefined“
我是在iview项目中引入elementUI并使用时报错TypeError: Cannot read property ‘_t’ of undefined"解决办法:在main.js中 将Vue.use(ElementUI)改为Vue.use(ElementUI, {i18n: (key, value) => i18n.t(key, value)})原创 2020-11-10 10:50:47 · 1641 阅读 · 1 评论