chengxiangling
2025-05-16 444ba76f4cca8a9df3faf61ab33ec631aec7fbba
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();