fix: rebuild MES as compilable go-zero+ent backend (renamed bj_power_mes), restore 3 workstation projects from pristine original, align naming; all Go projects go build clean

This commit is contained in:
SunYF
2026-08-27 10:56:41 +08:00
parent 380715f8a9
commit 371b494c54
523 changed files with 67923 additions and 24758 deletions
+22 -2
View File
@@ -1,4 +1,4 @@
import React, {useEffect, useMemo} from 'react'
import React, {useEffect, useMemo} from 'react'
import '@douyinfe/semi-ui/react19-adapter'
import {LocaleProvider, Notification, Toast} from '@douyinfe/semi-ui'
import {HashRouter} from 'react-router-dom'
@@ -10,13 +10,31 @@ import {Locale} from '@douyinfe/semi-ui/lib/es/locale/interface'
import useGlobalStore from '@/stores'
import useLocalStore from '@/stores/local'
import RenderRouter from '@/router'
import StopGuideModal from '@/components/stop-guide-modal'
import {NoticeReactProps} from '@douyinfe/semi-ui/lib/es/notification'
import {ToastReactProps} from '@douyinfe/semi-ui/lib/es/toast'
import sse from '@/sse'
import {getSystemStatus} from '@/api/system'
import {useWorkOrderApi} from '@/api/work-order'
const App = () => {
const { isDark, locale } = useLocalStore(state => state)
const { setConnected } = useGlobalStore(state => state)
const { setConnected, showStopGuide } = useGlobalStore(state => state)
const woApi = useWorkOrderApi()
const checkStopPending = async () => {
try {
const status = await getSystemStatus()
if (status.stopPending) {
const res = await woApi.queryWorkOrders({ page: 1, limit: 100, statuses: ['CANCELLING'] })
if (res.data && res.data.length > 0) {
showStopGuide({ orderId: res.data[0].id, phase: 'cancelling' })
}
}
} catch {
// ignore
}
}
const onNotify = (e: MessageEvent) => {
const opts = {
@@ -41,6 +59,7 @@ const App = () => {
sse.onopen = () => {
console.log('sse connected')
setConnected(true)
checkStopPending()
}
sse.onmessage = e => {
console.log('message: ', e)
@@ -88,6 +107,7 @@ const App = () => {
<RenderRouter />
</HashRouter>
</IntlProvider>
<StopGuideModal />
</LocaleProvider>
)
}