摘要: 单个输入框的 组件代码: <el-date-picker v-model="value1" type="date" placeholder="选择日期" :picker-options="pickerOptions0"> </el-date-picker> 情景1: 设置选择今天以及今天之后的日期 阅读全文
posted @ 2021-08-10 17:19 Hakuna__Matata 阅读(254) 评论(0) 推荐(0) 编辑
摘要: // 展示安全问题详情 ShowSecurityQues (item) { const itemCode = item.label this.detailsTitle = itemCode const SecurityNum = this.SecurityInfo.findIndex((item) 阅读全文
posted @ 2021-08-10 17:13 Hakuna__Matata 阅读(112) 评论(0) 推荐(0) 编辑
摘要: vue部分 //- 安全风险/质量标准内容页面 .risk_quality_details template(v-if="detailObj.option 'textTab'") .work_list_details2(v-for="item in risk_quailty_content") .r 阅读全文
posted @ 2021-08-10 17:07 Hakuna__Matata 阅读(158) 评论(0) 推荐(0) 编辑
摘要: components: { CloseButton, Pagination, Tree, Dialog }, directives: { loadmore: { bind (el, binding) { const selectWrap = el.querySelector('.el-table__ 阅读全文
posted @ 2021-08-10 16:29 Hakuna__Matata 阅读(1724) 评论(0) 推荐(0) 编辑
摘要: getDate () { this.$nextTick(() => { const now = new Date() const year = now.getFullYear() // 得到年份 let month = now.getMonth() // 得到月份 let date = now.ge 阅读全文
posted @ 2021-07-31 10:30 Hakuna__Matata 阅读(65) 评论(0) 推荐(0) 编辑
摘要: scrollChildren (data, acId) { if (data && data.length > 0) { for (let i = 0; i < data.length; i++) { if (data[i].id acId) { this.$refs.tableId.bodyWra 阅读全文
posted @ 2021-07-31 10:29 Hakuna__Matata 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 1、安装 npm install tinymce -S 2、把node_modules\tinymce里面的文件 包括tinymce文件夹 全部复制到static文件夹下面,如下图 3、tinymce默认是英文界面,还需要下载一个中文语言包zh_CN.js https://www.tiny.clou 阅读全文
posted @ 2019-12-12 11:41 Hakuna__Matata 阅读(8155) 评论(1) 推荐(0) 编辑
摘要: 父组件的 scoped 样式不能穿透到子组件上。使用 vue-loader 的写法。 有人用去掉 scoped 的方法解决,但这会污染全局样式,不可取。 使用 /deep/ 或者 >>> 解决/deep/ >>> vue引用了第三方组件,需要在组件中局部修改第三方组件的样式,而又不想去除scoped 阅读全文
posted @ 2019-10-24 14:02 Hakuna__Matata 阅读(8888) 评论(0) 推荐(1) 编辑
摘要: 使用vue-cli搭建的vue项目可以使用在项目内设置代理(proxyTable)的方式来解决跨域问题。 实现效果: 参考:https://blog.csdn.net/u013575984/article/details/78319528 参考:https://www.cnblogs.com/web 阅读全文
posted @ 2019-10-22 17:32 Hakuna__Matata 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 点击没问题 如果在这个点击页面 在点击一次router-link 就会报这个错 但是不影响功能 去你引用vue-router的页面添加一段代码 阅读全文
posted @ 2019-09-11 17:28 Hakuna__Matata 阅读(3243) 评论(0) 推荐(1) 编辑