修复绿碳功能问题
parent
3540ec00ee
commit
1a9f23ee0b
|
@ -107,7 +107,7 @@
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="dialog-footer" style="text-align: center;">
|
<div class="dialog-footer" style="text-align: center;">
|
||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
<el-button @click="cancel">取 消</el-button>
|
<el-button @click="doCancel">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
</el-table>
|
</el-table>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="dialog-footer" style="text-align: center;">
|
<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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
@ -211,13 +211,14 @@ const data = reactive({
|
||||||
|
|
||||||
const { queryParams, form, rules } = toRefs(data);
|
const { queryParams, form, rules } = toRefs(data);
|
||||||
/** 查询项目列表 */
|
/** 查询项目列表 */
|
||||||
function getProjectList() {
|
function getProjectList(cb) {
|
||||||
findMyProjectList({ pageNum: 1, pageSize: 100 }).then(response => {
|
findMyProjectList({ pageNum: 1, pageSize: 100 }).then(response => {
|
||||||
data.projects = response.rows;
|
data.projects = response.rows;
|
||||||
if (userStore.currentPrjId) {
|
if (userStore.currentPrjId) {
|
||||||
queryParams.value.projectId = userStore.currentPrjId
|
queryParams.value.projectId = userStore.currentPrjId
|
||||||
data.currentPrjId = userStore.currentPrjId;
|
data.currentPrjId = userStore.currentPrjId;
|
||||||
}
|
}
|
||||||
|
cb && cb();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/** 查询碳因子管理列表 */
|
/** 查询碳因子管理列表 */
|
||||||
|
@ -231,7 +232,7 @@ function getList() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
function cancel() {
|
function doCancel() {
|
||||||
open.value = false;
|
open.value = false;
|
||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
|
@ -364,8 +365,10 @@ const handleFileSuccess = (response, file, fileList) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
getProjectList(()=>{
|
||||||
getList();
|
getList();
|
||||||
getProjectList();
|
});
|
||||||
</script>
|
</script>
|
||||||
<style type="scss">
|
<style type="scss">
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue