Merge pull request 'projects/mesxc-zhp' (#351) from projects/mesxc-zhp into projects/mesxc-test

Reviewed-on: #351
This commit is contained in:
朱菊兰 2024-04-23 16:28:30 +08:00
commit f7247f5161
4 changed files with 72 additions and 24 deletions

View File

@ -1,7 +1,7 @@
###
# @Author: zhp
# @Date: 2024-04-12 14:30:48
# @LastEditTime: 2024-04-23 13:52:57
# @LastEditTime: 2024-04-23 15:43:31
# @LastEditors: zhp
# @Description:
###
@ -13,9 +13,9 @@ VUE_APP_TITLE = MES系统
# 芋道管理系统/开发环境
VUE_APP_BASE_API = 'http://192.168.0.33:48082'
# VUE_APP_BASE_API = 'http://192.168.1.104:48082'
# VUE_APP_BASE_API = 'http://192.168.4.176:48082'
# 积木报表指向地址
VUE_APP_JIMU_API = 'http://192.168.0.33:48082'
VUE_APP_JIMU_API = 'http://192.168.1.101:48082'
# socket地址(现场)
# VUE_APP_Socket_API = 'ws://10.70.2.2:8080'

View File

@ -2,7 +2,7 @@
<!--
* @Author: zhp
* @Date: 2023-09-21 09:06:28
* @LastEditTime: 2024-04-23 14:04:24
* @LastEditTime: 2024-04-23 15:34:56
* @LastEditors: zhp
* @Description:
-->
@ -83,6 +83,9 @@ export default {
this.chart = null
},
methods: {
// getNumLength(num) {
// return num.toString().length;
// },
initChart(nameList, passRateList, outputNumList) {
console.log(nameList, passRateList)
let series= [
@ -222,7 +225,6 @@ export default {
return 0
},
max: function (value) { //
return Math.ceil(value.max)
},
scale: true,
type: 'value',
@ -266,8 +268,16 @@ export default {
// },
},
{
min: 0,
max: 100000,
min: function () { //
return 0
},
max: function (value) { //
// console.log(value.max.toString().length)
// String(value.max)[0]
// for
// return String(value.max)[0] +
},
minInterval: 5,//
scale: true,
type: 'value',

View File

@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2023-09-21 09:06:28
* @LastEditTime: 2024-04-23 14:06:05
* @LastEditTime: 2024-04-23 15:36:35
* @LastEditors: zhp
* @Description:
-->
@ -217,12 +217,11 @@ export default {
// },
yAxis: [
{
// min: function() { //
// return 0
// },
// max: function(value) { //
// return Math.ceil(value.max)
// },
min: function () { //
return 0
},
max: function (value) { //
},
scale: true,
type: 'value',
name: '良品率/%',
@ -265,8 +264,16 @@ export default {
// },
},
{
min: 0,
max: 100000,
min: function () { //
return 0
},
max: function (value) { //
// console.log(value.max.toString().length)
// String(value.max)[0]
// for
// return String(value.max)[0] +
},
minInterval: 5,//
scale: true,
type: 'value',

View File

@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2024-04-18 14:08:46
* @LastEditTime: 2024-04-23 15:23:05
* @LastEditTime: 2024-04-23 16:18:27
* @LastEditors: zhp
* @Description:
-->
@ -35,7 +35,7 @@
<el-table-column prop="activityName"></el-table-column>
<el-table-column prop="message"></el-table-column>
</el-table-column> -->
<el-table-column v-for="(item,index) in codeList " :prop="item" :label="item">
<el-table-column style="text-align: center;" v-for="(item,index) in codeList " :prop="item" :label="item">
<!-- <template slot-scope="scope">
<el-col :span="12">
{{ codeList[index] }}
@ -211,7 +211,7 @@ export default {
}
}
}
if (columnIndex === 1 || columnIndex === 2 || columnIndex === 3 || columnIndex === 4 || columnIndex === 5 || columnIndex === 6) {
if (columnIndex === 1) {
if (rowIndex === 1 || rowIndex === 3 || rowIndex === 5 || rowIndex === 7 || rowIndex === 9 || rowIndex === 11) {
return {
rowspan: 1,
@ -219,6 +219,14 @@ export default {
}
}
}
if (columnIndex === 4 || columnIndex === 5 || columnIndex === 6 || columnIndex === 7 || columnIndex === 8 || columnIndex === 9 || columnIndex === 10 || columnIndex === 11 || columnIndex === 12 || columnIndex === 13) {
if (rowIndex === 0 || rowIndex === 2 || rowIndex === 4 || rowIndex === 6 || rowIndex === 8 || rowIndex === 10) {
return {
rowspan: 2,
colspan: 1
}
}
}
},
handleExport() {
//
@ -266,8 +274,8 @@ export default {
//
getDataList() {
this.dataListLoading = true;
this.listQuery.startTime = '1713197388000';
this.listQuery.endTime = '1713254961000';
// this.listQuery.startTime = '1713197388000';
// this.listQuery.endTime = '1713254961000';
this.urlOptions.getDataListURL(this.listQuery).then(res => {
// console.log(res)
// console.log(res.data)
@ -304,6 +312,7 @@ export default {
'sj12': null,
'sj13': null,
'sj14': null,
'sj1+sj2': null,
putType: ''
},
{
@ -338,6 +347,7 @@ export default {
'sj12': null,
'sj13': null,
'sj14': null,
'sj1+sj2': null,
putType: ''
},
{
@ -372,6 +382,7 @@ export default {
'sj12': null,
'sj13': null,
'sj14': null,
'sj1+sj2': null,
putType: ''
},
{
@ -406,6 +417,7 @@ export default {
'sj12': null,
'sj13': null,
'sj14': null,
'sj1+sj2': null,
putType: ''
},
{
@ -440,6 +452,7 @@ export default {
'sj12': null,
'sj13': null,
'sj14': null,
'sj1+sj2':null,
putType: ''
},
{
@ -474,10 +487,27 @@ export default {
'sj12': null,
'sj13': null,
'sj14': null,
'sj1+sj2': null,
putType: ''
},
]
res.data.forEach((ele) => {
if(ele.classType === 1 && ele.code == 'sj1+sj2') {
arr[1]['putType'] = ele.putNum
arr[3]['putType'] = ele.useNum
// arr[1]['sj2'] = ele.putNum
// arr[3]['sj2'] = ele.useNum
} else if (ele.classType === 2 && ele.code == 'sj1+sj2') {
arr[5]['putType'] = ele.putNum
arr[7]['putType'] = ele.useNum
// arr[5]['sj2'] = ele.putNum
// arr[7]['sj2'] = ele.useNum
} else if (ele.classType === 3 && ele.code == 'sj1+sj2') {
arr[9]['putType'] = ele.putNum
arr[11]['putType'] = ele.useNum
// arr[9]['sj2'] = ele.putNum
// arr[11]['sj2'] = ele.useNum
}
this.codeList.forEach((item) => {
if (ele.classType === 1 && ele.code == item) {
// console.log(arr[0][item])
@ -494,6 +524,7 @@ export default {
})
// console.log(arr)
this.tableData = arr
console.log(this.tableData);
this.dataListLoading = false;
});
},