123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- export default {
- data() {
- return {
-
- formInline: {
- windfarm: "",
- project: "",
- line: "",
- },
-
- time: '',
-
- currentPage2: 1,
-
- pagesize: 10,
-
- gridData: [],
-
- options: [],
-
- orderByColumn: '',
-
- isAsc: '',
- value: 'MHS_FDC',
-
- wtid: '',
-
- endDate: '',
-
- updateTime: '',
- }
- },
- created() {
-
- this.API.get('/powercompare/windfarmAjax').then((res) => {
- this.options = res.data;
- })
-
- var newData = new Date();
- this.updateTime = this.BASE.getBzDate(newData.getTime(), -1);
-
- this.endDate = this.BASE.getBzDate(newData.getTime(), 0);
- this.callAndSpeedData();
-
- },
- methods: {
-
- queryApData() {
- this.callAndSpeedData();
- },
-
- handleEdit(a, b) {
- this.wtId = b.windturbineid;
- console.log(this.wtId)
-
- this.$router.push({
- path: '/cutAndSpeedHistory',
- query: {
-
- wpId: this.value,
-
- wtId: this.wtId,
-
- beginDate: this.time,
-
- endDate: this.endDate,
- }
- })
- },
-
- headStyle() {
- return "text-align:center"
- },
-
- changeTableSort(column) {
-
- this.orderByColumn = column.prop;
-
- if (column.order == "descending") {
- this.isAsc = 'desc';
- } else if (column.order == "ascending") {
- this.isAsc = "asc";
- }
- this.callAndSpeedData();
- },
-
- callAndSpeedData() {
-
- if (this.time == '') {
- this.time = this.updateTime
- }
- console.log(this.time)
- var callAndSpeedData = new URLSearchParams();
-
- callAndSpeedData.append('pageNum', this.currentPage2);
-
- callAndSpeedData.append('pageSize', this.pagesize);
-
- callAndSpeedData.append('orderByColumn', this.orderByColumn);
-
- callAndSpeedData.append('isAsc', this.isAsc);
-
- callAndSpeedData.append('wpId', this.value);
-
- callAndSpeedData.append('recorddate', this.time);
- this.API.post('/outputspeed/outputSpeedlist', callAndSpeedData).then((res) => {
- this.gridData = res.data;
- console.log(this.gridData);
- })
- },
-
- toExcel() {
- excelHelper.exportExcel("callthepolicetable", "负荷率排行榜", ".xls", true);
- },
- }
- }
|