- 博客(20)
- 收藏
- 关注
原创 对treeSelect赋值,后面出现(unknown)
下拉树代码 <el-descriptions-item label="所在部门"> <Treeselect :options="optiont" :searchable="false" placeholder="请选择" loadingText="加载中" noChildrenText="无下级数据" .
2022-05-10 13:57:02
1460
转载 描述列表宽度控制el-descriptions
描述列表宽度控制el-descriptionshttps://www.jianshu.com/p/68ea3be10ea9
2022-04-07 09:52:53
3967
原创 git报错remote: The project you were looking for could not be found
问题原因解析:因为自己的项目不止一个 又有自动保存git密码的功能,当clone第二个项目的时候就报了错误!解决方案:在自己的项目路径上加上自己的用户名,例如:Git clone http://10.9.100.1:0000/credit/code/xiangmu.git (失败)Git clone http://用户名@10.9.100.1:0000/credit/code/xiangmu.git(成功)这样会在克隆的时候提示输入密码,确认用户!就可以正常更新上游仓库了!原文链接:h.
2022-03-09 15:17:44
328
原创 vue 导出pdf文件
1.在终端安装html2canvas插件npm install --save html2canvasnpm install jspdf --saved(或者npm i html2canvas jspdf --save-dev )2.创建htmlToPdf.js文件import html2canvas from 'html2canvas';import JsPDF from 'jspdf';/*** @param ele 要生成 pdf 的DOM元素(容器)* @p
2022-03-01 15:42:43
723
原创 Vue遍历data中含某个字段,并累加、算总数
用forEach循环eg://定义 let sum = 0;this.list.forEach((item) => { //遍历prodAllPrice这个字段,并累加 sum += item.prodAllPrice; });//返回this.sum = sum;我的代码:getListDetail() {this.loadingDetail = true;marchHostDeviceInfo({testCaseIdList
2021-11-25 15:56:13
2049
原创 使用filte过滤掉table某一行数据
使用filte过滤掉table某一行数据 <el-table v-loading="loadingDetail" :data="hostListDetailAll" @selection-change="handleSelectionChange"> <el-table-column label="主机类型" align="center" prop="hostType" :formatter="hostTypeFormat" /> </el-table&
2021-11-25 13:41:51
571
原创 vue 数值保留小数点后两位
这里写自定义目录标题View部分代码: <el-table-column label="磁盘使用率" align="center" prop="disk" /> prop="disk"> <template slot-scope="scope"> {{numFilter(scope.row.d
2021-11-24 16:01:07
2738
原创 vue table表单校验
vue table表单校验(正则table <el-form-item label="执行时间/次" prop="executeTime" class="execute-time"> <el-input placeholder="0.0" v-model="form.executeTime" size="small"> </el-input> <span style="c
2021-11-19 16:11:01
962
原创 vue input超过字符限制时不允许输入
vue input超过字符限制时不允许输入1.在h5中input限制字符输入长度<input type="text" name="fullname" maxlength="15" />2.在iview中限制字符输入长度<Input placeholder="请输入..." :maxlength="14" v-model="message" ></Input>3.用input需要限制输入内容的字符长度(如果需要限制字符串的长度,只需要使用element-ui
2021-11-17 14:39:05
1787
1
原创 vue table排序 (正序&倒序
vue table排序 (正序&倒序正序(page - 1) * pageSize + scope.$index + 1 // (当前页 - 1) * 当前显示数据条数 + 当前行数据的索引 + 1<el-table-column label="序号" width="50px" align="center"> <template slot-scope="scope"> {{ (queryParams.pageNum - 1) * quer
2021-11-05 11:53:24
4697
1
原创 向后端传id字段 list数组
向后端传id字段list数组页面代码 <!-- 修改测试用例所属需求 --> <el-dialog :title="title" :visible.sync="openRequire" class="case-dialog" min-width="900" append-to-body> <div style="display: flex;justify-content: center;"> <el-transfer v-model="
2021-11-05 10:13:51
335
原创 vue table表格 时间字段分两行( parseTime-格式化时间)
vue table表格 时间字段分两行( parseTime-格式化时间)后台获取的时间字段 createTime: “2021-11-02 16:37:50” 在表格中将日期与时间分行使用parseTime 格式化时间 <el-table-column label="开始时间" align="center" prop="startTime"
2021-11-03 10:20:35
4999
6
原创 绑定字符串拼接
绑定字符串拼接element ui中绑定字符串时绑定多个字段原<div class="block"> <el-timeline> <el-timeline-item v-for="(activity, index) in activities" :key="index" :icon="activity.icon" :type="activity.type" :color="activity.color
2021-10-28 14:57:14
131
原创 vue 数据传输
数据传输1.从前一个页面通过地址传输字段:executePlanId、webSocketServerAddress(1.前一个页面通过 this.$router传参et routeUrl = this.$router.resolve({ path: "/run/resultDetail", query: { executePlanId: response.data.autExecuteP
2021-10-12 16:57:33
92
原创 radio单选,并清空未选项
radio单选,并清空未选项eg,from表单里的写法用if语句将字段重置endTime==null,loopFrequency = null <el-form> <el-radio-group class="box1" v-model="checked" @change="changeRadio"> <el-radio la
2021-10-12 11:29:16
566
原创 white-space属性表
white-space属性表white-space空格处理css white-space这个css样式,用来设置element元素对内容中的空格的处理方式,有着几个可选值:normal,nowrap,pre,pre-wrap,pre-line。没有设置white-space属性,则默认为white-space:normal。normal表示合并空格,多个相邻空格合并成一个空格,在源码中的换行作为空格处理,只会根据容器的大小进行自动换行。这里的空白是值空白字符,包括空格,制表符等空白字符,下面为了行文
2021-06-29 16:30:00
65
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人