Przeglądaj źródła

2022-10-28 merge

1. 调整指标参数的获取 由后台提供
2. 调整可研电量的部分接口参数
moccus 2 lat temu
rodzic
commit
4c540b5299

+ 7 - 1
src/api/station.js

@@ -176,7 +176,6 @@ const getAdmList =(data)=>{
 		method:"get"
   })
 }
-
 // 区域保存 post:http://localhost:7020/region/save2
 // 区域更新 Put:http://localhost:7020/region/editRegions
 const addSave =(pairs)=>{
@@ -191,6 +190,12 @@ const editSave =(pairs)=>{
       url:`/region/editRegions`,
       method:"put",
       data: [pairs]
+		})
+}
+const standardpoint =(data)=>{
+  return request({
+		url:`/standardpoint/list?pageNum=${data.pageNum}&pageSize=${data.pageSize}`,
+		method:"get"
   })
 }
 export default {
@@ -225,4 +230,5 @@ export default {
 	deleteMeterpoint,
 	getStationPersis,
 	getAdmList,
+	standardpoint,
 };

+ 8 - 1
src/api/table.js

@@ -55,7 +55,7 @@ const newtreeTreels=(data)=>{
 // 可研电量
 const projectstudy =(data)=>{
   return request({
-      url:`/projectstudy/List?name=${encodeURIComponent(data.name)}&pageNum=${data.pageNum}&pageSize=${data.pageSize}`,
+      url:`/projectstudy/List?id=${data.id}&pageNum=${data.pageNum}&pageSize=${data.pageSize}`,
       method:"get"
   })
 }
@@ -72,11 +72,18 @@ const deleteProjectstudy =(data)=>{
       method:"delete",
   })
 }
+const treels=(data)=>{
+  return request({
+      url:`/newtree/treels`,
+      method:"get"
+  })
+}
 export default {
   projectplan,
   addProjectplan,
   removeProjectplan,
   wtls,
+	treels,
   indicators,
   addIndicators,
   removeIndicators,

+ 112 - 111
src/views/indicators/components/TableEdit.vue

@@ -1,124 +1,125 @@
 <template>
-  <el-dialog :title="title" :visible.sync="dialogFormVisible" width="800px" @close="close">
-    <el-form ref="form" :model="form" :rules="rules" label-width="120px">
-      <el-form-item label="场站" prop="stationid">
-         <el-cascader 
-            ref="cascaderRef"
-            @change="cascaderChange"
-            v-model="form.stationid" 
-            :options="options" 
-            style="width: 200px" 
-            :props="{ checkStrictly: true, label: 'name', value: 'id' , children:'children'}" 
-            clearable />
-      </el-form-item>
-      <el-form-item label="录入时间" prop="createtime">
-        <el-date-picker style="width: 200px" v-model="form.createtime" type="datetime" placeholder="选择日期时间"></el-date-picker>
-      </el-form-item>
-      <el-form-item label="指标" prop="kay">
-        <el-select style="width: 200px" v-model="form.kay" placeholder="请选择" clearable :disabled="!idAdd?true:false">
-          <el-option v-for="item in keyList" :key="item.name" :label="item.name" :value="item.name">
-          </el-option>
-        </el-select>
-      </el-form-item>
-      <el-form-item label="值" prop="value">
-        <el-input style="width: 200px" class="inputs" v-model="form.value" placeholder="请输入"></el-input>
-      </el-form-item>
-    </el-form>
-    <div slot="footer" class="dialog-footer">
-      <el-button @click="close">取 消</el-button>
-      <el-button type="primary" @click="handleSave()">确 定</el-button>
-    </div>
-  </el-dialog>
+	<el-dialog :title="title" :visible.sync="dialogFormVisible" width="800px" @close="close">
+		<el-form ref="form" :model="form" :rules="rules" label-width="120px">
+			<el-form-item label="场站" prop="stationid">
+				<el-cascader ref="cascaderRef" @change="cascaderChange" v-model="form.stationid" :options="options"
+					style="width: 200px" :props="{ checkStrictly: true, label: 'name', value: 'id', children: 'children' }"
+					clearable />
+			</el-form-item>
+			<el-form-item label="录入时间" prop="createtime">
+				<el-date-picker style="width: 200px" v-model="form.createtime" type="datetime" placeholder="选择日期时间">
+				</el-date-picker>
+			</el-form-item>
+			<el-form-item label="指标" prop="kay">
+				<el-select style="width: 200px" v-model="form.kay" placeholder="请选择" clearable
+					:disabled="!idAdd ? true : false">
+					<el-option v-for="item in standardList" :key="item.uniformcode" :label="item.name" :value="item.uniformcode">
+					</el-option>
+				</el-select>
+			</el-form-item>
+			<el-form-item label="值" prop="value">
+				<el-input style="width: 200px" class="inputs" v-model="form.value" placeholder="请输入"></el-input>
+			</el-form-item>
+		</el-form>
+		<div slot="footer" class="dialog-footer">
+			<el-button @click="close">取 消</el-button>
+			<el-button type="primary" @click="handleSave()">确 定</el-button>
+		</div>
+	</el-dialog>
 </template>
 
 <script>
 import api from '@/api/table'
 import dayjs from "dayjs";
 export default {
-  name: 'TableEdit',
-  props: {
-    stationList: {
-      type: Array,
-      default: []
-    },
-    options: {
-      type: Array,
-      default: []
-    },
-  },
-  data() {
-    return {
-      keyList: [{ name: '发电量' }, { name: '平均功率' }, { name: '最优功率' }],
-      form: {
-        kay: '',
-        createtime: '',
-        stationid: '',
-        stationname: '',
-        stationidArr: '',
-        stationnameArr: '',
-        value: '',
-      },
-      rules: {
-        stationid: [{ required: true, trigger: 'blur', message: '请选择' }],
-        kay: [{ required: true, trigger: 'blur', message: '请选择' }],
-        value: [{ required: true, trigger: 'blur', message: '请输入' }],
-        createtime: [{ required: true, trigger: 'blur', message: '请选择' }],
-      },
-      title: '',
-      dialogFormVisible: false,
-      idAdd: true,
-    }
-  },
-  created() { },
-  methods: {
-    cascaderChange(data){
-      this.form.stationidArr = data
-      this.form.stationnameArr = this.$refs["cascaderRef"].getCheckedNodes()[0].pathLabels
-    },
-    showEdit(row) {
-      if (!row) {
-        this.title = '添加'
-        this.idAdd = true
-      } else {
-        this.title = '编辑'
-        this.idAdd = false
-        this.form = Object.assign({}, row)
-        this.form.stationid = row.stationid.split(",")
-      }
-      this.dialogFormVisible = true
-    },
-    close() {
-      this.$refs['form'].resetFields()
-      this.form = this.$options.data().form
-      this.dialogFormVisible = false
-      this.$emit('fetch-data')
-    },
-    handleSave() {
-      this.$refs['form'].validate(async (valid) => {
-        if (valid) {
-          this.form.stationid = this.form.stationid.join(",")
-          this.form.stationname = this.form.stationnameArr[this.form.stationnameArr.length-1]
-          this.form.createtime = dayjs(this.form.createtime).format("YYYY-MM-DD HH:mm:ss")
-          api.addIndicators(this.form).then(res => {
-            if (res.code == 200) {
-              this.$message({
-                type: 'success',
-                message: '添加成功!'
-              });
-              this.$emit('handleSuccess');
-              this.dialogFormVisible = false
-            }
-          })
-        } else {
-          return false
-        }
-      })
-    },
-  },
+	name: 'TableEdit',
+	props: {
+		stationList: {
+			type: Array,
+			default: []
+		},
+		options: {
+			type: Array,
+			default: []
+		},
+		standardList: {
+			type: Array,
+			default: []
+		},
+	},
+	data() {
+		return {
+			keyList: [{ name: '发电量' }, { name: '平均功率' }, { name: '最优功率' }],
+			form: {
+				kay: '',
+				createtime: '',
+				stationid: '',
+				stationname: '',
+				stationidArr: '',
+				stationnameArr: '',
+				value: '',
+			},
+			rules: {
+				stationid: [{ required: true, trigger: 'blur', message: '请选择' }],
+				kay: [{ required: true, trigger: 'blur', message: '请选择' }],
+				value: [{ required: true, trigger: 'blur', message: '请输入' }],
+				createtime: [{ required: true, trigger: 'blur', message: '请选择' }],
+			},
+			title: '',
+			dialogFormVisible: false,
+			idAdd: true,
+		}
+	},
+	created() { },
+	methods: {
+		cascaderChange(data) {
+			this.form.stationidArr = data
+			this.form.stationnameArr = this.$refs["cascaderRef"].getCheckedNodes()[0].pathLabels
+		},
+		showEdit(row) {
+			if (!row) {
+				this.title = '添加'
+				this.idAdd = true
+			} else {
+				this.title = '编辑'
+				this.idAdd = false
+				this.form = Object.assign({}, row)
+				this.form.stationid = row.stationid.split(",")
+			}
+			this.dialogFormVisible = true
+		},
+		close() {
+			this.$refs['form'].resetFields()
+			this.form = this.$options.data().form
+			this.dialogFormVisible = false
+			this.$emit('fetch-data')
+		},
+		handleSave() {
+			this.$refs['form'].validate(async (valid) => {
+				if (valid) {
+					this.form.stationid = this.form.stationid.join(",")
+					this.form.stationname = this.form.stationnameArr[this.form.stationnameArr.length - 1]
+					this.form.createtime = dayjs(this.form.createtime).format("YYYY-MM-DD HH:mm:ss")
+					api.addIndicators(this.form).then(res => {
+						if (res.code == 200) {
+							this.$message({
+								type: 'success',
+								message: '添加成功!'
+							});
+							this.$emit('handleSuccess');
+							this.dialogFormVisible = false
+						}
+					})
+				} else {
+					return false
+				}
+			})
+		},
+	},
 }
 </script>
 <style lang="less" scoped>
 .inputs {
-  width: 200px;
+	width: 200px;
 }
 </style>

+ 223 - 209
src/views/indicators/index.vue

@@ -1,8 +1,8 @@
 <template>
-  <div class="table-container">
-    <div class="title">
-      <div class="left">
-        <!-- <div class="left-item">
+	<div class="table-container">
+		<div class="title">
+			<div class="left">
+				<!-- <div class="left-item">
           <div style="width: 70px;">场站:</div>
           <el-cascader 
             v-model="selectValue" 
@@ -11,48 +11,49 @@
             :props="{ checkStrictly: true, label: 'name', value: 'id' , children:'children', expandTrigger: 'hover' }" 
             clearable />
         </div> -->
-        <div class="left-item">
-          <div style="width: 100px;">风场名称:</div>
-          <el-input v-model="fuzzyQuery" placeholder="请输入" clearable />
-        </div>
-        <el-button icon="el-icon-search" type="primary" native-type="submit" @click="handleQuery">
-          查询
-        </el-button>
-      </div>
-      <div class="right">
-        <el-button icon="el-icon-plus" type="primary" @click="handleAdd">
-          添加
-        </el-button>
-        <el-button icon="el-icon-delete" type="danger" @click="handleDelete">
-          删除
-        </el-button>
-      </div>
-    </div>
-    <el-table ref="tableSort" v-loading="listLoading" :data="list" :element-loading-text="elementLoadingText"
-      :height="height" @selection-change="setSelectRows">
-      <!-- show-summary :summary-method="getSummaries" -->
-      <el-table-column width="65" show-overflow-tooltip type="selection"></el-table-column>
-      <el-table-column width="100" show-overflow-tooltip label="风场编号" prop="stationid" align="center" sortable>
-      </el-table-column>
-      <el-table-column show-overflow-tooltip label="风场名称" prop="stationname" align="center" sortable></el-table-column>
-      <el-table-column show-overflow-tooltip label="指标" prop="kay" align="center" sortable>
-      </el-table-column>
-      <el-table-column show-overflow-tooltip label="值" prop="value" align="center" sortable>
-      </el-table-column>
-      <el-table-column show-overflow-tooltip label="录入时间" prop="createtime" align="center" sortable>
-      </el-table-column>
-      <el-table-column show-overflow-tooltip label="操作" width="180px" fixed="right">
-        <template #default="{ row }">
-          <el-button type="text" @click="handleEdit(row)">编辑</el-button>
-          <el-button type="text" @click="handleDelete(row)">删除</el-button>
-        </template>
-      </el-table-column>
-    </el-table>
-    <el-pagination :background="background" :current-page="queryForm.pageNo" :layout="layout"
-      :page-size="queryForm.pageSize" :total="total" @current-change="handleCurrentChange"
-      @size-change="handleSizeChange"></el-pagination>
-    <table-edit ref="edit" :options="options" :stationList="stationList" @handleSuccess="fetchData"></table-edit>
-  </div>
+				<div class="left-item">
+					<div style="width: 100px;">风场名称:</div>
+					<el-input v-model="fuzzyQuery" placeholder="请输入" clearable />
+				</div>
+				<el-button icon="el-icon-search" type="primary" native-type="submit" @click="handleQuery">
+					查询
+				</el-button>
+			</div>
+			<div class="right">
+				<el-button icon="el-icon-plus" type="primary" @click="handleAdd">
+					添加
+				</el-button>
+				<el-button icon="el-icon-delete" type="danger" @click="handleDelete">
+					删除
+				</el-button>
+			</div>
+		</div>
+		<el-table ref="tableSort" v-loading="listLoading" :data="list" :element-loading-text="elementLoadingText"
+			:height="height" @selection-change="setSelectRows">
+			<!-- show-summary :summary-method="getSummaries" -->
+			<el-table-column width="65" show-overflow-tooltip type="selection"></el-table-column>
+			<el-table-column width="100" show-overflow-tooltip label="风场编号" prop="stationid" align="center" sortable>
+			</el-table-column>
+			<el-table-column show-overflow-tooltip label="风场名称" prop="stationname" align="center" sortable></el-table-column>
+			<el-table-column show-overflow-tooltip label="指标" prop="kay" align="center" sortable>
+			</el-table-column>
+			<el-table-column show-overflow-tooltip label="值" prop="value" align="center" sortable>
+			</el-table-column>
+			<el-table-column show-overflow-tooltip label="录入时间" prop="createtime" align="center" sortable>
+			</el-table-column>
+			<el-table-column show-overflow-tooltip label="操作" width="180px" fixed="right">
+				<template #default="{ row }">
+					<el-button type="text" @click="handleEdit(row)">编辑</el-button>
+					<el-button type="text" @click="handleDelete(row)">删除</el-button>
+				</template>
+			</el-table-column>
+		</el-table>
+		<el-pagination :background="background" :current-page="queryForm.pageNo" :layout="layout"
+			:page-size="queryForm.pageSize" :total="total" @current-change="handleCurrentChange"
+			@size-change="handleSizeChange"></el-pagination>
+		<table-edit ref="edit" :options="options" :stationList="stationList" :standardList="standardList"
+			@handleSuccess="fetchData"></table-edit>
+	</div>
 </template>
 
 <script>
@@ -60,179 +61,192 @@ import api from '@/api/table'
 import apis from '@/api/station'
 import TableEdit from './components/TableEdit'
 export default {
-  name: 'ComprehensiveTable',
-  components: {
-    TableEdit
-  },
-  filters: {
-    statusFilter(status) {
-      const statusMap = {
-        published: 'success',
-        draft: 'gray',
-        deleted: 'danger',
-      }
-      return statusMap[status]
-    },
-  },
-  data() {
-    return {
-      options: [],
-      imgShow: true,
-      list: [],
-      fuzzyQuery: '',
-      cascaderSel: [],
-      selectValue: '',
-      listLoading: true,
-      layout: 'total, sizes, prev, pager, next, jumper',
-      total: 0,
-      background: true,
-      selectRows: '',
-      elementLoadingText: '正在加载...',
-      queryForm: {
-        pageNo: 1,
-        pageSize: 20,
-        title: '',
-      },
-      stationList: [],
-    }
-  },
-  computed: {
-    height() {
-      return this.$baseTableHeight() + 50
-    },
-  },
-  created() {
-    this.getStation()
-    this.fetchData()
-    this.getTree()
-  },
-  beforeDestroy() { },
-  mounted() { },
-  methods: {
-    getTree() {
-      api.newtreeTreels({tag:2}).then(res => {
-        if (res.data) {
-          this.options = res.data
-        }
-      })
-    },
-    getStation() {
-      apis.windpowerstationList({
-        id: '',
-        name: '',
-        companyid: '',
-        pageNum: 1,
-        pageSize: 1000,
-      }).then(res => {
-        if (res.data) {
-          this.listLoading = false
-          this.stationList = res.data.records
-        }
-      })
-    },
-    setSelectRows(val) {
-      this.selectRows = val
-    },
-    handleAdd() {
-      this.$refs['edit'].showEdit()
-    },
-    handleEdit(row) {
-      this.$refs['edit'].showEdit(row)
-    },
-    handleDelete(row) {
-      if (row.id || this.selectRows.length > 0) {
-        this.$baseConfirm('你确定要删除吗', null, async () => {
-          let ids = ''
-          if (this.selectRows.length > 0) {
-            ids = this.selectRows.map((item) => item.id).join()
-          }
-          api.removeIndicators({
-            id: row.id || ids
-          }).then(res => {
-            if (res.data) {
-              this.$baseMessage('删除成功', 'success')
-              this.fetchData()
-            }
-          })
-        })
-      } else {
-        this.$baseMessage('未选中任何行', 'error')
-        return false
-      }
-    },
-    handleSizeChange(val) {
-      this.queryForm.pageSize = val
-      this.fetchData()
-    },
-    handleCurrentChange(val) {
-      this.queryForm.pageNo = val
-      this.fetchData()
-    },
-    handleQuery() {
-      this.queryForm.pageNo = 1
-      this.fetchData()
-    },
-    fetchData() {
-      this.listLoading = true
-      api.indicators({
-        windpowerstationid: this.selectValue,
-        name: this.fuzzyQuery,
-        pagenum: this.queryForm.pageNo,
-        pagesize: this.queryForm.pageSize,
-      }).then(res => {
-        if (res.data) {
-          this.total = res.data.total
-          this.list = res.data.records
-          setTimeout(() => {
-            this.listLoading = false
-          }, 500)
-        }
-      })
-    },
-    getSummaries(param) {
-      const { columns, data } = param;
-      const sums = [];
-      columns.forEach((column, index) => {
-        if (index === 0) {
-          sums[index] = '总计';
-          return;
-        } else if (index === 4) {
-          let totle = 0
-          data.forEach(item => {
-            totle = totle + Number(item.value)
-          })
-          sums[index] = totle;
-        } else {
-          sums[index] = '--';
-        }
-      });
-      return sums;
-    }
-  },
+	name: 'ComprehensiveTable',
+	components: {
+		TableEdit
+	},
+	filters: {
+		statusFilter(status) {
+			const statusMap = {
+				published: 'success',
+				draft: 'gray',
+				deleted: 'danger',
+			}
+			return statusMap[status]
+		},
+	},
+	data() {
+		return {
+			options: [],
+			imgShow: true,
+			list: [],
+			fuzzyQuery: '',
+			cascaderSel: [],
+			selectValue: '',
+			listLoading: true,
+			layout: 'total, sizes, prev, pager, next, jumper',
+			total: 0,
+			background: true,
+			selectRows: '',
+			elementLoadingText: '正在加载...',
+			queryForm: {
+				pageNo: 1,
+				pageSize: 20,
+				title: '',
+			},
+			stationList: [],
+			standardList: [], //指标列表
+		}
+	},
+	computed: {
+		height() {
+			return this.$baseTableHeight() + 50
+		},
+	},
+	created() {
+		this.getStation()
+		this.getStandard()
+		this.fetchData()
+		this.getTree()
+	},
+	beforeDestroy() { },
+	mounted() { },
+	methods: {
+		getTree() {
+			api.newtreeTreels({ tag: 2 }).then(res => {
+				if (res.data) {
+					this.options = res.data
+				}
+			})
+		},
+		getStation() {
+			apis.windpowerstationList({
+				id: '',
+				name: '',
+				companyid: '',
+				pageNum: 1,
+				pageSize: 1000,
+			}).then(res => {
+				if (res.data) {
+					this.listLoading = false
+					this.stationList = res.data.records
+				}
+			})
+		},
+		getStandard() {
+			apis.standardpoint({
+				pageNum: 1,
+				pageSize: 100000,
+			}).then(res => {
+				if (res.data) {
+					this.listLoading = false
+					this.standardList = res.data.records
+				}
+			})
+		},
+		setSelectRows(val) {
+			this.selectRows = val
+		},
+		handleAdd() {
+			this.$refs['edit'].showEdit()
+		},
+		handleEdit(row) {
+			this.$refs['edit'].showEdit(row)
+		},
+		handleDelete(row) {
+			if (row.id || this.selectRows.length > 0) {
+				this.$baseConfirm('你确定要删除吗', null, async () => {
+					let ids = ''
+					if (this.selectRows.length > 0) {
+						ids = this.selectRows.map((item) => item.id).join()
+					}
+					api.removeIndicators({
+						id: row.id || ids
+					}).then(res => {
+						if (res.data) {
+							this.$baseMessage('删除成功', 'success')
+							this.fetchData()
+						}
+					})
+				})
+			} else {
+				this.$baseMessage('未选中任何行', 'error')
+				return false
+			}
+		},
+		handleSizeChange(val) {
+			this.queryForm.pageSize = val
+			this.fetchData()
+		},
+		handleCurrentChange(val) {
+			this.queryForm.pageNo = val
+			this.fetchData()
+		},
+		handleQuery() {
+			this.queryForm.pageNo = 1
+			this.fetchData()
+		},
+		fetchData() {
+			this.listLoading = true
+			api.indicators({
+				windpowerstationid: this.selectValue,
+				name: this.fuzzyQuery,
+				pagenum: this.queryForm.pageNo,
+				pagesize: this.queryForm.pageSize,
+			}).then(res => {
+				if (res.data) {
+					this.total = res.data.total
+					this.list = res.data.records
+					setTimeout(() => {
+						this.listLoading = false
+					}, 500)
+				}
+			})
+		},
+		getSummaries(param) {
+			const { columns, data } = param;
+			const sums = [];
+			columns.forEach((column, index) => {
+				if (index === 0) {
+					sums[index] = '总计';
+					return;
+				} else if (index === 4) {
+					let totle = 0
+					data.forEach(item => {
+						totle = totle + Number(item.value)
+					})
+					sums[index] = totle;
+				} else {
+					sums[index] = '--';
+				}
+			});
+			return sums;
+		}
+	},
 }
 </script>
 <style lang="less" scoped>
 .title {
-  display: flex;
-  flex-direction: row;
-  align-items: center;
-  justify-content: space-between;
+	display: flex;
+	flex-direction: row;
+	align-items: center;
+	justify-content: space-between;
 }
 
 .left {
-  display: flex;
-  flex-direction: row;
-  align-items: center;
+	display: flex;
+	flex-direction: row;
+	align-items: center;
 
-  .left-item {
-    display: flex;
-    flex-direction: row;
-    align-items: center;
-    margin-right: 10px;
-  }
+	.left-item {
+		display: flex;
+		flex-direction: row;
+		align-items: center;
+		margin-right: 10px;
+	}
 }
 
 .cascaders {
-  width: 300px;
+	width: 300px;
 }
 </style>

+ 4 - 3
src/views/stationConfiguration/projectstudy/index.vue

@@ -103,7 +103,7 @@ export default {
 	mounted() { },
 	methods: {
 		getStation() {
-			api.wtls().then(res => {
+			api.treels().then(res => {
 				if (res.data) {
 					this.options = res.data
 				}
@@ -171,8 +171,9 @@ export default {
 		async fetchData() {
 			this.listLoading = true
 			api.projectstudy({
-				pagenum: this.queryForm.pageNo,
-				pagesize: this.queryForm.pageSize,
+				id: this.cascaderSel.length? this.cascaderSel[this.cascaderSel.length-1]: '',
+				pageNum: this.queryForm.pageNo,
+				pageSize: this.queryForm.pageSize,
 			}).then(res => {
 				if (res.data) {
 					this.total = res.data.total

+ 5 - 5
src/views/stationConfiguration/stationpersis/index.vue

@@ -123,12 +123,12 @@ export default {
 				},
 				yAxis: [
 					{
-						name: '单位 (kw)',
+						name: '单位 (m/s)',
 						type: "value",
 						position: 'left'
 					},
 					{
-						name: '单位 (kw)',
+						name: '单位 (kw/h)',
 						type: "value",
 						position: 'right'
 					}
@@ -139,7 +139,7 @@ export default {
 					y: "top",
 					itemWidth: 10,
 					itemHeight: 10,
-					data: ["理论功率", "实际功率"],
+					data: ["风速", "总功率"],
 					textStyle: {
 						fontSize: 10, //字体大小
 						color: "#000", //字体颜色
@@ -254,7 +254,7 @@ export default {
 						this.option.xAxis.data = res.data.map(o => dayjs(o.datatime).format('YYYY-M-D HH:mm:ss'))
 						this.option.series = [
 							{
-								name: '理论功率',
+								name: '风速',
 								data: res.data.map(o => o.rpjfs),
 								type: 'line',
 								itemStyle: {
@@ -263,7 +263,7 @@ export default {
 								yAxisIndex: 0
 							},
 							{
-								name: '实际功率',
+								name: '功率',
 								data: res.data.map(o => o.sszgl),
 								type: 'line',
 								itemStyle: {