diff --git a/src/apis/crafts.ts b/src/apis/crafts.ts index eb38389..50240f7 100644 --- a/src/apis/crafts.ts +++ b/src/apis/crafts.ts @@ -20,3 +20,5 @@ export const startCraft = (params: { heatId: string }): Promise => http.pos // 加热区配置工艺 export const setCraft = (params: { heatId?: string | number, craftId?: string | number }): Promise => http.post(`/crafts/set`, params) + +export const craftstatus = (): Promise => http.get(`/monitor/crafts/status`) diff --git a/src/main.ts b/src/main.ts index 6d0810a..fd952e0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -10,7 +10,6 @@ import { createApp } from 'vue' import App from './app.vue' import router from './router' import 'element-plus/dist/index.css' -import 'assets/styles/main.scss' const app = createApp(App) for (const [key, component] of Object.entries(ElementPlusIconsVue)) { diff --git a/src/stores/useLiquidsStore.ts b/src/stores/useLiquidsStore.ts index 9061cae..01f99e8 100644 --- a/src/stores/useLiquidsStore.ts +++ b/src/stores/useLiquidsStore.ts @@ -8,7 +8,7 @@ export const useLiquidStore = defineStore('liquid', () => { const liquids: liquids[] = [{ id: 1, name: '硫酸', - },{ + }, { id: 2, name: '硝酸', }] diff --git a/src/views/craft/CraftStatus.vue b/src/views/craft/CraftStatus.vue new file mode 100644 index 0000000..e65d745 --- /dev/null +++ b/src/views/craft/CraftStatus.vue @@ -0,0 +1,33 @@ + + + diff --git a/src/views/craft/craftType.ts b/src/views/craft/craftType.ts index b9b778c..84289a4 100644 --- a/src/views/craft/craftType.ts +++ b/src/views/craft/craftType.ts @@ -81,8 +81,8 @@ export interface AddCraftType { editDialog: (params: Craft) => void } -export interface TransferRightType { - getstepInfo: () => void +export interface craftStatus { + showDialog: () => void } export const StepCmdDescMap: { [k in StepCmd]: string } = { diff --git a/src/views/craft/index.vue b/src/views/craft/index.vue index 05283d0..d418bf5 100644 --- a/src/views/craft/index.vue +++ b/src/views/craft/index.vue @@ -1,9 +1,10 @@