detailDialog.vue 1.67 KB
Newer Older
1 2 3 4
<template>
  <el-dialog
    custom-class="party-dialog"
    title="详情"
乐宝呗666's avatar
乐宝呗666 committed
5
    width="468px"
6 7 8 9 10 11
    :visible.sync="formVisible"
    :before-close="close"
  >
    <div class="dialog-content">
      <el-form
        :model="formItem"
乐宝呗666's avatar
乐宝呗666 committed
12
        class="party-form version-detail"
13
        ref="formItem"
乐宝呗666's avatar
乐宝呗666 committed
14
        label-position="top"
15
      >
qzhxx's avatar
qzhxx committed
16
        <el-form-item label="上传时间:" prop="createTime">
乐宝呗666's avatar
乐宝呗666 committed
17
          <span class="input-item">{{formItem.createTime}}</span>
18
        </el-form-item>
qzhxx's avatar
qzhxx committed
19
        <el-form-item label="操作者:" prop="userName">
乐宝呗666's avatar
乐宝呗666 committed
20
          <span class="input-item">{{formItem.userName}}</span>
21
        </el-form-item>
qzhxx's avatar
qzhxx committed
22
        <el-form-item label="是否为当前使用版本:">
乐宝呗666's avatar
乐宝呗666 committed
23
          <span class="input-item">{{formItem.isCurrent ? '是' : '否'}}</span>
24
        </el-form-item>
qzhxx's avatar
qzhxx committed
25
        <el-form-item label="版本信息:" prop="versionInfo">
乐宝呗666's avatar
乐宝呗666 committed
26
          <span class="input-item">{{formItem.versionInfo}}</span>
27
        </el-form-item>
qzhxx's avatar
qzhxx committed
28
        <el-form-item label="更新内容:" prop="updateLog">
乐宝呗666's avatar
乐宝呗666 committed
29
          <span class="input-item">{{formItem.updateLog}}</span>
30 31
        </el-form-item>
      </el-form>
qzhxx's avatar
qzhxx committed
32 33
    </div>
    <div slot="footer" class="dialog-footer btn-group">
乐宝呗666's avatar
乐宝呗666 committed
34
      <el-button size="mini" type="primary" @click="close()">关 闭</el-button>
35 36 37 38 39 40 41 42 43 44 45 46 47 48
    </div>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      formVisible: false,
      formItem: {},
    };
  },
  methods: {
    backFn(item) {
乐宝呗666's avatar
乐宝呗666 committed
49 50
      this.formVisible = true
      this.formItem = item
51 52 53
    },
    // 关闭
    close() {
乐宝呗666's avatar
乐宝呗666 committed
54
      this.formVisible = false
55
    },
乐宝呗666's avatar
乐宝呗666 committed
56
  },
57 58 59 60
};
</script>

<style lang="less">
乐宝呗666's avatar
乐宝呗666 committed
61 62 63 64 65 66 67
.version-detail {
  .input-item {
    font-size: 16px;
    color:#333;
  }
}

68
</style>