1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <template>
- <m-dialog ref="dialog" :title="title + ' 历史记录'">
- <ListTemplate ref="listTemplateRefs" :history="2" :show-search="false" shadow="never" :uuid="uuid" clearHeader>
- <template #actions="{ row }">
- <slot name="actions" :row="row"></slot>
- </template>
- </ListTemplate>
- </m-dialog>
- </template>
- <script>
- import ListTemplate from '../components/ListTemplate.vue'
- export default {
- name: 'salary-solution-history',
- components: {
- ListTemplate
- },
- data () {
- return {
- uuid: null,
- title: null
- }
- },
- methods: {
- open (item) {
- const { uuid, title } = item
- this.uuid = uuid
- this.title = title
- this.$refs.dialog.open()
- this.$nextTick(() => {
- this.$refs.listTemplateRefs.onInit({
- versionType: 0
- }, [
- { label: '名称', prop: 'title' },
- { label: '修改说明', prop: 'versionTag' },
- { label: '创建日期', prop: 'createDate' },
- { label: '操作', prop: 'actions' }
- ])
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- </style>
|