摘要: mounted(){ this.getList(); //获取列表 }, methods: { getList() { this.loading = true; let that = this; axios.post('adress_____',that.form).then(function (r 阅读全文
posted @ 2020-12-07 09:13 JaneLifeVlog 阅读(236) 评论(0) 推荐(0)
摘要: html <div id='print_btn'> <el-select v-model="value" placeholder="请选择打印二维码的尺码" @change="getUrl"> <el-option v-for="item in options" :key="item.value" 阅读全文
posted @ 2020-12-03 17:57 JaneLifeVlog 阅读(625) 评论(0) 推荐(0)
摘要: 方法一 {{ p_index scope.row.period.length-1 ? " ":" | " }} 方法二 <span v-if=" p_index > 0 ">、</span> 阅读全文
posted @ 2020-12-03 17:04 JaneLifeVlog 阅读(679) 评论(0) 推荐(0)
摘要: 1.静态数据 arraySpanMethod ({ row, column, rowIndex, columnIndex }) { if (rowIndex 1) { // 合并第二行 if (columnIndex 1) { // 从第二列开始 return [2, 3] // 这里返回的是行和列 阅读全文
posted @ 2020-12-01 15:52 JaneLifeVlog 阅读(768) 评论(0) 推荐(0)
摘要: html {{title | getTitle(title)}} filters filters: { // 判断标题的类型 getTitle(title) { if (title == 'add') { var title = "新增" return title; } else { var tit 阅读全文
posted @ 2020-11-27 15:44 JaneLifeVlog 阅读(81) 评论(0) 推荐(0)
摘要: 单个数据 computed: { sum: function () { return parseFloat(this.count * this.price).toFixed(2); }, }, 数组数据 computed:{ total:function(){ let total = 0; this 阅读全文
posted @ 2020-11-27 15:43 JaneLifeVlog 阅读(77) 评论(0) 推荐(0)
摘要: html <van-dropdown-item :title="time_value" v-model="time" :options="time_option" @change="changeTime"> </van-dropdown-item> data数据 time: '', time_val 阅读全文
posted @ 2020-11-25 10:38 JaneLifeVlog 阅读(3218) 评论(1) 推荐(0)
摘要: **html ** <!-- 回到顶部 --> <div class="go_top" @click="goTop" :class="go_top_flag == true ? 'go_top_show' :''"> <van-icon name="back-top" class="go_top_i 阅读全文
posted @ 2020-11-25 10:36 JaneLifeVlog 阅读(139) 评论(0) 推荐(0)
摘要: html <p>{{count_time}}</p> data数据 count_time: '', //格式化之后的当前时间 函数 created() { this.getTimes() }, beforeDestroy() { if (this.count_time) { clearInterva 阅读全文
posted @ 2020-11-25 10:34 JaneLifeVlog 阅读(140) 评论(0) 推荐(0)
摘要: html <p>点击日期查看详情</p> <van-calendar safe-area-inset-bottom :poppable="false" :show-confirm="false" :title="date" :show-subtitle="false" :default-date=" 阅读全文
posted @ 2020-11-25 10:32 JaneLifeVlog 阅读(1110) 评论(0) 推荐(0)