<template>
  <el-dialog
    custom-class="party-dialog"
    title="详情"
    width="468px"
    :visible.sync="formVisible"
    :before-close="close"
  >
    <div class="dialog-content">
      <el-form
        :model="formItem"
        class="party-form version-detail"
        ref="formItem"
        label-position="top"
      >
        <el-form-item label="上传时间：" prop="createTime">
          <span class="input-item">{{formItem.createTime}}</span>
        </el-form-item>
        <el-form-item label="操作者：" prop="userName">
          <span class="input-item">{{formItem.userName}}</span>
        </el-form-item>
        <el-form-item label="是否为当前使用版本：">
          <span class="input-item">{{formItem.isCurrent ? '是' : '否'}}</span>
        </el-form-item>
        <el-form-item label="版本信息：" prop="versionInfo">
          <span class="input-item">{{formItem.versionInfo}}</span>
        </el-form-item>
        <el-form-item label="更新内容：" prop="updateLog">
          <span class="input-item">{{formItem.updateLog}}</span>
        </el-form-item>
      </el-form>
    </div>
    <div slot="footer" class="dialog-footer btn-group">
      <el-button size="mini" type="primary" @click="close()">关 闭</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      formVisible: false,
      formItem: {},
    };
  },
  methods: {
    backFn(item) {
      this.formVisible = true
      this.formItem = item
    },
    // 关闭
    close() {
      this.formVisible = false
    },
  },
};
</script>

<style lang="less">
.version-detail {
  .input-item {
    font-size: 16px;
    color:#333;
  }
}

</style>