- 博客(11)
- 收藏
- 关注
原创 vue动态生成的表格中其中一列嵌套表单出现改变一列的el-input输入框时所有的el-input中的值都会改变的解决方法
在el-form外加上一层 <template slot-scope="scope"> <div>slot-scope="scope"是重点,这是作用域插槽中定义一个对象(这里对象被定义为scope)来存储插槽上绑定的数据的用法在el-input的v-model中使用scope.row.xxx来绑定v-model这是因为在这里使用ElementUI表格模板渲染数据时,当前行数据的获取也会用到插槽,scope相当于一行的数据, scope.row相当于当前行的
2020-08-07 09:09:48
2358
原创 Vue动态生成复选框,实现换行时遇到选中一个变全选的问题的解决方法
动态生成复选框,使用实现换行<template><div> <div style=""></div> <el-row > <el-checkbox-group v-model="checkedCities" @change="handleCheckedCitiesChange"> <el-col :span="3" v-for="(city,index) in cities" :label="ci
2020-07-31 12:39:17
1099
原创 Vue设置了全局页面统一颜色,单独更改其中一个页面的颜色
用这个方法就行 beforeCreate () { document.querySelector('body').setAttribute('style', '') }
2020-07-30 14:39:24
2209
2
原创 Vue引入背景图片
:style="backgroundDiv"在return中backgroundDiv: { backgroundImage: 'url(' + require('../../static/images/1.png') + ')', backgroundRepeat: 'no-repeat', backgroundSize: '100% 100%' }
2020-07-30 09:03:28
8961
原创 Vue中引入Echarts图表
引入折线图mounted () { // 在mounted生命周期函数中实例化echarts对象 this.drawHistogarm() },methods: { drawHistogarm () { // 初始化echarts折线图实例 let histogram = this.$echarts.init(document.getElementById('histogramChart')) let option = { tooltip: {
2020-07-29 11:17:57
223
原创 在Vue中使用Echarts
1.安装echartsnpm install echarts2.在main.js文件配置import echarts from 'echarts'
2020-07-29 11:13:48
89
原创 Vue使用vue-resource读取本地json文件
1.npm install vue-resource安装vue-resource2.在main.js文件配置import VueResource from 'vue-resource' Vue.use(VueResource)3.要使用get请求,post请求会404,文件要放在static下(因为dev-server限制了http的访问,解决办法就是讲json文件放到static文件夹下面,static文件夹没有被限制。) useResource () { this.$http.
2020-07-29 10:59:47
914
1
原创 docker部署springboot项目
1.将项目打包成jar包2.使用xftp6连接服务器上传文件2.1用XFTP6上传jar包(将jar包拖进右边即可)2.2上传可能会遇到permission is not allowed错误,因为要上传到的文件夹权限不够,使用sudo chmod 777 test(test是文件夹名)来改权限,这样就可以上传成功3. 通过dockerfile的方式打包镜像3.1打开docker文件夹cd /usr/local/docker/(注意是usr不是user)3.2在docker创建新的文件夹
2020-07-14 09:31:38
119
原创 ubuntu安装docker
1使用这套脚本安装:curl -fsSL get.docker.com -o get-docker.shsudo sh get-docker.sh --mirror AzureChinaCloud2启动Docker CE sudo service docker start3测试 Docker 是否安装正确 sudo service docker start4.配置Docker镜像加速器4.1在 /etc/docker/daemon.json 中写入如下内容(如果文件不存在请新建该文
2020-07-14 09:23:32
94
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人