随笔分类 - js
摘要:<template> <div class="tag-cloud" ref="wrapper"> <p v-for="(item, index) in data" :key="index" ref="tag" @click="clickTag(item)" @dblclick="dbclickTag
阅读全文
摘要:来自:http://t.zoukankan.com/zizaiwuyou-p-10637179.html 侵删 使用echart的雷达图的时候,如果文字越界的解决办法记录,标签文字自动换行 前几天项目中有一个图表的是用echart生成的,遇到一个问题,就是在手机端显示的售时候,如果文字太长就会超出d
阅读全文
摘要:<template> <div class="mapContainer"> <!-- <div id="tMap" /> --> <div id="tMap" ref="tMap" /> </div> </template> <script> import { TDIMap, BaiduMap }
阅读全文
摘要:export const TDIMap = { init() { return new Promise((resolve, reject) => { // 如果已加载直接返回 if (window.T) { console.log('天地图脚本初始化成功...') resolve(window.T)
阅读全文
摘要:来自:https://www.jb51.net/article/153945.htm 侵删 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-t
阅读全文
摘要:function simplifyNum(number) { if (!number && number != 0) return number; var str_num if (number >= 1E3 && number < 1E4) { str_num = number / 1E3 retu
阅读全文
摘要:lookForAllId(data = [], arr = []) { for (let item of data) { arr.push(item.id); if (item.children && item.children.length) this.lookForAllId(item.chil
阅读全文
摘要:<template> <div> <p>{{ title }}</p> <p class="basicInfo">基本信息</p> <div style="width: 90%; margin-left: 100px"> <el-form ref="roleForm" :model="roleFor
阅读全文
摘要:<treeselect @select="handleSelect" v-model="fromItemData.releaseDepartment" placeholder="请选择父节点名称" :normalizer="normalizer" style="width: 440px" :mult
阅读全文
摘要:let newTargetKeys = [42,43]; this.projectNameList = [{name:name1,id:42}, {name:name2,id:43} ] let labelArr = []; this.projectNameList.forEach((item) =
阅读全文
摘要:<FormItem label="成立时间" prop="establishedTime"> <DatePicker type="date" :value="enterpriseForm.establishedTime" @on-change="getestablishedTime" placeho
阅读全文
摘要:<FormItem label="您的评价" prop="level" v-if="typeModal == 3"> <Rate v-model="shenhemodal.level" clearable /> </FormItem> shenhemodal: { level: 0, }, leve
阅读全文
摘要:var vprojectEndTime = (rule, value, callback) => { if (value "") { callback(new Error("请输入结束时间")); } else if (value <= this.parkItemForm.projectStartT
阅读全文
摘要:/** * 只隐藏姓名中间的字 * @param {data} 传入数据 * 格式:张*三 */ const hideCenterName = (name) => { let newStr; if (name.length 2) { newStr = name.substr(0, 1) + '*';
阅读全文
摘要:nextBtn(formName) { const { projectId, type, account, userName, contactWay, email, password, againPassword, } = this.ruleForm; if ( projectId && type
阅读全文
摘要:<p> <span>手机号:</span> {{ telShow ? changetel(userInfo.contactWay) : userInfo.contactWay }} <i class="showTel" @click="showTelClick(userInfo.contactWay
阅读全文