|
|
@@ -157,13 +157,13 @@
|
|
157
|
157
|
/>
|
|
158
|
158
|
</div>
|
|
159
|
159
|
   
|
|
160
|
|
- <el-button type="primary" size="large" color="#0052d9" @click="newaddimport">数据回复</el-button>
|
|
|
160
|
+ <el-button type="primary" size="large" color="#0052d9" @click="newaddimport">导入</el-button>
|
|
161
|
161
|
|
|
162
|
162
|
<!-- newition -->
|
|
163
|
163
|
</div>
|
|
164
|
164
|
</div>
|
|
165
|
165
|
<div class="eltable templatebox">
|
|
166
|
|
- <el-table :data="proiceexcel" border style="width: 100%" :show-overflow-tooltip="true">
|
|
|
166
|
+ <el-table :data="proiceexcel.records" border style="width: 100%" :show-overflow-tooltip="true">
|
|
167
|
167
|
<el-table-column prop="provincename" label="湖南" />
|
|
168
|
168
|
<el-table-column prop="year" label="年" />
|
|
169
|
169
|
<el-table-column prop="month" label="月份" />
|
|
|
@@ -174,9 +174,9 @@
|
|
174
|
174
|
<div></div>
|
|
175
|
175
|
<slot name="pagination">
|
|
176
|
176
|
<Pagination
|
|
177
|
|
- :pageable="pageable"
|
|
178
|
|
- :handle-size-change="handleSizeChange"
|
|
179
|
|
- :handle-current-change="handleCurrentChange"
|
|
|
177
|
+ :pageable="paging"
|
|
|
178
|
+ :handle-size-change="handleSizepaging"
|
|
|
179
|
+ :handle-current-change="handleCurrentpaging"
|
|
180
|
180
|
/>
|
|
181
|
181
|
</slot>
|
|
182
|
182
|
</div>
|
|
|
@@ -340,7 +340,7 @@
|
|
340
|
340
|
</template>
|
|
341
|
341
|
</el-dialog>
|
|
342
|
342
|
|
|
343
|
|
- <el-dialog v-model="energystorage" title="大储导入" top="100px" width="40%" @close="handenergyClose">
|
|
|
343
|
+ <el-dialog v-model="energystorage" title="分时电价数据导入" top="100px" width="40%" @close="handenergyClose">
|
|
344
|
344
|
<div class="dialoglexce_box">
|
|
345
|
345
|
<div class="dialoglexce_right">
|
|
346
|
346
|
<el-upload class="upload-demo" :data="uploadData" drag :before-upload="beforeUpload" multiple>
|
|
|
@@ -348,6 +348,7 @@
|
|
348
|
348
|
<div class="el-upload__text">点击上传 <em>拖拽上传</em></div>
|
|
349
|
349
|
<template #tip>
|
|
350
|
350
|
<div class="el-upload__tip">上传文件,文件大小500kb</div>
|
|
|
351
|
+ <div class="uploadname">{{ uploadData.name }}</div>
|
|
351
|
352
|
</template>
|
|
352
|
353
|
</el-upload>
|
|
353
|
354
|
</div>
|
|
|
@@ -380,6 +381,9 @@ import {
|
|
380
|
381
|
selectprovinceURL,
|
|
381
|
382
|
priceanalysisURL
|
|
382
|
383
|
} from "@/api/home/Multisite";
|
|
|
384
|
+import { ElUpload } from "element-plus";
|
|
|
385
|
+import { UploadFilled } from "@element-plus/icons-vue";
|
|
|
386
|
+
|
|
383
|
387
|
import { other, Station } from "@/api/interface";
|
|
384
|
388
|
import Pagination from "@/components/ProTable/components/Pagination.vue";
|
|
385
|
389
|
import { useRouter, useRoute } from "vue-router";
|
|
|
@@ -737,11 +741,14 @@ const getselectprovince = async () => {
|
|
737
|
741
|
console.log(data);
|
|
738
|
742
|
province.value = data;
|
|
739
|
743
|
};
|
|
|
744
|
+// 查询分时电价管理
|
|
740
|
745
|
const getselectproiceexcel = async () => {
|
|
741
|
746
|
let obj = {
|
|
742
|
747
|
provincename: onlineStatus.value,
|
|
743
|
748
|
year: iceexcelyear.value,
|
|
744
|
|
- month: iceexcelmonth.value
|
|
|
749
|
+ month: iceexcelmonth.value,
|
|
|
750
|
+ pn: paging.value.pn,
|
|
|
751
|
+ ps: paging.value.ps
|
|
745
|
752
|
};
|
|
746
|
753
|
const { data } = await selectproiceexcelURL(obj);
|
|
747
|
754
|
console.log(data);
|
|
|
@@ -749,6 +756,18 @@ const getselectproiceexcel = async () => {
|
|
749
|
756
|
proiceexcel.value = data;
|
|
750
|
757
|
paging.value.total = proiceexcel.value.total;
|
|
751
|
758
|
};
|
|
|
759
|
+// 表格操作 Hooks
|
|
|
760
|
+const handleSizepaging = async (e: any) => {
|
|
|
761
|
+ paging.value.ps = e;
|
|
|
762
|
+ getselectproiceexcel();
|
|
|
763
|
+};
|
|
|
764
|
+const handleCurrentpaging = async (e: any) => {
|
|
|
765
|
+ console.log(e);
|
|
|
766
|
+
|
|
|
767
|
+ paging.value.pn = e;
|
|
|
768
|
+
|
|
|
769
|
+ getselectproiceexcel();
|
|
|
770
|
+};
|
|
752
|
771
|
// 查询地址
|
|
753
|
772
|
const onlineStatus = ref();
|
|
754
|
773
|
const postemsDevice = async (value: any) => {
|
|
|
@@ -770,6 +789,8 @@ const energystorage = ref();
|
|
770
|
789
|
const uploadData = ref();
|
|
771
|
790
|
|
|
772
|
791
|
const newaddimport = () => {
|
|
|
792
|
+ uploadData.value = "";
|
|
|
793
|
+
|
|
773
|
794
|
energystorage.value = true;
|
|
774
|
795
|
};
|
|
775
|
796
|
const handenergyClose = async () => {
|
|
|
@@ -798,6 +819,7 @@ const handenergysure = async () => {
|
|
798
|
819
|
const { data } = await priceanalysisURL(obj, formData);
|
|
799
|
820
|
console.log(data);
|
|
800
|
821
|
energystorage.value = false;
|
|
|
822
|
+ getselectproiceexcel();
|
|
801
|
823
|
} catch (error) {
|
|
802
|
824
|
console.error("上传失败:", error);
|
|
803
|
825
|
}
|
|
|
@@ -830,5 +852,5 @@ onMounted(() => {
|
|
830
|
852
|
@import "./index.scss";
|
|
831
|
853
|
</style>
|
|
832
|
854
|
<!--
|
|
833
|
|
-
|
|
|
855
|
+ script
|
|
834
|
856
|
-->
|