11 2020 档案

摘要:Vuex Vuex 是一个专为 Vue.js 应用程序开发的状态管理模式。它采用集中式存储管理应用的所有组件的状态,并以相应的规则保证状态以一种可预测的方式发生变化。 Vuex整体框架 import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vue 阅读全文
posted @ 2020-11-20 16:37 张新钢 阅读(68) 评论(0) 推荐(0)
摘要:实时变化的Echars 调用watch方法 // 查看数据发生变化 watch: { desulfurationNumArr () { console.log(this.desulfurationNumArr) this.leftTopFun() }, so2num () { console.log 阅读全文
posted @ 2020-11-17 18:03 张新钢 阅读(1812) 评论(0) 推荐(0)
摘要:Vue不断请求数据 用定时器SetTimeOut 不带参数发给后端 <template> <div> <el-button @click="getData">点击</el-button> <div>{{one}}</div> </div> </template> <script> export de 阅读全文
posted @ 2020-11-14 11:29 张新钢 阅读(10034) 评论(0) 推荐(0)
摘要:<div class="charts rightTopEcharts"> <script> mounted () { this.rightTopFun() }, methods: { // 右上 rightTopFun () { // 基于准备好的dom,初始化echarts实例 var myCha 阅读全文
posted @ 2020-11-12 11:56 张新钢 阅读(144) 评论(0) 推荐(0)
摘要:数组.join()方法 this.addForm.goods_name.join(',') 会返回一个新的字符串 重新接收一下 this.addForm.goods_name = this.addForm.goods_name.join(',') 阅读全文
posted @ 2020-11-09 22:08 张新钢 阅读(89) 评论(0) 推荐(0)
摘要:// 1.获取将要删除的数据 console.log(file.response.data.number) const fileFind = file.response.data.number // 2.从数组中找到一样的 findindex 就是找到的话会返回这个值所在的位置,x代表的是就是找到的 阅读全文
posted @ 2020-11-09 21:40 张新钢 阅读(5829) 评论(0) 推荐(0)
摘要:// 拼接字符串成为一个数组 const pathInfo = // 往数组里添加数据push this.addGoodsForm.pics.push(pathInfo) 阅读全文
posted @ 2020-11-09 21:21 张新钢 阅读(2659) 评论(0) 推荐(0)
摘要:查看本地所有的分支 PS E:\Git\练习项目\vue_shop> git branch login master user 查看本地是否有别名 PS E:\Git\练习项目\vue_shop> git remote -v gitee git@gitee.com:xin-code/vue_shop 阅读全文
posted @ 2020-11-08 22:08 张新钢 阅读(126) 评论(0) 推荐(0)
摘要:放入项目中 dsfont.css文件内容 @font-face { font-family: 'electronicFont'; src: url(../font/DS-DIGIT.ttf); font-weight: normal; font-style: normal; } 在main.js文件 阅读全文
posted @ 2020-11-05 17:52 张新钢 阅读(433) 评论(0) 推荐(0)
摘要:布局 Flex布局 ⭐ 父级设置: display: flex;将对象作为弹性伸缩盒显示 flex-flow: column;方向设置为垂直方向(flex-flow 属性是 flex-direction 和 flex-wrap 属性的复合属性,直接使用flex-direction亦可) 父级需设置高 阅读全文
posted @ 2020-11-05 14:49 张新钢 阅读(61) 评论(0) 推荐(0)