diff --git a/src/api/cabinet/smart-cabinet.ts b/src/api/cabinet/smart-cabinet.ts index 25a4160..4fce1df 100644 --- a/src/api/cabinet/smart-cabinet.ts +++ b/src/api/cabinet/smart-cabinet.ts @@ -78,4 +78,8 @@ export const getAllCabinetsWithCells = () => { export const allCabinets = () => { return http.request>>('get', '/cabinet/smartCabinet/allCabinets'); +}; + +export const getSmartCabinetDetailApi = (cabinetId: number) => { + return http.request>("get", `/cabinet/smartCabinet/detail/${cabinetId}`); }; \ No newline at end of file diff --git a/src/router/modules/global.ts b/src/router/modules/global.ts index e6d7c43..e2ec14b 100644 --- a/src/router/modules/global.ts +++ b/src/router/modules/global.ts @@ -23,6 +23,14 @@ export default { meta: { title: "会员详情" } + }, + { + path: "/cabinet/card/detail", + name: "smartCabinetCardDetail", + component: () => import("@/views/cabinet/smart-cabinet-card/detail.vue"), + meta: { + title: "柜机详情" + } } ] } as RouteConfigsTable; diff --git a/src/utils/cabinetImgMap.ts b/src/utils/cabinetImgMap.ts new file mode 100644 index 0000000..3238bd4 --- /dev/null +++ b/src/utils/cabinetImgMap.ts @@ -0,0 +1,34 @@ +export const CabinetImgMap = { + 1: { + img: "cabinet_16.jpg", + name: "16口机柜", + }, + 2: { + img: "cabinet_20.jpg", + name: "20口机柜", + }, + 3: { + img: "cabinet_22.jpg", + name: "22口机柜", + }, + 4: { + img: "cabinet_24.jpg", + name: "24口机柜", + }, + 5: { + img: "cabinet_40.jpg", + name: "40口机柜", + }, + 6: { + img: "cabinet_48.jpg", + name: "48口机柜", + }, + 7: { + img: "cabinet_60.jpg", + name: "60口机柜", + }, + 8: { + img: "cabinet_120.jpg", + name: "120口机柜", + }, +} \ No newline at end of file diff --git a/src/views/cabinet/smart-cabinet-card/detail.vue b/src/views/cabinet/smart-cabinet-card/detail.vue new file mode 100644 index 0000000..1528409 --- /dev/null +++ b/src/views/cabinet/smart-cabinet-card/detail.vue @@ -0,0 +1,160 @@ + + + + + \ No newline at end of file diff --git a/src/views/cabinet/smart-cabinet-card/index.vue b/src/views/cabinet/smart-cabinet-card/index.vue new file mode 100644 index 0000000..def280d --- /dev/null +++ b/src/views/cabinet/smart-cabinet-card/index.vue @@ -0,0 +1,220 @@ + + + + + \ No newline at end of file diff --git a/src/views/cabinet/smart-cabinet-card/smart-cabinet-card-form-modal.vue b/src/views/cabinet/smart-cabinet-card/smart-cabinet-card-form-modal.vue new file mode 100644 index 0000000..b94c401 --- /dev/null +++ b/src/views/cabinet/smart-cabinet-card/smart-cabinet-card-form-modal.vue @@ -0,0 +1,109 @@ + + + \ No newline at end of file diff --git a/src/views/cabinet/smart-cabinet/GatewayConfigModal.vue b/src/views/cabinet/smart-cabinet/GatewayConfigModal.vue index 3b9006e..eb342a9 100644 --- a/src/views/cabinet/smart-cabinet/GatewayConfigModal.vue +++ b/src/views/cabinet/smart-cabinet/GatewayConfigModal.vue @@ -4,6 +4,7 @@ +