diff --git a/dist.zip b/dist.zip new file mode 100644 index 0000000..af390cf Binary files /dev/null and b/dist.zip differ diff --git a/src/assets/scss/_base.scss b/src/assets/scss/_base.scss index b515062..d64074f 100644 --- a/src/assets/scss/_base.scss +++ b/src/assets/scss/_base.scss @@ -23,6 +23,13 @@ img { vertical-align: middle; } +/* El-Message +------------------------------ */ +.el-message { + .el-message__content { + font-size: 24px; + } +} /* Utils ------------------------------ */ diff --git a/src/views/common/ex-warehouse.vue b/src/views/common/ex-warehouse.vue index 42db011..1c12e4f 100644 --- a/src/views/common/ex-warehouse.vue +++ b/src/views/common/ex-warehouse.vue @@ -34,9 +34,14 @@ - - -
液压台{{ count }}
+ + +
出口液压台1
+
+
+ + +
出口液压台2
@@ -157,7 +162,8 @@ export default { .wareBox-button { position: absolute; bottom: 0; - right: 0; + margin-left: -22px; + font-size: 18px; } } .line { @@ -168,7 +174,7 @@ export default { border-right: 200px solid #ddd; } .enableBox { - background: #EFF3FF; + background: #aaccFF; } .disableBox { background: #F4F4F4; diff --git a/src/views/common/order-auto-submit.vue b/src/views/common/order-auto-submit.vue index 535e4e1..ddf5c1d 100644 --- a/src/views/common/order-auto-submit.vue +++ b/src/views/common/order-auto-submit.vue @@ -28,8 +28,8 @@ - - + + @@ -46,8 +46,8 @@ - - + + diff --git a/src/views/common/order-process.vue b/src/views/common/order-process.vue index ee2a79e..e0f43f2 100644 --- a/src/views/common/order-process.vue +++ b/src/views/common/order-process.vue @@ -15,10 +15,8 @@ - - - - + + @@ -199,7 +197,7 @@ message: '请选择窑炉', type: 'warning' }) - } else if (!this.processType) { + } else if (!this.processType && this.processType !== 0) { this.$message.warning('请选择加工类型') } else { this.$confirm(`确定提交任务?`, '提示', { diff --git a/src/views/main.vue b/src/views/main.vue index b47bcf7..c5b83e4 100644 --- a/src/views/main.vue +++ b/src/views/main.vue @@ -41,7 +41,9 @@ return { loading: false, websock: '', - url: '' + url: '', + id: 1, + heart: null } }, components: { @@ -67,14 +69,16 @@ } }, created () { - const baseurl = window.SITE_CONFIG.baseUrl - this.url = baseurl.slice(5) + this.url = window.SITE_CONFIG.baseWsUrl this.getUserInfo() this.initWebSocket() }, mounted () { this.resetDocumentClientHeight() }, + destroyed () { + clearInterval(this.heart) + }, methods: { // 重置窗口可视高度 resetDocumentClientHeight () { @@ -98,15 +102,20 @@ // }) }, initWebSocket () { // 初始化weosocket - const path = `ws:${this.url}/qj/websocket/${'id'}` + const path = `${this.url}qj/websocket/${this.id}` this.websock = new WebSocket(path) this.websock.onmessage = this.websocketonmessage this.websock.onopen = this.websocketonopen this.websock.onerror = this.websocketonerror this.websock.onclose = this.websocketclose }, - websocketonopen () { // 连接建立之后执行send方法发送数据 - this.websocketsend(JSON.stringify()) + websocketonopen () { // 连接建立之后建立心跳 + this.heartFun() + }, + heartFun () { // 心跳函数 + this.heart = setInterval(() => { + this.websocketsend('1') + }, 30000) }, websocketonerror () { // 连接建立失败重连 this.initWebSocket() @@ -118,8 +127,8 @@ duration: 15000 }) }, - websocketsend () { // 数据发送 - this.websock.send() + websocketsend (msg) { // 数据发送 + this.websock.send(msg) }, websocketclose (e) { // 关闭 console.log('断开连接', e) diff --git a/src/views/order/components/current-order-task.vue b/src/views/order/components/current-order-task.vue index 13e639f..4b85b65 100644 --- a/src/views/order/components/current-order-task.vue +++ b/src/views/order/components/current-order-task.vue @@ -44,6 +44,9 @@ prop="taskType" label="任务类型" > + +