上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页
摘要: BUG:1.数据加载不出来,(待求证....) 解决:使用path on: { 'click': (event) => { let query = { id: params.row.expenseAccountId } this.$router.push({ // 效果是一样的 但是name的话无法 阅读全文
posted @ 2019-07-08 15:49 苏小白啊 阅读(207) 评论(0) 推荐(0) 编辑
摘要: FormData的主要用途有两个: 1、将form表单元素的name与value进行组合,实现表单数据的序列化,从而减少表单元素的拼接,提高工作效率。 2、异步上传文件 一、创建formData对象 1、创建一个空对象: //通过FormData构造函数创建一个空对象 var formdata=ne 阅读全文
posted @ 2019-07-08 10:05 苏小白啊 阅读(722) 评论(0) 推荐(1) 编辑
摘要: 给组件绑定原生事件 1,给vue组件绑定事件时候,必须加上native ,否则会认为监听的是来自Item组件自定义的事件 2,等同于在子组件中: 子组件内部处理click事件然后向外发送click事件:$emit("click".fn) <Item @click.native = "shijian( 阅读全文
posted @ 2019-07-05 14:50 苏小白啊 阅读(3709) 评论(0) 推荐(0) 编辑
摘要: <Button type="warning" v-if="this.$store.state.user.permissionList['报销单详情'].operationVOS.expense_list" @click="exportDetails()" style="margin-right: 5 阅读全文
posted @ 2019-07-04 15:45 苏小白啊 阅读(4369) 评论(0) 推荐(0) 编辑
摘要: this.$Loading.start();加载进度条开始 this.$Loading.finish();加载进度条结束 阅读全文
posted @ 2019-07-04 15:26 苏小白啊 阅读(1299) 评论(0) 推荐(0) 编辑
摘要: 先将冲突页面暂存起来:点击左侧大图标第三个 右击冲突页面-》stash Changes 录入说明 然后把线上代码拉取下来, 拉取下来之后 将暂存的冲突页面拉取出来:点击左侧大图标最后一个GitLens REPOSITORIES下找到文件-》Stashes -》找到存放更改页面的文件夹 On dev: 阅读全文
posted @ 2019-07-02 18:51 苏小白啊 阅读(16104) 评论(0) 推荐(0) 编辑
摘要: 键盘事件监听 @keyup.native @keyup.native="tdItem.onKeyUp($event, trItem, trIndex)" (item , row , index) .native在父组件中给子组件绑定一个原生的事件,就将子组件变成了普通的HTML标签 键盘事件监听 @ 阅读全文
posted @ 2019-07-02 17:48 苏小白啊 阅读(2353) 评论(0) 推荐(0) 编辑
摘要: //键盘事件 <Input v-model="trItem[tdItem.key]" @keyup.native="show($event,row,index)" /> </span> //键盘事件 <Input v-model="trItem[tdItem.key]" @keyup.native= 阅读全文
posted @ 2019-07-02 14:13 苏小白啊 阅读(311) 评论(0) 推荐(0) 编辑
摘要: methods: { }, watch: { '$route'(to, from) { if (from.name 'addPurchase') { let saveData = { tableData: this.tableData, formInline: this.formInline, bt 阅读全文
posted @ 2019-07-02 10:09 苏小白啊 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 1.src文件夹下的components-》table -》index.js import MTable from './table.vue'; import MyTable from './table1.vue'; export default (Vue)=>{ Vue.component("MT 阅读全文
posted @ 2019-07-01 15:51 苏小白啊 阅读(1690) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页