diff --git a/src/views/media/Device/Channel/Save.vue b/src/views/media/Device/Channel/Save.vue new file mode 100644 index 00000000..51762e16 --- /dev/null +++ b/src/views/media/Device/Channel/Save.vue @@ -0,0 +1,147 @@ + + + + + + diff --git a/src/views/media/Device/Channel/index.vue b/src/views/media/Device/Channel/index.vue index 6ca977e2..0e17cec7 100644 --- a/src/views/media/Device/Channel/index.vue +++ b/src/views/media/Device/Channel/index.vue @@ -76,6 +76,12 @@ + + @@ -84,6 +90,7 @@ import ChannelApi from '@/api/media/channel'; import type { ActionsType } from '@/components/Table/index.vue'; import { useMenuStore } from 'store/menu'; import { message } from 'ant-design-vue'; +import Save from './Save.vue'; const menuStory = useMenuStore(); const route = useRoute(); @@ -163,6 +170,8 @@ const handleAdd = () => { const listRef = ref(); const playVis = ref(false); +const channelData = ref(); + const getActions = ( data: Partial>, type: 'card' | 'table', @@ -178,6 +187,7 @@ const getActions = ( icon: 'EditOutlined', onClick: () => { saveVis.value = true; + channelData.value = data; }, }, {