摘要: /*3GY歌谣表单验证 通过继续前行*/ this.$refs["form"].validate(valid => { if (valid) { setTimeout(() => { /*声明变量*/ let method = postAction; /*声明url * position() * * 阅读全文
posted @ 2022-09-16 22:44 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: <el-card v-if="task1.length!=0" style="width: 100%;height: 300px;"> <el-carousel :interval="3000" indicator-position="outside"> <el-carousel-item v-fo 阅读全文
posted @ 2022-09-16 22:44 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: 只保留整数部分(丢弃小数部分) parseInt(5.1234); // 5 向下取整(<= 该数值的最大整数,和parseInt()一样) Math.floor(5.1234); // 5 向上取整(有小数,整数部分就+1) Math.ceil(5.1234); // 6 四舍五入(小数部分) M 阅读全文
posted @ 2022-09-16 22:44 前端导师歌谣 阅读(14) 评论(0) 推荐(0)
摘要: <template> <div class="table-list-page"> <div class="query-area"> <el-date-picker v-model="value1" type="daterange" range-separator="至" start-placehol 阅读全文
posted @ 2022-09-16 22:44 前端导师歌谣 阅读(17) 评论(0) 推荐(0)
摘要: } this.$confirm('您确定删除吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(res=>{ this.loading=true deleteAction(path 阅读全文
posted @ 2022-09-16 22:44 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: marketId:this.vuex_user.market_id 阅读全文
posted @ 2022-09-16 22:44 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: /*格式化日期:yyyy-MM-dd*/ formatDate(date) { var myyear = date.getFullYear(); var mymonth = date.getMonth() + 1; var myweekday = date.getDate(); if (mymont 阅读全文
posted @ 2022-09-16 22:44 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: // 创建补0函数 function pZone (s) { return s < 10 ? '0' + s : s } pZone(num) 阅读全文
posted @ 2022-09-16 22:44 前端导师歌谣 阅读(17) 评论(0) 推荐(0)
摘要: filters: { toChangeDate(e) { console.log(new Date(e).getFullYear()) console.log(new Date(e).getMonth()) console.log(new Date(e).getDay()) let dateYear 阅读全文
posted @ 2022-09-16 22:44 前端导师歌谣 阅读(15) 评论(0) 推荐(0)
摘要: let date = new Date(); let dateYear = date.getFullYear(); //获取年 let dateMonth = date.getMonth(); //获取月 let dateDate = date.getDate(); //获取当日 let dateD 阅读全文
posted @ 2022-09-16 22:44 前端导师歌谣 阅读(12) 评论(0) 推荐(0)