|
@@ -157,7 +157,7 @@
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="结构">
|
|
<el-form-item label="结构">
|
|
<el-cascader
|
|
<el-cascader
|
|
- v-model="editFormData.structurecode"
|
|
|
|
|
|
+ v-model="editFormData.structureCode"
|
|
:options="cascaderdata"
|
|
:options="cascaderdata"
|
|
:props="{ checkStrictly: true, emitPath: false }"
|
|
:props="{ checkStrictly: true, emitPath: false }"
|
|
clearable
|
|
clearable
|
|
@@ -167,7 +167,11 @@
|
|
</el-form>
|
|
</el-form>
|
|
<template #footer>
|
|
<template #footer>
|
|
<span class="footerButton">
|
|
<span class="footerButton">
|
|
- <el-button size="mini" round @click="editVisible = false"
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ :style="`color: #${$store.state.theme ? '000' : 'fff'}`"
|
|
|
|
+ size="mini"
|
|
|
|
+ round
|
|
|
|
+ @click="editVisible = false"
|
|
>取 消</el-button
|
|
>取 消</el-button
|
|
>
|
|
>
|
|
<el-button size="mini" round type="primary" @click="saveEdit"
|
|
<el-button size="mini" round type="primary" @click="saveEdit"
|
|
@@ -184,7 +188,7 @@ import { ElMessageBox, ElMessage } from "element-plus";
|
|
import { outExportExcel } from "@/tools/excel/exportExcel.js"; //引入文件
|
|
import { outExportExcel } from "@/tools/excel/exportExcel.js"; //引入文件
|
|
import {
|
|
import {
|
|
faultmode_windturbine,
|
|
faultmode_windturbine,
|
|
- faultmode_structurecode,
|
|
|
|
|
|
+ faultmode_structureCode,
|
|
faultmode_delete,
|
|
faultmode_delete,
|
|
faultmode_add_edit,
|
|
faultmode_add_edit,
|
|
} from "@/api/zhbj/index.js";
|
|
} from "@/api/zhbj/index.js";
|
|
@@ -203,7 +207,7 @@ let treeId = inject("treeId");
|
|
let editVisible = ref(false);
|
|
let editVisible = ref(false);
|
|
let editFormData = ref({});
|
|
let editFormData = ref({});
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
- // getfaultmode(desc.value.code);
|
|
|
|
|
|
+ getfaultmode(desc.value.code);
|
|
});
|
|
});
|
|
const selectV = {
|
|
const selectV = {
|
|
1: "I",
|
|
1: "I",
|
|
@@ -249,7 +253,7 @@ let state = reactive({
|
|
severity: 6,
|
|
severity: 6,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010211",
|
|
structureCode: "101010211",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -263,7 +267,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 4,
|
|
occurence: 4,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010211",
|
|
structureCode: "101010211",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -278,7 +282,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 4,
|
|
occurence: 4,
|
|
detection: 3,
|
|
detection: 3,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010207",
|
|
structureCode: "101010207",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -292,7 +296,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010207",
|
|
structureCode: "101010207",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -306,7 +310,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010206",
|
|
structureCode: "101010206",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -320,7 +324,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010214",
|
|
structureCode: "101010214",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -334,7 +338,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -348,7 +352,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -362,7 +366,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -376,7 +380,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -390,7 +394,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -404,7 +408,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -418,7 +422,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -432,7 +436,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -446,7 +450,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -460,7 +464,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 4,
|
|
occurence: 4,
|
|
detection: 3,
|
|
detection: 3,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -474,7 +478,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 4,
|
|
occurence: 4,
|
|
detection: 3,
|
|
detection: 3,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -488,7 +492,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 4,
|
|
occurence: 4,
|
|
detection: 3,
|
|
detection: 3,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -502,7 +506,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 4,
|
|
occurence: 4,
|
|
detection: 3,
|
|
detection: 3,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -516,7 +520,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 4,
|
|
occurence: 4,
|
|
detection: 3,
|
|
detection: 3,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -532,7 +536,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010204",
|
|
structureCode: "101010204",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -548,7 +552,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010208",
|
|
structureCode: "101010208",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -564,7 +568,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010204",
|
|
structureCode: "101010204",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -580,7 +584,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010204",
|
|
structureCode: "101010204",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -594,7 +598,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010204",
|
|
structureCode: "101010204",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -609,7 +613,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -625,7 +629,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -640,7 +644,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -656,7 +660,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 4,
|
|
occurence: 4,
|
|
detection: 3,
|
|
detection: 3,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010204",
|
|
structureCode: "101010204",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -670,7 +674,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 5,
|
|
occurence: 5,
|
|
detection: 3,
|
|
detection: 3,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010207",
|
|
structureCode: "101010207",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -684,7 +688,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010208",
|
|
structureCode: "101010208",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -698,7 +702,7 @@ let state = reactive({
|
|
severity: 5,
|
|
severity: 5,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010204",
|
|
structureCode: "101010204",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -712,7 +716,7 @@ let state = reactive({
|
|
severity: 2,
|
|
severity: 2,
|
|
occurence: 4,
|
|
occurence: 4,
|
|
detection: 3,
|
|
detection: 3,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -726,7 +730,7 @@ let state = reactive({
|
|
severity: 2,
|
|
severity: 2,
|
|
occurence: 4,
|
|
occurence: 4,
|
|
detection: 3,
|
|
detection: 3,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -740,7 +744,7 @@ let state = reactive({
|
|
severity: 2,
|
|
severity: 2,
|
|
occurence: 4,
|
|
occurence: 4,
|
|
detection: 3,
|
|
detection: 3,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -754,7 +758,7 @@ let state = reactive({
|
|
severity: 2,
|
|
severity: 2,
|
|
occurence: 4,
|
|
occurence: 4,
|
|
detection: 3,
|
|
detection: 3,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -768,7 +772,7 @@ let state = reactive({
|
|
severity: 2,
|
|
severity: 2,
|
|
occurence: 4,
|
|
occurence: 4,
|
|
detection: 3,
|
|
detection: 3,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010202",
|
|
structureCode: "101010202",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -782,7 +786,7 @@ let state = reactive({
|
|
severity: 2,
|
|
severity: 2,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010211",
|
|
structureCode: "101010211",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -796,7 +800,7 @@ let state = reactive({
|
|
severity: 7,
|
|
severity: 7,
|
|
occurence: 4,
|
|
occurence: 4,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010211",
|
|
structureCode: "101010211",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -810,7 +814,7 @@ let state = reactive({
|
|
severity: 7,
|
|
severity: 7,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 2,
|
|
detection: 2,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010211",
|
|
structureCode: "101010211",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -824,7 +828,7 @@ let state = reactive({
|
|
severity: 6,
|
|
severity: 6,
|
|
occurence: 3,
|
|
occurence: 3,
|
|
detection: 4,
|
|
detection: 4,
|
|
- deviceid: "windturbine",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
structureCode: "101010211",
|
|
structureCode: "101010211",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
@@ -838,8 +842,8 @@ let state = reactive({
|
|
severity: null,
|
|
severity: null,
|
|
occurence: null,
|
|
occurence: null,
|
|
detection: null,
|
|
detection: null,
|
|
- deviceid: "windturbine",
|
|
|
|
- structurecode: "",
|
|
|
|
|
|
+ deviceId: "windturbine",
|
|
|
|
+ structureCode: "",
|
|
models: null,
|
|
models: null,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
@@ -861,7 +865,7 @@ const handleDelete = (row) => {
|
|
ElMessage.success(`删除成功!`);
|
|
ElMessage.success(`删除成功!`);
|
|
} else {
|
|
} else {
|
|
ElMessage.success("删除失败");
|
|
ElMessage.success("删除失败");
|
|
- }
|
|
|
|
|
|
+ }
|
|
getfaultmode(desc.value.code);
|
|
getfaultmode(desc.value.code);
|
|
})
|
|
})
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
@@ -879,7 +883,9 @@ const saveEdit = async () => {
|
|
};
|
|
};
|
|
// getData
|
|
// getData
|
|
const getfaultmode = async (code) => {
|
|
const getfaultmode = async (code) => {
|
|
- const res = await faultmode_structurecode(code);
|
|
|
|
|
|
+ console.log(1111, code);
|
|
|
|
+ const res = await faultmode_structureCode(code);
|
|
|
|
+ console.log(2222, res);
|
|
state.faultmodeTableData = res;
|
|
state.faultmodeTableData = res;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -909,7 +915,7 @@ const export2Excel = () => {
|
|
"处理方法",
|
|
"处理方法",
|
|
];
|
|
];
|
|
const tableKey = [
|
|
const tableKey = [
|
|
- "structurecode",
|
|
|
|
|
|
+ "structureCode",
|
|
"name",
|
|
"name",
|
|
"code",
|
|
"code",
|
|
"occurence",
|
|
"occurence",
|