fix: 客户人员审核

This commit is contained in:
wangzhuo
2025-09-17 21:52:58 +08:00
parent 409597fa7f
commit f3e20ce31a
2 changed files with 16 additions and 12 deletions

View File

@@ -612,12 +612,11 @@ let submitForm = async () => {
uni.showToast({
title: "更新成功"
})
setTimeout(()=>{
uni.navigateBack();
const eventChannel = instance.getOpenerEventChannel();
eventChannel.emit("refreshCusUserList");
setTimeout(()=>{
uni.navigateBack();
},1000);
}else{
uni.showToast({
title: "操作失败",

View File

@@ -7,7 +7,13 @@
<view class="con-body">
<view class="con-bg">
<!-- 头部 -->
<customHeader ref="customHeaderRef" :title="'客户人员审核'" :leftFlag="true" :rightFlag="false">
<customHeader ref="customHeaderRef" :title="'客户人员审核'" :leftFlag="true" :rightFlag="list.length > 0">
<template #right>
<view class="head-right" @click="handleReSort">
<uni-icons type="arrow-down" size="20" color="#B7D2FF"></uni-icons>
{{iconType==='arrow-up'?'最新':'最早'}}
</view>
</template>
</customHeader>
<!-- 高度来避免头部遮挡 -->
@@ -101,9 +107,13 @@ let handleSearch = () => {
watch(searchValue, (newValue, oldValue) => {
handleSearch()
})
let clearSearchValue = () => {
searchValue.value = '';
// 排序图标
const iconType = ref('arrow-up');
let handleReSort = () => {
iconType.value = iconType.value === 'arrow-down' ? 'arrow-up' : 'arrow-down';
list.value = list.value.reverse();
}
// 查询列表
let list = ref([]);
@@ -230,12 +240,7 @@ let handleDetail = (item) => {
}
.scroll-h {
/* #ifdef APP-PLUS */
height: calc(100vh - 120px);
/* #endif */
/* #ifndef APP-PLUS */
height: calc(100vh - 110px);
/* #endif */
height: 100%;
}
.white-bg {