修改EAP
This commit is contained in:
parent
0402b24568
commit
396e09f696
2
dist/index.html
vendored
2
dist/index.html
vendored
File diff suppressed because one or more lines are too long
1
dist/static/css/chunk-130d547d.692e3f17.css
vendored
Normal file
1
dist/static/css/chunk-130d547d.692e3f17.css
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.app-container[data-v-3a23e516]{width:100%;height:200px}.waring[data-v-3a23e516]{padding:5px;border-radius:5px;background-color:#f56c6c;color:#fff}.normal[data-v-3a23e516]{padding:5px;border-radius:5px;background-color:#67c23a;color:#fff}
|
1
dist/static/css/chunk-6baaba7a.00659001.css
vendored
1
dist/static/css/chunk-6baaba7a.00659001.css
vendored
@ -1 +0,0 @@
|
|||||||
.app-container[data-v-7174c48c]{width:100%;height:200px}.waring[data-v-7174c48c]{padding:5px;border-radius:5px;background-color:#f56c6c;color:#fff}.normal[data-v-7174c48c]{padding:5px;border-radius:5px;background-color:#67c23a;color:#fff}
|
|
1
dist/static/css/chunk-bdbfc1f4.71948977.css
vendored
1
dist/static/css/chunk-bdbfc1f4.71948977.css
vendored
@ -1 +0,0 @@
|
|||||||
.app-container[data-v-7174c48c]{width:100%;height:200px}.waring[data-v-7174c48c]{padding:5px;border-radius:5px;background-color:#f56c6c;color:#fff}.normal[data-v-7174c48c]{padding:5px;border-radius:5px;background-color:#67c23a;color:#fff}.btn-container[data-v-692993ed]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap}.btndiv[data-v-692993ed]{width:20%;height:100px;margin:auto}.box-card[data-v-692993ed]{background-color:#3e8ef7;margin:10px;color:#fff}
|
|
1
dist/static/css/chunk-fc6258c6.923bc0fc.css
vendored
Normal file
1
dist/static/css/chunk-fc6258c6.923bc0fc.css
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.app-container[data-v-3a23e516]{width:100%;height:200px}.waring[data-v-3a23e516]{padding:5px;border-radius:5px;background-color:#f56c6c;color:#fff}.normal[data-v-3a23e516]{padding:5px;border-radius:5px;background-color:#67c23a;color:#fff}.btn-container[data-v-2e322fe2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap}.btndiv[data-v-2e322fe2]{width:20%;height:100px;margin:auto}.box-card[data-v-2e322fe2]{background-color:#3e8ef7;margin:10px;color:#fff}
|
1
dist/static/js/app.6fb7a37a.js
vendored
Normal file
1
dist/static/js/app.6fb7a37a.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/static/js/app.e49a1e85.js
vendored
1
dist/static/js/app.e49a1e85.js
vendored
File diff suppressed because one or more lines are too long
1
dist/static/js/chunk-130d547d.3fa1079f.js
vendored
Normal file
1
dist/static/js/chunk-130d547d.3fa1079f.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/static/js/chunk-6baaba7a.35ec36b3.js
vendored
1
dist/static/js/chunk-6baaba7a.35ec36b3.js
vendored
File diff suppressed because one or more lines are too long
1
dist/static/js/chunk-bdbfc1f4.00572ed5.js
vendored
1
dist/static/js/chunk-bdbfc1f4.00572ed5.js
vendored
File diff suppressed because one or more lines are too long
1
dist/static/js/chunk-fc6258c6.2ed177c7.js
vendored
Normal file
1
dist/static/js/chunk-fc6258c6.2ed177c7.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -235,3 +235,10 @@ export function sendSecsGemSetting() {
|
|||||||
method: 'post'
|
method: 'post'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function sendAlarmReport() {
|
||||||
|
return request({
|
||||||
|
url: '/cigs-00a/IL1testcontroller/post/sendAlarmReport',
|
||||||
|
method: 'post'
|
||||||
|
})
|
||||||
|
}
|
@ -267,11 +267,11 @@ export default {
|
|||||||
zh: '首页',
|
zh: '首页',
|
||||||
en: 'Home'
|
en: 'Home'
|
||||||
},
|
},
|
||||||
aSpc: {
|
eap: {
|
||||||
zh: 'EAP',
|
zh: 'EAP',
|
||||||
en: 'EAP'
|
en: 'EAP'
|
||||||
},
|
},
|
||||||
spcControl: {
|
eapControl: {
|
||||||
zh: 'EAP控制',
|
zh: 'EAP控制',
|
||||||
en: 'EAP Control'
|
en: 'EAP Control'
|
||||||
},
|
},
|
||||||
|
@ -93,24 +93,24 @@ export const constantRoutes = [
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/spc',
|
path: '/eap',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/spc',
|
redirect: '/eap',
|
||||||
name: 'spc',
|
name: 'eap',
|
||||||
meta: { title: routerTitle.aSpc?.[language] || routerTitle.aSpc.en, icon: 'form', iconPart: 'ArtManager', affix: true, required: true, requireToken: true },
|
meta: { title: routerTitle.eap?.[language] || routerTitle.eap.en, icon: 'form', iconPart: 'ArtManager', affix: true, required: true, requireToken: true },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'spc',
|
path: 'eap',
|
||||||
component: () => import('@/views/00a-spc/index'),
|
component: () => import('@/views/EAP/index'),
|
||||||
name: 'spc',
|
name: 'eap',
|
||||||
meta: { title: routerTitle.aSpc?.[language] || routerTitle.aSpc.en, icon: 'form', affix: true, required: true, requireToken: true, noCache: true }
|
meta: { title: routerTitle.eap?.[language] || routerTitle.eap.en, icon: 'form', affix: true, required: true, requireToken: true, noCache: true }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'spcControl',
|
path: 'eapControl',
|
||||||
component: () => import('@/views/00a-spc/spcControl'),
|
component: () => import('@/views/EAP/eapControl'),
|
||||||
name: 'spcControl',
|
name: 'eapControl',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
meta: { title: routerTitle.spcControl?.[language] || routerTitle.spcControl.en, icon: 'form', affix: true, required: true, requireToken: true, noCache: true }
|
meta: { title: routerTitle.eapControl?.[language] || routerTitle.eapControl.en, icon: 'form', affix: true, required: true, requireToken: true, noCache: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2020-12-29 15:41:11
|
* @Date: 2020-12-29 15:41:11
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-07-29 16:01:24
|
* @LastEditTime: 2022-08-05 09:09:17
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -20,7 +20,7 @@
|
|||||||
<span :class="dataForm.communicationState === 0? 'waring' : 'normal'">{{ dataForm.communicationState === 0? 'off' : 'on' }}</span>
|
<span :class="dataForm.communicationState === 0? 'waring' : 'normal'">{{ dataForm.communicationState === 0? 'off' : 'on' }}</span>
|
||||||
<el-button type="primary" size="mini" @click="switchChange()">控制</el-button>
|
<el-button type="primary" size="mini" @click="switchChange()">控制</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<div v-show="communicationShow">Result ={{ communicationStatus }}</div>
|
<!-- <div v-show="communicationShow">Result ={{ communicationStatus }}</div> -->
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col v-if="false" :span="6" :offset="1">
|
<el-col v-if="false" :span="6" :offset="1">
|
||||||
<el-form-item label="eqpState" prop="eqpState">
|
<el-form-item label="eqpState" prop="eqpState">
|
||||||
@ -32,7 +32,7 @@
|
|||||||
:value="item.value"
|
:value="item.value"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<div v-show="eqpStatusShow">Result ={{ eqpStatus }}</div>
|
<!-- <div v-show="eqpStatusShow">Result ={{ eqpStatus }}</div> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
@ -46,13 +46,16 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<span :class="controllerInfo === 'offline'? 'waring' : 'normal'">{{ controllerInfo }}</span>
|
<span :class="controllerInfo === 'offline'? 'waring' : 'normal'">{{ controllerInfo }}</span>
|
||||||
<div v-show="controllerStatusShow">Result ={{ controllerStatus }}</div>
|
<!-- <div v-show="controllerStatusShow">Result ={{ controllerStatus }}</div> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-col :span="3" :offset="2">
|
<el-col :span="3" :offset="2">
|
||||||
<el-button type="primary" @click="sendSecsGemSetting()">Setting</el-button>
|
<el-button type="primary" @click="sendSecsGemSetting()">Setting</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="3">
|
||||||
|
<el-button type="primary" @click="sendAlarmReport()">AlarmReport</el-button>
|
||||||
|
</el-col>
|
||||||
<el-col v-if="false" :span="3">
|
<el-col v-if="false" :span="3">
|
||||||
<el-button type="primary" @click="sendReportLinkedEventAndVid()"> ReportLinkedEventAndVid </el-button>
|
<el-button type="primary" @click="sendReportLinkedEventAndVid()"> ReportLinkedEventAndVid </el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -68,8 +71,9 @@ import {
|
|||||||
sendEqpState,
|
sendEqpState,
|
||||||
sendControllerState,
|
sendControllerState,
|
||||||
sendReportLinkedEventAndVid,
|
sendReportLinkedEventAndVid,
|
||||||
sendSecsGemSetting
|
sendSecsGemSetting,
|
||||||
} from '@/api/00a-spc'
|
sendAlarmReport
|
||||||
|
} from '@/api/EAP'
|
||||||
/**
|
/**
|
||||||
* 表格表头配置项 TypeScript接口注释
|
* 表格表头配置项 TypeScript接口注释
|
||||||
* tableConfig<ConfigItem> = []
|
* tableConfig<ConfigItem> = []
|
||||||
@ -216,6 +220,15 @@ export default {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
sendAlarmReport() {
|
||||||
|
sendAlarmReport().then(response => {
|
||||||
|
this.$message({
|
||||||
|
message: this.$t('module.basicData.visual.success'),
|
||||||
|
type: 'success',
|
||||||
|
duration: 1500
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
initWebSocket() {
|
initWebSocket() {
|
||||||
// 初始化weosocket
|
// 初始化weosocket
|
||||||
const path = `ws://${this.url}/opcua/websocket/${Math.round(Math.random() * 100)}`
|
const path = `ws://${this.url}/opcua/websocket/${Math.round(Math.random() * 100)}`
|
||||||
@ -226,6 +239,7 @@ export default {
|
|||||||
this.websock.onclose = this.websocketclose
|
this.websock.onclose = this.websocketclose
|
||||||
},
|
},
|
||||||
websocketonopen() {
|
websocketonopen() {
|
||||||
|
console.log('websocketonopen')
|
||||||
// 连接建立之后执行send方法发送数据
|
// 连接建立之后执行send方法发送数据
|
||||||
// this.websocketsend(JSON.stringify('2'))
|
// this.websocketsend(JSON.stringify('2'))
|
||||||
},
|
},
|
||||||
@ -267,6 +281,7 @@ export default {
|
|||||||
websocketclose(e) {
|
websocketclose(e) {
|
||||||
// 关闭
|
// 关闭
|
||||||
console.log('断开连接', e)
|
console.log('断开连接', e)
|
||||||
|
this.initWebSocket()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2020-12-29 15:41:11
|
* @Date: 2020-12-29 15:41:11
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-07-29 09:50:35
|
* @LastEditTime: 2022-08-03 16:30:27
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -17,8 +17,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as spcApi from '@/api/00a-spc'
|
import * as spcApi from '@/api/EAP'
|
||||||
import spcControl from './spcControl'
|
import spcControl from './eapControl'
|
||||||
// , handleLimit
|
// , handleLimit
|
||||||
/**
|
/**
|
||||||
* 表格表头配置项 TypeScript接口注释
|
* 表格表头配置项 TypeScript接口注释
|
||||||
@ -57,9 +57,9 @@ export default {
|
|||||||
'ControlStateRemote',
|
'ControlStateRemote',
|
||||||
'AlarmDetected',
|
'AlarmDetected',
|
||||||
'AlarmCleared',
|
'AlarmCleared',
|
||||||
'SpoolTransmitFailure',
|
// 'SpoolTransmitFailure',
|
||||||
'SpoolingActivated',
|
// 'SpoolingActivated',
|
||||||
'SpoolingDeactivated',
|
// 'SpoolingDeactivated',
|
||||||
'ProcessingStarted',
|
'ProcessingStarted',
|
||||||
'ProcessingCompleted',
|
'ProcessingCompleted',
|
||||||
'ProcessingStopped',
|
'ProcessingStopped',
|
Loading…
Reference in New Issue
Block a user