taskid:099 remark:'commit'

This commit is contained in:
fks-xuxinyue
2024-07-24 15:17:34 +08:00
parent 7869b083c3
commit 2d96bbda3b
5 changed files with 217 additions and 106 deletions

View File

@@ -5,7 +5,7 @@
</div>
<!-- 填报页 -->
<div v-if="fillInPage">
<fillIn />
<fillIn :reportId="reportId" :year="year" @change-data="updateData" />
</div>
<!-- 新增报告弹窗 -->
<a-drawer
@@ -61,8 +61,8 @@
return http.post(api, params);
};
// 判断展示哪个页面
const isMainPage = ref(false);
const fillInPage = ref(true);
const isMainPage = ref(true);
const fillInPage = ref(false);
// 新增相关数据
const visible = ref(false);
const formState = ref({})
@@ -104,6 +104,8 @@
// 表格相关数据
const data = ref([]);
const mainRef = ref();
const reportId = ref();
const year = ref();
const tableConfig = ref({
title: '数据库',
api: carbonInventoryCheck.carbonInventoryList,
@@ -172,6 +174,8 @@
handle: (record: any) => {
isMainPage.value = false
fillInPage.value = true
reportId.value = record.id
year.value = record.reportYear
},
},
{
@@ -217,7 +221,11 @@
},
rowKey: 'id',
});
// 填报页
// 填报页点击返回
const updateData = (newDataOne,newDataTwo) => {
isMainPage.value = newDataOne
fillInPage.value = newDataTwo
};
</script>
<style lang="less" scoped>