摘要: <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 阅读(2213) 评论(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 阅读(472) 评论(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 阅读(1495) 评论(0) 推荐(0)
摘要: ruleValidate: { city: [ { type:'number', // 添加验证类型 required: true, message: '请选择城市', trigger: 'change' } ] } 阅读全文
posted @ 2020-05-13 17:12 abcByme 阅读(1048) 评论(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 阅读(910) 评论(0) 推荐(0)
摘要: //循环修改tree Key 值 mapTree(org) { const haveChildren = Array.isArray(org.childCategories) && org.childCategories.length > 0; return { //分别将我们查询出来的值做出改变他 阅读全文
posted @ 2020-04-26 15:18 abcByme 阅读(1064) 评论(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 阅读(319) 评论(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 阅读(1228) 评论(0) 推荐(1)
摘要: <picker class="pickerBox" :value="roomSituationIndex" @change="onConfirmPicker" :range="roomSituation" range-key="value" v-if="selectBuildingShow" > < 阅读全文
posted @ 2020-04-15 16:09 abcByme 阅读(7476) 评论(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 阅读(2000) 评论(0) 推荐(0)
摘要: 来自 https://blog.csdn.net/kielin/article/details/86649074 侵删 在vue中很常见的就是tab切换,选项卡切换,动态添加类名使选项卡选中高亮,对应内容切换,方法大家应该非常熟悉了, 现在提到一种,可以多选多个选项的,效果如下图 贴上代码 <div 阅读全文
posted @ 2020-04-10 16:43 abcByme 阅读(2279) 评论(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 阅读(2396) 评论(0) 推荐(0)
摘要: 来自:https://blog.csdn.net/qq_40899182/article/details/90368911 侵删 1,月份选择器,大于当前月份的日期不可选 pickerOptions: { //大于当前月分的日期不可选 disabledDate: (time) => { var da 阅读全文
posted @ 2020-04-08 09:33 abcByme 阅读(1992) 评论(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 阅读(2439) 评论(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 阅读(327) 评论(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 阅读(1782) 评论(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 阅读(65) 评论(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 阅读(681) 评论(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 阅读(1156) 评论(0) 推荐(0)
摘要: 来自 https://juejin.im/post/5db62f1bf265da4d560906ab 侵删 数组是 JS 最常见的一种数据结构,咱们在开发中也经常用到,在这篇文章中,提供一些小技巧,帮助咱们提高开发效率。 1. 删除数组的重复项 2. 替换数组中的特定值 有时在创建代码时需要替换数组 阅读全文
posted @ 2019-10-29 10:07 abcByme 阅读(552) 评论(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 阅读(3130) 评论(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 阅读(5245) 评论(0) 推荐(0)
摘要: <el-col :span="12"> <div style="text-align: left" class="transferdata"> <div class="right-main"> <div class="right-left-main"> <span style="font-weight: 600;font-size: 16px;padding-left: 12px;padding- 阅读全文
posted @ 2019-10-18 17:24 abcByme 阅读(1951) 评论(0) 推荐(1)
摘要: <el-tree class="filter-tree" :data="permissionData" :props="props" node-key="id" ref="treeForm" show-checkbox :default-checked-keys="this.savedPermissionIds" :default-expanded-keys="this.savedPermissi 阅读全文
posted @ 2019-09-19 18:03 abcByme 阅读(10469) 评论(0) 推荐(1)
摘要: 来自:https://www.cnblogs.com/fqh123/p/11094296.html 侵删 login登录方法 store中 permission.js 中 基本剩下的雷同文章来源了 阅读全文
posted @ 2019-09-10 15:31 abcByme 阅读(4025) 评论(0) 推荐(0)
摘要: 安装 vue-video-player 在 “ devDependencies ” 中 devDependencies 安装 videojs-contrib-hls 在“ dependencies ”中 main.js 中引入 import hls from 'videojs-contrib-hls 阅读全文
posted @ 2019-08-27 16:28 abcByme 阅读(4833) 评论(14) 推荐(1)
摘要: request.interceptors.response.use( response => { console.log(response.data.code) // console.log(router) // const resp = response.data; // if (response.data.code ==... 阅读全文
posted @ 2019-08-16 12:34 abcByme 阅读(857) 评论(0) 推荐(0)
摘要: <el-form-item> <el-upload ref="upload" class="upload-demo" :action="daoruUrls" :on-preview="handlePreview" :on-remove="handleRemove" :file-list="fileArr" :on-success="handleSuccess" :before-upload="be 阅读全文
posted @ 2019-08-15 14:11 abcByme 阅读(1212) 评论(1) 推荐(0)
摘要: //表格错行 .el-table th.gutter { display: table-cell !important } 阅读全文
posted @ 2019-08-14 11:32 abcByme 阅读(1283) 评论(0) 推荐(0)
摘要: 来自: https://juejin.im/post/5cf24f1ee51d4577583ddc77 侵删 主要是 “ toggleRowSelection ” 设置 阅读全文
posted @ 2019-08-12 13:38 abcByme 阅读(9165) 评论(0) 推荐(1)
摘要: var keyMap = { deviceUid: "id", deviceType: "typeName", deviceCode: "code", deviceName: "name", deviceStatus: "status" }; for (var i = 0; i < data.con 阅读全文
posted @ 2019-08-09 16:07 abcByme 阅读(11742) 评论(0) 推荐(0)
摘要: 来自:https://www.cnblogs.com/myfirstboke/p/9150809.html 侵删 阅读全文
posted @ 2019-08-05 16:31 abcByme 阅读(3500) 评论(0) 推荐(0)
摘要: 设备图片: ... 阅读全文
posted @ 2019-08-02 10:06 abcByme 阅读(927) 评论(1) 推荐(0)
摘要: html: js: 先写滚动事件 method中写节流函数 throttle(func, wait) { let lastTime = null let timeout return () => { let context = this; let now = new Date(); let arg 阅读全文
posted @ 2019-07-31 10:27 abcByme 阅读(2268) 评论(1) 推荐(0)
摘要: 来自 :https://blog.csdn.net/wangguoyu1996/article/details/81394707 侵删 我们在使用element-ui的时候经常会遇到需要修改组件默认样式。 我目前知道的有两种方法: 1.通过创建一个css文件,然后在某一个组件中引用,css文件中使用 阅读全文
posted @ 2019-06-14 16:00 abcByme 阅读(3706) 评论(0) 推荐(0)
摘要: 来自:https://github.com/ElemeFE/element/issues/3367#issuecomment-376402380 侵删 el-upload里面绑定一个占位class: data里面初始值: onChange里面(添加文件、上传成功和上传失败时都会被调用的那个): ha 阅读全文
posted @ 2019-05-22 14:33 abcByme 阅读(8864) 评论(0) 推荐(7)
摘要: var html = document.getElementsByTagName("html")[0]; var width = html.clientWidth; var tooltipFontSize = 14 / 1280 * width; var fontSize = 10 / 1280 * width; var legendFontSize = 10 / 1280 * width; v... 阅读全文
posted @ 2019-05-10 10:18 abcByme 阅读(2249) 评论(0) 推荐(0)
摘要: /* *公共变量 */ //主题id var top_Pid; /* *验证正则 */ var regPassword = /(?=.*\d)(?=.*[A-z])^[0-9A-z]{8,20}$/; //最少8为,数字和字母组合 /* *退出登录 */ function loginOut() { 阅读全文
posted @ 2019-04-29 18:56 abcByme 阅读(69) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="zh-CN"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <title>智慧管控平台-组织管理</title> <meta conten 阅读全文
posted @ 2019-04-29 18:54 abcByme 阅读(149) 评论(0) 推荐(0)
摘要: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>园区大脑管理</title> <link href="../../static/plugins/bootstrap/css/bootstrap.min.css" 阅读全文
posted @ 2019-04-29 18:51 abcByme 阅读(92) 评论(0) 推荐(0)