salarySolutionHistory.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <m-dialog ref="dialog" :title="title + ' 历史记录'">
  3. <ListTemplate ref="listTemplateRefs" :history="2" :show-search="false" shadow="never" :uuid="uuid" clearHeader>
  4. <template #actions="{ row }">
  5. <slot name="actions" :row="row"></slot>
  6. </template>
  7. </ListTemplate>
  8. </m-dialog>
  9. </template>
  10. <script>
  11. import ListTemplate from '../components/ListTemplate.vue'
  12. export default {
  13. name: 'salary-solution-history',
  14. components: {
  15. ListTemplate
  16. },
  17. data () {
  18. return {
  19. uuid: null,
  20. title: null
  21. }
  22. },
  23. methods: {
  24. open (item) {
  25. const { uuid, title } = item
  26. this.uuid = uuid
  27. this.title = title
  28. this.$refs.dialog.open()
  29. this.$nextTick(() => {
  30. this.$refs.listTemplateRefs.onInit({
  31. versionType: 0
  32. }, [
  33. { label: '名称', prop: 'title' },
  34. { label: '修改说明', prop: 'versionTag' },
  35. { label: '创建日期', prop: 'createDate' },
  36. { label: '操作', prop: 'actions' }
  37. ])
  38. })
  39. }
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. </style>