修复绿碳功能问题
parent
3540ec00ee
commit
1a9f23ee0b
|
@ -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">
|
||||
|
||||
|
|
Loading…
Reference in New Issue