上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页
摘要: pickerBeginDateBefore: { disabledDate(value) { if (new Date(value).getTime() + 3600 * 1000 * 24 < new Date().getTime()) { return true } return false } 阅读全文
posted @ 2020-07-27 17:08 shuihanxiao 阅读(1386) 评论(0) 推荐(0) 编辑
摘要: 样式展示 下拉框引入组件 wxml 父向子组件传值 prop-total="{{total}}" <single-dropdown-select prop-total="{{total}}" prop-value="{{ currentSelectText }}" prop-array='{{sel 阅读全文
posted @ 2020-07-24 10:26 shuihanxiao 阅读(898) 评论(0) 推荐(0) 编辑
摘要: import Taro, { Component } from '@tarojs/taro' import { Block, View, Image, Text, CheckboxGroup, RadioGroup, Label, ScrollView, RichText } from '@taro 阅读全文
posted @ 2020-06-21 17:45 shuihanxiao 阅读(1451) 评论(0) 推荐(0) 编辑
摘要: function findIndexByKeyValue(arr, key, valuetosearch) { for (var i = 0; i < arr.length; i++) { if (arr[i][key] == valuetosearch) { return i; } } retur 阅读全文
posted @ 2020-06-16 11:42 shuihanxiao 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 1.前端导出,不需要调用后台接口后台导出,前端直接实现导出功能 导出table数据 js 引入 import FileSaver from "file-saver"; import XLSX from "xlsx"; table id out-table <el-table v-loading="d 阅读全文
posted @ 2020-05-29 16:49 shuihanxiao 阅读(5367) 评论(0) 推荐(0) 编辑
摘要: 1、获取input输入的值 wxml代码如下 <input bindinput="bindModel" type="text" class="input" placeholder="请输入兑换码" value='{{exchangeCode}}' data-model="exchageCode"/> 阅读全文
posted @ 2020-05-29 16:45 shuihanxiao 阅读(3401) 评论(0) 推荐(0) 编辑
摘要: 注意两点即可: 1.苹果只认识 yyyy/mmmm/dddd/ 这类格式的日期 2.如果输出后还要进行处理日期对比,苹果默认会带中文字,如:年月日,需要转成上面1当中的日期格式在转时间戳进行比较 GetDateDiff(checked_in) { //将xxxx-xx-xx的时间格式,转换为 xxx 阅读全文
posted @ 2020-05-13 17:52 shuihanxiao 阅读(1383) 评论(0) 推荐(0) 编辑
摘要: 一,组件,需要转pdf下载的的html <template> <div id="faceCtx"> <el-row class="face-add-border"> <el-col :span="8" class="face-col-left"> <div class="grid-content b 阅读全文
posted @ 2020-05-06 19:16 shuihanxiao 阅读(2016) 评论(0) 推荐(0) 编辑
摘要: 报错 npm run dev启动项目报错 Cannot assign to read only property 'exports' of object '#<Object>' 安装 npm install babel-plugin-transform-es2015-modules-commonjs 阅读全文
posted @ 2020-04-29 15:13 shuihanxiao 阅读(228) 评论(0) 推荐(0) 编辑
摘要: <el-table-column type="selection" width="55" :selectable='checkboxInit'> methods里 checkboxInit(row,index){ if (row.withdrawState==2)//这个判断根据你的情况而定 ret 阅读全文
posted @ 2020-03-04 11:36 shuihanxiao 阅读(5195) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页