| | |
| | | } |
| | | .el-button.el-button--small{ |
| | | padding:6px 6px; |
| | | font-size:12px!important; |
| | | } |
| | | .el-form--label-left .el-form-item__label{ |
| | | font-size: 13px; |
| | |
| | | } |
| | | }) |
| | | }else{ |
| | | this.$message.error("当前设备没有工序!"); |
| | | this.$confirm( "当前设备没有工序!", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => {}) |
| | | .catch(() => {}); |
| | | |
| | | } |
| | | }, |
| | | shutdown() { |
| | |
| | | import axios from "axios"; |
| | | import util from "@/libs/util.js"; |
| | | import { Message } from "element-ui"; |
| | | import { Message,MessageBox } from "element-ui"; |
| | | |
| | | // import router from '@/router' |
| | | |
| | |
| | | return res.data ? res.data : {}; |
| | | } else { |
| | | if(!res.config.loadingFlag){ |
| | | Message({ |
| | | // message: res.data.msg==res.data.data?res.data.data:res.data.msg+','+res.data.data, |
| | | message: res.data.msg, |
| | | type: 'error', |
| | | duration: 5 * 1000 |
| | | // Message({ |
| | | // // message: res.data.msg==res.data.data?res.data.data:res.data.msg+','+res.data.data, |
| | | // message: res.data.msg, |
| | | // type: 'error', |
| | | // duration: 5 * 1000 |
| | | // }) |
| | | MessageBox.confirm( res.data.msg+"?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | }) |
| | | .catch(() => {}); |
| | | } |
| | | return res.data ? res.data : {}; |
| | | } |
| | |
| | | } else if (message.includes('Request failed with status code')) { |
| | | message = '系统接口' + message.substr(message.length - 3) + '异常' |
| | | } |
| | | Message({ |
| | | message: message, |
| | | type: 'error', |
| | | duration: 5 * 1000 |
| | | // Message({ |
| | | // message: message, |
| | | // type: 'error', |
| | | // duration: 5 * 1000 |
| | | // }) |
| | | MessageBox.confirm( message+"?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => {}) |
| | | .catch(() => {}); |
| | | return Promise.reject(error) |
| | | } |
| | | ) |
| | |
| | | if (Object.keys(this.taskData).length > 0 && this.taskData.Procedure.ID) { |
| | | this.$refs.control.islook = true; |
| | | } else { |
| | | this.$message.error("当前设备没有工序!"); |
| | | this.$confirm( "当前设备没有工序!", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => {}) |
| | | .catch(() => {}); |
| | | } |
| | | }, |
| | | // 右侧完成 |
| | |
| | | } |
| | | }); |
| | | } else { |
| | | this.$message.error("当前设备没有工序!"); |
| | | this.$confirm( "当前设备没有工序!", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => {}) |
| | | .catch(() => {}); |
| | | } |
| | | }, |
| | | getRandomNumber(min, max) { |
| | |
| | | font-size: 30px; |
| | | font-weight: 700; |
| | | } |
| | | .el-button--primary { |
| | | border: 0; |
| | | font-weight: 700 !important; |
| | | font-size: 16px !important; |
| | | } |
| | | |
| | | .color_4efefa { |
| | | color: #4efefa; |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | .el-button--primary { |
| | | border: 0; |
| | | font-weight: 700 !important; |
| | | font-size: 16px; |
| | | } |
| | | </style> |