salarySolutionHistory.vue 835 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <m-dialog ref="dialog" :title="title + ' 历史记录'">
  3. <ListTemplate ref="listTemplateRefs" history :show-search="false" shadow="never" :uuid="uuid">
  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. })
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. </style>