摘要: reduce()用于计算数组元素相加之后的总和。 语法:array.reduce(function(total, currentValue, currentIndex, arr), initialValue) 参数描述: total:必需。初始值, 或者计算结束后的返回值 currentValue: 阅读全文
posted @ 2022-02-21 17:37 //唉 阅读(405) 评论(0) 推荐(0)
摘要: 在调后端接口时,控制台报错Uncaught (in promise) Error: timeout of 100000ms exceeded 原因是设置的请求时间太短,找到前端配置文件request.js,本项目中为req.js,修改请求超时时间timeout为更大的值: 阅读全文
posted @ 2022-02-14 17:48 //唉 阅读(8687) 评论(0) 推荐(0)
摘要: 当 <style> 标签有 scoped 属性时,它的 CSS 只作用于当前组件中的元素。详细介绍: https://vue-loader.vuejs.org/zh/guide/scoped-css.html#%E6%B7%B7%E7%94%A8%E6%9C%AC%E5%9C%B0%E5%92%8C 阅读全文
posted @ 2022-01-19 15:57 //唉 阅读(57) 评论(0) 推荐(0)
摘要: 1.首先说一下流程: 打包vue项目,打包后的dist直接放在自动生成的路径就好 npm run build 下载安装nginx,安装过程就不再说了 打开conf文件夹中的nginx.conf,修改以下地方: #user nobody; worker_processes 1; #error_log 阅读全文
posted @ 2021-12-30 14:36 //唉 阅读(2381) 评论(0) 推荐(0)
摘要: 包括:(代码中都有具体用法) 固定列和表头: fixed 表格的最大高度: max-height 高亮当前行: highlight-current-row 首列增加索引: type="index" 自定义索引的话再加 :index="indexMethod" 删除行: deleteRow 某一行/单 阅读全文
posted @ 2021-12-23 18:14 //唉 阅读(793) 评论(0) 推荐(0)
摘要: vscode中vue项目启动时报错: These dependencies were not found: * throttle-debounce/debounce in ./node_modules/element-ui/lib/tooltip.js* throttle-debounce/thro 阅读全文
posted @ 2021-12-09 15:54 //唉 阅读(914) 评论(0) 推荐(0)
摘要: let selectList = [] selectList = this.filterTableData.filter(f => f.selected '1') https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Gl 阅读全文
posted @ 2021-11-18 17:10 //唉 阅读(295) 评论(0) 推荐(0)
摘要: 1.新建一个vue项目 2.打开新建的项目,将原来的项目全部复制到新的项目中,重复文件全部覆盖掉 3.删掉node_modules文件夹,在项目中运行cnpm i 4.最后运行项目,后面就可以把不需要的页面进行修改了 阅读全文
posted @ 2021-11-16 10:44 //唉 阅读(1056) 评论(0) 推荐(0)
摘要: 子组件(文件名为rightTable): <tr class="tr_hover" v-for="(item, index) in inforList" :key="index" @click="trClk(item, index)" > <td>{{item.itemDesc}}</td> </t 阅读全文
posted @ 2021-11-03 14:44 //唉 阅读(475) 评论(0) 推荐(0)
摘要: //表格 <el-table :span-method="objectSpanMethod"> //methods: objectSpanMethod({row, column, rowIndex, columnIndex}){ if (columnIndex 0) { return { rowsp 阅读全文
posted @ 2021-10-24 14:59 //唉 阅读(569) 评论(0) 推荐(0)