<template>
  <!-- 时长分析详情 -->
  <el-drawer
    :title="`[` + form.lineNm + `]时长分析`"
    :visible.sync="visible"
    :size="650"
    destroy-on-close
    @closed="visible = false"
  >
    <el-container v-loading="loading">
      <el-main>
        <el-form>
          <el-row :gutter="24">
            <el-col :lg="24">
              <el-form-item label="事件序号" prop="eventSn"
                >{{ form.eventSn }}
              </el-form-item>
            </el-col>
            <el-col :lg="24">
              <el-form-item label="停电原因" prop="stopReason"
                >{{ form.stopReason }}
              </el-form-item>
            </el-col>
          </el-row>
          <el-row :gutter="24">
            <el-col :lg="12">
              <el-form-item label="线路名称" prop="lineNm"
                >{{ form.lineNm }}
              </el-form-item>
            </el-col>
            <!-- <el-col :lg="12">
              <el-form-item label="主分支名称" prop="branchName"
                >{{ form.branchName }}
              </el-form-item>
            </el-col> -->
            <el-col :lg="12">
              <el-form-item label="数据状态" prop="excpStDsc"
                >{{ form.excpStDsc }}
              </el-form-item>
            </el-col>
          </el-row>
          <el-row :gutter="24">
            <el-col :lg="12">
              <el-form-item label="推送状态" prop="pushStDsc"
                >{{ form.pushStDsc }}
              </el-form-item>
            </el-col>
            <el-col :lg="12">
              <el-form-item label="是否可维护" prop="isEdit">
                <el-tag v-if="form.isEdit == '1'">是</el-tag>
                <el-tag v-else>否</el-tag>
              </el-form-item>
            </el-col>
            <el-col :lg="12">
              <el-form-item label="是否纯专变" prop="isPrivEvent">
                <el-tag v-if="form.isPrivEvent == '1'">是</el-tag>
                <el-tag v-else>否</el-tag>
              </el-form-item>
            </el-col>
            <el-col :lg="12">
              <el-form-item label="事件类型" prop="endEventTypDsc"
                >{{ form.endEventTypDsc }}
              </el-form-item>
            </el-col>
          </el-row>
          <el-row :gutter="24">
            <el-col :lg="12">
              <el-form-item label="停电起始时间" prop="poweroffStartTm"
                >{{ form.poweroffStartTm }}
              </el-form-item>
            </el-col>
            <el-col :lg="12">
              <el-form-item label="停电终止时间" prop="poweroffTermTm"
                >{{ form.poweroffTermTm }}
              </el-form-item>
            </el-col>
          </el-row>
          <el-row :gutter="24">
            <el-col :lg="12">
              <el-form-item label="停电时户数" prop="hourNum"
                >{{ form.hourNum }}
              </el-form-item>
            </el-col>
            <el-col :lg="12">
              <el-form-item label="研判停电性质" prop="judgePoweroffNatureDsc">
                {{ form.judgePoweroffNatureDsc }}
              </el-form-item>
            </el-col>
          </el-row>
          <el-row :gutter="24">
            <el-col :lg="12">
              <el-form-item label="所属市公司" prop="stdCityOrgNm"
                >{{ form.stdCityOrgNm }}
              </el-form-item>
            </el-col>
            <el-col :lg="12">
              <el-form-item label="所属县公司" prop="stdCountyOrgNm"
                >{{ form.stdCountyOrgNm }}
              </el-form-item>
            </el-col>
          </el-row>
          <el-row :gutter="24">
            <el-col :lg="12">
              <el-form-item label="单位编码" prop="orgNo"
                >{{ form.orgNo }}
              </el-form-item>
            </el-col>
            <el-col :lg="12">
              <el-form-item label="变电站名称" prop="subsNm"
                >{{ form.subsNm }}
              </el-form-item>
            </el-col>
          </el-row>
          <el-row :gutter="24">
            <el-col :lg="12">
              <el-form-item label="停电户次数" prop="householdNum"
                >{{ form.householdNum }}
              </el-form-item>
            </el-col>
            <el-col :lg="12">
              <el-form-item label="停电线次数" prop="lineNum"
                >{{ form.lineNum }}
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
        <el-footer style="text-align: center">
          <el-button @click="visible = false">关闭</el-button>
        </el-footer>
      </el-main>
    </el-container>
  </el-drawer>
</template>

<script>
export default {
  emits: ["success", "closed"],
  components: {},
  data() {
    return {
      loading: false,
      form: {},
      visible: false,
      isSaveing: false,
      stopTypeList: [],
    };
  },
  mounted() {},
  methods: {
    //显示
    async openModel(row) {
      this.visible = true;
      this.form = { ...row };
      // 风险类型
      const { data } = await this.getDicts("stop_type");
      this.stopTypeList = data;
    },
  },
};
</script>

<style></style>
