feat: 客户人员编辑表单组件

This commit is contained in:
wangzhuo
2025-08-18 17:08:38 +08:00
parent e6efc466d8
commit f9474ac01d
4 changed files with 337 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
<view class="con-body">
<view class="con-bg">
<!-- 头部 -->
<customHeader ref="customHeaderRef" :title="'客户列表'" :leftFlag="true" :rightFlag="false">
<customHeader ref="customHeaderRef" :title="'客户名称列表'" :leftFlag="true" :rightFlag="false">
<template #right>
<view class="head-right" @click="handleAdd">
<uni-icons type="plus" size="24" color="#B7D2FF"></uni-icons>
@@ -117,7 +117,7 @@ let timerId = null;
// 搜索
watch(searchValue, (newValue, oldValue) => {
// console.log(`新值: ${newValue}, 旧值: ${oldValue}`);
if(!timerId) clearTimeout(timerId);
if(timerId) clearTimeout(timerId);
cssFlag.value = true;
timerId = setTimeout(async ()=>{
handleSearch();
@@ -135,6 +135,7 @@ const downCallback = async (mescroll) => {
// 正确结束下拉刷新状态
mescroll.endSuccess(res.list.length, res.total >= upOption.value.page.size);
} catch (error) {
console.log(error)
// 发生错误时结束下拉刷新
mescroll.endErr();
}
@@ -152,6 +153,7 @@ const upCallback = async (mescroll) => {
// 正确结束上拉加载状态
mescroll.endSuccess(res.list.length, res.list.length >= mescroll.size);
} catch (error) {
console.log(error)
// 发生错误时结束上拉加载
mescroll.endErr();
}