<template>
  <view class="container">
    <view>
      <view class="info_mainer">
        <view class="wrap">
          <view class="tit">
            <view class="u-line-2">{{ info.CORP_NAME }}</view>
          </view>

          <view class="text">
            <text>作业类型:</text>
            {{ info.OPERATION_TYPE }}
          </view>
          <view class="text">
            <text>作业内容:</text>
            {{ info.OPERATION_CONTENT }}
          </view>
          <view class="text">
            <text>作业时间:</text>
            {{ info.OPERATION_TIME }}至 {{ info.OPERATION_TIME_END }}
          </view>
        </view>
      </view>
    </view>
  </view>
</template>
<script>
import { getAppSafeOperationManagementSafeOperationDisplayData } from "@/api";

export default {
  data() {
    return {
      SAFEOPERATIONMANAGEMENT_ID: "",
      info: {},
    };
  },
  onLoad(query) {
    this.SAFEOPERATIONMANAGEMENT_ID = query.SAFEOPERATIONMANAGEMENT_ID;
    this.fnGetData();
  },
  methods: {
    async fnGetData() {
      const resData =
        await getAppSafeOperationManagementSafeOperationDisplayData({
          SAFEOPERATIONMANAGEMENT_ID: this.SAFEOPERATIONMANAGEMENT_ID,
        });
      this.info = resData.pd;
    },
  },
};
</script>

<style scoped lang="scss">
.fcg {
  color: #489b27;
  font-weight: normal;
}

.fcr {
  color: #ff0000;
  font-weight: normal;
}

.container {
  width: 100%;
  height: calc(100vh - 45px);
  background: #fafafa;

  .info_mainer {
    width: 100%;
    margin-top: 20upx;

    .wrap {
      width: 100%;
      background: #ffffff;
      margin-bottom: 20upx;
      padding: 20upx;
      line-height: 2;
      box-sizing: border-box;

      .info_main {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
      }

      .tit {
        font-weight: bold;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .text text {
        color: #999999;
        margin-right: 10upx;
      }
    }
  }
}
</style>
