diff --git a/.env.dev b/.env.dev index c6db1eca..882a92fe 100644 --- a/.env.dev +++ b/.env.dev @@ -1,8 +1,8 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2024-04-08 16:46:49 - # @LastEditors: DY + # @LastEditTime: 2024-04-10 16:58:06 + # @LastEditors: zhp # @Description: ### # 开发环境配置 @@ -20,13 +20,16 @@ VUE_APP_TITLE = MES系统 # VUE_APP_BASE_API = 'http://192.168.1.8:48082' # VUE_APP_BASE_API = 'http://192.168.4.173:9001' # VUE_APP_BASE_API = 'http://192.168.1.104:48082' -VUE_APP_BASE_API = 'http://192.168.0.33:48082' +# VUE_APP_BASE_API = 'http://192.168.0.33:48082' # VUE_APP_BASE_API = 'http://192.168.1.62:48082' # VUE_APP_BASE_API = 'http://192.168.1.78:48082' # VUE_APP_BASE_API = 'http://192.168.1.47:48082' +VUE_APP_BASE_API = 'http://192.168.1.78:48082' # socket地址 -VUE_APP_Socket_API = 'ws://10.70.2.2:8080' -VUE_APP_Socket_Dcs_API = 'ws://10.70.180.10:8081' +# VUE_APP_Socket_API = 'ws://10.70.2.2:8080' +# VUE_APP_Socket_Dcs_API = 'ws://10.70.180.10:8081' +VUE_APP_Socket_API = 'ws://192.168.0.33:48082' +VUE_APP_Socket_Dcs_API = 'ws://192.168.0.33:8080' # 积木报表指向地址 VUE_APP_JIMU_API = 'http://10.70.2.22:8080' diff --git a/src/api/base/qualityHotMaterial.js b/src/api/base/qualityHotMaterial.js index b665f1dc..fd05e1b9 100644 --- a/src/api/base/qualityHotMaterial.js +++ b/src/api/base/qualityHotMaterial.js @@ -2,7 +2,7 @@ /* * @Author: zhp * @Date: 2023-11-06 15:38:12 - * @LastEditTime: 2023-12-15 15:29:16 + * @LastEditTime: 2024-04-11 14:57:02 * @LastEditors: zhp * @Description: */ @@ -94,7 +94,7 @@ export function getWorkerList(query) { export function getMaterialCheckList(query) { return request({ - url: '/base/core-hot-material-check/listByMaterial', + url: 'base/quality-hot-material-det/filterList', method: 'get', params: query }) @@ -102,7 +102,7 @@ export function getMaterialCheckList(query) { export function createQualityHotMaterialDet(query){ return request({ - url: '/base/quality-hot-material-det/create', + url: 'base/quality-hot-material-det/createBatch', method: 'post', data: query }) @@ -110,7 +110,7 @@ export function createQualityHotMaterialDet(query){ export function updateQualityHotMaterialDet(query){ return request({ - url: '/base/quality-hot-material-det/listbyfilter', + url: 'base/quality-hot-material-det/updateBatch', method: 'put', data: query }) @@ -118,7 +118,7 @@ export function updateQualityHotMaterialDet(query){ export function getQualityHotMaterialDetList(query){ return request({ - url: '/base/quality-hot-material-det/listbyfilter', + url: '/base/quality-hot-material-det/filterList', method: 'get', params: query }) diff --git a/src/api/base/qualityScrapLog.js b/src/api/base/qualityScrapLog.js index f0bdaa69..dfd51aaa 100644 --- a/src/api/base/qualityScrapLog.js +++ b/src/api/base/qualityScrapLog.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2023-11-07 15:02:37 - * @LastEditTime: 2023-11-07 18:32:07 + * @LastEditTime: 2024-04-09 15:14:42 * @LastEditors: zhp * @Description: */ diff --git a/src/api/monitoring/statisticalData.js b/src/api/monitoring/statisticalData.js index 2d0f19be..40011cfc 100644 --- a/src/api/monitoring/statisticalData.js +++ b/src/api/monitoring/statisticalData.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2023-11-07 14:10:18 - * @LastEditTime: 2023-11-16 17:49:52 + * @LastEditTime: 2024-04-09 09:17:02 * @LastEditors: zhp * @Description: */ @@ -18,14 +18,14 @@ export function getStatisticalDataPage(query) { export function getWorkOrderList(query) { return request({ - url: '/base/core-work-order/listbyfilter', + url: 'base/quality-inspection-record/listbyfilter', method: 'get', params: query, }) } export function getProductList(query) { return request({ - url: '/base/core-product/listAll', + url: 'base/statistical-data/listAll', method: 'get', params: query, }) diff --git a/src/views/OperationalOverview/coldBoard.vue b/src/views/OperationalOverview/coldBoard.vue index c8a8ab75..5025e36f 100644 --- a/src/views/OperationalOverview/coldBoard.vue +++ b/src/views/OperationalOverview/coldBoard.vue @@ -1,7 +1,7 @@ diff --git a/src/views/OperationalOverview/components/ISRAChart.vue b/src/views/OperationalOverview/components/ISRAChart.vue index f5f59018..75bb8f88 100644 --- a/src/views/OperationalOverview/components/ISRAChart.vue +++ b/src/views/OperationalOverview/components/ISRAChart.vue @@ -1,7 +1,7 @@ @@ -26,7 +26,7 @@ export default { return { chart: null, // notMsg:true, - colors:['#2760ff', '#518eec', '#0ee8e4', '#ddb523'], + colors: ['#2760ff', '#518eec', '#49FBD6', '#ddb523'], chartData: [] }; }, @@ -45,7 +45,32 @@ export default { this.$emit('emitFun') } } - }, + }, + mounted() { + this.chartData = [ + { + name: '细长泡', + num: 1112, + yield: 0.97, + }, + { + name: '长泡', + num: 1112, + yield: 0.97, + }, + { + name: '开口泡', + num: 1112, + yield: 0.97, + }, + { + name: '结石', + num: 1112, + yield: 0.97, + } + ] + this.updateChart() + }, methods: { updateChart() { console.log('update') @@ -71,7 +96,7 @@ export default { color:this.colors, title:{ text: num, - subtext: '总数', + subtext: '总数/片', top: '32%', left: '49%', textAlign: 'center', @@ -89,7 +114,7 @@ export default { left: 'center', itemWidth: 12, itemHeight:12, - icon: 'rect', + icon: 'roundRect', textStyle: { color: '#fff' }, @@ -107,21 +132,36 @@ export default { radius: ['45%', '70%'], avoidLabelOverlap: true, label: { - show: false + show: true, + normal: { + // 各分区的提示内容 + // params: 即下面传入的data数组,通过自定义函数,展示你想要的内容和格式 + formatter: function (params) { + console.log(params); + return params.value + " | " + params.percent.toFixed(0) + "%" + "\n\n" + params.name; + }, + textStyle: { // 提示文字的样式 + // color: '#595959', + fontSize: 24.48 + } + } }, labelLine: { show: true, }, data: this.chartData && this.chartData.length > 0 && this.chartData.map((item, index) => ({ name:item.name, - value: item.num, + value: item.num, + label: { + color: this.colors[index % 4] + }, itemStyle:{ color:{ type: 'linear', - x: 1, - y: 1, + x: 0, + y: 0, x2: 0, - y2: 0, + y2: 1, global: false, colorStops:[ {offset: 0,color: this.colors[index%4]}, diff --git a/src/views/OperationalOverview/components/coldDoubleYChart.vue b/src/views/OperationalOverview/components/coldDoubleYChart.vue index 39242365..57c58dec 100644 --- a/src/views/OperationalOverview/components/coldDoubleYChart.vue +++ b/src/views/OperationalOverview/components/coldDoubleYChart.vue @@ -2,7 +2,7 @@ @@ -225,6 +225,9 @@ export default { scale: true, type: 'value', name: '良品率/%', + max: 100,//最大值 + min: 0,//最小值 + interval: 20,//间隔 nameTextStyle: {// y轴上方单位的颜色 color: 'rgba(255,255,255,0.5)', // 坐标值得具体的颜色 align: "left", diff --git a/src/views/OperationalOverview/components/doubleYChart .vue b/src/views/OperationalOverview/components/doubleYChart .vue index 70a842dd..07c646a1 100644 --- a/src/views/OperationalOverview/components/doubleYChart .vue +++ b/src/views/OperationalOverview/components/doubleYChart .vue @@ -1,7 +1,7 @@ @@ -224,6 +224,9 @@ export default { scale: true, type: 'value', name: '良品率/%', + max: 100,//最大值 + min: 0,//最小值 + interval: 20,//间隔 nameTextStyle: {// y轴上方单位的颜色 color: 'rgba(255,255,255,0.5)', // 坐标值得具体的颜色 align: "left", diff --git a/src/views/OperationalOverview/processingBoard.vue b/src/views/OperationalOverview/processingBoard.vue index ac7251a3..979d0686 100644 --- a/src/views/OperationalOverview/processingBoard.vue +++ b/src/views/OperationalOverview/processingBoard.vue @@ -2,16 +2,16 @@ * @Author: zwq * @Date: 2021-07-19 15:18:30 * @LastEditors: zhp - * @LastEditTime: 2024-04-03 17:14:03 + * @LastEditTime: 2024-04-10 16:10:11 * @Description: -->