index.vue 634 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 { listStationChannel, getStationChannel, addStationChannel, updateStationChannel, delStationChannel } from '@/api/config/stationChannel';
  8. const moduleConfig = stationConfigModules.find((item) => item.key === 'channel');
  9. const api = { list: listStationChannel, get: getStationChannel, add: addStationChannel, update: updateStationChannel, del: delStationChannel };
  10. </script>