上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: main.js中 new Vue({ router, store, data: { eventHub: new Vue() }, render: h => h(App), watch: { '$route.path': function(newVal, oldVal) { const userId 阅读全文
posted @ 2021-04-15 15:14 abcByme 阅读(105) 评论(0) 推荐(0) 编辑
摘要: <li v-for="(item, index) in 15" @click="clickcategory(index)" :class="{ active: categoryIndex == index }" > {{ index }} </li> return { categoryIndex: 阅读全文
posted @ 2021-04-15 09:53 abcByme 阅读(671) 评论(0) 推荐(0) 编辑
摘要: 来自:https://www.cnblogs.com/zhangnan35/p/12682925.html 侵删 主角是谁 在今天这篇文章中,我并不会在这里讲一些移动端视口的概念,包括物理像素和逻辑像素,理想视口,dpr等等等等,我只介绍这样一种非常不错的移动端适配方案:post-css-to-vi 阅读全文
posted @ 2021-04-14 10:33 abcByme 阅读(206) 评论(0) 推荐(0) 编辑
摘要: <template> <div :class="className" :style="{height:height,width:width}"/> </template> <script> import echarts from 'echarts' export default { props: { 阅读全文
posted @ 2021-04-14 09:32 abcByme 阅读(2584) 评论(0) 推荐(0) 编辑
摘要: 官方有个属性设置poster 图片。但是失效 无奈。强行js修改 <video-player ref="videoPlayerHls" :playsinline="true" :options="videoOption" @error="errors($event)" class="video-pl 阅读全文
posted @ 2021-04-14 09:28 abcByme 阅读(166) 评论(0) 推荐(0) 编辑
摘要: var monitorEntity = viewer.entities.add({ name: "video", position: Cesium.Cartesian3.fromDegrees(109.44, 32.11,30.0), point: { //点 pixelSize: 0, Heigh 阅读全文
posted @ 2021-04-12 17:13 abcByme 阅读(1733) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="container"> <div class="top"> <div class="addr"> <svg-icon icon-class="location" style="width: 16px; height: 16px" />{{ dingAdd 阅读全文
posted @ 2021-04-12 16:59 abcByme 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 来自:https://blog.csdn.net/qq_39378657/article/details/107550663 侵删 踩坑总结本来是非常简单的一个报错。正常情况下,按照网上的方法就可以解决问题。 但是我尝试了使用代理、换源、重装node.js(但是npm的配置参数没变),都没有解决问题 阅读全文
posted @ 2021-04-12 16:57 abcByme 阅读(2646) 评论(0) 推荐(0) 编辑
摘要: 来自:https://blog.csdn.net/weixin_45031595/article/details/104946373 侵删 阅读全文
posted @ 2021-03-05 14:47 abcByme 阅读(167) 评论(0) 推荐(0) 编辑
摘要: //去重 if ( (this.selectPeopleList != null) & (this.selectPeopleList.length != 0) ) { let arrId = []; let arrName = []; this.selectPeopleList.map((item) 阅读全文
posted @ 2021-02-19 11:42 abcByme 阅读(175) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <bg-popout :isShow.sync="isShowPermissionTree" class="dialog-wrap" width="50" height="65" style="position: fixed;left: 0;top: 0;botto 阅读全文
posted @ 2021-02-05 11:38 abcByme 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 原来的格式: dataObj: [ { id: 1, pattern: "白天模式", upTime: "08:00", downTime: "18:00", notificationMethod: 1, modelUrgency: ["1", "2", "3", "4"], }, { id: 2, 阅读全文
posted @ 2021-02-03 14:41 abcByme 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 1.选择时间范围的时候 //此处是循环表单,v-for = item in objArr objArr: [ { id: 1, pattern: "白天模式", upTime: "08:00", downTime: "18:00", notificationMethod: 1, modelUrgen 阅读全文
posted @ 2021-02-03 14:36 abcByme 阅读(616) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="wap-wrap"> <h1>复制WAP链接</h1> <div class="input-box"> <Input disabled search v-model="inputData" enter-button="复制链接" @click.nativ 阅读全文
posted @ 2021-01-22 09:40 abcByme 阅读(1079) 评论(0) 推荐(0) 编辑
摘要: //判断浏览器类型 myBrowser() { var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isOpera = userAgent.indexOf("Opera") > -1; if (isOpera) { return 阅读全文
posted @ 2021-01-22 09:39 abcByme 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 来自:https://juejin.cn/post/6903852199311310862 侵删 数组拷贝经常被误解,但这并不是因为拷贝过程本身,而是因为缺乏对 JS 如何处理数组及其元素的理解。JS 中的数组是可变的,这说明在创建数组之后还可以修改数组的内容。这意味着要拷贝一个数组,咱们不能简单地 阅读全文
posted @ 2020-12-11 15:18 abcByme 阅读(410) 评论(0) 推荐(0) 编辑
摘要: //时间转换 changeTime(time) { //time 为 '2020-06-15T07:23:17.000+0000' let time2 = this.myTime(time); let time3 = this.formatDateTime(time2); return time3; 阅读全文
posted @ 2020-06-17 11:09 abcByme 阅读(2046) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <el-upload list-type="picture-card" class="avatar-uploader" :action="action" :auto-upload="true" :data="uploadData" name="file" :show 阅读全文
posted @ 2020-06-15 14:42 abcByme 阅读(1197) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="main-wrapper"> <el-col :span="12"> <el-upload v-if="collectData.isCustom==1" class="upload-demo" :action="uploadUrl" :headers=" 阅读全文
posted @ 2020-06-15 14:38 abcByme 阅读(2125) 评论(0) 推荐(0) 编辑
摘要: this.dataView = []; if (data.dataView && data.dataView != null) { let dataViewArr = JSON.parse(data.dataView); for (var key in dataViewArr) { this.dat 阅读全文
posted @ 2020-05-22 16:28 abcByme 阅读(464) 评论(0) 推荐(0) 编辑
摘要: <FormItem label="入库时间:" prop="useTime"> <DatePicker class="input-width" type="datetime" v-model="formValidate.useTime" placeholder="请选择入库时间" style="wi 阅读全文
posted @ 2020-05-14 17:01 abcByme 阅读(1427) 评论(0) 推荐(0) 编辑
摘要: ruleValidate: { city: [ { type:'number', // 添加验证类型 required: true, message: '请选择城市', trigger: 'change' } ] } 阅读全文
posted @ 2020-05-13 17:12 abcByme 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="hello"> <div class="core"> <div class="abs-zone" v-if="editZoneDisplayBoolean"> <div class="box"> <Input placeholder="Enter som 阅读全文
posted @ 2020-04-26 15:38 abcByme 阅读(880) 评论(0) 推荐(0) 编辑
摘要: //循环修改tree Key 值 mapTree(org) { const haveChildren = Array.isArray(org.childCategories) && org.childCategories.length > 0; return { //分别将我们查询出来的值做出改变他 阅读全文
posted @ 2020-04-26 15:18 abcByme 阅读(1031) 评论(1) 推荐(0) 编辑
摘要: monthDayTotal: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], //月份选择 (例2020年4月 - 2020年5月) changeMonth(val) { if (this.ruleForm.monthRange && this.r 阅读全文
posted @ 2020-04-23 16:42 abcByme 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 超出隐藏省略号width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; 自动换行 width: 70%; display: block; text-overflow: ellipsis; word-wrap 阅读全文
posted @ 2020-04-17 14:28 abcByme 阅读(1210) 评论(0) 推荐(1) 编辑
摘要: <picker class="pickerBox" :value="roomSituationIndex" @change="onConfirmPicker" :range="roomSituation" range-key="value" v-if="selectBuildingShow" > < 阅读全文
posted @ 2020-04-15 16:09 abcByme 阅读(7306) 评论(0) 推荐(0) 编辑
摘要: <el-table ref="multipleTable" :data="workManagementList" border tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange" cl 阅读全文
posted @ 2020-04-13 11:19 abcByme 阅读(1869) 评论(0) 推荐(0) 编辑
摘要: 来自 https://blog.csdn.net/kielin/article/details/86649074 侵删 在vue中很常见的就是tab切换,选项卡切换,动态添加类名使选项卡选中高亮,对应内容切换,方法大家应该非常熟悉了, 现在提到一种,可以多选多个选项的,效果如下图 贴上代码 <div 阅读全文
posted @ 2020-04-10 16:43 abcByme 阅读(2147) 评论(0) 推荐(0) 编辑
摘要: 来自:https://blog.csdn.net/kielin/article/details/86649074 侵删 可以有以下几个方法,关键看希望在什么环境下使用 1. JS/CSS想在全局使用,可以通过npm 安装后在main.js中引入,或在index.html中引入,这种大多不必说 2. 阅读全文
posted @ 2020-04-10 16:41 abcByme 阅读(2314) 评论(0) 推荐(0) 编辑
摘要: 来自:https://blog.csdn.net/qq_40899182/article/details/90368911 侵删 1,月份选择器,大于当前月份的日期不可选 pickerOptions: { //大于当前月分的日期不可选 disabledDate: (time) => { var da 阅读全文
posted @ 2020-04-08 09:33 abcByme 阅读(1939) 评论(0) 推荐(0) 编辑
摘要: html: <div class="listContainer" v-if="ruleForm.monthRange"> <div class="itemContainer" v-for="(item,index) in listNum" :key="index"> <div class="item 阅读全文
posted @ 2020-04-07 17:43 abcByme 阅读(2360) 评论(0) 推荐(0) 编辑
摘要: export function parseTime(time, cFormat) { if (arguments.length 0) { return null; } const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'; let date; if 阅读全文
posted @ 2020-02-27 11:10 abcByme 阅读(303) 评论(0) 推荐(0) 编辑
摘要: // 本地存储 setStorage(name, data){ let dataType = typeof data; // json对象 if(dataType === 'object'){ window.localStorage.setItem(name, JSON.stringify(data)); ... 阅读全文
posted @ 2019-12-24 15:45 abcByme 阅读(1762) 评论(0) 推荐(1) 编辑
摘要: _placeList () { placeList({ page: this.page, size: this.size // userId: localStorage.getItem('userId') // userId: localStorage.getItem('nameid'), // p 阅读全文
posted @ 2019-12-19 10:36 abcByme 阅读(54) 评论(0) 推荐(0) 编辑
摘要: <template> <div :class="className"> <div :id="id" class="spiritChartBox"></div> </div> </template> <script> import { mapState } from "vuex"; import ec 阅读全文
posted @ 2019-11-04 10:24 abcByme 阅读(658) 评论(0) 推荐(1) 编辑
摘要: //异步1<template> <div class="addequipment org"> <div class="top"> <div class="topfirst">菜单管理</div> <div class="addequi" @click='addNew'>添加</div> </div> <div class="center "> <!-- 菜单tree 阅读全文
posted @ 2019-10-31 17:22 abcByme 阅读(1112) 评论(0) 推荐(0) 编辑
摘要: 来自 https://juejin.im/post/5db62f1bf265da4d560906ab 侵删 数组是 JS 最常见的一种数据结构,咱们在开发中也经常用到,在这篇文章中,提供一些小技巧,帮助咱们提高开发效率。 1. 删除数组的重复项 2. 替换数组中的特定值 有时在创建代码时需要替换数组 阅读全文
posted @ 2019-10-29 10:07 abcByme 阅读(535) 评论(0) 推荐(2) 编辑
摘要: <el-form-item label="省市 :" prop="description"> <el-cascader size="large" clearable class="customized_input_340" change-on-select :options="provinceOptions" v-model="selectedOptions" @change="handleCha 阅读全文
posted @ 2019-10-28 15:50 abcByme 阅读(3062) 评论(0) 推荐(1) 编辑
摘要: 来自 https://www.cnblogs.com/xjcjcsy/p/7977966.html 侵删 ElementUI是饿了么推出的一套基于vue2.x的一个ui框架。官方文档也很详细,这里做一个element-ui日期插件的补充。 官方文档中使用picker-options属性来限制可选择的 阅读全文
posted @ 2019-10-28 11:08 abcByme 阅读(5143) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页