index.vue 1.53 KB
<template>
  <d2-dialog title="历史记录" :is-visible.sync="relateVisible" width="40%" btn-ok-label="确定" @confirmDialog="handleConfirm" @closeDialog="handleClose">
    <div class="record-dialog">
      <el-timeline-item v-for="(reviewInfo, index) in recordList" :key="index" color="#5850FF" :timestamp="reviewInfo.updatedDateStr">
        <!-- {{ reviewInfo.reviewMessage }} -->
      </el-timeline-item>
    </div>
  </d2-dialog>
</template>

<script>
import { deepClone } from '@/common/constant'
import D2Dialog from '@/components/d2-dialog'
export default {
  name: 'recordDialog',
  components: {
    D2Dialog
  },
  data() {
    return {
      recordList: []
    }
  },

  props: {
    relateVisible: {
      type: Boolean,
      default: false
    },
    info: {
      type: Object,
      default: () => []
    }
  },

  mounted() {
    this.getRecordList()
  },

  methods: {
    getRecordList() {
      this.$apis.serviceConfig
        .modifyDetailRecord({
          serviceCode: this.info.serviceCode
          // ...this.storeSearchForm,
          // currentPage: this.currentPage,
          // pageSize: this.pageSize
        })
        .then(res => {
          console.log(res, 'res')
          // this.selectingData = res.list
          // this.total = res.total
          // this.$nextTick(() => {
          //   this.recoverySelection()
          // })
        })
    },
    handleConfirm() {
      this.$emit('handleConfirm')
    },
    handleClose() {
      this.$emit('handleClose')
    }
  }
}
</script>
<style lang="scss" scoped>
</style>