diff --git a/src/server/request.js b/src/server/request.js index 0f7a192..0d4d008 100644 --- a/src/server/request.js +++ b/src/server/request.js @@ -2,8 +2,8 @@ import axios from "axios"; import { ElMessage } from "element-plus"; let switchValue = true; const service = axios.create({ - baseURL: process.env.VUE_APP_BASE_URL || "http://101.201.121.115:9003/", - // baseURL: process.env.VUE_APP_BASE_URL || "http://192.168.0.36:9003/", + //baseURL: process.env.VUE_APP_BASE_URL || "http://101.201.121.115:9003/", + baseURL: process.env.VUE_APP_BASE_URL || "http://192.168.0.36:9003/", timeout: 1000 * 60 * 2, // request timeout }); service.interceptors.request.use( diff --git a/src/store/productionPlanning/customerForecastDemandReview.js b/src/store/productionPlanning/customerForecastDemandReview.js index d0830e0..900e434 100644 --- a/src/store/productionPlanning/customerForecastDemandReview.js +++ b/src/store/productionPlanning/customerForecastDemandReview.js @@ -65,7 +65,7 @@ const customerForecastDemandReview = { evaluationLoadPercent: 0, - evaluationLoadInterval: {} + evaluationLoadInterval: {}, }, mutations: { // 初始化所有数据 @@ -235,7 +235,6 @@ const customerForecastDemandReview = { load++ state.evaluationLoadPercent = parseInt(load / temp * 100) }, 1000) - } else { state.evaluationLoadPercent = 100 clearInterval(state.evaluationLoadInterval) diff --git a/src/utils/dragChangeSize.js b/src/utils/dragChangeSize.js index f953d1d..fe90ce0 100644 --- a/src/utils/dragChangeSize.js +++ b/src/utils/dragChangeSize.js @@ -1,59 +1,58 @@ - -// 托在改变文字大小 +// 上下拖拽改变窗口大小 export function dragChangeSize( - onmouseupCallback = ()=>{}, // 停止拖拽回调函数 - config = { - minTopValue:50, // 顶部最小高度 - minBottomValue:50, // 底部最小高度 - barHeight:35 // 拖拽条高度 - }, - dragBarId = 'resize', // 拖拽条ID - boxId = 'box', // 父控件ID - TopId = 'top', // 上部divID - BottomId = 'bottom' // 下部divID - ){ - // 获得滚动条对象 - let resize = document.getElementById(dragBarId); - // 获得容器对象 - let box = document.getElementById(boxId); - // 移动长度 - let moveLen = 0 - // 鼠标按下事件 - resize.onmousedown = event => { - // 获得鼠标按下后Y轴坐标 - let startY = event.clientY - // 设置拖拽条距离顶部位置 - resize.top = resize.offsetTop - // 鼠标移动事件 - document.onmousemove = e => { - // 获得移动长度 - moveLen = resize.top +(e.clientY - startY) - // 距离顶部最大长度 - let maxT = box.clientHeight - resize.offsetHeight - // 限制顶部最小高度 - if(moveLen < config.minTopValue) moveLen = config.minTopValue - // 限制底部最小高度 - if(moveLen > maxT - config.minBottomValue) moveLen = maxT - config.minBottomValue - // 设置拖拽条高度 - resize.style.top = moveLen - // 设置上部div高度 - document.getElementById(TopId).style.height = moveLen + "px" - // 设置下部div高度 - document.getElementById(BottomId).style.height = (box.clientHeight - moveLen - config.barHeight) + "px" - } - // 鼠标停止事件 - document.onmouseup = () => { - // 事件初始化 - document.onmousemove = null - document.onmouseup = null - // 释放拖捕获鼠标 - resize.releaseCapture && resize.releaseCapture() - // 回调函数 - onmouseupCallback(moveLen,box.clientHeight - moveLen - config.barHeight) - } - // 捕获鼠标 - resize.setCapture && resize.setCapture() - - return false + onmouseupCallback = () => {}, // 停止拖拽回调函数 + config = { + minTopValue: 50, // 顶部最小高度 + minBottomValue: 50, // 底部最小高度 + barHeight: 35 // 拖拽条高度 + }, + dragBarId = 'resize', // 拖拽条ID + boxId = 'box', // 父控件ID + TopId = 'top', // 上部divID + BottomId = 'bottom' // 下部divID +) { + // 获得滚动条对象 + let resize = document.getElementById(dragBarId); + // 获得容器对象 + let box = document.getElementById(boxId); + // 移动长度 + let moveLen = 0 + // 鼠标按下事件 + resize.onmousedown = event => { + // 获得鼠标按下后Y轴坐标 + let startY = event.clientY + // 设置拖拽条距离顶部位置 + resize.top = resize.offsetTop + // 鼠标移动事件 + document.onmousemove = e => { + // 获得移动长度 + moveLen = resize.top + (e.clientY - startY) + // 距离顶部最大长度 + let maxT = box.clientHeight - resize.offsetHeight + // 限制顶部最小高度 + if (moveLen < config.minTopValue) moveLen = config.minTopValue + // 限制底部最小高度 + if (moveLen > maxT - config.minBottomValue) moveLen = maxT - config.minBottomValue + // 设置拖拽条高度 + resize.style.top = moveLen + // 设置上部div高度 + document.getElementById(TopId).style.height = moveLen + "px" + // 设置下部div高度 + document.getElementById(BottomId).style.height = (box.clientHeight - moveLen - config.barHeight) + "px" + } + // 鼠标停止事件 + document.onmouseup = () => { + // 事件初始化 + document.onmousemove = null + document.onmouseup = null + // 释放拖捕获鼠标 + resize.releaseCapture && resize.releaseCapture() + // 回调函数 + onmouseupCallback(moveLen, box.clientHeight - moveLen - config.barHeight) } + // 捕获鼠标 + resize.setCapture && resize.setCapture() + + return false + } } \ No newline at end of file diff --git a/src/views/factoryModel/customer/addOrEdit.vue b/src/views/factoryModel/customer/addOrEdit.vue index df76b1c..3e61e58 100644 --- a/src/views/factoryModel/customer/addOrEdit.vue +++ b/src/views/factoryModel/customer/addOrEdit.vue @@ -160,14 +160,14 @@ - +