12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244 |
- <template>
- <div class="history-config">
- <div class="form-wrapper">
- <div class="btns">
- <el-button size="mini" round class="buttons" @click="handleInsert">
- 新增记录
- </el-button>
- <el-button size="mini" round class="buttons" @click="export2Excel">
- 批量导出</el-button
- >
- <el-button size="mini" round class="buttons" @click="outExe">
- 模板下载</el-button
- >
- <el-upload
- style="display: inline; margin-left: 10px"
- :action="`${$store.state.baseURL}/alarmconfiguration/import`"
- :headers="token"
- :show-file-list="false"
- :on-success="handleSuccess"
- :on-progress="handleProgress"
- :on-error="handleError"
- >
- <el-button
- size="mini"
- round
- class="buttons"
- @click="exportShow = true"
- >
- 批量导入</el-button
- >
- </el-upload>
- </div>
- <div class="search-wrapper">
- <el-select
- class="search-item"
- v-model="query.alarmType"
- size="mini"
- popper-class="select"
- @change="categorychanged"
- >
- <el-option key="2" label="升压站" value="booststation"></el-option>
- <el-option key="1" label="风机" value="windturbine"></el-option>
- <el-option key="3" label="光伏" value="inverter"></el-option>
- </el-select>
- <el-select
- class="search-item"
- v-model="query.wpId"
- clearable
- size="mini"
- :placeholder="
- query.alarmType == 'booststation' ? '全部升压站' : '全部场站'
- "
- popper-class="select"
- @change="changeStation"
- >
- <el-option
- v-for="item in stationList"
- :key="item.id"
- :value="item.id"
- :label="item.aname"
- ></el-option>
- </el-select>
- <el-select
- class="search-item"
- v-if="query.alarmType != 'booststation'"
- v-model="query.modelId"
- clearable
- size="mini"
- placeholder="全部机型"
- popper-class="select"
- >
- <el-option
- v-for="item in modelList"
- :key="item.id"
- :value="item.id"
- :label="item.aname"
- ></el-option>
- </el-select>
- <el-input
- class="search-item"
- placeholder="请输入名称"
- v-model="query.name"
- size="mini"
- clearable
- ></el-input>
- <el-button class="buttons" round size="mini" @click="getData"
- >搜 索</el-button
- >
- </div>
- </div>
- <div class="table-wrapper">
- <div class="leftContent" :data-type="$store.state.moreSty">
- <span>{{ pageTitle }}</span>
- </div>
- <el-table
- style="height: calc(100% - 110px)"
- :data="state.tableData"
- stripe
- >
- <el-table-column
- v-for="item in query.alarmType == 'windturbine' ||
- query.alarmType == 'inverter'
- ? state.tableHeader
- : state.tableHeader1"
- :key="item.code"
- :label="item.title"
- :align="
- item.code == 'description' ||
- item.code == 'modelId' ||
- item.code == 'componentsName'
- ? 'left'
- : 'center'
- "
- :prop="item.code"
- show-overflow-tooltip
- >
- <template #default="scope">
- <span v-if="item.code == 'rank'">
- {{ rankConvert(scope.row.rank) }}
- </span>
- <span v-else-if="item.code == 'alarmType'">
- {{ alarmTypeConvert("alarmType", scope.row.alarmType) }}
- </span>
- <span v-else-if="item.code == 'deviceType'">
- {{ alarmTypeConvert("deviceType", scope.row.deviceType) }}
- </span>
- <span v-else-if="item.code == 'enable'">
- {{ enabledConvert(scope.row.enable) }}
- </span>
- <span v-else>
- {{ scope.row[item.code] }}
- </span>
- </template>
- </el-table-column>
- <el-table-column label="操作" align="center" width="100">
- <template #default="scope">
- <el-button
- type="text"
- :style="`color: ${
- $store.state.theme ? '#1890ff' : '#47aee7'
- } !important`"
- size="mini"
- @click="handleEditClick(scope.row)"
- >
- 编辑</el-button
- >
- </template>
- </el-table-column>
- </el-table>
- <div class="pagination">
- <el-pagination
- layout="total, sizes, prev, pager, next"
- :current-page="query.pageNum"
- :page-size="query.pageSize"
- :page-sizes="[22, 50, 100, 200, 500]"
- :total="total"
- @size-change="
- (value) => {
- query.pageSize = value;
- query.pageNum = 1;
- getData();
- }
- "
- @current-change="handlePageChange"
- ></el-pagination>
- </div>
- </div>
- <windturbinecomponents
- :title="state.title"
- @close="dialogclose"
- :isVisible="state.visible"
- :form="state.form"
- />
- </div>
- </template>
- <script setup>
- import {
- windturbinebj_fetchTableData,
- getStationinfo,
- fetchRelatePartAndAlarmType,
- fetchModel,
- getWpList,
- } from "@/api/zhbj/index.js";
- import { outExportExcel } from "@/tools/excel/exportExcel.js"; //引入文件
- import {
- ref,
- onMounted,
- provide,
- computed,
- reactive,
- watch,
- nextTick,
- } from "vue";
- import { useStore } from "vuex";
- import { ElMessageBox, ElMessage } from "element-plus";
- import windturbinecomponents from "@/views/IntegratedAlarm/alarmConfig/components/windturbine_components.vue";
- const pageTitle = "报警配置";
- const store = useStore();
- const token = { token: store.state.user.authToken };
- onMounted(() => {
- getWpArray();
- getequipmentmodel_list();
- getData();
- });
- const query = reactive({
- pageNum: 1,
- pageSize: 22,
- wpId: "",
- modelId: "",
- name: "",
- alarmType: "windturbine",
- });
- const state = reactive({
- title: "",
- tableData: [
- {
- id: "1.16E+18",
- tagId: "NULL",
- triggerType: 1,
- deviceId: "NULL",
- suffix: "1",
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "BJXT",
- subcomponents: "NULL",
- description: "变桨主站通讯故障",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.0",
- nemCode: "142001",
- faultCause: "NULL",
- resolvent: "NULL",
- stationName: "01风电场",
- componentsName: "变桨系统",
- },
- {
- id: "HY_0001",
- tagId: "NULL",
- triggerType: 0,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "BJXT",
- subcomponents: "NULL",
- description: "变桨主站通讯故障",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.0",
- nemCode: "142001",
- faultCause: "NULL",
- resolvent: "NULL",
- stationName: "02风电场",
- componentsName: "变桨系统",
- },
- {
- id: "HY_0002",
- tagId: "NULL",
- triggerType: 1,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "BJXT",
- subcomponents: "NULL",
- description: "变桨轴1通讯故障",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.1",
- nemCode: "142011",
- faultCause:
- "1.变桨内部通讯线、HARTING 接头、通讯终端电阻故障;2.驱动器故障;3.通讯模块故障",
- resolvent:
- "1.检查变桨内部通讯线、HARTING 接头、通讯终端电阻是否正常;2.检查驱动器是否正常;\n3.检查通讯模块是否正常;",
- stationName: "02风电场",
- componentsName: "变桨系统",
- },
- {
- id: "HY_0003",
- tagId: "NULL",
- triggerType: 2,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "BJXT",
- subcomponents: "NULL",
- description: "变桨轴2通讯故障",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.2",
- nemCode: "142012",
- faultCause:
- "1.变桨内部通讯线、HARTING 接头、通讯终端电阻故障;2.驱动器故障;3.通讯模块故障;",
- resolvent:
- "1.检查变桨内部通讯线、HARTING 接头、通讯终端电阻是否正常;2.检查驱动器是否正常;\n3.检查通讯模块是否正常;",
- stationName: "02风电场",
- componentsName: "变桨系统",
- },
- {
- id: "HY_0004",
- tagId: "NULL",
- triggerType: 3,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "BJXT",
- subcomponents: "NULL",
- description: "变桨轴3通讯故障",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.3",
- nemCode: "142013",
- faultCause:
- "1.变桨内部通讯线、HARTING 接头、通讯终端电阻故障;2.驱动器故障;3.通讯模块故障;",
- resolvent:
- "1.检查变桨内部通讯线、HARTING 接头、通讯终端电阻是否正常;2.检查驱动器是否正常;\n3.检查通讯模块是否正常;",
- stationName: "02风电场",
- componentsName: "变桨系统",
- },
- {
- id: "HY_0005",
- tagId: "NULL",
- triggerType: 4,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "QT",
- subcomponents: "NULL",
- description: "所有从站运行故障",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.4",
- nemCode: "143001",
- faultCause: "Ethercat 通讯模块或其线路故障",
- resolvent: "检查 Ethercat 通讯模块及其线路是否正常",
- stationName: "02风电场",
- componentsName: "其他",
- },
- {
- id: "HY_0006",
- tagId: "NULL",
- triggerType: 5,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "QT",
- subcomponents: "NULL",
- description: "从站不正常",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.5",
- nemCode: "143002",
- faultCause: "NULL",
- resolvent: "NULL",
- stationName: "02风电场",
- componentsName: "其他",
- },
- {
- id: "HY_0007",
- tagId: "NULL",
- triggerType: 6,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "QT",
- subcomponents: "NULL",
- description: "从站信号丢失",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.6",
- nemCode: "143003",
- faultCause: "Ethercat 通讯模块或其线路故障",
- resolvent: "检查 Ethercat 通讯模块及其线路是否正常",
- stationName: "02风电场",
- componentsName: "其他",
- },
- {
- id: "HY_0008",
- tagId: "NULL",
- triggerType: 7,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "TDG",
- subcomponents: "NULL",
- description: "塔底主站通讯故障",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.7",
- nemCode: "140301",
- faultCause: "变流器通讯模块或其线路故障",
- resolvent:
- "1.检查通讯模块及供电是否正常;2.检查模块拨码、通讯接头拨码、终端电阻、屏蔽线接\n地是否正常;",
- stationName: "02风电场",
- componentsName: "塔底柜",
- },
- {
- id: "HY_0009",
- tagId: "NULL",
- triggerType: 8,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "TDG",
- subcomponents: "NULL",
- description: "塔底从站通讯故障",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.8",
- nemCode: "140311",
- faultCause: "变流器通讯模块或其线路故障",
- resolvent:
- "1.检查通讯模块及供电是否正常;2.检查模块拨码、通讯接头拨码、终端电阻、屏蔽线接\n地是否正常;",
- stationName: "02风电场",
- componentsName: "塔底柜",
- },
- {
- id: "HY_0010",
- tagId: "NULL",
- triggerType: 9,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "TDG",
- subcomponents: "NULL",
- description: "塔底控制柜温度过高",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.9",
- nemCode: "110101",
- faultCause: "1.传感器及线路故障;2.温度超过设置值;3.PLC 模块故障",
- resolvent:
- "1.检查传感器及线路是否正常;2.检查控制柜温度是否高温,检查温控开关设置值是否正\n常,检查冷却风扇工作是否正常;3.检查 PLC 模块是否正常;",
- stationName: "02风电场",
- componentsName: "塔底柜",
- },
- {
- id: "HY_0011",
- tagId: "NULL",
- triggerType: 10,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "TDG",
- subcomponents: "NULL",
- description: "塔底控制柜温度过低",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.10",
- nemCode: "110102",
- faultCause: "1.传感器及线路故障;2.温度超过设置值;3.PLC 模块故障",
- resolvent:
- "1.检查传感器及线路是否正常;2.检查控制柜温控开关设置值是否正常,检查加热器工作\n是否正常,检查控制柜密闭情况是否良好;3.检查 PLC 模块是否正常;",
- stationName: "02风电场",
- componentsName: "塔底柜",
- },
- {
- id: "HY_0012",
- tagId: "NULL",
- triggerType: 11,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "TDG",
- subcomponents: "NULL",
- description: "塔底控制柜风扇保护",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.11",
- nemCode: "110103",
- faultCause:
- "1.线路短路;2.电机过载;3.断路器、辅助触点或控制回路故障;4.PLC 模块故障;",
- resolvent:
- "1.检查动力回路是否正常;2.检查电机绕组;3.检查断路器、辅助触点及控制回路是否正\n常;4.检查 PLC 模块是否正常;",
- stationName: "02风电场",
- componentsName: "塔底柜",
- },
- {
- id: "HY_0013",
- tagId: "NULL",
- triggerType: 12,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "TDG",
- subcomponents: "NULL",
- description: "塔底温度过高",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.12",
- nemCode: "110105",
- faultCause:
- "1.线路短路;2.电机过载;3.断路器、辅助触点或控制回路故障;4.PLC 模块故障;",
- resolvent:
- "1.检查传感器及线路是否正常;2.检查塔底温度是否高温,查找发热源;3.检查 PLC 模块\n是否正常;",
- stationName: "02风电场",
- componentsName: "塔底柜",
- },
- {
- id: "HY_0014",
- tagId: "NULL",
- triggerType: 13,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "JC",
- subcomponents: "NULL",
- description: "机舱控制柜温度过高",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.13",
- nemCode: "110110",
- faultCause: "1.传感器及线路故障;2.温度超过设置值;3.PLC 模块故障",
- resolvent:
- "1.检查传感器及线路是否正常;2.检查控制柜温度是否高温,检查温控开关设置值是否正\n常,检查冷却风扇工作是否正常;3.检查 PLC 模块是否正常;",
- stationName: "02风电场",
- componentsName: "机舱",
- },
- {
- id: "HY_0015",
- tagId: "NULL",
- triggerType: 14,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "JC",
- subcomponents: "NULL",
- description: "机舱控制柜温度过低",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.14",
- nemCode: "110111",
- faultCause: "1.传感器及线路故障;2.温度超过设置值;3.PLC 模块故障",
- resolvent:
- "1.检查传感器及线路是否正常;2.检查控制柜温度是否高温;3.检查 PLC 模块是否正常;",
- stationName: "02风电场",
- componentsName: "机舱",
- },
- {
- id: "HY_0016",
- tagId: "NULL",
- triggerType: 15,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "JC",
- subcomponents: "NULL",
- description: "机舱控制柜风扇保护",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.15",
- nemCode: "110112",
- faultCause:
- "1.线路短路;2.风扇损坏;3.断路器、辅助触点或控制回路故障;4.PLC 模块故障;",
- resolvent:
- "1.检查动力回路是否正常;2.检查散热风扇工作是否正常;3.检查断路器、辅助触点及控\n制回路是否正常;4.检查 PLC 模块是否正常;",
- stationName: "02风电场",
- componentsName: "机舱",
- },
- {
- id: "HY_0017",
- tagId: "NULL",
- triggerType: 16,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "TDG",
- subcomponents: "NULL",
- description: "塔底冷却风扇保护",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.16",
- nemCode: "110113",
- faultCause:
- "1.线路短路;2.电机过载;3.断路器、辅助触点或控制回路故障;4.PLC 模块故障;",
- resolvent:
- "1.检查动力回路是否正常;2.检查电机绕组阻值和电机绝缘;3.检查断路器、辅助触点及\n控制回路是否正常;4.检查 PLC 模块是否正常;",
- stationName: "02风电场",
- componentsName: "塔底柜",
- },
- {
- id: "HY_0018",
- tagId: "NULL",
- triggerType: 17,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "BPQ",
- subcomponents: "NULL",
- description: "变频器转子侧标记故障",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.17",
- nemCode: "30101",
- faultCause: "转子侧模块总故障",
- resolvent:
- "需使用变流器调试软件进行具体代码的分析并参照变流器的故障处理手册排查故障",
- stationName: "02风电场",
- componentsName: "变频器",
- },
- {
- id: "HY_0019",
- tagId: "NULL",
- triggerType: 18,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "BPQ",
- subcomponents: "NULL",
- description: "变频器转子侧电压故障",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.18",
- nemCode: "30102",
- faultCause: "转子侧模块过压和欠压等故障",
- resolvent:
- "需使用变流器调试软件进行具体代码的分析并参照变流器的故障处理手册排查故障",
- stationName: "02风电场",
- componentsName: "变频器",
- },
- {
- id: "HY_0020",
- tagId: "NULL",
- triggerType: 19,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "BPQ",
- subcomponents: "NULL",
- description: "变频器转子侧电流故障",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.19",
- nemCode: "30103",
- faultCause: "转子侧模块过流或短路",
- resolvent:
- "1.检查电机负载;2.检查供电电压;3.检查在供电侧有无功率因数补偿电容;4.检查整流\n器;5.检查逆变器;6.检查 LCL 滤波器;7.检查整流器 IGBT 和电流互感器;8.需使用变\n流器调试软件进行具体代码的分析并参照变流器的故障处理手册排查故障",
- stationName: "02风电场",
- componentsName: "变频器",
- },
- {
- id: "HY_0021",
- tagId: "NULL",
- triggerType: 20,
- deviceId: "NULL",
- suffix: null,
- rank: 3,
- uniformCode: "BI0001",
- stationId: "SXJ_KGDL_HSM_FDC_STA",
- modelId: "/HW3-S2500(121)",
- alarmType: "windturbine",
- deviceType: "windturbine",
- components: "BPQ",
- subcomponents: "NULL",
- description: "变频器转子侧温度故障",
- characteristic: "报警",
- resetTable: false,
- enable: true,
- name: "hmi_error_dword_01.20",
- nemCode: "30104",
- faultCause: "NULL",
- resolvent: "NULL",
- stationName: "02风电场",
- componentsName: "变频器",
- },
- ],
- modelList: [],
- modelListAll: {}, //型号所有列表
- visible: false,
- form: {},
- tableHeader: [
- { title: "编码", code: "id" },
- { title: "场站", code: "stationName" },
- // { title: "设备", code: "deviceId", },
- { title: "机型", code: "modelId" },
- { title: "报警描述", code: "description" },
- { title: "设备部件", code: "componentsName" },
- { title: "特性", code: "characteristic" },
- { title: "设备类型", code: "deviceType" },
- { title: "报警类型", code: "alarmType" },
- // { title: "级别", code: "rankName" },
- { title: "是否启用", code: "enable" },
- { title: "是否可复位", code: "resetTableName" },
- ],
- tableHeader1: [
- { title: "编码", code: "id" },
- { title: "升压站", code: "stationName" },
- // { title: "规则名称", code: "name" },
- // { title: "表达式", code: "expression" },
- { title: "类型", code: "alarmType" },
- // { title: "级别", code: "rank" },
- { title: "是否启用", code: "enable" },
- { title: "描述", code: "description" },
- ],
- });
- // 机型
- const getequipmentmodel_list = async () => {
- const { data } = await fetchModel();
- state.modelListAll = data;
- };
- // 场站列表/升压站列表
- const stationList = ref([]);
- const categorychanged = async (value) => {
- query.alarmType = value;
- query.wpId = "";
- query.modelId = "";
- getWpArray();
- getData();
- };
- const getWpArray = async () => {
- const { data } = await getWpList(query.alarmType);
- stationList.value = data;
- };
- //型号列表
- const modelList = computed(() => {
- if (query.wpId == "") {
- return [];
- } else {
- return state.modelListAll[query.wpId];
- }
- });
- const isStation = computed(() => store.getters.isStation);
- let total = ref(0);
- const hisTable = ref();
- const getData = async () => {
- const { data: res } = await windturbinebj_fetchTableData(query);
- if (res) {
- res.records.forEach((ele) => {
- ele.rankName = getRankName(ele.rank);
- ele.resetTableName = ele.resetTable ? "是" : "否";
- });
- state.tableData = res.records;
- console.log(hisTable.value);
- total.value = res.total;
- }
- };
- const getRankName = (rank) => {
- if (rank === 1) {
- return "低级";
- } else if (rank === 2) {
- return "低中级";
- } else if (rank === 3) {
- return "中级";
- } else if (rank === 4) {
- return "中高级";
- } else if (rank === 5) {
- return "高极";
- }
- };
- //changeStation
- const changeStation = async () => {
- query.modelId = "";
- getData();
- };
- const dialogclose = () => {
- state.visible = false;
- getData();
- };
- const handleInsert = () => {
- state.visible = true;
- state.title = "新增";
- };
- const handleEditClick = (row) => {
- state.title = "编辑";
- let obj = Object.assign({}, row);
- obj && (obj.manufacturerCode = "");
- state.form = obj;
- state.visible = true;
- };
- // 分页导航
- const handlePageChange = (val) => {
- query.pageNum = val;
- getData();
- };
- const tableHeader = [
- "id",
- "报警级别(ZC_BJ:运转正常;YJ_BJ:运转状态超出标准范围;GZ_BJ:非正常停止运转;WH_BJ:停机维护;XD_BJ:限电/计划停机)",
- "制造商(HFYG_CS:合肥阳光电源有限公司;AMS_CS:艾默生;NRJD_CS:国电南瑞吉电新能源;MGSK_CS:美国赛康;LHDL_CS:联合动力;SYHC_CS:沈阳华创)",
- "名称",
- "上一级节点",
- "是否有子节点",
- "序列号",
- "类别 :正常停机,正常启动,快速停机,紧急停机",
- "设备型号",
- "全部默认为1",
- "统一编码",
- "是否展示(0:是;1:否)",
- "报警分类(bj:变桨;bpq:变频器;clx:齿轮箱;fdj:发电机;hh:滑环;jcjr:机舱加热;lq:冷却;ph:偏航;rh:润滑;yy:液压;zz:主轴;other:其它;kz:控制;yl:叶轮;jc:机舱;xb:箱变;dw:电网;td:塔底;fsy:风速仪)",
- "消缺规定时间",
- "是否可以复位(0:是;1:否)",
- "报警类型编号",
- "故障编码",
- "关联部件",
- ];
- const tableKey = [
- "id",
- "levelId",
- "manufacturerCode",
- "chineseText",
- "parentId",
- "isleaf",
- "sequenceNumber",
- "characteristic",
- "modelId",
- "codeName",
- "ednaValue",
- "display",
- "warningClassIfyId",
- "standardTime",
- "isreset",
- "warningTypeId",
- "faultCode",
- "relatedParts",
- ];
- // 批量导出
- const export2Excel = async () => {
- let tableHeader = [];
- let tableKey = [];
- const res = await windturbinebj_fetchTableData({
- ...query,
- pageNum: 1,
- pageSize: 999999,
- });
- ElMessage.success(`导出成功!`);
- if (query.alarmType == "windturbine" || query.alarmType == "inverter") {
- tableHeader = state.tableHeader.map((item) => item.title);
- tableKey = state.tableHeader.map((item) => item.code);
- } else if (query.alarmType == "booststation") {
- tableHeader = state.tableHeader1.map((item) => item.title);
- tableKey = state.tableHeader1.map((item) => item.code);
- }
- outExportExcel(
- tableHeader,
- tableKey,
- res.data.records.map((item) => {
- return {
- ...item,
- alarmType: alarmTypeConvert("alarmType", item.alarmType),
- deviceType: alarmTypeConvert("deviceType", item.deviceType),
- enable: enabledConvert(item.enable),
- resetTableName: item.resetTable ? "是" : "否",
- };
- }),
- "设备报警配置导出excel"
- );
- };
- // 模板下载
- const outExe = () => {
- const data = [];
- ElMessage.success(`导出成功!`);
- outExportExcel(tableHeader, tableKey, data, "设备报警模板");
- };
- // 批量导入
- const handleSuccess = (response, file, fileList) => {
- ElMessage.success("导入成功!");
- getData();
- };
- const handleProgress = (response, file, fileList) => {};
- const handleError = (response, file, fileList) => {
- ElMessage.success("导入失败!");
- };
- //级别
- const rankConvert = (val) => {
- if (val == 1) {
- return "低级";
- } else if (val == 2) {
- return "低中级";
- } else if (val == 3) {
- return "中级";
- } else if (val == 4) {
- return "中高级";
- } else if (val == 5) {
- return "高级";
- }
- };
- // 类型
- const alarmTypeConvert = (type, val) => {
- if (type === "alarmType") {
- if (val === "windturbine") {
- return "风机";
- } else if (val === "booststation") {
- return "升压站";
- } else if (val === "inverter") {
- return "光伏";
- } else if (val === "custom") {
- return "自定义";
- }
- } else {
- if (val === "windturbine") {
- return "风机";
- } else if (val === "booststation") {
- return "升压站";
- } else if (val === "inverter") {
- return "光伏";
- }
- }
- };
- // 状态
- const enabledConvert = (val) => {
- if (val === false) {
- return "停用";
- } else if (val === true) {
- return "启用";
- }
- };
- // 报警分类
- const warningClassIfyIdConvert = (val) => {
- switch (val) {
- case "bj":
- return "变桨";
- case "bpq":
- return "变频器";
- case "clx":
- return "齿轮箱";
- case "fdj":
- return "发电机";
- case "hh":
- return "滑环";
- case "jcjr":
- return "机舱加热";
- case "lq":
- return "冷却";
- case "ph":
- return "偏航";
- case "rh":
- return "润滑";
- case "yy":
- return "液压";
- case "zz":
- return "主轴";
- case "other":
- return "其它";
- case "kz":
- return "控制";
- case "yl":
- return "叶轮";
- case "jc":
- return "机舱";
- case "xb":
- return "箱变";
- case "dw":
- return "电网";
- case "td":
- return "塔底";
- case "fsy":
- return "风速仪";
- }
- };
- // 是否可以复位
- const isresetConvert = (val) => {
- switch (val) {
- case 0:
- return "是";
- case 1:
- return "否";
- }
- };
- // 统一编码
- const ednaValueConvert = (val) => {
- if (val === 0) {
- return "";
- } else if (val < 100 && val > 0) {
- return "DI0" + val;
- } else if (val >= 100) {
- return "DI" + val;
- }
- };
- // 关联部件
- const relatePartConvert = (val) => {
- switch (val) {
- case "YP":
- return "叶片";
- case "LG":
- return "轮毂";
- case "TZ":
- return "塔架";
- case "JC":
- return "机舱";
- case "KZXT":
- return "控制系统";
- case "BJXT":
- return "变桨系统";
- case "PHXT":
- return "偏航系统";
- case "CLX":
- return "齿轮箱";
- case "FDJ":
- return "发电机";
- case "BPQ":
- return "变频器";
- case "YYXT":
- return "液压系统";
- case "FZXT":
- return "辅助系统";
- case "CFXT":
- return "测风系统";
- case "DWXT":
- return "电网系统";
- case "TDG":
- return "塔底柜";
- case "CDL":
- return "传动链";
- case "QT":
- return "其他";
- default:
- }
- };
- </script>
- <style scoped lang="less">
- .history-config {
- height: 100%;
- .form-wrapper {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- padding: 20px 0 10px 20px;
- .search-wrapper::v-deep {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- font-size: 14px;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #b3b3b3;
- .search-item {
- margin-right: 10px;
- width: 120px;
- }
- }
- .btns {
- display: flex;
- justify-content: flex-end;
- margin-right: 10px;
- // position: absolute;
- // right: 0;
- // top: 53px;
- }
- .buttons {
- background-color: rgba(5, 187, 76, 0.2);
- border: 1px solid #3b6c53;
- color: #b3b3b3;
- font-size: 14px;
- &:hover {
- background-color: rgba(5, 187, 76, 0.5);
- color: #ffffff;
- }
- }
- }
- }
- .table-wrapper {
- height: calc(100% - 160px);
- width: calc(100% - 40px);
- padding: 20px;
- .leftContent[data-type~="greenSty"] {
- background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
- }
- .leftContent[data-type~="blueSty"] {
- background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
- }
- .leftContent {
- width: 242px;
- height: 41px;
- display: flex;
- align-items: center;
- span {
- font-size: 16px;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #05bb4c;
- margin-left: 25px;
- }
- }
- .el-table::v-deep {
- .el-table__body-wrapper {
- height: calc(100% - 45px) !important;
- }
- }
- .pagination-wrapper ::v-deep {
- text-align: right;
- margin-top: 20px;
- }
- }
- .pagination {
- margin-top: 15px;
- }
- .el-button + .el-button {
- margin-left: 10px;
- }
- </style>
|