修复绿碳功能问题

dev_xd
haha 2025-02-06 22:28:43 +08:00
parent 3540ec00ee
commit 1a9f23ee0b
1 changed files with 9 additions and 6 deletions

View File

@ -107,7 +107,7 @@
<template #footer>
<div class="dialog-footer" style="text-align: center;">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
<el-button @click="doCancel"> </el-button>
</div>
</template>
</el-dialog>
@ -132,7 +132,7 @@
</el-table>
<template #footer>
<div class="dialog-footer" style="text-align: center;">
<el-button type="primary" @click="open=false"> </el-button>
<el-button type="primary" @click="data.openImport=false"> </el-button>
</div>
</template>
</el-dialog>
@ -211,13 +211,14 @@ const data = reactive({
const { queryParams, form, rules } = toRefs(data);
/** 查询项目列表 */
function getProjectList() {
function getProjectList(cb) {
findMyProjectList({ pageNum: 1, pageSize: 100 }).then(response => {
data.projects = response.rows;
if (userStore.currentPrjId) {
queryParams.value.projectId = userStore.currentPrjId
data.currentPrjId = userStore.currentPrjId;
}
cb && cb();
});
}
/** 查询碳因子管理列表 */
@ -231,7 +232,7 @@ function getList() {
}
//
function cancel() {
function doCancel() {
open.value = false;
reset();
}
@ -364,8 +365,10 @@ const handleFileSuccess = (response, file, fileList) => {
};
getProjectList(()=>{
getList();
getProjectList();
});
</script>
<style type="scss">