index.vue 557 B

123456789101112
  1. <template>
  2. <StationConfigCrud :module-config="moduleConfig" :api="api" />
  3. </template>
  4. <script setup name="StationChannel">
  5. import StationConfigCrud from '../StationConfigCrud.vue';
  6. import { stationConfigModules } from '../moduleConfig';
  7. import { listChannel, getChannel, addChannel, updateChannel, delChannel } from '@/api/config/channel';
  8. const moduleConfig = stationConfigModules.find((item) => item.key === 'channel');
  9. const api = { list: listChannel, get: getChannel, add: addChannel, update: updateChannel, del: delChannel };
  10. </script>