fix(xispeak): 选人组件前端按sortno升序排列,序号越小越靠前
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -52,7 +52,7 @@ async function fetchUserList() {
|
||||
};
|
||||
const res = await defHttp.get({ url: '/sys/user/queryUserRoleComponentData', params });
|
||||
const records = res?.records || res?.result?.records || [];
|
||||
userList.value = records;
|
||||
userList.value = records.sort((a, b) => (a.sortno ?? Infinity) - (b.sortno ?? Infinity));
|
||||
} catch {
|
||||
userList.value = [];
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ onMounted(async () => {
|
||||
};
|
||||
const res = await defHttp.get({ url: '/sys/user/queryUserRoleComponentData', params });
|
||||
const records = res?.records || res?.result?.records || [];
|
||||
userList.value = records;
|
||||
userList.value = records.sort((a, b) => (a.sortno ?? Infinity) - (b.sortno ?? Infinity));
|
||||
} catch {
|
||||
userList.value = [];
|
||||
}
|
||||
|
||||
@@ -448,7 +448,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
|
||||
},
|
||||
});
|
||||
const records = res?.records || res?.result?.records || [];
|
||||
defaultCcUsers.value = records;
|
||||
defaultCcUsers.value = records.sort((a, b) => (a.sortno ?? Infinity) - (b.sortno ?? Infinity));
|
||||
} catch {
|
||||
defaultCcUsers.value = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user