<!-- 电力碳核算 --> <script lang="ts" setup name="electricCount"> import page from './page.vue' import tableList from './table.vue' import result from './components/result.vue' const isShowTable = ref(true) const resultFun = () => { isShowTable.value = !isShowTable.value } </script> <template> <div v-show="isShowTable"> <page /> <table-list /> <div style="position: fixed; right: 100px; bottom: 22px;z-index: 99;"> <el-button size="large"> 保存 </el-button> <el-button size="large" type="primary" @click="resultFun"> 计算结果 </el-button> </div> </div> <result v-show="!isShowTable" @bak="resultFun" /> </template>