diff --git a/src/components/common/projectSelect/index.vue b/src/components/common/projectSelect/index.vue index 1b94a137..31e731e4 100644 --- a/src/components/common/projectSelect/index.vue +++ b/src/components/common/projectSelect/index.vue @@ -21,6 +21,7 @@ import { queryNodeListApi, queryNodeListNoPermissionApi } from '@/api/project/node'; import { debounce } from 'lodash-es'; import { ref, onMounted, watch, inject, type Ref } from 'vue'; +import { dataUseRate, dataUserRateSort } from '@/utils/common'; interface Props { modelValue: string; @@ -83,7 +84,7 @@ const getlistDataFun = () => { label: props.showCodeList ? item.nodeCode : item.nodeName, }; }); - listData.value = build; + listData.value = dataUserRateSort(props.resStr, build, 'project'); } }); }; @@ -119,6 +120,7 @@ const multiplyChangeFun = debounce(() => { listData.value.forEach((item: any) => { if (choseList.value.includes(String(item[props.resStr]))) { changeData.push(item); + dataUseRate(item[props.resStr], 'project'); } }); emit('change', changeData); @@ -133,6 +135,7 @@ const changeFun = () => { listData.value.some((item: any) => { if (choseList.value === String(item[props.resStr])) { changeData = item; + dataUseRate(item[props.resStr], 'project'); return true; } }); diff --git a/src/components/common/userSelect/index.vue b/src/components/common/userSelect/index.vue index 9eadff66..44d98068 100644 --- a/src/components/common/userSelect/index.vue +++ b/src/components/common/userSelect/index.vue @@ -20,6 +20,7 @@