摘要: <template> <div id="app"> <router-view ></router-view> <TipDialog v-if="tiptype"></TipDialog> </div> </template> <script> import TipDialog from "@/com 阅读全文
posted @ 2023-06-05 10:21 前端—小白 阅读(182) 评论(0) 推荐(0) 编辑
摘要: delCookie() { var cookies = document.cookie.split(";"); for (var i = 0; i < cookies.length; i++) { var cookie = cookies[i]; var eqPos = cookie.indexOf 阅读全文
posted @ 2023-06-05 10:16 前端—小白 阅读(430) 评论(0) 推荐(0) 编辑
摘要: 直接先上图看看效果: 废话不多说直接上代码: <template> <div> <div class="biggestBox"> <div> <!-- data-type=0 隐藏删除按钮 data-type=1 显示删除按钮 --> <div class="li_vessel" v-for="(i 阅读全文
posted @ 2023-04-18 15:39 前端—小白 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 一、如果时在菜单管理配置的路由直接要缓存的页面上添加name: export defauit{ name:'Config' } name首字符要大写并且与配置时路由地址一致。 二、在自己创建路由的情况下 在路由里面添加name { path: '/system/user-auth', compone 阅读全文
posted @ 2022-05-07 10:35 前端—小白 阅读(4422) 评论(1) 推荐(0) 编辑
摘要: 主要针对后台返回的文件流进行处理:js文件 export function download (data,titName) { if(!data){ return } const content = data const blob = new Blob([content],{type: "appli 阅读全文
posted @ 2022-05-05 15:53 前端—小白 阅读(2895) 评论(0) 推荐(0) 编辑
摘要: 父级: <!-- http采集器 --> <NodeHttp ref="http" :datanode="nodeData"></NodeHttp> import NodeHttp from '../node/NodeHttp.vue' components: { NodeHttp, }, //点击 阅读全文
posted @ 2022-02-28 17:32 前端—小白 阅读(98) 评论(0) 推荐(0) 编辑
摘要: /** * 处理字符串为****格式,中间显示四个*号 * str 需要处理的字符串 * startLength 前面显示的字符串长度 * endLength 后面显示的字符串长度 */ var sub = function (str, startLength, endLength) { if (s 阅读全文
posted @ 2022-01-08 15:35 前端—小白 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 时间戳转换成 “yyyy-MM-dd hh:mm:ss”格式: happenTimeFun(num){//时间戳数据处理 let date = new Date(num); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 let y = date.getFullYear(); le 阅读全文
posted @ 2021-08-11 10:20 前端—小白 阅读(1697) 评论(0) 推荐(0) 编辑
摘要: 先上图看图说话 时间轴的轴线可以居中分两边,也可以像上图一样。 上代码: <view class="content"> <time-line ref="timeline" location="left"></time-line> </view> <script> import timeLine fr 阅读全文
posted @ 2021-07-01 17:06 前端—小白 阅读(2850) 评论(0) 推荐(0) 编辑
摘要: 先看效果图!!! 上代码: <view class="content"> <ren-calendar ref='ren' :markDays='markDays' :headerBar='false' @onDayClick='onDayClick'></ren-calendar> <view cl 阅读全文
posted @ 2021-06-17 10:33 前端—小白 阅读(1615) 评论(0) 推荐(0) 编辑