diff --git a/src/views/iot-card/Recharge/Detail.vue b/src/views/iot-card/Recharge/Detail.vue new file mode 100644 index 00000000..7e9531fd --- /dev/null +++ b/src/views/iot-card/Recharge/Detail.vue @@ -0,0 +1,63 @@ + + + diff --git a/src/views/iot-card/Recharge/index.vue b/src/views/iot-card/Recharge/index.vue index 27fdab16..33813bcf 100644 --- a/src/views/iot-card/Recharge/index.vue +++ b/src/views/iot-card/Recharge/index.vue @@ -70,6 +70,7 @@ + @@ -78,10 +79,13 @@ import moment from 'moment'; import type { ActionsType } from '@/components/Table'; import { queryRechargeList } from '@/api/iot-card/cardManagement'; import Save from './Save.vue'; +import Detail from './Detail.vue'; const rechargeRef = ref>({}); const params = ref>({}); const visible = ref(false); +const detailVisible = ref(false); +const current = ref>({}); const columns = [ { @@ -139,7 +143,10 @@ const getActions = (data: Partial>): ActionsType[] => { title: '查看', }, icon: 'EyeOutlined', - onClick: () => {}, + onClick: () => { + detailVisible.value = true; + current.value = data; + }, }, ]; }; @@ -159,6 +166,13 @@ const saveChange = (val: any) => { rechargeRef.value?.reload(); } }; + +/** + * 查看详情弹窗关闭 + */ +const close = () => { + detailVisible.value = false; +};