From 444ba76f4cca8a9df3faf61ab33ec631aec7fbba Mon Sep 17 00:00:00 2001 From: chengxiangling <291105840@qq.com> Date: 星期五, 16 五月 2025 16:59:12 +0800 Subject: [PATCH] 提交right-toolbar组件事件调用计划运行模块 --- src/views/mainPlan/pipePlanning/index.vue | 25 +++++++++++-------------- 1 files changed, 11 insertions(+), 14 deletions(-) diff --git a/src/views/mainPlan/pipePlanning/index.vue b/src/views/mainPlan/pipePlanning/index.vue index 2bb49cc..3a30e1d 100644 --- a/src/views/mainPlan/pipePlanning/index.vue +++ b/src/views/mainPlan/pipePlanning/index.vue @@ -53,22 +53,13 @@ </el-row> </el-form> <!-- <div class="box_container"> --> - <el-row v-if="!clickedTableRef"> - <!-- <el-col :span="!clickedTableRef?22:20"> - <div class="title_text">{{$t('plan.title.pipePlanCapacity')}}</div> - </el-col> --> - <el-col - :span="24" - style="text-align: right; margin-bottom: 10px" - > - <el-button class="title_btn" type="default" @click="editRowEvent">{{ + <el-row> + <el-col :span="12" style="margin-bottom: 10px"> + <el-button v-if="!clickedTableRef" class="title_btn" plain type="default" @click="editRowEvent">{{ $t("common.common.edit") }}</el-button> - </el-col> - </el-row> - <el-row v-if="clickedTableRef"> - <el-col :span="24" style="text-align: right; margin-bottom: 10px" > <el-button + v-if="clickedTableRef" class="title_btn" type="primary" @click="saveRowEvent" @@ -77,12 +68,18 @@ {{ $t("common.common.save") }} </el-button> <el-button + v-if="clickedTableRef" class="title_btn ml20" type="default" @click="handleCancleStaus" >{{ $t("common.common.cancel") }}</el-button > </el-col> + <right-toolbar + v-model:showSearch="showSearch" + @queryTable="handleQuery" + @resetTable="resetQuery" + ></right-toolbar> </el-row> <vxe-table border @@ -309,7 +306,7 @@ <script setup name="GasPlanning"> // import { ElMessage } from "element-plus"; import { listGasPlan, getGasPlanSave } from "@/api/mainPlan/gasPlanning"; -const height = ref(document.documentElement.clientHeight - 230 + "px;"); +const height = ref(document.documentElement.clientHeight - 210 + "px;"); import { useI18n } from "vue-i18n"; //瑕佸湪js涓娇鐢ㄥ浗闄呭寲 const { t, locale } = useI18n(); const { proxy } = getCurrentInstance(); -- Gitblit v1.9.3