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

浙公网安备 33010602011771号