diff --git a/.env.test b/.env.test index 3f1633d..0a026f6 100644 --- a/.env.test +++ b/.env.test @@ -2,6 +2,6 @@ FT_NODE_ENV=test -FT_WS_URL=ws://127.0.0.1:8080/ws -FT_PROXY=http://127.0.0.1:8080 +FT_WS_URL=ws://192.168.1.199:8081/ws +FT_PROXY=http://127.0.0.1:8081 FT_API_BASE=/api \ No newline at end of file diff --git a/src/apis/crafts.ts b/src/apis/crafts.ts index 64af207..55aba1b 100644 --- a/src/apis/crafts.ts +++ b/src/apis/crafts.ts @@ -15,14 +15,14 @@ export const updateCraft = (params: Craft): Promise => http.put(`/crafts`, export const delCraft = (ids: string): Promise => http.delete(`/crafts/${ids}`) -// 开始执行工艺 +// 开始执行预设 export const startCraft = (params: { heatId: string }): Promise => http.post(`/crafts/start`, params) export const pauseCraft = (params: { heatId: string }): Promise => http.post(`/crafts/pause`, params) export const resumeCraft = (params: { heatId: string }): Promise => http.post(`/crafts/resume`, params) export const stopCraft = (params: { heatId: string }): Promise => http.post(`/crafts/stop`, params) -// 加热区配置工艺 +// 加热区配置预设 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/apis/home.ts b/src/apis/home.ts index 6f24ac4..291a15c 100644 --- a/src/apis/home.ts +++ b/src/apis/home.ts @@ -9,3 +9,5 @@ export const getTask = (id: number): Promise => http.get(`${baseUrl}$ export const taskList = (params: Task.TaskQuery): Promise => http.get(`${baseUrl}list`, { params }) export const getTaskIng = (): Promise => http.get(`${baseUrl}getIngTask`) export const delTask = (params: string): Promise => http.delete(`${baseUrl}${params}`) +export const trayIn = (): Promise => http.post('tray/in') +export const trayOut = (): Promise => http.post('tray/out') diff --git a/src/apis/solution.ts b/src/apis/solution.ts index 45f70d2..2b01542 100644 --- a/src/apis/solution.ts +++ b/src/apis/solution.ts @@ -1,6 +1,6 @@ import http from 'libs/http' -export const getSolsList = (): Promise> => http.get(`/sols/list`) +export const getSolsList = (params: System.Page = { pageNum: 1, pageSize: 999 }): Promise> => http.get(`/sols/list`, { params }) export const saveSols = (params: { name: string }): Promise => http.post(`/sols`, params) diff --git a/src/app.vue b/src/app.vue index 1a9b861..9f69a44 100644 --- a/src/app.vue +++ b/src/app.vue @@ -9,13 +9,13 @@ onMounted(async () => { const res = await getStatus() console.log(res) console.log(systemStore.systemStatus) - systemStore.updateSystemStatus(res) + // systemStore.updateSystemStatus(res) startProgress() }) socket.init((data: System.SystemStatus) => { console.log(data) - systemStore.updateSystemStatus(data) + // systemStore.updateSystemStatus(data) }, 'status') const progress = ref(0) diff --git a/src/components/craft/AddCraft/index.vue b/src/components/craft/AddCraft/index.vue new file mode 100644 index 0000000..065a440 --- /dev/null +++ b/src/components/craft/AddCraft/index.vue @@ -0,0 +1,313 @@ + + + + + diff --git a/src/components/craft/AddCraftDialog.vue b/src/components/craft/AddCraftDialog.vue index eaa6bee..3080642 100644 --- a/src/components/craft/AddCraftDialog.vue +++ b/src/components/craft/AddCraftDialog.vue @@ -1,9 +1,9 @@