This commit is contained in:
Net 2025-06-17 14:21:13 +08:00
parent 50de9f5794
commit 3287695f52

View File

@ -31,12 +31,6 @@
</view>
<template #bottom>
<view class="flex-row items-center pb-10 pt-5">
<u-button
text="测试计算"
class="ml-15 mr-7"
:plain="true"
@click="calculateAllPositionYears"
/>
<u-button
text="上一步"
class="ml-15 mr-7"
@ -124,7 +118,10 @@ const schema = reactive<FormsSchema[]>([
const years = calculatePositionYears(e.value, endTime);
//
education.xl[formIndex].value.gwrznx = years;
console.log("更新后的任岗年限:", education.xl[formIndex].value.gwrznx);
console.log(
"更新后的任岗年限:",
education.xl[formIndex].value.gwrznx
);
//
forceUpdateKey.value++;
}
@ -149,7 +146,10 @@ const schema = reactive<FormsSchema[]>([
const years = calculatePositionYears(startTime, e.value);
//
education.xl[formIndex].value.gwrznx = years;
console.log("更新后的任岗年限:", education.xl[formIndex].value.gwrznx);
console.log(
"更新后的任岗年限:",
education.xl[formIndex].value.gwrznx
);
//
forceUpdateKey.value++;
}
@ -218,7 +218,7 @@ if (getFile.rgqkList && getFile.rgqkList.length > 0) {
gwrzkstime: item.value.gwrzkstime,
gwrzjstime: item.value.gwrzjstime,
gwrznx: item.value.gwrznx, // 使
来源: "数据库回显"
来源: "数据库回显",
});
});
//
@ -239,7 +239,7 @@ const calculateAllPositionYears = () => {
gwrzkstime: item.value.gwrzkstime,
gwrzjstime: item.value.gwrzjstime,
gwrznx: years,
是否为0: years === "0"
是否为0: years === "0",
});
} else {
//
@ -284,7 +284,7 @@ onMounted(() => {
gwrzkstime: item.value.gwrzkstime,
gwrzjstime: item.value.gwrzjstime,
gwrznx: item.value.gwrznx, // 使
来源: "数据库回显-挂载后"
来源: "数据库回显-挂载后",
});
});
forceUpdateKey.value++;