<template>
  <el-dialog
    custom-class="party-dialog"
    title="详情"
    width="540px"
    :visible.sync="formVisible"
    :before-close="close"
  >
    <div class="dialog-content">
      <el-form
        :model="formItem"
        class="party-form"
        ref="formItem"
        label-width="180px"
        label-position="right"
        :rules="rules"
      >
        <el-form-item label="上传时间：" prop="uploadTime">
          <el-input size="small" v-model="formItem.uploadTime" disabled></el-input>
        </el-form-item>
        <el-form-item label="操作者：" prop="name">
          <el-input size="small" v-model="formItem.name" disabled></el-input>
        </el-form-item>
        <el-form-item label="是否为当前使用版本：" prop="isNew">
          <el-input size="small" v-model="formItem.isNew" disabled></el-input>
        </el-form-item>
        <el-form-item label="版本信息：" prop="version">
          <el-input type="textarea" size="small" v-model="formItem.version" disabled></el-input>
        </el-form-item>
        <el-form-item label="更新内容：" prop="newContent">
          <el-input type="textarea" size="small" v-model="formItem.newContent" disabled></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer btn-group">
        <el-button size="mini" type="primary" @click="close()">确定</el-button>
      </div>
    </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">
@import "../../../../style/dialog.less";
</style>