|
@@ -1,95 +1,93 @@
|
|
|
<template>
|
|
|
<div class="powerLinefitting">
|
|
|
- <div class="powerLinefitting_topAll">
|
|
|
- <div class="powerLinefitting_top">
|
|
|
- <div class="form-wrapper">
|
|
|
- <div class="select-wrapper">
|
|
|
- <el-select
|
|
|
- size="mini"
|
|
|
- v-model="tabEvent"
|
|
|
- placeholder="请选择"
|
|
|
- @change="changeBtn"
|
|
|
+ <div class="powerLinefitting_top">
|
|
|
+ <div class="form-wrapper">
|
|
|
+ <div class="select-wrapper">
|
|
|
+ <el-select
|
|
|
+ size="mini"
|
|
|
+ v-model="tabEvent"
|
|
|
+ placeholder="请选择"
|
|
|
+ @change="changeBtn"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in tabOptions"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
>
|
|
|
- <el-option
|
|
|
- v-for="item in tabOptions"
|
|
|
- :key="item.id"
|
|
|
- :label="item.name"
|
|
|
- :value="item.id"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- <el-select
|
|
|
- size="mini"
|
|
|
- v-model="companyVal"
|
|
|
- placeholder="请选择"
|
|
|
- @change="changeCompan"
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-select
|
|
|
+ size="mini"
|
|
|
+ v-model="companyVal"
|
|
|
+ placeholder="请选择"
|
|
|
+ @change="changeCompan"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in companyOptions"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.aname"
|
|
|
+ :value="item.id"
|
|
|
>
|
|
|
- <el-option
|
|
|
- v-for="item in companyOptions"
|
|
|
- :key="item.id"
|
|
|
- :label="item.aname"
|
|
|
- :value="item.id"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- <el-select
|
|
|
- size="mini"
|
|
|
- v-model="stationVal"
|
|
|
- placeholder="请选择"
|
|
|
- @change="changeStation"
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-select
|
|
|
+ size="mini"
|
|
|
+ v-model="stationVal"
|
|
|
+ placeholder="请选择"
|
|
|
+ @change="changeStation"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in stationOptions"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.aname"
|
|
|
+ :value="item.id"
|
|
|
>
|
|
|
- <el-option
|
|
|
- v-for="item in stationOptions"
|
|
|
- :key="item.id"
|
|
|
- :label="item.aname"
|
|
|
- :value="item.id"
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="date-wrapper">
|
|
|
+ <div class="date-item-wrapper">
|
|
|
+ 开始时间
|
|
|
+ <div class="date-item-date">
|
|
|
+ <el-date-picker
|
|
|
+ size="mini"
|
|
|
+ v-model="starTime"
|
|
|
+ type="datetime"
|
|
|
+ value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
+ placeholder="选择时间"
|
|
|
>
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </div>
|
|
|
- <div class="date-wrapper">
|
|
|
- <div class="date-item-wrapper">
|
|
|
- 开始时间
|
|
|
- <div class="date-item-date">
|
|
|
- <el-date-picker
|
|
|
- size="mini"
|
|
|
- v-model="starTime"
|
|
|
- type="datetime"
|
|
|
- value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
- placeholder="选择时间"
|
|
|
- >
|
|
|
- </el-date-picker>
|
|
|
- </div>
|
|
|
+ </el-date-picker>
|
|
|
</div>
|
|
|
- <div class="date-item-wrapper">
|
|
|
- 结束时间
|
|
|
- <div class="date-item-date">
|
|
|
- <el-date-picker
|
|
|
- size="mini"
|
|
|
- v-model="endTime"
|
|
|
- type="datetime"
|
|
|
- value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
- placeholder="选择时间"
|
|
|
- >
|
|
|
- </el-date-picker>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="date-item-wrapper">
|
|
|
+ 结束时间
|
|
|
+ <div class="date-item-date">
|
|
|
+ <el-date-picker
|
|
|
+ size="mini"
|
|
|
+ v-model="endTime"
|
|
|
+ type="datetime"
|
|
|
+ value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
+ placeholder="选择时间"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="but">
|
|
|
- <el-button round size="mini" class="buttons" @click="getTableData"
|
|
|
- >查询</el-button
|
|
|
- >
|
|
|
- <el-button round size="mini" class="buttons" @click="handleAdd"
|
|
|
- >新增</el-button
|
|
|
- >
|
|
|
- <el-button round size="mini" class="buttons" @click="downXlsxFn"
|
|
|
- >导出</el-button
|
|
|
- >
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="but">
|
|
|
+ <el-button round size="mini" class="buttons" @click="getTableData"
|
|
|
+ >查询</el-button
|
|
|
+ >
|
|
|
+ <el-button round size="mini" class="buttons" @click="handleAdd"
|
|
|
+ >新增</el-button
|
|
|
+ >
|
|
|
+ <el-button round size="mini" class="buttons" @click="downXlsxFn"
|
|
|
+ >导出</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div style="background: rgba(0, 0, 0, 0.4)">
|
|
|
+ <div style="background: rgba(0, 0, 0, 0.4); height: calc(100% - 60px)">
|
|
|
<div class="powerLinefitting_title clearfix">
|
|
|
<div class="leftContent floatLeft"><span>清洗录入</span></div>
|
|
|
<div class="rightContent floatRight"></div>
|
|
@@ -100,7 +98,7 @@
|
|
|
:data="stationAnalyseData"
|
|
|
stripe
|
|
|
size="mini"
|
|
|
- height="80vh"
|
|
|
+ height="calc(100% - 35px)"
|
|
|
ref="fitting_table"
|
|
|
style="width: 100%"
|
|
|
@row-click="handleRowClick"
|
|
@@ -135,20 +133,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- <div class="powerLinefitting_Echarts">
|
|
|
- <div class="chart-name">
|
|
|
- <div class="point left bottom"></div>
|
|
|
- <div class="point right bottom"></div>
|
|
|
- <span>性能分析曲线</span>
|
|
|
- </div>
|
|
|
- <div class="fittingEchartSty">
|
|
|
- <doubleYAxisLineChart
|
|
|
- :tabEvent="tabEvent"
|
|
|
- :unit="'(W/m²)'"
|
|
|
- :list="stationLineData"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div> -->
|
|
|
<operation
|
|
|
ref="operation"
|
|
|
:stationOptions="stationOptions"
|
|
@@ -258,12 +242,12 @@ export default {
|
|
|
this.$refs["operation"].form.begindate = dayjs().format(
|
|
|
"YYYY-MM-DD HH:mm:ss"
|
|
|
);
|
|
|
- // this.$refs["operation"].form.planEnddate = dayjs().format(
|
|
|
- // "YYYY-MM-DD HH:mm:ss"
|
|
|
- // );
|
|
|
- // this.$refs["operation"].form.actualEnddate = dayjs().format(
|
|
|
- // "YYYY-MM-DD HH:mm:ss"
|
|
|
- // );
|
|
|
+ // this.$refs["operation"].form.planEnddate = dayjs().format(
|
|
|
+ // "YYYY-MM-DD HH:mm:ss"
|
|
|
+ // );
|
|
|
+ // this.$refs["operation"].form.actualEnddate = dayjs().format(
|
|
|
+ // "YYYY-MM-DD HH:mm:ss"
|
|
|
+ // );
|
|
|
this.$refs["operation"].openDialog();
|
|
|
},
|
|
|
//编辑
|
|
@@ -318,132 +302,105 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style lang="less">
|
|
|
+<style lang="less" scoped>
|
|
|
.powerLinefitting {
|
|
|
padding: 0 23px;
|
|
|
- .powerLinefitting_topAll {
|
|
|
+ height: 100%;
|
|
|
+ .powerLinefitting_top ::v-deep{
|
|
|
display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- .powerLinefitting_top {
|
|
|
+ flex-direction: row;
|
|
|
+ align-items: center;
|
|
|
+ margin-top: 10px;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ padding-left: 10px;
|
|
|
+ .form-wrapper {
|
|
|
display: flex;
|
|
|
- flex-direction: row;
|
|
|
align-items: center;
|
|
|
- margin-top: 10px;
|
|
|
- margin-bottom: 10px;
|
|
|
- .form-wrapper {
|
|
|
+ .select-wrapper {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- .select-wrapper {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- .el-select {
|
|
|
- width: 155px;
|
|
|
- .el-input .el-input__inner {
|
|
|
- width: 150px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .date-wrapper {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- font-size: 14px;
|
|
|
- font-family: Microsoft YaHei;
|
|
|
- font-weight: 400;
|
|
|
- color: #b3b3b3;
|
|
|
- margin-left: 10px;
|
|
|
- .date-item-wrapper {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- margin-right: 15px;
|
|
|
- .date-item-date {
|
|
|
- margin-left: 10px;
|
|
|
- .el-input .el-input__inner {
|
|
|
- font-size: 13px;
|
|
|
- color: #b3b3b3;
|
|
|
- }
|
|
|
- }
|
|
|
+ .el-select {
|
|
|
+ width: 155px;
|
|
|
+ .el-input .el-input__inner {
|
|
|
+ width: 150px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .station {
|
|
|
+ .date-wrapper {
|
|
|
display: flex;
|
|
|
- flex-direction: row;
|
|
|
align-items: center;
|
|
|
font-size: 14px;
|
|
|
font-family: Microsoft YaHei;
|
|
|
font-weight: 400;
|
|
|
color: #b3b3b3;
|
|
|
- margin-right: 25px;
|
|
|
- }
|
|
|
- .search-input {
|
|
|
margin-left: 10px;
|
|
|
- .el-input__inner {
|
|
|
- width: 175px;
|
|
|
- }
|
|
|
- .el-input__suffix {
|
|
|
- right: -50px;
|
|
|
+ .date-item-wrapper {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-right: 15px;
|
|
|
+ .date-item-date {
|
|
|
+ margin-left: 10px;
|
|
|
+ .el-input .el-input__inner {
|
|
|
+ font-size: 13px;
|
|
|
+ color: #b3b3b3;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+ }
|
|
|
+ .station {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ align-items: center;
|
|
|
+ font-size: 14px;
|
|
|
+ font-family: Microsoft YaHei;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #b3b3b3;
|
|
|
+ margin-right: 25px;
|
|
|
+ }
|
|
|
+ .search-input {
|
|
|
+ margin-left: 10px;
|
|
|
+ .el-input__inner {
|
|
|
+ width: 175px;
|
|
|
+ }
|
|
|
+ .el-input__suffix {
|
|
|
+ right: -50px;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- .but {
|
|
|
- display: flex;
|
|
|
- flex-direction: row;
|
|
|
- align-content: center;
|
|
|
- .buttons:nth-child(1) {
|
|
|
- background: rgba(0, 70, 199, 0.6);
|
|
|
- border: 1px solid #1f51ae;
|
|
|
+ .but {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ align-content: center;
|
|
|
+ .buttons:nth-child(1) {
|
|
|
+ background: rgba(0, 70, 199, 0.6);
|
|
|
+ border: 1px solid #1f51ae;
|
|
|
+ border-radius: 13px;
|
|
|
+ color: #fff;
|
|
|
+ &:hover {
|
|
|
+ background: rgba(14, 90, 229, 0.9);
|
|
|
border-radius: 13px;
|
|
|
color: #fff;
|
|
|
- &:hover {
|
|
|
- background: rgba(14, 90, 229, 0.9);
|
|
|
- border-radius: 13px;
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- .buttons:nth-child(2) {
|
|
|
- background: rgba(0, 70, 199, 0.6);
|
|
|
- border: 1px solid #1f51ae;
|
|
|
+ .buttons:nth-child(2) {
|
|
|
+ background: rgba(0, 70, 199, 0.6);
|
|
|
+ border: 1px solid #1f51ae;
|
|
|
+ border-radius: 13px;
|
|
|
+ color: #fff;
|
|
|
+ &:hover {
|
|
|
+ background: rgba(14, 90, 229, 0.9);
|
|
|
border-radius: 13px;
|
|
|
color: #fff;
|
|
|
- &:hover {
|
|
|
- background: rgba(14, 90, 229, 0.9);
|
|
|
- border-radius: 13px;
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
- }
|
|
|
- .buttons:nth-child(3) {
|
|
|
- background: rgba(67, 81, 107, 0.3);
|
|
|
- border: 1px solid #3b4c6c;
|
|
|
- border-radius: 13px;
|
|
|
- font-size: 14px;
|
|
|
- color: #b3b3b3;
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- .selections {
|
|
|
- display: flex;
|
|
|
- margin-top: 10px;
|
|
|
- position: relative;
|
|
|
- right: 120px;
|
|
|
- .selections_btn {
|
|
|
- flex: 0 0 55px;
|
|
|
- text-align: center;
|
|
|
- height: 33px;
|
|
|
- line-height: 33px;
|
|
|
- margin-right: 8px;
|
|
|
- color: #fff;
|
|
|
- font-size: 1.296vh;
|
|
|
- background: fade(#606769, 20);
|
|
|
- border: 1px solid fade(#606769, 20);
|
|
|
- border-radius: 20px;
|
|
|
- &:hover,
|
|
|
- &.active {
|
|
|
- background: fade(#0046c7, 80);
|
|
|
- border: 1px solid #0046c7;
|
|
|
- color: #b9b9b9;
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
+ .buttons:nth-child(3) {
|
|
|
+ background: rgba(67, 81, 107, 0.3);
|
|
|
+ border: 1px solid #3b4c6c;
|
|
|
+ border-radius: 13px;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #b3b3b3;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -487,9 +444,10 @@ export default {
|
|
|
zoom: 1;
|
|
|
}
|
|
|
|
|
|
- .powerLinefitting_Table {
|
|
|
+ .powerLinefitting_Table ::v-deep{
|
|
|
margin: 0 5px 5px 5px;
|
|
|
padding-bottom: 10px;
|
|
|
+ height: calc(100% - 41px - 10px);
|
|
|
.operationBtn {
|
|
|
cursor: pointer;
|
|
|
color: #1c99ff;
|
|
@@ -561,81 +519,5 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .powerLinefitting_Echarts {
|
|
|
- margin-top: 10px;
|
|
|
- width: 100%;
|
|
|
- background: rgba(0, 0, 0, 0.45);
|
|
|
- position: relative;
|
|
|
- height: 39px;
|
|
|
- // border-bottom: 1px solid rgba(153, 153, 153, 0.5);
|
|
|
- font-size: 16px;
|
|
|
- font-family: Microsoft YaHei;
|
|
|
- font-weight: 400;
|
|
|
- color: #ffffff;
|
|
|
- .chart-name {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- padding-left: 20px;
|
|
|
- position: relative;
|
|
|
- height: 39px;
|
|
|
- width: 98%;
|
|
|
- margin-left: 1%;
|
|
|
- border-bottom: 1px solid rgba(153, 153, 153, 0.5);
|
|
|
- font-size: 16px;
|
|
|
- font-family: Microsoft YaHei;
|
|
|
- font-weight: 400;
|
|
|
- color: #ffffff;
|
|
|
- .point {
|
|
|
- width: 6px;
|
|
|
- height: 1px;
|
|
|
- background-color: #ffffff;
|
|
|
- position: absolute;
|
|
|
-
|
|
|
- &.left {
|
|
|
- left: 0;
|
|
|
- }
|
|
|
-
|
|
|
- &.right {
|
|
|
- right: 0;
|
|
|
- }
|
|
|
-
|
|
|
- &.top {
|
|
|
- top: -1px;
|
|
|
- }
|
|
|
-
|
|
|
- &.bottom {
|
|
|
- bottom: -1px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .fittingEchartSty {
|
|
|
- width: 100%;
|
|
|
- height: 280px;
|
|
|
- background: rgba(0, 0, 0, 0.45);
|
|
|
- }
|
|
|
- }
|
|
|
- .el-overlay {
|
|
|
- .el-overlay-dialog {
|
|
|
- overflow-y: hidden !important;
|
|
|
- .powerLinefittinghistoryModel {
|
|
|
- margin-top: 0 !important;
|
|
|
- .el-dialog__body {
|
|
|
- padding-top: 10px;
|
|
|
- }
|
|
|
- }
|
|
|
- .contrastModal {
|
|
|
- .el-dialog__body {
|
|
|
- padding-top: 10px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .el-picker__popper .el-date-range-picker__header .el-picker-panel__icon-btn {
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
- .el-picker__popper .el-date-table .in-range div {
|
|
|
- background: #43516b;
|
|
|
- }
|
|
|
}
|
|
|
</style>
|