09 2019 档案
摘要:const arr = [1, 2, 3, 4, 6, 22, 55, 33, 66, 44];const getIndex = ((arr,item)=>{ for(var i in arr){ if(arr[i] == item){ return i; }; }; });getIndex(arr
阅读全文
摘要:(1)原型工具:Axure、墨刀等 (2)流程图工具:visio,Ominigraffle(Mac) (3)思维导图工具:Xmind,MindManager (4)需求管理工具:teambition等(不同公司可能这个软件不一样) (5)汇报:PPT、Excel图表这些
阅读全文
摘要:JS中的函数防抖 一、什么是函数防抖 概念:函数防抖(debounce),就是指触发事件后,在 n 秒内函数只能执行一次,如果触发事件后在 n 秒内又触发了事件,则会重新计算函数延执行时间。 二、为什么需要函数防抖 前端开发过程中,有一些事件,常见的例如,onresize,scroll,mousem
阅读全文
摘要:page.vue <template> <div class="m-page"> <Page style="margin-top:8px;" :current="pageParam.pageNum" :page-size-opts="pageSizeOpts" :page-size="pagePar
阅读全文
摘要:<Select ref="vendorId" v-model="formInline.vendorId" @on-open-change="venSelect" filterable style="width: 162px;" @on-change="vendorChange" v-if="vend
阅读全文
摘要:watch: { '$route'(to, from) { if (from.name 'addPurchase') { } if (to.name 'addPurchase') { } else {} } } watch: { '$route'(to, from) { 从copyAdvanceOr
阅读全文
摘要:方法一: { title:'备注', key:'', align:'center', width:130, render:(h,params)=>{ return h('Input',{ props:{ value:this.formInline.financeAccountBillDetailVO
阅读全文
摘要:导出1: <Button class="mr10" type="primary" @click="exportSampleStockExcel()" :disabled="exportSampleStockExcel">导出</Button> exportSampleStockExcel(){ th
阅读全文
摘要:<a href="#" @click="templateDownload()">模板下载</a> //模板下载 templateDownload() { this.$axios({ url: '/chenfan_refuse/otherRecord/otherRecordExcelDownload'
阅读全文
摘要:<Upload ref="upload" :show-upload-list="false" accept=".xls, .xlsx" :before-upload="templateToImport" type="drag" action="/chenfan_refuse/otherRecord/
阅读全文
摘要:^[1-9][0-9]{0,5}$ 在线正则表达式测试 input失去焦点事件 onBlur(item){ if (item.applyQuantity && !/^[1-9][0-9]{0,5}$/.test(item.applyQuantity)) { item.applyQuantity =
阅读全文
摘要:<FormItem label="状态"> <Select v-model="formInline.state" style="width: 190px;" multiple> <Option :value="0" :key="0">开立</Option> <Option :value="1" :k
阅读全文
摘要:this.$('.calssName') 拼接获取元素 let jointClass =".ivu-table-tbody tr:nth-child("+index+") td input" this.$(jointClass).addClass('addBorder') let jointClas
阅读全文