Merge branch 'projects/mescc/develop' into projects/mescc/zjl

This commit is contained in:
朱菊兰 2024-06-24 13:27:57 +08:00
commit 3c6e408074
10 changed files with 67 additions and 75 deletions

View File

@ -1,7 +1,7 @@
### ###
# @Author: zhp # @Author: zhp
# @Date: 2024-04-28 13:42:51 # @Date: 2024-04-28 13:42:51
# @LastEditTime: 2024-06-21 13:40:38 # @LastEditTime: 2024-06-24 08:29:45
# @LastEditors: zhp # @LastEditors: zhp
# @Description: # @Description:
### ###

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2024-06-19 15:28:34 * @Date: 2024-06-19 15:28:34
* @LastEditTime: 2024-06-21 14:37:44 * @LastEditTime: 2024-06-24 08:46:34
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
--> -->
@ -83,7 +83,7 @@ export default {
dataZoom: [// dataZoom: [//
{ {
// //
show: true, show: false,
// //
type: "slider", type: "slider",
// //

View File

@ -1,14 +1,7 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2024-06-20 16:13:36 * @Date: 2024-06-20 16:13:36
* @LastEditTime: 2024-06-21 14:37:56 * @LastEditTime: 2024-06-24 08:46:42
* @LastEditors: zhp
* @Description:
-->
<!--
* @Author: zhp
* @Date: 2024-06-19 15:28:34
* @LastEditTime: 2024-06-20 16:02:21
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
--> -->
@ -90,7 +83,7 @@ export default {
dataZoom: [// dataZoom: [//
{ {
// //
show: true, show: false,
// //
type: "slider", type: "slider",
// //

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2024-06-20 16:13:52 * @Date: 2024-06-20 16:13:52
* @LastEditTime: 2024-06-21 14:37:59 * @LastEditTime: 2024-06-24 08:46:46
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
--> -->
@ -83,7 +83,7 @@ export default {
dataZoom: [// dataZoom: [//
{ {
// //
show: true, show: false,
// //
type: "slider", type: "slider",
// //

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2024-06-21 09:05:14 * @Date: 2024-06-21 09:05:14
* @LastEditTime: 2024-06-21 14:38:06 * @LastEditTime: 2024-06-24 08:46:49
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
--> -->
@ -101,7 +101,7 @@ export default {
dataZoom: [// dataZoom: [//
{ {
// //
show: true, show: false,
// //
type: "slider", type: "slider",
// //

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2024-04-15 10:49:13 * @Date: 2024-04-15 10:49:13
* @LastEditTime: 2024-06-21 15:18:20 * @LastEditTime: 2024-06-24 09:39:27
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
--> -->
@ -58,7 +58,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<base-table :span-method="objectSpanMethod" :table-props="tableProps" :page="listQuery.pageNo" <base-table :span-method="objectSpanMethod" :table-props="tableProps" :page="listQuery.pageNo"
:limit="listQuery.pageSize" :table-data="tableData"> :limit="listQuery.pageSize" :table-data="tableData" :max-height="tableH">
</base-table> </base-table>
</div> </div>
</div> </div>
@ -101,6 +101,7 @@ export default {
end: undefined, end: undefined,
reportTime: [] reportTime: []
}, },
tableH: this.tableHeight(269),
timeList: [ timeList: [
{ {
value: 0, value: 0,
@ -191,6 +192,7 @@ export default {
// this.changeTime() // this.changeTime()
// }, // },
mounted() { mounted() {
this.tableH = this.tableHeight(269);
// this.getOverView() // this.getOverView()
const today = new Date() const today = new Date()
const sevenDaysAgo = new Date(today.getTime() - (7 * 24 * 60 * 60 * 1000)) const sevenDaysAgo = new Date(today.getTime() - (7 * 24 * 60 * 60 * 1000))
@ -489,7 +491,7 @@ export default {
if (res.data.length === 0) { if (res.data.length === 0) {
this.tableData = [] this.tableData = []
} else { } else {
if (this.currentMenu !== '瑞昌') { if (this.currentMenu != '瑞昌') {
this.tableData = dataArr this.tableData = dataArr
} else { } else {
this.tableData = dataArr.filter(function (item) { this.tableData = dataArr.filter(function (item) {
@ -497,13 +499,6 @@ export default {
}); });
} }
} }
this.listQuery.total = res.data.total
if (this.listQuery.total > 0) {
this.tableData.forEach(item => {
item.startTime = item.startDate ? item.startDate[0] + '-' + item.startDate[1] + '-' + item.startDate[2] : '--'
item.endTime = item.endDate ? item.endDate[0] + '-' + item.endDate[1] + '-' + item.endDate[2] : '--'
})
}
}, },
buttonClick(val) { buttonClick(val) {
this.listQuery.factorys = val.factory?.length > 0 ? val.factory : undefined this.listQuery.factorys = val.factory?.length > 0 ? val.factory : undefined

View File

@ -195,26 +195,7 @@ export default {
{ {
name: "", name: "",
// yAxisIndex: 0, // yAxisIndex: 0,
data: [ data: [],
{
value: 1,
itemStyle: {
color: '#8EF0AB'
}
},
{
value: 2,
itemStyle: {
color: '#288AFF'
}
},
{
value: 0,
yAxisIndex: 1,
itemStyle: {
color: '#64BDFF'
}
}],
type: "bar", type: "bar",
barWidth: 20, barWidth: 20,
label: { label: {
@ -229,13 +210,7 @@ export default {
{ {
name: '', name: '',
type: 'bar', type: 'bar',
data: [0, 0, 0, data: [],
{
value: 5,
itemStyle: {
color: '#68C483'
}
}],
type: "bar", type: "bar",
barWidth: 20, barWidth: 20,
label: { label: {
@ -370,7 +345,7 @@ export default {
watch: { watch: {
// //
isOpen(val) { isOpen(val) {
if (this.$route.name === "ChipYieldBM") { if (this.$route.name === "produceConversion") {
this.chartNum++; this.chartNum++;
} }
}, },
@ -385,7 +360,7 @@ export default {
}, },
activated() { activated() {
// //
if (this.$route.name === "ChipYieldBM") { if (this.$route.name === "produceConversion") {
this.chartNum++; this.chartNum++;
} }
}, },
@ -513,6 +488,12 @@ export default {
async getDataList() { async getDataList() {
this.otherProps = [] this.otherProps = []
this.chartMsg.xData = [] this.chartMsg.xData = []
this.chartMsg.series[0].data = []
this.chartMsg.series[1].data = []
this.chartMsg.series[2].data = []
this.chartMsgYearTarget.series[0].data = []
this.chartMsgYearTarget.series[1].data = []
console.log(this.listQuery); console.log(this.listQuery);
if (this.listQuery.type == 3) { if (this.listQuery.type == 3) {
this.listQuery.beginTime = this.listQuery.reportTime[0] this.listQuery.beginTime = this.listQuery.reportTime[0]
@ -676,7 +657,7 @@ export default {
_setTableHeight() { _setTableHeight() {
this.tableH = this.tableHeight(137) / 2 - 70; this.tableH = this.tableHeight(137) / 2 - 70;
this.chartHeight = this.tableHeight(137) / 2 - 111; this.chartHeight = this.tableHeight(137) / 2 - 111;
if (this.$route.name === "ChipYieldBM") { if (this.$route.name === "produceConversion") {
this.chartNum++; this.chartNum++;
} }
}, },

View File

@ -95,6 +95,9 @@
</el-col> --> </el-col> -->
</el-row> </el-row>
<el-row v-else> <el-row v-else>
<div class="blueTip">
生产情况对比
</div>
<!-- <el-col :span="12"> --> <!-- <el-col :span="12"> -->
<bm-line-bar :type="listQuery.type" :chartHeight="chartHeight" :legendList="legendList" :chartMsg="chartMsg" <bm-line-bar :type="listQuery.type" :chartHeight="chartHeight" :legendList="legendList" :chartMsg="chartMsg"
:chartId="chartId" :chartNum="chartNum" /> :chartId="chartId" :chartNum="chartNum" />
@ -291,7 +294,7 @@ export default {
}, },
computed: { computed: {
dataArr() { dataArr() {
if (this.currentMenu != '瑞昌') { // if (this.currentMenu != '') {
return [{ return [{
factory: null, factory: null,
item: '芯片总功率', item: '芯片总功率',
@ -302,7 +305,7 @@ export default {
item: ' 标准组件总功率', item: ' 标准组件总功率',
unit: 'MW' unit: 'MW'
}] }]
} // }
}, },
tableProps() { tableProps() {
return [ return [
@ -484,6 +487,11 @@ export default {
this.chartMsg.xData = [] this.chartMsg.xData = []
this.chartMsgTarget.xData = [] this.chartMsgTarget.xData = []
this.chartMsgYearTarget.xData = [] this.chartMsgYearTarget.xData = []
this.chartMsg.series[0].data = []
this.chartMsg.series[1].data = []
this.chartMsgTarget.series = []
this.chartMsgYearTarget.series[0].data = []
this.chartMsgYearTarget.series[1].data = []
console.log(this.listQuery); console.log(this.listQuery);
let arr = [] let arr = []
this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0) this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0)

View File

@ -95,6 +95,9 @@
</el-col> --> </el-col> -->
</el-row> </el-row>
<el-row v-else> <el-row v-else>
<div class="blueTip">
生产情况对比
</div>
<!-- <el-col :span="12"> --> <!-- <el-col :span="12"> -->
<bm-line-bar :type="listQuery.type" :chartHeight="chartHeight" :legendList="legendList" :chartMsg="chartMsg" <bm-line-bar :type="listQuery.type" :chartHeight="chartHeight" :legendList="legendList" :chartMsg="chartMsg"
:chartId="chartId" :chartNum="chartNum" /> :chartId="chartId" :chartNum="chartNum" />
@ -257,9 +260,7 @@ export default {
}, },
axisLabel: {}, axisLabel: {},
}, },
series: [ series: [],
],
}, },
chartMsg: { chartMsg: {
color: ["#8EF0AB", "#288AFF", "#64BDFF", '#7164FF'], color: ["#8EF0AB", "#288AFF", "#64BDFF", '#7164FF'],
@ -425,7 +426,7 @@ export default {
watch: { watch: {
// //
isOpen(val) { isOpen(val) {
if (this.$route.name === "ChipYieldBM") { if (this.$route.name === "productionSituationTablets") {
this.chartNum++; this.chartNum++;
} }
}, },
@ -440,7 +441,7 @@ export default {
}, },
activated() { activated() {
// //
if (this.$route.name === "ChipYieldBM") { if (this.$route.name === "productionSituationTablets") {
this.chartNum++; this.chartNum++;
} }
}, },
@ -570,6 +571,19 @@ export default {
this.chartMsg.xData = [] this.chartMsg.xData = []
this.chartMsgTarget.xData = [] this.chartMsgTarget.xData = []
this.chartMsgYearTarget.xData = [] this.chartMsgYearTarget.xData = []
this.chartMsg.series[0].data = []
this.chartMsg.series[1].data = []
this.chartMsg.series[2].data = []
if (this.chartMsg.series[3]) {
this.chartMsg.series[3].data = []
}
this.chartMsgTarget.series = []
this.chartMsgYearTarget.series[0].data = []
this.chartMsgYearTarget.series[1].data = []
this.chartMsgYearTarget.series[2].data = []
if (this.chartMsgYearTarget.series[3]) {
this.chartMsgYearTarget.series[3].data = []
}
console.log(this.listQuery); console.log(this.listQuery);
let arr = [] let arr = []
this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0) this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0)
@ -1188,6 +1202,7 @@ export default {
for (let i in this.dataArr[0]) { for (let i in this.dataArr[0]) {
this.chartMsg.series[0].name = this.dataArr[0]['item'] this.chartMsg.series[0].name = this.dataArr[0]['item']
if (i.search('value') === 0) { if (i.search('value') === 0) {
console.log("this.dataArr[0]['item']", this.dataArr[0]['item'], this.dataArr[0][i]);
this.chartMsg.series[0].data.push({ this.chartMsg.series[0].data.push({
name: this.dataArr[0]['item'], name: this.dataArr[0]['item'],
value: this.dataArr[0][i] value: this.dataArr[0][i]
@ -1224,6 +1239,7 @@ export default {
} }
} }
} }
console.log(this.dataArr[0]['item'],this.chartMsg.series[0].data)
this.tableData = res.data.length != 0 ? this.dataArr : [] this.tableData = res.data.length != 0 ? this.dataArr : []
// this.tableProps = otherProps // this.tableProps = otherProps
// res.data.list.forEach((ele) => { // res.data.list.forEach((ele) => {
@ -1253,7 +1269,7 @@ export default {
_setTableHeight() { _setTableHeight() {
this.tableH = this.tableHeight(137) / 2 - 70; this.tableH = this.tableHeight(137) / 2 - 70;
this.chartHeight = this.tableHeight(137) / 2 - 111; this.chartHeight = this.tableHeight(137) / 2 - 111;
if (this.$route.name === "ChipYieldBM") { if (this.$route.name === "productionSituationTablets") {
this.chartNum++; this.chartNum++;
} }
}, },

View File

@ -364,7 +364,7 @@ export default {
}, },
isOpen(val) { isOpen(val) {
if (this.$route.name === "ChipYieldBM") { if (this.$route.name === "productionYield") {
this.chartNum++; this.chartNum++;
} }
}, },
@ -507,6 +507,12 @@ export default {
async getDataList() { async getDataList() {
this.otherProps = [] this.otherProps = []
this.chartMsg.xData = [] this.chartMsg.xData = []
this.chartMsg.series[0].data = []
this.chartMsg.series[1].data = []
this.chartMsg.series[2].data = []
this.chartMsg.series[3].data = []
this.chartMsgYearTarget.series[0].data = []
this.chartMsgYearTarget.series[1].data = []
let arr = [] let arr = []
this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0) this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0)
this.listQuery.factory = arr this.listQuery.factory = arr
@ -660,7 +666,7 @@ export default {
} }
} }
} else { } else {
res.data.list.slice.forEach((ele, index) => { res.data.list.forEach((ele, index) => {
let i = index + 1 let i = index + 1
this.chartMsg.xData.push(ele.titleValue) this.chartMsg.xData.push(ele.titleValue)
this.otherProps.push({ this.otherProps.push({
@ -724,18 +730,11 @@ export default {
console.log(dataArr) console.log(dataArr)
this.tableData = res.data.length != 0 ? dataArr : [] this.tableData = res.data.length != 0 ? dataArr : []
// this.tableProps.push() // this.tableProps.push()
this.listQuery.total = res.data.total
if (this.listQuery.total > 0) {
this.tableData.forEach(item => {
item.startTime = item.startDate ? item.startDate[0] + '-' + item.startDate[1] + '-' + item.startDate[2] : '--'
item.endTime = item.endDate ? item.endDate[0] + '-' + item.endDate[1] + '-' + item.endDate[2] : '--'
})
}
}, },
_setTableHeight() { _setTableHeight() {
this.tableH = this.tableHeight(137) / 2 - 70; this.tableH = this.tableHeight(137) / 2 - 70;
this.chartHeight = this.tableHeight(137) / 2 - 111; this.chartHeight = this.tableHeight(137) / 2 - 111;
if (this.$route.name === "ChipYieldBM") { if (this.$route.name === "productionYield") {
this.chartNum++; this.chartNum++;
} }
}, },