|
@@ -154,7 +154,7 @@
|
|
|
fit
|
|
|
highlight-current-row
|
|
|
stripe
|
|
|
-
|
|
|
+ v-el-select-loadmore="loadmore2"
|
|
|
>
|
|
|
<el-table-column
|
|
|
type="index"
|
|
@@ -173,7 +173,7 @@
|
|
|
<CopyButton :copyText="scope.row.materialNumber" />
|
|
|
<el-select
|
|
|
v-model="scope.row.materialNumber"
|
|
|
- v-el-select-loadmore="loadmore"
|
|
|
+
|
|
|
size="mini"
|
|
|
:remote-method="(query)=>remoteMethod(query,'number')"
|
|
|
filterable
|
|
@@ -358,6 +358,7 @@
|
|
|
</el-popconfirm>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<!-- 分页 -->
|
|
@@ -516,9 +517,11 @@ export default {
|
|
|
directives: {
|
|
|
'el-select-loadmore': {
|
|
|
bind(el, binding) {
|
|
|
+ console.log(el);
|
|
|
// 获取element-ui定义好的scroll盒⼦
|
|
|
const SELECTWRAP_DOM = el.querySelector(
|
|
|
- '.el-select-dropdown .el-select-dropdown__wrap'
|
|
|
+ ".el-table__body-wrapper"
|
|
|
+ // '.el-select-dropdown .el-select-dropdown__wrap'
|
|
|
)
|
|
|
SELECTWRAP_DOM.addEventListener('scroll', function() {
|
|
|
/**
|
|
@@ -640,9 +643,18 @@ export default {
|
|
|
this.$refs.comDom.getCommonApi(this.conditionList[0].id)
|
|
|
this.$store.commit('sales/setId', this.searchForm.code)
|
|
|
},
|
|
|
- loadmore() {
|
|
|
- this.sleectBox.currentPage++
|
|
|
- this.getK3List()
|
|
|
+ // loadmore() {
|
|
|
+ // this.sleectBox.currentPage++
|
|
|
+ // this.getK3List()
|
|
|
+ // },
|
|
|
+ loadmore2(){
|
|
|
+ if(this.dataList.length<this.listTotal){
|
|
|
+ let total = Math.floor(this.listTotal/10)
|
|
|
+ if (this.dcurrentPage<=total) {
|
|
|
+ this.dcurrentPage++
|
|
|
+ this.handletwoList()
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
getK3List() {
|
|
|
getK3List({
|
|
@@ -863,8 +875,8 @@ export default {
|
|
|
this.listLoading = true
|
|
|
const paramss = {
|
|
|
pageNum: this.dcurrentPage,
|
|
|
- pageSize: -1,
|
|
|
- policyId: this.searchForm.code,
|
|
|
+ pageSize: 10,
|
|
|
+ policyId: this.searchForm.code,
|
|
|
saleTypeCode: ''
|
|
|
}
|
|
|
getMaterialList(paramss)
|
|
@@ -888,7 +900,7 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
|
|
|
- this.dataList = result.data.records
|
|
|
+ this.dataList = [...this.dataList,...result.data.records]
|
|
|
this.listTotal = result.data.total
|
|
|
this.listLoading = false
|
|
|
})
|