|
|
@@ -87,6 +87,7 @@ import { useImageSimpleUploadCo } from '@/common/components/upload/ImageUploadCo
|
|
|
|
|
|
const { querys } = useLoadQuerys({
|
|
|
id: 0,
|
|
|
+ userId: 0,
|
|
|
}, () => {
|
|
|
loader.load();
|
|
|
});
|
|
|
@@ -207,7 +208,7 @@ const levelTitle = computed(() => {
|
|
|
});
|
|
|
const loader = useSimpleDataLoader(async () => {
|
|
|
if (querys.value.id > 0) {
|
|
|
- const detail = await AssessmentContentApi.getAgreementDetail(querys.value.id);
|
|
|
+ const detail = await AssessmentContentApi.getAgreementDetail(querys.value.id, querys.value.userId);
|
|
|
currentAgreement.value = detail;
|
|
|
partyAStampDate.value = { year: '', month: '', day: '' };
|
|
|
partyBSignDate.value = { year: '', month: '', day: '' };
|
|
|
@@ -220,7 +221,10 @@ const loader = useSimpleDataLoader(async () => {
|
|
|
const currentYear = new Date().getFullYear();
|
|
|
if (list.data.length > 0) {
|
|
|
const currentYearItem = list.data.find((item) => item.year === currentYear);
|
|
|
- const detail = await AssessmentContentApi.getAgreementDetail(currentYearItem?.id || list.data[0].id);
|
|
|
+ const detail = await AssessmentContentApi.getAgreementDetail(
|
|
|
+ currentYearItem?.id || list.data[0].id,
|
|
|
+ currentYearItem?.userId || authStore.userInfo?.id
|
|
|
+ );
|
|
|
currentAgreement.value = detail;
|
|
|
partyAStampDate.value = { year: '', month: '', day: '' };
|
|
|
partyBSignDate.value = { year: detail.updatetime.getFullYear().toString(), month: (detail.updatetime.getMonth() + 1).toString(), day: detail.updatetime.getDate().toString() };
|