diff --git a/.env.production b/.env.production index 5a9ba7d..3a88bb5 100644 --- a/.env.production +++ b/.env.production @@ -3,5 +3,6 @@ ENV = 'production' # base api VUE_APP_BASE_API = '' +VUE_APP_WB_API = 'a.wms.picaiba.com' VUE_APP_REPORT_DESIGN_URL = '/ureport/designer' VUE_APP_REPORT_VIEW_URL = '/ureport/preview' diff --git a/src/api/00a-spc.js b/src/api/00a-spc.js new file mode 100644 index 0000000..bd103ef --- /dev/null +++ b/src/api/00a-spc.js @@ -0,0 +1,230 @@ +import request from '@/utils/request' + +export function AlarmCleared() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendAlarmClearedEvent', + method: 'post' + }) +} + +export function AlarmDetected() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendAlarmDetectedEvent', + method: 'post' + }) +} + +export function CompleteProcessFlow() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendCompleteProcessFlowEvent', + method: 'post' + }) +} + +export function ControlStateLocal() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendControlStateLocalEvent', + method: 'post' + }) +} + +export function ControlStateRemote() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendControlStateRemoteEvent', + method: 'post' + }) +} + +export function E10StateChanged() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendE10StateChangedEvent', + method: 'post' + }) +} + +export function EmptyCassettereport() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendEmptyCassettereportEvent', + method: 'post' + }) +} + +export function EquipmentOffline() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendEquipmentOfflineEvent', + method: 'post' + }) +} + +export function MaintenancePlan() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendMaintenancePlanEvent', + method: 'post' + }) +} + +export function MaintenanceRecord() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendMaintenanceRecordEvent', + method: 'post' + }) +} + +export function MaterialReceived() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendMaterialReceivedEvent', + method: 'post' + }) +} + +export function MaterialRemoved() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendMaterialRemovedEvent', + method: 'post' + }) +} + +export function OKsubstratereport() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendOKsubstratereportEvent', + method: 'post' + }) +} + +export function PowerConsumption() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendPowerConsumptionEvent', + method: 'post' + }) +} + +export function ProcessingCompleted() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendProcessingCompletedEvent', + method: 'post' + }) +} + +export function ProcessingStarted() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendProcessingStartedEvent', + method: 'post' + }) +} + +export function ProcessingStopped() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendProcessingStoppedEvent', + method: 'post' + }) +} + +export function QCPChange() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendQCPChangeEvent', + method: 'post' + }) +} + +export function RepairRecord() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendRepairRecordEvent', + method: 'post' + }) +} + +export function Scrapsubstratereport() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendScrapsubstratereportEvent', + method: 'post' + }) +} + +export function ShuttleMovementFinished() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendShuttleMovementFinishedEvent', + method: 'post' + }) +} + +export function ShuttleMovementStart() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendShuttleMovementStartEvent', + method: 'post' + }) +} + +export function SpoolTransmitFailure() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendSpoolTransmitFailureEvent', + method: 'post' + }) +} + +export function SpoolingActivated() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendSpoolingActivatedEvent', + method: 'post' + }) +} + +export function SpoolingDeactivated() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendSpoolingDeactivatedEvent', + method: 'post' + }) +} + +export function DisableEnableCommunication(data) { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendDisableEnableCommunication', + method: 'post', + headers: { + 'Content-Type': 'text/plain' + }, + data + }) +} + +export function getCommunicationState() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/communicationState/get', + method: 'post' + }) +} + +export function getcontrollerState() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/controllerState/get', + method: 'post' + }) +} + +export function sendControllerState(data) { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendControllerState', + method: 'post', + headers: { + 'Content-Type': 'text/plain' + }, + data + }) +} + +export function sendEqpState(data) { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendEqpState', + method: 'post', + headers: { + 'Content-Type': 'text/plain' + }, + data + }) +} + +export function sendReportLinkedEventAndVid() { + return request({ + url: '/cigs-00a/IL1testcontroller/post/sendReportLinkedEventAndVid', + method: 'post' + }) +} diff --git a/src/lang/i18n.js b/src/lang/i18n.js index b21f979..67ed269 100644 --- a/src/lang/i18n.js +++ b/src/lang/i18n.js @@ -267,6 +267,14 @@ export default { zh: '首页', en: 'Home' }, + aSpc: { + zh: 'EAP', + en: 'EAP' + }, + spcControl: { + zh: 'EAP控制', + en: 'EAP Control' + }, basic: { zh: '系统管理', en: 'System Manager', diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 1f5f967..2905417 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -16,6 +16,7 @@ {{ 'navbar.homepage' | i18nFilter }} + diff --git a/src/router/index.js b/src/router/index.js index 2a18a46..102892e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -92,6 +92,28 @@ export const constantRoutes = [ } ] }, + { + path: '/spc', + component: Layout, + redirect: '/spc', + name: 'spc', + meta: { title: routerTitle.aSpc?.[language] || routerTitle.aSpc.en, icon: 'form', iconPart: 'ArtManager', affix: true, required: true, requireToken: true }, + children: [ + { + path: 'spc', + component: () => import('@/views/00a-spc/index'), + name: 'spc', + meta: { title: routerTitle.aSpc?.[language] || routerTitle.aSpc.en, icon: 'form', affix: true, required: true, requireToken: true, noCache: true } + }, + { + path: 'spcControl', + component: () => import('@/views/00a-spc/spcControl'), + name: 'spcControl', + hidden: true, + meta: { title: routerTitle.spcControl?.[language] || routerTitle.spcControl.en, icon: 'form', affix: true, required: true, requireToken: true, noCache: true } + } + ] + }, { path: '/', component: Layout, diff --git a/src/views/00a-spc/index.vue b/src/views/00a-spc/index.vue new file mode 100644 index 0000000..d2ef6d8 --- /dev/null +++ b/src/views/00a-spc/index.vue @@ -0,0 +1,115 @@ + + + + + + diff --git a/src/views/00a-spc/spcControl.vue b/src/views/00a-spc/spcControl.vue new file mode 100644 index 0000000..fd0cf8d --- /dev/null +++ b/src/views/00a-spc/spcControl.vue @@ -0,0 +1,274 @@ + + + + + +