123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473 |
- <template>
- <div class="draught-fan-list">
- <div class="query mg-b-8">
- <div class="query-items">
- <div class="query-item">
- <div class="lable">场站:</div>
- <div class="search-input">
- <el-select v-model="wpId" clearable placeholder="请选择" popper-class="select">
- <el-option v-for="item in wpArray" :key="item.id" :value="item.id" :label="item.name" />
- </el-select>
- </div>
- </div>
- <div class="query-item">
- <div class="lable">日期:</div>
- <div class="search-input">
- <el-date-picker v-model="recorddate" type="date" value-format="YYYY-MM-DD" placeholder="选择日期" popper-class="date-select">
- </el-date-picker>
- </div>
- </div>
- </div>
- <div class="query-actions">
- <button class="btn green" @click="search()">查询</button>
- </div>
- </div>
- <div class="df-table curTable">
- <el-table :data="tableData.data" height="78vh" max-height="78vh" stripe style="width: 100%" :border="true">
- <el-table-column :show-overflow-tooltip="true" prop="wtname" label="风机"></el-table-column>
- <el-table-column :show-overflow-tooltip="true" :label="tableTitle">
- <el-table-column :show-overflow-tooltip="true" label="近一天">
- <el-table-column :show-overflow-tooltip="true" label="1">
- <el-table-column :show-overflow-tooltip="true" prop="day1top1name" label="故障"></el-table-column>
- <el-table-column :show-overflow-tooltip="true" prop="day1top1" label="频次" :sortable="true"></el-table-column>
- </el-table-column>
- <el-table-column :show-overflow-tooltip="true" label="2">
- <el-table-column :show-overflow-tooltip="true" prop="day1top2name" label="故障"></el-table-column>
- <el-table-column :show-overflow-tooltip="true" prop="day1top2" label="频次" :sortable="true"></el-table-column>
- </el-table-column>
- <el-table-column :show-overflow-tooltip="true" label="3">
- <el-table-column :show-overflow-tooltip="true" prop="day1top3name" label="故障"></el-table-column>
- <el-table-column :show-overflow-tooltip="true" prop="day1top3" label="频次" :sortable="true"></el-table-column>
- </el-table-column>
- </el-table-column>
- <el-table-column :show-overflow-tooltip="true" label="近三天">
- <el-table-column :show-overflow-tooltip="true" label="1">
- <el-table-column :show-overflow-tooltip="true" prop="day3top1name" label="故障"></el-table-column>
- <el-table-column :show-overflow-tooltip="true" prop="day3top1" label="频次" :sortable="true"></el-table-column>
- </el-table-column>
- <el-table-column :show-overflow-tooltip="true" label="2">
- <el-table-column :show-overflow-tooltip="true" prop="day3top2name" label="故障"></el-table-column>
- <el-table-column :show-overflow-tooltip="true" prop="day3top2" label="频次" :sortable="true"></el-table-column>
- </el-table-column>
- <el-table-column :show-overflow-tooltip="true" label="3">
- <el-table-column :show-overflow-tooltip="true" prop="day3top3name" label="故障"></el-table-column>
- <el-table-column :show-overflow-tooltip="true" prop="day3top3" label="频次" :sortable="true"></el-table-column>
- </el-table-column>
- </el-table-column>
- <el-table-column :show-overflow-tooltip="true" label="近七天">
- <el-table-column :show-overflow-tooltip="true" label="1">
- <el-table-column :show-overflow-tooltip="true" prop="day7top1name" label="故障"></el-table-column>
- <el-table-column :show-overflow-tooltip="true" prop="day7top1" label="频次" :sortable="true"></el-table-column>
- </el-table-column>
- <el-table-column :show-overflow-tooltip="true" label="2">
- <el-table-column :show-overflow-tooltip="true" prop="day7top2name" label="故障"></el-table-column>
- <el-table-column :show-overflow-tooltip="true" prop="day7top2" label="频次" :sortable="true"></el-table-column>
- </el-table-column>
- <el-table-column :show-overflow-tooltip="true" label="3">
- <el-table-column :show-overflow-tooltip="true" prop="day7top3name" label="故障"></el-table-column>
- <el-table-column :show-overflow-tooltip="true" prop="day7top3" label="频次" :sortable="true"></el-table-column>
- </el-table-column>
- </el-table-column>
- <el-table-column :show-overflow-tooltip="true" label="近十五天">
- <el-table-column :show-overflow-tooltip="true" label="1">
- <el-table-column :show-overflow-tooltip="true" prop="day15top1name" label="故障"></el-table-column>
- <el-table-column :show-overflow-tooltip="true" prop="day15top1" label="频次" :sortable="true"></el-table-column>
- </el-table-column>
- <el-table-column :show-overflow-tooltip="true" label="2">
- <el-table-column :show-overflow-tooltip="true" prop="day15top2name" label="故障"></el-table-column>
- <el-table-column :show-overflow-tooltip="true" prop="day15top2" label="频次" :sortable="true"></el-table-column>
- </el-table-column>
- <el-table-column :show-overflow-tooltip="true" label="3">
- <el-table-column :show-overflow-tooltip="true" prop="day15top3name" label="故障"></el-table-column>
- <el-table-column :show-overflow-tooltip="true" prop="day15top3" label="频次" :sortable="true"></el-table-column>
- </el-table-column>
- </el-table-column>
- <el-table-column :show-overflow-tooltip="true" label="近一个月">
- <el-table-column :show-overflow-tooltip="true" label="1">
- <el-table-column :show-overflow-tooltip="true" prop="month1top1name" label="故障"></el-table-column>
- <el-table-column :show-overflow-tooltip="true" prop="month1top1" label="频次" :sortable="true"></el-table-column>
- </el-table-column>
- <el-table-column :show-overflow-tooltip="true" label="2">
- <el-table-column :show-overflow-tooltip="true" prop="month1top2name" label="故障"></el-table-column>
- <el-table-column :show-overflow-tooltip="true" prop="month1top2" label="频次" :sortable="true"></el-table-column>
- </el-table-column>
- <el-table-column :show-overflow-tooltip="true" label="3">
- <el-table-column :show-overflow-tooltip="true" prop="month1top3name" label="故障"></el-table-column>
- <el-table-column :show-overflow-tooltip="true" prop="month1top3" label="频次" :sortable="true"></el-table-column>
- </el-table-column>
- </el-table-column>
- </el-table-column>
- </el-table>
- </div>
- <el-dialog title="切入切出风速整合历史" v-model="dialogShow" width="85%" top="10vh" custom-class="modal"
- :close-on-click-modal="true" @closed="dialogType = ''">
- </el-dialog>
- </div>
- </template>
- <script>
- export default {
- // 名称
- name: "cutAnalyse",
- // 数据
- data () {
- const that = this;
- return {
- isAsc: "asc",
- wpArray: [],
- wpId: "",
- recorddate: new Date((new Date().getTime() - 3600 * 1000 * 24)).formatDate("yyyy-MM-dd"),
- tableTitle: "",
- tableData: {
- column: [
- {
- name: "风机",
- field: "windturbineid",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "总小风切入",
- field: "inputsmall",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "总小风切入合格率",
- field: "inputsmallratio",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "总大风切入",
- field: "inputbig",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "总大风切入合格率",
- field: "inputbigratio",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "总小风切出",
- field: "outputsmall",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "总小风切出合格率",
- field: "outputsmallratio",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "总大风切出",
- field: "outputbig",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "总大风切出合格率",
- field: "outputbigmaxratio",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "日小风切入",
- field: "dayinputsmall",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "日小风切入合格率",
- field: "dayinputsmallratio",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "日小风切出",
- field: "dayoutputsmall",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "日小风切出合格率",
- field: "dayoutputsmallratio",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "日大风切入",
- field: "dayinputbig",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "日大风切入合格率",
- field: "dayinputbigratio",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "日大风切出",
- field: "dayoutputbig",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "日大风切出合格率",
- field: "dayoutputbigratio",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "月小风切入",
- field: "monthinputsmall",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "月小风切入合格率",
- field: "monthinputsmallratio",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "月大风切入",
- field: "monthinputbig",
- is_num: false,
- is_light: false,
- },
- {
- name: "月大风切入合格率",
- field: "monthinputbigratio",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "月小风切出",
- field: "monthoutputsmall",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "月小风切出合格率",
- field: "monthoutputsmallratio",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "月大风切出",
- field: "monthoutputbig",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "月大风切出合格率",
- field: "monthoutputbigratio",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "年小风切入",
- field: "yearinputsmall",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "年小风切入合格率",
- field: "yearinputsmallratio",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "年大风切入",
- field: "yearinputbig",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "年大风切入合格率",
- field: "yearinputbigratio",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "年小风切出",
- field: "yearoutputsmall",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "年小风切出合格率",
- field: "yearoutputsmallratio",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "年大风切出",
- field: "yearoutputbig",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "年大风切出合格率",
- field: "yearoutputbigratio",
- is_num: false,
- is_light: false,
- sortable: true
- },
- {
- name: "操作",
- field: "",
- is_num: false,
- is_light: false,
- template () {
- return "<el-button type='text' style='cursor: pointer;'>历史</el-button>";
- },
- click (e, row) {
- that.getOutputspeedHistoryList(row)
- }
- }
- ],
- data: [],
- },
- };
- },
- // 函数
- methods: {
- // 请求服务
- requestData () {
- let that = this;
- that.API.requestData({
- method: "GET",
- subUrl: "powercompare/windfarmAjax",
- success (res) {
- that.wpArray = res.data;
- that.wpId = res.data[0].id;
- that.getTableData();
- }
- });
- },
- getTableData () {
- let that = this;
- if (!that.wpId || !that.recorddate) {
- that.BASE.showMsg({
- msg: "场站与日期不可为空"
- });
- } else {
- that.API.requestData({
- method: "GET",
- baseURL: "http://10.155.32.4:8034/",
- subUrl: "reliability/earlyWarn",
- data: {
- wpid: that.wpId,
- date: that.recorddate
- },
- success (res) {
- if (res.data.length) {
- that.tableTitle = res.data[0].wpname + "预警统计";
- that.tableData.data = res.data;
- }
- }
- });
- }
- },
- search () {
- this.getTableData();
- }
- },
- created () {
- this.requestData();
- },
- mounted () { },
- unmounted () { },
- };
- </script>
- <style lang="less" scoped>
- .draught-fan-list {
- width: 100%;
- height: 100%;
- display: flex;
- flex-direction: column;
- .btn-group-tabs {
- display: flex;
- flex-direction: row;
- .photovoltaic {
- margin-left: 1.481vh;
- }
- }
- .df-table {
- border: 0.093vh solid fade(@darkgray, 50%);
- position: relative;
- overflow: auto;
- flex-grow: 1;
- margin-top: 1.481vh;
- &:before {
- content: '';
- width: 0.37vh;
- height: 0.37vh;
- background: @write;
- position: absolute;
- left: 0.278vh;
- top: 0.278vh;
- }
- tbody {
- height: calc(100vh - 166px);
- }
- }
- }
- </style>
- <style lang="less">
- .curTable {
- .cell {
- text-align: center;
- }
- }
- </style>
|