Ctrl + shift + R 快速全局查找Ctrl + f 搜索 (word)精准查询Ctrl + R 替换web Storm 使用git
项目根目录 —— 右击 Git —— +Add —— 保存到本地
项目根目录 —— 右击 Git —— Repository —— pull (提交之前先拉下来)
pull 不成功 需要 Git —— Repository —— stash Change 隐藏一下 pull成功后 —— unStash 勾选POP stash —— POP stash 释放隐藏
项目根目录 —— 右击 Git —— Commit (注意仔细核对需要提交的文件)
项目根目录 —— 右击 Git —— Repository —— push(推送到远程)拉取项目:
git init
git remote add origin http://(仓库地址)
git pull origin (分支名称)settimeOut(() => {this.dialogShow = false},1000)
<el-table
:data="tableData.slice((currentPage-1)*pagesize,currentPage*pagesize)"
:cell-style="rowClass"
:header-cell-style="headClass"
><el-table-column prop="id" label="费用ID"></el-table-column></el-table>methods: {// 设置表格居中方法rowClass(){return 'text-align:center;'},headClass(){return 'text-align:center;'},
}
<el-uploadclass="upload"ref="upload"action="https://jsonplaceholder.typicode.com/posts/"accepe=".xls":show-file-list="false":on-error="uploadError":on-success="uploadSuccess":before-upload="beforeUpload"><!-- :action="uploadUrl" --><el-button slot="trigger" size="small" type="primary">选取文件</el-button><el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传到服务器</el-button><div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>// 文字提示</el-upload><el-button size="small" type="primary">下载</el-button><el-button size="small" type="primary">点击上传</el-button><script>// 创建路由对象new Vue({el: '#app',// router,data: function() {return { uploadUrl:process.env.BASE_API+ServiceId+ '请求接口',}},methods: {uploadError() {this.$message.error('导入文件失败,请重新导入')this.$refs.upload.clearFiles() // 清空已上传的文件列表},uploadSuccess(rep) {// this.$message.success('更新成功')if(rep.success) {this.$message.success('导入成功')this.$refs.upload.clearFiles()this.getList()} else {this.$message.error(rep.error.message)this.$refs.upload.clearFiles() // 清空已上传的文件列表}},beforeUpload() {let is1M = file.size/1024/1024 <1if(!is1M) {this.$message.error('导入文件不能超过1M')}return is1M},
}
})<style scoped>.upload-excel {display: inline-block; // 控制 按钮在一行显示}
</style>