|
@@ -73,6 +73,8 @@
|
|
|
|
|
|
const nameText = computed(() => {
|
|
|
return (name) => {
|
|
|
+
|
|
|
+ name = name.replaceAll('南充','').replaceAll('服务','').replaceAll('养老', '').replaceAll('有限公司', '');
|
|
|
let index = name.length - 2;
|
|
|
index = index >= 0 ? index : 0;
|
|
|
return name.substring(index);
|
|
@@ -130,7 +132,7 @@
|
|
|
}
|
|
|
|
|
|
function queryList(pageNo, pageSize) {
|
|
|
- uni.showLoading({
|
|
|
+ /* uni.showLoading({
|
|
|
title: '加载中...',
|
|
|
mask: true
|
|
|
})
|
|
@@ -143,11 +145,17 @@
|
|
|
des: '已经服务11人',
|
|
|
checked: data.dufaultIds.indexOf(id) != -1
|
|
|
})
|
|
|
+ } */
|
|
|
+ console.log('data==>', data);
|
|
|
+ if(data.pageType === 'user') {
|
|
|
+ getUserList(pageNo, pageSize);
|
|
|
+ }else if(data.pageType === 'company'){
|
|
|
+ getFirmList(pageNo, pageSize);
|
|
|
}
|
|
|
- setTimeout(() => {
|
|
|
+ /* setTimeout(() => {
|
|
|
paging.value.complete(list);
|
|
|
uni.hideLoading();
|
|
|
- }, 500)
|
|
|
+ }, 500) */
|
|
|
}
|
|
|
|
|
|
function getUserList(pageNo, pageSize){
|
|
@@ -158,6 +166,7 @@
|
|
|
}
|
|
|
}).then(res=>{
|
|
|
|
|
|
+ console.log('getUserList=>', res);
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -166,8 +175,21 @@
|
|
|
parmas: {
|
|
|
pageNum: pageNo,
|
|
|
pageSize
|
|
|
+ },
|
|
|
+ custom: {
|
|
|
+ catch: true
|
|
|
}
|
|
|
}).then(res=>{
|
|
|
+ let list = [];
|
|
|
+ res.map(item=>{
|
|
|
+ list.push({
|
|
|
+ id: item.companyId,
|
|
|
+ name: item.name,
|
|
|
+ des: `最大派单数(${item.count})`,
|
|
|
+ checked: data.dufaultIds.indexOf(item.companyId) != -1
|
|
|
+ })
|
|
|
+ })
|
|
|
+ paging.value.complete(list);
|
|
|
|
|
|
})
|
|
|
}
|