Compare commits
9 Commits
67612107ea
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a3e16df1b | |||
|
|
6815ac4cc4 | ||
|
|
4ffbdaef8a | ||
| 36e6551465 | |||
|
|
b1ab1962b1 | ||
| 2cefabc24b | |||
|
|
db47bffb18 | ||
| 65b489d37c | |||
|
|
5afadfb1ce |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -358,7 +358,8 @@ export default {
|
|||||||
dialogEqList: [],
|
dialogEqList: [],
|
||||||
count: 0,
|
count: 0,
|
||||||
// 产线默认产线1
|
// 产线默认产线1
|
||||||
lineIds: ['1'],
|
// lineIds: ['1'],
|
||||||
|
lineIds: [],
|
||||||
sectionIds: [],
|
sectionIds: [],
|
||||||
lineList: [],
|
lineList: [],
|
||||||
// tableConfigStatic,
|
// tableConfigStatic,
|
||||||
@@ -428,10 +429,10 @@ export default {
|
|||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.lineList = data.data
|
this.lineList = data.data
|
||||||
// console.log('产线数组', this.lineList)
|
// console.log('产线数组', this.lineList)
|
||||||
/** set default */
|
/** set default 默认*/
|
||||||
if (this.lineList.length) {
|
// if (this.lineList.length) {
|
||||||
this.lineIds = [this.lineList[this.lineList.length - 1].id]
|
// this.lineIds = [this.lineList[this.lineList.length - 1].id]
|
||||||
}
|
// }
|
||||||
} else {
|
} else {
|
||||||
this.lineList = []
|
this.lineList = []
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -165,7 +165,11 @@ export default {
|
|||||||
getEqList() {
|
getEqList() {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('/monitoring/equipment/page'),
|
url: this.$http.adornUrl('/monitoring/equipment/page'),
|
||||||
method: 'get'
|
method: 'get',
|
||||||
|
params: this.$http.adornParams({
|
||||||
|
limit: 99999,
|
||||||
|
page: 1
|
||||||
|
})
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.eqList = data.data.list
|
this.eqList = data.data.list
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ export default {
|
|||||||
this.factoryList = res.data
|
this.factoryList = res.data
|
||||||
/** set default */
|
/** set default */
|
||||||
if (this.factoryList.length) {
|
if (this.factoryList.length) {
|
||||||
this.dataForm.ftId = this.factoryList[0].id
|
// this.dataForm.ftId = this.factoryList[0].id
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.factoryList = []
|
this.factoryList = []
|
||||||
@@ -236,7 +236,7 @@ export default {
|
|||||||
if (res && res.code === 0 && res.data.length) {
|
if (res && res.code === 0 && res.data.length) {
|
||||||
this.productLineList = res.data
|
this.productLineList = res.data
|
||||||
/** set default */
|
/** set default */
|
||||||
this.dataForm.productlines = [this.productLineList[0].id]
|
// this.dataForm.productlines = [this.productLineList[0].id]
|
||||||
} else {
|
} else {
|
||||||
this.productLineList = []
|
this.productLineList = []
|
||||||
this.dataForm.productlines = []
|
this.dataForm.productlines = []
|
||||||
|
|||||||
@@ -135,10 +135,10 @@ export default {
|
|||||||
}).then(({ data: res }) => {
|
}).then(({ data: res }) => {
|
||||||
if (res && res.code === 0) {
|
if (res && res.code === 0) {
|
||||||
this.productLineList = res.data
|
this.productLineList = res.data
|
||||||
/** set default */
|
/** set default 默认*/
|
||||||
if (this.productLineList.length) {
|
// if (this.productLineList.length) {
|
||||||
this.dataForm.productlines = [this.productLineList[0].id]
|
// this.dataForm.productlines = [this.productLineList[0].id]
|
||||||
}
|
// }
|
||||||
} else {
|
} else {
|
||||||
this.productLineList = []
|
this.productLineList = []
|
||||||
this.dataForm.productlines = []
|
this.dataForm.productlines = []
|
||||||
|
|||||||
@@ -165,6 +165,8 @@ export default {
|
|||||||
// page: this.pageIndex,
|
// page: this.pageIndex,
|
||||||
// limit: this.pageSize,
|
// limit: this.pageSize,
|
||||||
// key: this.dataForm.key
|
// key: this.dataForm.key
|
||||||
|
limit: 99999,
|
||||||
|
page: 1
|
||||||
})
|
})
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
const eqConfig = this.addOrUpdateConfigs.fields.find(item => item.name === 'equipmentId')
|
const eqConfig = this.addOrUpdateConfigs.fields.find(item => item.name === 'equipmentId')
|
||||||
@@ -180,6 +182,8 @@ export default {
|
|||||||
// page: this.pageIndex,
|
// page: this.pageIndex,
|
||||||
// limit: this.pageSize,
|
// limit: this.pageSize,
|
||||||
// key: this.dataForm.key
|
// key: this.dataForm.key
|
||||||
|
limit: 99999,
|
||||||
|
page: 1
|
||||||
})
|
})
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
const plcConfig = this.addOrUpdateConfigs.fields.find(item => item.name === 'plcId')
|
const plcConfig = this.addOrUpdateConfigs.fields.find(item => item.name === 'plcId')
|
||||||
|
|||||||
@@ -270,10 +270,10 @@ export default {
|
|||||||
}).then(({ data: res }) => {
|
}).then(({ data: res }) => {
|
||||||
if (res && res.code === 0) {
|
if (res && res.code === 0) {
|
||||||
this.productLineList = res.data
|
this.productLineList = res.data
|
||||||
/** set default */
|
/** set default 默认*/
|
||||||
if (this.productLineList.length) {
|
// if (this.productLineList.length) {
|
||||||
this.dataForm.productlines = this.productLineList[0].id
|
// this.dataForm.productlines = this.productLineList[0].id
|
||||||
}
|
// }
|
||||||
} else {
|
} else {
|
||||||
this.productLineList = []
|
this.productLineList = []
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -167,7 +167,9 @@ const FakeChart = {
|
|||||||
show: true
|
show: true
|
||||||
},
|
},
|
||||||
/** end */
|
/** end */
|
||||||
data: [this.$t('eq.line1'), this.$t('eq.line2'), this.$t('eq.line3'), this.$t('eq.line4')]
|
data: []
|
||||||
|
// selected:{'产线1':(this.echartsData1 === [] ? false : true) , 'Line 1':(this.echartsData1 === [] ? false : true) ,
|
||||||
|
// '产线2':(this.echartsData2 === [] ? false : true) , 'Line 2':(this.echartsData2 === [] ? false : true) }
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'category',
|
type: 'category',
|
||||||
@@ -268,8 +270,8 @@ const FakeChart = {
|
|||||||
typeList: {
|
typeList: {
|
||||||
handler: function (val, oldVal) {
|
handler: function (val, oldVal) {
|
||||||
if (val && val !== oldVal) {
|
if (val && val !== oldVal) {
|
||||||
this.defaultOpts.legend.data.push(...val)
|
// this.defaultOpts.legend.data.push(...val)
|
||||||
// this.defaultOpts.legend.data = val
|
this.defaultOpts.legend.data = val
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
immediate: true
|
immediate: true
|
||||||
@@ -423,10 +425,10 @@ export default {
|
|||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.lineList = data.data
|
this.lineList = data.data
|
||||||
// console.log('产线数组', this.lineList)
|
// console.log('产线数组', this.lineList)
|
||||||
/** set default */
|
/** set default 默认 */
|
||||||
if (this.lineList.length) {
|
// if (this.lineList.length) {
|
||||||
this.lineIds = [this.lineList[this.lineList.length - 1].id]
|
// this.lineIds = [this.lineList[this.lineList.length - 1].id]
|
||||||
}
|
// }
|
||||||
} else {
|
} else {
|
||||||
this.lineList = []
|
this.lineList = []
|
||||||
}
|
}
|
||||||
@@ -641,6 +643,24 @@ export default {
|
|||||||
// { name: '11', type: 'bar', data: [/**产线1*/ 2, /**产线2*/ 3] },
|
// { name: '11', type: 'bar', data: [/**产线1*/ 2, /**产线2*/ 3] },
|
||||||
// { name: '222', type: 'bar', data: [1, 2, 3] }
|
// { name: '222', type: 'bar', data: [1, 2, 3] }
|
||||||
// ]
|
// ]
|
||||||
|
// 没有数据的产线legend隐藏
|
||||||
|
if (this.echartsData1.length !== 0) {
|
||||||
|
this.echartCheckTypes.push(this.$t('eq.line1'))
|
||||||
|
}
|
||||||
|
if (this.echartsData2.length !== 0) {
|
||||||
|
this.echartCheckTypes.push(this.$t('eq.line2'))
|
||||||
|
}
|
||||||
|
if (this.echartsData3.length !== 0) {
|
||||||
|
this.echartCheckTypes.push(this.$t('eq.line3'))
|
||||||
|
}
|
||||||
|
if (this.echartsData4.length !== 0) {
|
||||||
|
this.echartCheckTypes.push(this.$t('eq.line4'))
|
||||||
|
}
|
||||||
|
// console.log('this.echartCheckTypes', this.echartCheckTypes)
|
||||||
|
// console.log(this.echartsData1.length)
|
||||||
|
// console.log(this.echartsData2.length)
|
||||||
|
// console.log(this.echartsData3)
|
||||||
|
// console.log(this.echartsData4)
|
||||||
},
|
},
|
||||||
|
|
||||||
fetchList(startTime, endTime, lineIds) {
|
fetchList(startTime, endTime, lineIds) {
|
||||||
@@ -696,4 +716,14 @@ export default {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
background: #0b58ff;
|
background: #0b58ff;
|
||||||
}
|
}
|
||||||
|
.el-month-table td.today .cell {
|
||||||
|
font-weight: normal;
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
.el-month-table td.current:not(.disabled) .cell{
|
||||||
|
color: #ffffff;
|
||||||
|
font-weight: bold !important;
|
||||||
|
background-color: var(--el-datepicker-active-color);
|
||||||
|
border-radius: 100px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ const FakeChart = {
|
|||||||
left: '5%',
|
left: '5%',
|
||||||
right: '12%',
|
right: '12%',
|
||||||
top: '20%',
|
top: '20%',
|
||||||
bottom: '10%'
|
bottom: '22%'
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
text: i18n.t('eq.productQuality')
|
text: i18n.t('eq.productQuality')
|
||||||
@@ -318,6 +318,19 @@ const FakeChart = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
dataZoom: [
|
||||||
|
{
|
||||||
|
type: 'slider',
|
||||||
|
start: 0,
|
||||||
|
end: 100,
|
||||||
|
// 最大的放大是图形的2%
|
||||||
|
// maxSpan: 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
start: 0,
|
||||||
|
end: 10
|
||||||
|
}
|
||||||
|
],
|
||||||
series: [
|
series: [
|
||||||
// dynamic
|
// dynamic
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user