随笔分类 -  前端

摘要:需求遇到两种左右柱状图,1用的是一个柱状图实现的,2用的是两个柱状图实现的,先记录一下解决方法 1. 首先进入echarts官网 https://echarts.apache.org/examples/zh/index.html#chart-type-bar 发现示例中有个正负条形图,和需求需要展示 阅读全文
posted @ 2025-05-12 16:42 仓鼠爱画方格子 阅读(738) 评论(0) 推荐(0)
摘要:开发背景:亿信华辰 实现效果 主要就是加了分页图标,根据页码渲染柱状图的时候给该页的条数 (用到了slice) ,然后监听小箭头点击事件,刷新图表数据,更改箭头颜色。 html <div style="overflow:visible;width:300px;"> <div id="main" st 阅读全文
posted @ 2025-05-07 16:24 仓鼠爱画方格子 阅读(111) 评论(0) 推荐(0)
摘要:参考:https://blog.csdn.net/hanxiaomo_/article/details/122188291 我的界面没有dialog嵌套dialog,只是在组件中打开dialog,不知道为什么会打开这个弹框之后就有一层遮罩,加了append-to-body之后就好了 阅读全文
posted @ 2022-08-29 10:55 仓鼠爱画方格子 阅读(406) 评论(0) 推荐(0)
摘要:<span class="title">日志总览</span> .title { position: relative; padding-left: 13px; margin: 24px 0px; } .title:before { content: ''; background-color: #3 阅读全文
posted @ 2022-04-14 08:50 仓鼠爱画方格子 阅读(145) 评论(0) 推荐(0)
摘要:getTime(diff) { var nowdate = new Date() if (diff) { nowdate.setDate(nowdate.getDate() + diff) } var year = nowdate.getFullYear() var month = nowdate. 阅读全文
posted @ 2022-03-01 09:53 仓鼠爱画方格子 阅读(748) 评论(0) 推荐(0)
摘要:/* .filter-tree .el-tree-node.is-current { background-color: rgb(54 9 9) !important; } */ .filter-tree .el-tree-node:focus > .el-tree-node__content { 阅读全文
posted @ 2022-02-19 15:31 仓鼠爱画方格子 阅读(2032) 评论(0) 推荐(0)
摘要:<el-form ref="taskDictForm" :model="taskDictForm" label-width="120px" :rules="taskDictFormRules" > <el-form-item label="任务参数" prop="taskParm"> <el-inp 阅读全文
posted @ 2022-02-19 15:07 仓鼠爱画方格子 阅读(4596) 评论(0) 推荐(0)
摘要:const a = a || {}这句话的意思是:如果 a 具有真值(不是undefined,null,NAN,false,0中的任意一 种) ,则这个a可以被使用 。 否则将 a 定义为一个空的object对象 {} 这样做的目的是,如果a没有被定义,在下面的代码里如果使用到变量a,浏览器将会抛出 阅读全文
posted @ 2022-01-27 16:36 仓鼠爱画方格子 阅读(32) 评论(0) 推荐(0)
摘要:el-form自定义校验规则 <el-form :model="moduleForm" label-width="160px" :rules="moduleFormRule" ref="moduleFormRuleRef"> ... <el-form-item label="模块别名" prop=" 阅读全文
posted @ 2021-12-30 10:53 仓鼠爱画方格子 阅读(934) 评论(0) 推荐(0)
摘要:https://www.vue-treeselect.cn/ 前端树,下拉框显示树结构 :defaultExpandLevel="Infinity" 设置 Infinity 为默认使所有分支节点扩展 在package.json中加入依赖 : "@riophae/vue-treeselect": "^ 阅读全文
posted @ 2021-12-29 16:14 仓鼠爱画方格子 阅读(1012) 评论(0) 推荐(0)
摘要:<!--模块新增编辑--> <el-dialog :title="moduleDialogName" :visible.sync="moduleDialog" :modal-append-to-body="false" center width="30%" > <el-form :model="mo 阅读全文
posted @ 2021-12-17 10:44 仓鼠爱画方格子 阅读(297) 评论(0) 推荐(0)
摘要:beforeCreate() { document .querySelector('body') .setAttribute('style', 'background-color:#ebebeb;') }, 阅读全文
posted @ 2020-10-22 09:21 仓鼠爱画方格子 阅读(239) 评论(0) 推荐(0)
摘要:不知道为啥点击按钮的时候一直会有一个边框,查style的时候一直找不到,然后想起来之前大佬会看Computed,我就点开了,发现了这个黄黄的家伙,点进去发现是 我就自己写了个边框颜色,但有其他地方也被影响了,而且重新点掉原先的边框也会受到影响,然后百度了下,有的说改成 :focus { outlin 阅读全文
posted @ 2020-10-22 09:18 仓鼠爱画方格子 阅读(704) 评论(0) 推荐(0)
摘要:记录 <div class="circle_area"> <svg width="100" height="100"> <circle cx="50" cy="50" r="40" stroke="#6abdff" stroke-width="5" fill="none" ></circle> <c 阅读全文
posted @ 2020-10-21 16:41 仓鼠爱画方格子 阅读(364) 评论(0) 推荐(0)
摘要:在从后台获取值之后回显的时候出现了问题,因为多选框的那个值本质上是数组,不是string 赋值为数组就可以了~ 阅读全文
posted @ 2020-05-08 08:31 仓鼠爱画方格子 阅读(5706) 评论(0) 推荐(0)
摘要:Module build failed: Error: Missing binding D:\workspace\sshapp-esb\sshapp-ekhips\sshapp-hip-front\sshapp-tool\node_modules\node-sass\vendor\win32-x64 阅读全文
posted @ 2020-03-17 16:12 仓鼠爱画方格子 阅读(915) 评论(0) 推荐(0)
摘要:// 这里是页面上展示的数据 <div v-for="(item, index) in knowledgeItems" :key="true"> <Row style="margin-top:20px;"> <Col span="4" style="font-size:18px;padding-le 阅读全文
posted @ 2017-11-24 11:04 仓鼠爱画方格子 阅读(1621) 评论(1) 推荐(1)