Commit b924673e authored by 琉璃丶c's avatar 琉璃丶c

Merge remote-tracking branch 'origin/master'

parents 5ed62c9c cca1925c
...@@ -201,7 +201,14 @@ export default { ...@@ -201,7 +201,14 @@ export default {
'attr': { 'attr': {
'empid': this.linkInfo.userId 'empid': this.linkInfo.userId
}, },
'filters': [], 'filters': [
{
key: 'companyname',
opt: 'LIKE',
type: 'S',
value: this.keywords
}
],
'logic': 'or', 'logic': 'or',
'sort': 'desc', 'sort': 'desc',
'orderby': 'createon', 'orderby': 'createon',
...@@ -211,7 +218,7 @@ export default { ...@@ -211,7 +218,7 @@ export default {
getConsignorSetList(data).then(rt => { getConsignorSetList(data).then(rt => {
if (rt.code === 200) { if (rt.code === 200) {
if (_this.currentPage === 1) { if (_this.currentPage === 1) {
// _this.searchNum = getResListNum(rt.msg) _this.searchNum = rt.data.total
this.postDataList = [] this.postDataList = []
} }
if (this.isRefreshing) { if (this.isRefreshing) {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
get-container="body" get-container="body"
> >
<div class="title-layout font-bold font-16">供应商</div> <div class="title-layout font-bold font-16">供应商</div>
<van-search <!-- <van-search
v-model="keywords" v-model="keywords"
placeholder="请输入编码或名称" placeholder="请输入编码或名称"
show-action show-action
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
> >
<i slot="left-icon" class="fa fa-search"></i> <i slot="left-icon" class="fa fa-search"></i>
<div slot="action" class="font14" @click="onSearch">搜索</div> <div slot="action" class="font14" @click="onSearch">搜索</div>
</van-search> </van-search> -->
<search-result :result-num="searchNum"></search-result> <search-result :result-num="searchNum"></search-result>
<div class="w100 listHeight" ref="scrollRef"> <div class="w100 listHeight" ref="scrollRef">
<van-pull-refresh <van-pull-refresh
...@@ -206,7 +206,7 @@ export default { ...@@ -206,7 +206,7 @@ export default {
getEmployeeOrgQueryList(data).then(rt => { getEmployeeOrgQueryList(data).then(rt => {
if (rt.code === 200) { if (rt.code === 200) {
if (_this.currentPage === 1) { if (_this.currentPage === 1) {
// _this.searchNum = rt.entity.total + '' _this.searchNum = rt.data.length
this.postDataList = [] this.postDataList = []
} }
if (this.isRefreshing) { if (this.isRefreshing) {
...@@ -221,12 +221,12 @@ export default { ...@@ -221,12 +221,12 @@ export default {
// 重置加载更多提示 // 重置加载更多提示
_this.loading = false _this.loading = false
// 若当前加载的页数没有满足每页的数量代表完全加载 // 若当前加载的页数没有满足每页的数量代表完全加载
if (rt.data.length < 10) { // if (rt.data.length < 10) {
_this.finished = true _this.finished = true
} else { // } else {
// 加载成功后下一页自增1 // 加载成功后下一页自增1
_this.currentPage++ _this.currentPage++
} // }
} else { } else {
_this.$toast(rt.message) _this.$toast(rt.message)
// _this.$toast('列表获取失败') // _this.$toast('列表获取失败')
......
...@@ -609,7 +609,7 @@ export default { ...@@ -609,7 +609,7 @@ export default {
border-radius: 5PX; border-radius: 5PX;
border:0.5px solid #eeeeee; border:0.5px solid #eeeeee;
// background-color: #EFF5F9; // background-color: #EFF5F9;
-webkit-appearance:none; // -webkit-appearance:none;
min-height: 35PX; min-height: 35PX;
line-height: 24px; line-height: 24px;
outline: 0; outline: 0;
......
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