index.vue 863 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <div>
  3. <ListTemplate ref="listTemplateRefs" :card-title="$attrs.label">
  4. <template #actions="{ row }">
  5. <m-button text type="primary" size="small" @click="onOpen('salarySolutionParamRefs', row)">系数管理</m-button>
  6. </template>
  7. </ListTemplate>
  8. <SalarySolutionParam ref="salarySolutionParamRefs" @refresh="onInit"></SalarySolutionParam>
  9. </div>
  10. </template>
  11. <script>
  12. import ListTemplate from '../components/ListTemplate.vue'
  13. import SalarySolutionParam from './salarySolutionParam.vue'
  14. export default {
  15. name: 'SalaryCoefficient',
  16. components: {
  17. ListTemplate,
  18. SalarySolutionParam
  19. },
  20. methods: {
  21. onInit () {
  22. this.$refs.listTemplateRefs.onInit()
  23. },
  24. onOpen (ref, item) {
  25. this.$refs[ref]?.open && this.$refs[ref].open(item)
  26. }
  27. }
  28. }
  29. </script>
  30. <style lang="scss" scoped>
  31. </style>