|
@@ -345,48 +345,7 @@ onMounted(() => {
|
|
|
state.alarmId = route.query.alarmId || "";
|
|
|
state.modelId = route.query.modelId || "";
|
|
|
|
|
|
- state.tableData = new Array(5).fill({
|
|
|
- tbName: null,
|
|
|
- alarmId: "SQ_0125",
|
|
|
- alarmType: "windturbine",
|
|
|
- characteristic: "预警",
|
|
|
- components: "BPQ",
|
|
|
- confirmed: false,
|
|
|
- description: "变频器故障27",
|
|
|
- deviceId: "SXJ_KGDL_XWT_F_WT_0014_EQ",
|
|
|
- devicename: "14号风机",
|
|
|
- deviceType: "windturbine",
|
|
|
- enabled: true,
|
|
|
- lineid: "SXJ_KGDL_XWTF01_LN",
|
|
|
- linename: "一号风机线",
|
|
|
- modelId: "SEC-W02B-1250kW",
|
|
|
- projectid: "SXJ_KGDL_XWTF01_EG",
|
|
|
- projectname: "一期项目",
|
|
|
- rank: 3,
|
|
|
- resettable: false,
|
|
|
- stationid: "GJNY_SXGS_ZZ_FDC_STA",
|
|
|
- stationname: "13风电场",
|
|
|
- subcomponents: "NULL",
|
|
|
- suffix: null,
|
|
|
- tagid: "FD-YYXWT-ShangQi.140623F1412MDL01BF399DB0122SP01RAW00",
|
|
|
- triggertype: 1463,
|
|
|
- uniformcode: "BJ0001",
|
|
|
- superTableName: null,
|
|
|
- ts: 1718160795000,
|
|
|
- val: 1,
|
|
|
- oval: null,
|
|
|
- endts: 0,
|
|
|
- timelong: 0,
|
|
|
- name: null,
|
|
|
- nemCode: "状态码1463",
|
|
|
- faultCause: "13.7s>信号<=14.2s",
|
|
|
- resolvent: "输入端142功率上升延迟300s",
|
|
|
- wpName: "13风电场",
|
|
|
- code: "#14",
|
|
|
- wpId: null,
|
|
|
- faultType: null,
|
|
|
- id: "sxj_kgdl_xwt_f_wt_0014_eq_sq_0125",
|
|
|
- });
|
|
|
+
|
|
|
|
|
|
getStationList();
|
|
|
getequipmentmodel_list();
|
|
@@ -623,12 +582,55 @@ const getAlarmHistoryt = async () => {
|
|
|
// tableLoading.value = false;
|
|
|
if (data) {
|
|
|
query.pageTotal = data?.total;
|
|
|
- data?.ls?.forEach((ele) => {
|
|
|
- ele.isCloseName = ele.endts ? "已解除" : "未解除";
|
|
|
- ele.deviceTypeName = tableFilter(ele.deviceType);
|
|
|
- ele.endtsName = ele.endts > 0 ? formatTime(ele.endts) : "--";
|
|
|
- });
|
|
|
- state.tableData = data?.ls;
|
|
|
+ data?.ls?.forEach((ele) => {
|
|
|
+ ele.isCloseName = ele.endts ? "已解除" : "未解除";
|
|
|
+ ele.deviceTypeName = tableFilter(ele.deviceType);
|
|
|
+ ele.endtsName = ele.endts > 0 ? formatTime(ele.endts) : "--";
|
|
|
+ });
|
|
|
+ state.tableData = data?.ls;
|
|
|
+ } else {
|
|
|
+ state.tableData = new Array(5).fill({
|
|
|
+ tbName: null,
|
|
|
+ alarmId: "SQ_0125",
|
|
|
+ alarmType: "windturbine",
|
|
|
+ characteristic: "预警",
|
|
|
+ components: "BPQ",
|
|
|
+ confirmed: false,
|
|
|
+ description: "变频器故障27",
|
|
|
+ deviceId: "SXJ_KGDL_XWT_F_WT_0014_EQ",
|
|
|
+ devicename: "14号风机",
|
|
|
+ deviceType: "windturbine",
|
|
|
+ enabled: true,
|
|
|
+ lineid: "SXJ_KGDL_XWTF01_LN",
|
|
|
+ linename: "一号风机线",
|
|
|
+ modelId: "SEC-W02B-1250kW",
|
|
|
+ projectid: "SXJ_KGDL_XWTF01_EG",
|
|
|
+ projectname: "一期项目",
|
|
|
+ rank: 3,
|
|
|
+ resettable: false,
|
|
|
+ stationid: "GJNY_SXGS_ZZ_FDC_STA",
|
|
|
+ stationname: "13风电场",
|
|
|
+ subcomponents: "NULL",
|
|
|
+ suffix: null,
|
|
|
+ tagid: "FD-YYXWT-ShangQi.140623F1412MDL01BF399DB0122SP01RAW00",
|
|
|
+ triggertype: 1463,
|
|
|
+ uniformcode: "BJ0001",
|
|
|
+ superTableName: null,
|
|
|
+ ts: 1718160795000,
|
|
|
+ val: 1,
|
|
|
+ oval: null,
|
|
|
+ endts: 0,
|
|
|
+ timelong: 0,
|
|
|
+ name: null,
|
|
|
+ nemCode: "状态码1463",
|
|
|
+ faultCause: "13.7s>信号<=14.2s",
|
|
|
+ resolvent: "输入端142功率上升延迟300s",
|
|
|
+ wpName: "13风电场",
|
|
|
+ code: "#14",
|
|
|
+ wpId: null,
|
|
|
+ faultType: null,
|
|
|
+ id: "sxj_kgdl_xwt_f_wt_0014_eq_sq_0125",
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
};
|