Commit 2abb514d authored by huangjie's avatar huangjie

*

parent 29ad2330
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
<el-form class="popform j" :model="queryParam" :rules="rules" ref="ruleForm" label-width="130px"> <el-form class="popform j" :model="queryParam" :rules="rules" ref="ruleForm" label-width="130px">
<el-form-item label="项目名称:" class="row" prop="projectName"> <el-form-item label="项目名称:" class="row" prop="projectName">
<el-input type="text" placeholder="请输入" v-model="queryParam.projectName" @input="getProject(1)" :οnkeyup="queryParam.projectName=queryParam.projectName.replace(/^\s+|\s+$/g,'')"></el-input> <el-input type="text" placeholder="请输入" v-model="queryParam.projectName" @input="getProject(1)" :οnkeyup="queryParam.projectName=queryParam.projectName.replace(/^\s+|\s+$/g,'')"></el-input>
<div class="resultlist infinite-list" v-infinite-scroll="load1" v-if="proList.length>0" id="box1"> <div class="resultlist infinite-list" v-infinite-scroll="load1" v-if="proList.length>0" id="box1" style="overflow:auto">
<div class="infinite-list-item" v-for="(item,index) in proList" @click="selProject(item)"><span v-html="item.projectName" :key="projectpage+index"></span></div> <div class="infinite-list-item" v-for="(item,index) in proList" @click="selProject(item)"><span v-html="item.projectName" :key="projectpage"></span></div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="招采单位:" class="row" prop="ownerCompany"> <el-form-item label="招采单位:" class="row" prop="ownerCompany">
...@@ -204,8 +204,9 @@ ...@@ -204,8 +204,9 @@
this.proList = result.data this.proList = result.data
} else { } else {
let arr2 = result.data let arr2 = result.data
arr2.unshift(2, 0); // arr2.unshift(2, 0);
Array.prototype.splice.apply(this.proList, arr2); // Array.prototype.splice.apply(this.proList, arr2);
this.proList = [...this.proList,...arr2]
} }
this.projectpage += 1 this.projectpage += 1
}else{ }else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment