update 1019

This commit is contained in:
lb 2023-10-19 14:47:18 +08:00
parent 31b2cfcee6
commit 002c5a80e5
4 changed files with 66 additions and 32 deletions

View File

@ -6,26 +6,54 @@ export default (x_data, y_data) => ({
title: { title: {
text: "窑车温度", text: "窑车温度",
}, },
grid: { grid: [
show: true, {
top: 96, id: 'temp-grid',
left: 52, show: true,
right: 32, top: 96,
bottom: 24, left: 56,
}, right: 56,
xAxis: { bottom: 32,
type: "category", },
data: Array(65) {
.fill(1) id: 'lambda-grid',
.map((val, index) => { top: 0,
return val + index; left: 0,
}), right: 0,
axisLine: { bottom: 0
lineStyle: { }
color: colors.line ],
xAxis: [
{
gridIndex: 0,
id: 'temp-x-axis',
type: "category",
data: Array(65)
.fill(1)
.map((val, index) => {
return val + index;
}),
axisLine: {
lineStyle: {
color: colors.line
},
}, },
}, },
}, {
gridIndex: 1,
id: 'lambda-x-axis',
data: Array(65)
.fill(1)
.map((val, index) => {
return val + index;
}),
axisLine: {
lineStyle: {
color: colors.line
}
}
}
],
yAxis: { yAxis: {
type: "value", type: "value",
name: "温度", name: "温度",

View File

@ -8,7 +8,8 @@ export default [
{ width: 60, prop: "code", label: "位置" }, { width: 60, prop: "code", label: "位置" },
{ width: 60, prop: "temp1", label: "温度" }, { width: 60, prop: "temp1", label: "温度" },
{ width: 80, prop: "press1", label: "窑内压力" }, { width: 80, prop: "press1", label: "窑内压力" },
{ width: 80, prop: "press2", label: "车下压力" }, { width: 128, prop: "press2", label: "燃气消耗量(m3)" },
{ prop: "remark", label: "lambda" },
{ prop: "createTime", label: "时间", filter: timeFilter }, { prop: "createTime", label: "时间", filter: timeFilter },
// { prop: "endTime", label: "结束时间", filter: timeFilter }, // { prop: "endTime", label: "结束时间", filter: timeFilter },
// { // {

View File

@ -3,15 +3,14 @@
:visible="visible" :visible="visible"
title="烧制温度" title="烧制温度"
class="temperature-dialog" class="temperature-dialog"
width="80%" width="90%"
@close="handleClose" @close="handleClose"
:destroy-on-close="false" :destroy-on-close="false"
:close-on-click-modal="false" :close-on-click-modal="false">
>
<div class="data-list"> <div class="data-list">
<BaseListTable <BaseListTable
v-loading="tableLoading" v-loading="tableLoading"
style="height: 85%" style="height: 90%"
:table-config="{ height: '100%' }" :table-config="{ height: '100%' }"
:column-config="tableConfig" :column-config="tableConfig"
:table-data="dataList" :table-data="dataList"
@ -30,8 +29,9 @@
:total="totalPage" :total="totalPage"
layout="total, sizes, prev, pager, next, jumper"></el-pagination> layout="total, sizes, prev, pager, next, jumper"></el-pagination>
</div> </div>
<div class="temp-chart" style="height: 300px;"> <div class="temp-chart" style="height: 100%; overflow: hidden;">
<div id="temp-chart" class="temp-chart__inner" style="height: 100%;" /> <div id="temp-chart" class="temp-chart__inner" style="height: 100%; background:#ccc;" />
<!-- <div id="lambda-chart" class="lambda-chart__inner" style="height: 50%; background: #f001;" /> -->
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
@ -93,14 +93,14 @@ export default {
if (res.code === 0) { if (res.code === 0) {
if ("list" in res.data) { if ("list" in res.data) {
this.dataList = res.data.list; this.dataList = res.data.list;
this.totalPage = res.data.total this.totalPage = res.data.total;
} else if (Array.isArray(res.data)) { } else if (Array.isArray(res.data)) {
this.dataList = res.data; this.dataList = res.data;
this.totalPage = res.data.length this.totalPage = res.data.length;
} // else ... } // else ...
} else { } else {
this.dataList.splice(0); this.dataList.splice(0);
this.totalPage = 0 this.totalPage = 0;
} }
// this.dataList = [ // this.dataList = [
// { id: 1, code: 1, press1: 1, press2: 1, createTime: "2023-4-21 01:00:00", temp1: 1000 }, // { id: 1, code: 1, press1: 1, press2: 1, createTime: "2023-4-21 01:00:00", temp1: 1000 },
@ -122,7 +122,12 @@ export default {
// dataList 线 // dataList 线
if (!this.chart) this.chart = echarts.init(document.getElementById("temp-chart")); if (!this.chart) this.chart = echarts.init(document.getElementById("temp-chart"));
// const y_data = Array(65).fill(0) // const y_data = Array(65).fill(0)
this.chart.setOption(loadChartConfig(null, this.dataList.map(i => i.temp1))); this.chart.setOption(
loadChartConfig(
null,
this.dataList.map((i) => i.temp1)
)
);
}, },
handleOperate() {}, handleOperate() {},
handlePageChange(page) { handlePageChange(page) {
@ -152,7 +157,7 @@ export default {
.data-list, .data-list,
.temp-chart { .temp-chart {
/* border: 1px solid #ccc; */ /* border: 1px solid #ccc; */
width: 35%; width: 45%;
overflow-y: auto; overflow-y: auto;
position: relative; position: relative;
} }
@ -161,7 +166,7 @@ export default {
flex: 1; flex: 1;
/* margin-left: 18px; */ /* margin-left: 18px; */
padding-left: 10px; padding-left: 10px;
margin-left: 10px;
/* border-left: 1px solid #ccc; */ /* border-left: 1px solid #ccc; */
/* background-color: lightblue; */ /* background-color: lightblue; */
} }

View File

@ -83,7 +83,7 @@ export default function () {
const dialogJustFormConfigs = null; const dialogJustFormConfigs = null;
const carPayloadDialogConfigs = { const carPayloadDialogConfigs = {
dialogWidth: "70%", dialogWidth: "100%",
carPayloadDialog: true, carPayloadDialog: true,
clickModalToClose: false, clickModalToClose: false,
tableConfig: { tableConfig: {