<template>
  <div class="app-container">
    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
        >新增</el-button>
      </el-col>
<!--      <el-col :span="1.5">-->
<!--        <el-button-->
<!--          type="success"-->
<!--          icon="el-icon-edit"-->
<!--          size="mini"-->
<!--          :disabled="single"-->
<!--          @click="handleUpdate"-->
<!--        >修改</el-button>-->
<!--      </el-col>-->
<!--      <el-col :span="1.5">-->
<!--        <el-button-->
<!--          type="danger"-->
<!--          icon="el-icon-delete"-->
<!--          size="mini"-->
<!--          :disabled="multiple"-->
<!--          @click="handleDelete"-->
<!--        >删除</el-button>-->
<!--      </el-col>-->
    </el-row>
    <el-dialog
      :title="viewTitle"
      :visible.sync="viewOpen"
      width="1200px"
      append-to-body
      :close-on-click-modal="false"
    >
    <el-descriptions
      class="margin-top"
      :column="2"
      border
      :labelStyle="{
        'text-align': 'left',
        width: '180px',
        height: '50px',
      }"
      :contentStyle="{ minWidth: '350px' }"
    >
      <el-descriptions-item>
        <template slot="label"> 堤防横断面代码 </template>
        {{ this.form.bntrCode }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 测量日期 </template>
        {{ this.form.srDate }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 断面桩号 </template>
        {{ this.form.trCh }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 起始断面位置 </template>
        {{ this.form.intrPl }}
      </el-descriptions-item>

      <el-descriptions-item>
        <template slot="label"> 起始断面桩号 </template>
        {{ this.form.intrCh }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 至起始断面距离 </template>
        {{ this.form.tointrDs }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 起测点位置 </template>
        {{ this.form.jmsrpnPl }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 起测点高程 </template>
        {{ this.form.jmsrpneLev }}
      </el-descriptions-item>

      <el-descriptions-item>
        <template slot="label"> 堤身土质 </template>
        {{ this.form.bnbdSlch }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 堤身防渗形式 </template>
        {{ this.form.bnbdAntp }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 堤基地质 </template>
        {{ this.form.bnbsGl }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 堤基防渗形式 </template>
        {{ this.form.bnbsAntp }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 堤身净高度 </template>
        {{ this.form.bnbdHigh }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 堤顶高程 </template>
        {{ this.form.bntpeLev }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 堤顶超高 </template>
        {{ this.form.bntpFr }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 堤顶宽度 </template>
        {{ this.form.bntpWd }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 迎河面堤脚高程 </template>
        {{ this.form.upbnToel }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 背河面堤脚高程 </template>
        {{ this.form.dwbnToel }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 迎河坡坡比 </template>
        {{ this.form.upslSlrt }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 背河坡坡比 </template>
        {{ this.form.dwslSlrt }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 迎河坡护坡情况 </template>
        {{ this.form.uspsIn }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 背河坡护坡情况 </template>
        {{ this.form.dspsIn }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 迎河面滩地宽度 </template>
        {{ this.form.upbtWide }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 迎河面平台(前戗)顶高程 </template>
        {{ this.form.ufrteLev }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 迎河面平台(前戗)顶宽 </template>
        {{ this.form.ufrtWide }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 迎河面平台(前戗)坡度 </template>
        {{ this.form.upflRfsl }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 背河面平台(后戗)顶高程 </template>
        {{ this.form.dfrtEl }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 背河面平台(后戗)顶宽 </template>
        {{ this.form.dfrtWide }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 背河面平台(后戗)坡度 </template>
        {{ this.form.dwflRfsl }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label"> 备注 </template>
        {{ this.form.note }}
      </el-descriptions-item>
    </el-descriptions>
    </el-dialog>
    <el-table
      v-loading="loading"
      :data="hdmtzzList"
      @selection-change="handleSelectionChange"
    >
      <el-table-column
        label="序号"
        type="index"
        width="50"
        align="center"
        fixed
      />
      <el-table-column
        label="堤防横断面代码"
        align="center"
        prop="bntrCode"
        min-width="120"
      />
      <el-table-column
        label="测量日期"
        align="center"
        prop="srDate"
        min-width="120"
      />
      <el-table-column
        label="断面桩号"
        align="center"
        prop="trCh"
        min-width="120"
      />
      <el-table-column
        label="起始断面位置"
        align="center"
        prop="intrPl"
        min-width="120"
      />
      <el-table-column
        label="起始断面桩号"
        align="center"
        prop="intrCh"
        min-width="120"
      />
      <el-table-column
        label="至起始断面距离"
        align="center"
        prop="tointrDs"
        min-width="120"
      />
      <el-table-column
        label="起测点位置"
        align="center"
        prop="jmsrpnPl"
        min-width="120"
      />
      <el-table-column
        label="起测点高程"
        align="center"
        prop="jmsrpneLev"
        min-width="120"
      />
      <el-table-column
        label="堤身土质"
        align="center"
        prop="bnbdSlch"
        min-width="120"
      />
      <el-table-column
        label="堤身防渗形式"
        align="center"
        prop="bnbdAntp"
        min-width="120"
      />
      <el-table-column
        label="堤基地质"
        align="center"
        prop="bnbsGl"
        min-width="120"
      />
      <el-table-column
        label="堤基防渗形式"
        align="center"
        prop="bnbsAntp"
        min-width="120"
      />
      <el-table-column
        label="堤身净高度"
        align="center"
        prop="bnbdHigh"
        min-width="120"
      />
      <el-table-column
        label="堤顶高程"
        align="center"
        prop="bntpeLev"
        min-width="120"
      />
      <el-table-column
        label="堤顶超高"
        align="center"
        prop="bntpFr"
        min-width="120"
      />
      <el-table-column
        label="堤顶宽度"
        align="center"
        prop="bntpWd"
        min-width="120"
      />
      <el-table-column
        label="迎河面堤脚高程"
        align="center"
        prop="upbnToel"
        min-width="120"
      />
      <el-table-column
        label="背河面堤脚高程"
        align="center"
        prop="dwbnToel"
        min-width="120"
      />
      <el-table-column
        label="迎河坡坡比"
        align="center"
        prop="upslSlrt"
        min-width="120"
      />
      <el-table-column
        label="背河坡坡比"
        align="center"
        prop="dwslSlrt"
        min-width="120"
      />
      <el-table-column
        label="迎河坡坡比"
        align="center"
        prop="upslSlrt"
        min-width="120"
      />
      <el-table-column
        label="迎河坡护坡情况"
        align="center"
        prop="uspsIn"
        min-width="120"
      />
      <el-table-column
        label="背河坡护坡情况"
        align="center"
        prop="dspsIn"
        min-width="120"
      />
      <el-table-column
        label="迎河面滩地宽度"
        align="center"
        prop="upbtWide"
        min-width="120"
      />
      <el-table-column
        label="迎河面滩地宽度"
        align="center"
        prop="upbtWide"
        min-width="120"
      />
      <el-table-column
        label="迎河面平台(前戗)顶高程"
        align="center"
        prop="ufrteLev"
        min-width="120"
      />
      <el-table-column
        label="迎河面平台(前戗)顶宽"
        align="center"
        prop="ufrtWide"
        min-width="120"
      />
      <el-table-column
        label="迎河面平台(前戗)坡度"
        align="center"
        prop="upflRfsl"
        min-width="120"
      />
      <el-table-column
        label="背河面平台(后戗)顶高程"
        align="center"
        prop="dfrtEl"
        min-width="120"
      />
      <el-table-column
        label="背河面平台(后戗)顶高程"
        align="center"
        prop="dfrtEl"
        min-width="120"
      />
      <el-table-column
        label="背河面平台(后戗)顶宽"
        align="center"
        prop="dfrtWide"
        min-width="120"
      />
      <el-table-column
        label="背河面平台(后戗)坡度"
        align="center"
        prop="dwflRfsl"
        min-width="120"
      />
      <el-table-column
        label="备注"
        align="center"
        prop="note"
        min-width="120"
      />
      <!-- <el-table-column
        label="责任人类型"
        align="center"
        prop="personResponsibleType"
        :formatter="personResponsibleTypeFormat"
        min-width="120"
      /> -->

      <el-table-column
        label="操作"
        align="center"
        class-name="small-padding fixed-width"
        width="180"
        fixed="right"
      >
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-view"
            @click="viewInFo(scope.row)"
          >查看</el-button
          >
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            >修改</el-button
          >
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            >删除</el-button
          >
        </template>
      </el-table-column>
    </el-table>

    <el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body :close-on-click-modal="false">
      <el-form ref="form" :model="form" :rules="rules" label-width="200px">
        <el-form-item label="堤防横断面代码" prop="bntrCode">
          <el-input v-model="form.bntrCode" placeholder="请输入堤防横断面代码" />
        </el-form-item>
        <el-form-item label="测量日期" prop="srDate">
          <el-date-picker
            size="small"
            v-model="form.srDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="选择时间"
          >
          </el-date-picker>
        </el-form-item>
        <el-form-item label="断面桩号" prop="trCh">
          <el-input v-model="form.trCh" placeholder="请输入断面桩号" />
        </el-form-item>
        <el-form-item label="起始断面位置" prop="intrPl">
          <el-input v-model="form.intrPl" placeholder="请输入起始断面位置" />
        </el-form-item>
        <el-form-item label="起始断面桩号" prop="intrCh">
          <el-input v-model="form.intrCh" placeholder="请输入起始断面桩号" />
        </el-form-item>
        <el-form-item label="至起始断面距离" prop="tointrDs">
          <el-input v-model="form.tointrDs" placeholder="请输入至起始断面距离" />
        </el-form-item>
        <el-form-item label="起测点位置" prop="jmsrpnPl">
          <el-input v-model="form.jmsrpnPl" placeholder="请输入起测点位置" />
        </el-form-item>
        <el-form-item label="起测点高程" prop="jmsrpneLev">
          <el-input v-model="form.jmsrpneLev" placeholder="请输入起测点高程" />
        </el-form-item>
        <el-form-item label="堤身土质" prop="bnbdSlch">
          <el-input v-model="form.bnbdSlch" placeholder="请输入堤身土质" />
        </el-form-item>
        <el-form-item label="堤身防渗形式" prop="bnbdAntp">
          <el-input v-model="form.bnbdAntp" placeholder="请输入堤身防渗形式" />
        </el-form-item>
        <el-form-item label="堤基地质" prop="bnbsGl">
          <el-input v-model="form.bnbsGl" placeholder="请输入堤基地质" />
        </el-form-item>
        <el-form-item label="堤基防渗形式" prop="bnbsAntp">
          <el-input v-model="form.bnbsAntp" placeholder="请输入堤基防渗形式" />
        </el-form-item>
        <el-form-item label="堤身净高度" prop="bnbdHigh">
          <el-input v-model="form.bnbdHigh" placeholder="请输入堤身净高度" />
        </el-form-item>
        <el-form-item label="堤顶高程" prop="bntpeLev">
          <el-input v-model="form.bntpeLev" placeholder="请输入堤顶高程" />
        </el-form-item>
        <el-form-item label="堤顶超高" prop="bntpFr">
          <el-input v-model="form.bntpFr" placeholder="请输入堤顶超高" />
        </el-form-item>
        <el-form-item label="堤顶宽度" prop="bntpWd">
          <el-input v-model="form.bntpWd" placeholder="请输入堤顶宽度" />
        </el-form-item>
        <el-form-item label="迎河面堤脚高程" prop="upbnToel">
          <el-input v-model="form.upbnToel" placeholder="请输入迎河面堤脚高程" />
        </el-form-item>
        <el-form-item label="背河面堤脚高程" prop="dwbnToel">
          <el-input v-model="form.dwbnToel" placeholder="请输入背河面堤脚高程" />
        </el-form-item>
        <el-form-item label="迎河坡坡比" prop="upslSlrt">
          <el-input v-model="form.upslSlrt" placeholder="请输入迎河坡坡比" />
        </el-form-item>
        <el-form-item label="背河坡坡比" prop="dwslSlrt">
          <el-input v-model="form.dwslSlrt" placeholder="请输入背河坡坡比" />
        </el-form-item>
        <!-- <el-form-item label="迎河坡坡比" prop="upslSlrt">
          <el-input v-model="form.upslSlrt" placeholder="请输入迎河坡坡比" />
        </el-form-item> -->
        <el-form-item label="迎河坡护坡情况" prop="uspsIn">
          <el-input v-model="form.uspsIn" placeholder="请输入迎河坡护坡情况" />
        </el-form-item>
        <el-form-item label="背河坡护坡情况" prop="dspsIn">
          <el-input v-model="form.dspsIn" placeholder="请输入背河坡护坡情况" />
        </el-form-item>
        <el-form-item label="迎河面滩地宽度" prop="upbtWide">
          <el-input v-model="form.upbtWide" placeholder="请输入迎河面滩地宽度" />
        </el-form-item>
        <el-form-item label="迎河面平台(前戗)顶高程" prop="ufrteLev">
          <el-input v-model="form.ufrteLev" placeholder="迎河面平台(前戗)顶高程" />
        </el-form-item>
        <el-form-item label="迎河面平台(前戗)顶宽" prop="department">
          <el-input v-model="form.ufrtWide" placeholder="请输入迎河面平台(前戗)顶宽" />
        </el-form-item>
        <el-form-item label="迎河面平台(前戗)坡度" prop="upflRfsl">
          <el-input v-model="form.upflRfsl" placeholder="请输入迎河面平台(前戗)坡度" />
        </el-form-item>
        <el-form-item label="背河面平台(后戗)顶高程" prop="dfrtEl">
          <el-input v-model="form.dfrtEl" placeholder="请输入背河面平台(后戗)顶高程" />
        </el-form-item>
        <el-form-item label="背河面平台(后戗)顶宽" prop="dfrtWide">
          <el-input v-model="form.dfrtWide" placeholder="请输入背河面平台(后戗)顶宽" />
        </el-form-item>
        <el-form-item label="背河面平台(后戗)坡度" prop="dwflRfsl">
          <el-input v-model="form.dwflRfsl" placeholder="请输入背河面平台(后戗)坡度" />
        </el-form-item>
        <el-form-item label="备注" prop="note">
          <el-input v-model="form.note" placeholder="请输入备注" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
    <!-- <div class="btnList">
      <el-button type="primary" @click="submitForm">确 定</el-button>
      <el-button @click="cancel">取 消</el-button>
    </div> -->
  </div>
</template>

<script>
import {
  listHdmtzz,
  getHdmtzz,
  delHdmtzz,
  addHdmtzz,
  updateHdmtzz,
  exportHdmtzz,
} from "@/api/yg/dike/hdmtzz";
import LinkDike from "../../../../../components/linkNameSelect/linkDike.vue";
import LineUser from "../../../../../components/linkNameSelect/lineUser.vue";

export default {
  name: "Hdmtzz",
  components: {LineUser, LinkDike},
  props: ["dikeCode"],
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      viewTitle: "",
      // 是否显示弹出层
      viewOpen: false,
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 横断面特征值表格数据
      hdmtzzList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,

      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        ids: null,
        data: {
          dikeCode: null,
          bntrCode: null,
          srDate: null,
          trCh: null,
          intrPl: null,
          intrCh: null,
          tointrDs: null,
          jmsrpnPl: null,
          jmsrpneLev: null,
          bnbdSlch: null,
          bnbdAntp: null,
          bnbsGl: null,
          bnbsAntp: null,
          bnbdHigh:null,
          bnbdHigh: null,
          bntpeLev: null,
          bntpFr: null,
          bntpWd: null,
          upbnToel: null,
          dwbnToel: null,
          upslSlrt: null,
          dwslSlrt: null,
          uspsIn: null,
          dspsIn: null,
          upbtWide: null,
          ufrteLev: null,
          ufrtWide: null,
          upflRfsl: null,
          dfrtEl: null,
          dfrtWide: null,
          dwflRfsl: null,
          note: null,
          effDate: null,
          exprDate: null,
          createUid: null,
          updateUid: null,
          owerDept: null,
          relation: null,
        },
        // 排序方式
        params: {
          // 按哪个字段排序
          orderBy: "create_time",
          // desc降序，升序asc
          sortBy: "desc",
        },
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {},
    };
  },
  created() {
    this.getList();
  },
  methods: {
    viewInFo(row) {
      this.form = row;
      this.viewTitle = "横断面特征值信息";
      this.viewOpen = true;
    },
    /** 查询横断面特征值列表 */
    getList() {
      this.loading=true
      this.queryParams.data.dikeCode = this.dikeCode;
      listHdmtzz(this.queryParams).then((response) => {
        if (response.records) {
          this.hdmtzzList = response.records;
          this.loading=false
        }
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        id: null,
        dikeCode: null,
        bntrCode: null,
        srDate: null,
        trCh: null,
        intrPl: null,
        intrCh: null,
        tointrDs: null,
        jmsrpnPl: null,
        jmsrpneLev: null,
        bnbdSlch: null,
        bnbdAntp: null,
        bnbsGl: null,
        bnbsAntp: null,
        bnbdHigh: null,
        bntpeLev: null,
        bntpFr: null,
        bntpWd: null,
        upbnToel: null,
        dwbnToel: null,
        upslSlrt: null,
        dwslSlrt: null,
        uspsIn: null,
        dspsIn: null,
        upbtWide: null,
        ufrteLev: null,
        ufrtWide: null,
        upflRfsl: null,
        dfrtEl: null,
        dfrtWide: null,
        dwflRfsl: null,
        note: null,
        effDate: null,
        exprDate: null,
        createUid: null,
        updateUid: null,
        createTime: null,
        updateTime: null,
        owerDept: null,
        remark: null,
        relation: null,
      };
      this.resetForm("form");
    },
    // 查询表单重置
    resetQueryForm() {
      this.queryParams = {
        pageNum: 1,
        pageSize: 10,
        data: {
          id: null,
          dikeCode: null,
          bntrCode: null,
          srDate: null,
          trCh: null,
          intrPl: null,
          intrCh: null,
          tointrDs: null,
          jmsrpnPl: null,
          jmsrpneLev: null,
          bnbdSlch: null,
          bnbdAntp: null,
          bnbsGl: null,
          bnbsAntp: null,
          bnbdHigh: null,
          bntpeLev: null,
          bntpFr: null,
          bntpWd: null,
          upbnToel: null,
          dwbnToel: null,
          upslSlrt: null,
          dwslSlrt: null,
          uspsIn: null,
          dspsIn: null,
          upbtWide: null,
          ufrteLev: null,
          ufrtWide: null,
          upflRfsl: null,
          dfrtEl: null,
          dfrtWide: null,
          dwflRfsl: null,
          note: null,
          effDate: null,
          exprDate: null,
          createUid: null,
          updateUid: null,
          createTime: null,
          updateTime: null,
          owerDept: null,
          remark: null,
          relation: null,
        },
        // 排序方式
        params: {
          // 按哪个字段排序
          orderBy: "create_time",
          // desc降序，升序asc
          sortBy: "desc",
        },
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetQueryForm();
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map((item) => item.id);
      this.single = selection.length !== 1;
      this.multiple = !selection.length;
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加横断面特征值";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const id = row.id || this.ids;
      getHdmtzz(id).then((response) => {
        this.form = response.data;
        this.open = true;
        this.title = "修改横断面特征值";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate((valid) => {
        if (valid) {
          this.form.dikeCode = this.dikeCode;
          if (this.form.id != null) {
            updateHdmtzz(this.form).then((response) => {
              if (response.code === 200) {
                this.msgSuccess("修改成功");
                this.open = false;
                this.getList();
              }
            });
          } else {
            this.form.dikeCode = this.dikeCode;
            addHdmtzz(this.form).then((response) => {
              if (response.code === 200) {
                this.msgSuccess("新增成功");
                this.open = false;
                this.getList();
              }
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const ids = row.id || this.ids;
      if (ids) {
        this.$confirm("是否删除选中的数据？", "警告", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning",
        })
          .then(function () {
            return delHdmtzz(ids);
          })
          .then(() => {
            this.getList();
            this.msgSuccess("删除成功");
          })
          .catch(function () {});
      } else {
        this.$message.warning("请选择要删除的数据！！");
      }
    },
    /** 导出按钮操作 */
    handleExport() {
      const queryParams = this.queryParams;
      let message = "是否确认导出所有的数据项?";
      if (this.ids) {
        message = "是否确认导出选中的数据项?";
        queryParams.ids = this.ids;
      }
      this.$confirm(message, "警告", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      })
        .then(function () {
          return exportHdmtzz(queryParams);
        })
        .then((response) => {
          this.downloadFile(response, true, response.msg);
          // this.download(response.msg);
        })
        .catch(function () {});
    },
  },
};
</script>
<style lang="scss" scoped>
.btnList {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1;
}
</style>
