This commit is contained in:
2025-09-26 16:08:38 +08:00
parent 5208ce4fde
commit 39177fbd7d
10 changed files with 220 additions and 373 deletions

View File

@ -13,10 +13,10 @@
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight"
:key="pageData.keyCount" :tableConfiger="pageData.tableConfiger" :controlsWidth="pageData.controlsWidth">
<template #sflz="{ row }">
<DictTag :value="row.newSflz" :options="D_BZ_SF" />
<span>{{ row.sflz == 1 ? '离职' : '在职' }}</span>
</template>
<template #gw="{ row }">
<DictTag :value="row.gw" :options="D_BAXX_GWLX" />
<DictTag :value="row.gw" :tag="false" :options="D_BAXX_GWLX" />
</template>
<!-- 操作 -->
<template #controls="{ row }">
@ -150,21 +150,12 @@ const handleDelete = async (ids) => {
};
const getList = async () => {
try {
pageData.tableConfiger.loading = true;
const res = await qcckPost({
...pageData.pageConfiger,
...queryFrom.value
}, `/mosty-base/baxx/cyry/page`)
if(res) {
// 处理sflz为null默认为0
pageData.tableData = res.records?.map(i => ({ ...i, newSflz: i?.sflz === null ? 0 : i.sflz })) || [];
pageData.total = res.total;
}
} finally {
pageData.tableConfiger.loading = false;
}
pageData.tableConfiger.loading = true;
let params = { ...pageData.pageConfiger, ...queryFrom.value }
const res = await qcckPost(params, `/mosty-base/baxx/cyry/page`)
pageData.tableData = res.records || []
pageData.total = res.total;
pageData.tableConfiger.loading = false;
}
const changeNo = (val) => {