Переглянути джерело

xml在线编辑、离线下载等

Rmengdi 1 рік тому
батько
коміт
494144bb44

+ 2 - 0
PHM-web/package.json

@@ -46,6 +46,7 @@
     "fuse.js": "6.4.3",
     "highlight.js": "9.18.5",
     "html2canvas": "^1.4.1",
+    "js-base64": "^3.7.5",
     "js-beautify": "1.13.0",
     "js-cookie": "3.0.1",
     "jsencrypt": "3.0.0-rc.1",
@@ -55,6 +56,7 @@
     "screenfull": "5.0.2",
     "sortablejs": "1.10.2",
     "vue": "2.6.12",
+    "vue-codemirror": "^4.0.6",
     "vue-count-to": "1.0.13",
     "vue-cropper": "0.5.5",
     "vue-meta": "2.4.0",

+ 6 - 3
PHM-web/src/components/FileUpload/index.vue

@@ -29,7 +29,8 @@
     <transition-group class="upload-file-list el-upload-list el-upload-list--text" name="el-fade-in-linear" tag="ul">
       <li :key="file.url" class="el-upload-list__item ele-upload-list__item-content" v-for="(file, index) in fileList">
         <el-link :href="`${baseUrl}${file.url}`" :underline="false" target="_blank">
-          <span class="el-icon-document"> {{ getFileName(file.name) }} </span>
+        <!-- <el-link  :underline="false" target="_blank"> -->
+          <span class="el-icon-document" @click.prevent="look(file)"> {{ getFileName(file.name) }} </span>
         </el-link>
         <div class="ele-upload-list__item-content-action">
           <el-link :underline="false" @click="handleDelete(index)" type="danger">删除</el-link>
@@ -41,7 +42,7 @@
 
 <script>
 import { getToken } from "@/utils/auth";
-
+let Base64 = require('js-base64').Base64;
 export default {
   name: "FileUpload",
   props: {
@@ -84,7 +85,6 @@ export default {
     value: {
       handler(val) {
         if (val) {
-          debugger
           let temp = 1;
           // 首先将值转为数组
           const list = Array.isArray(val) ? val : this.value.split(',');
@@ -112,6 +112,9 @@ export default {
     },
   },
   methods: {
+    look(file){
+        // window.open(`${baseUrl}+encodeURIComponent(Base64.encode(${file.url}))`);
+    },
     // 上传前校检格式和大小
     handleBeforeUpload(file) {
       // 校检文件类型

+ 5 - 0
PHM-web/src/main.js

@@ -4,6 +4,8 @@ import Cookies from 'js-cookie'
 
 import Element from 'element-ui'
 import './assets/styles/element-variables.scss'
+import VueCodemirror from 'vue-codemirror'
+import 'codemirror/lib/codemirror.css'
 
 import '@/assets/styles/index.scss' // global css
 import '@/assets/styles/common.scss' //
@@ -38,6 +40,8 @@ import VueMeta from 'vue-meta'
 // 字典数据组件
 import DictData from '@/components/DictData'
 
+
+
 // 全局方法挂载
 Vue.prototype.getDicts = getDicts
 Vue.prototype.getConfigKey = getConfigKey
@@ -61,6 +65,7 @@ Vue.component('ImagePreview', ImagePreview)
 Vue.use(directive)
 Vue.use(plugins)
 Vue.use(VueMeta)
+Vue.use(VueCodemirror)
 DictData.install()
 
 /**

+ 15 - 109
PHM-web/src/views/manage/afterAnalysisResult/index.vue

@@ -1,7 +1,15 @@
 <template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
-       
+       <el-form-item label="SNS编码" prop="SNSCode">
+        <el-input v-model="queryParams.SNSCode" placeholder="请输入SNS编码" clearable @keyup.enter.native="handleQuery" />
+      </el-form-item>
+      <el-form-item label="硬件信息" prop="HardwareInfo">
+        <el-input v-model="queryParams.HardwareInfo" placeholder="请输入硬件信息文件名" clearable @keyup.enter.native="handleQuery" />
+      </el-form-item>
+      <el-form-item label="软件信息" prop="SoftwareInfo">
+        <el-input v-model="queryParams.SoftwareInfo" placeholder="请输入软件信息文件名" clearable @keyup.enter.native="handleQuery" />
+      </el-form-item>
       <el-form-item>
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@@ -9,38 +17,6 @@
     </el-form>
 
     <el-row :gutter="10" class="mb8">
-      <el-col :span="1.5">
-        <el-button
-          type="primary"
-          plain
-          icon="el-icon-plus"
-          size="mini"
-          @click="handleAdd"
-          v-hasPermi="['manage:afterAnalysisResult:add']"
-        >新增</el-button>
-      </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="success"
-          plain
-          icon="el-icon-edit"
-          size="mini"
-          :disabled="single"
-          @click="handleUpdate"
-          v-hasPermi="['manage:afterAnalysisResult:edit']"
-        >修改</el-button>
-      </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="danger"
-          plain
-          icon="el-icon-delete"
-          size="mini"
-          :disabled="multiple"
-          @click="handleDelete"
-          v-hasPermi="['manage:afterAnalysisResult:remove']"
-        >删除</el-button>
-      </el-col>
       <el-col :span="1.5">
         <el-button
           type="warning"
@@ -56,26 +32,9 @@
 
     <el-table v-loading="loading" :data="afterAnalysisResultList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
-      
-       
-      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
-        <template slot-scope="scope">
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-edit"
-            @click="handleUpdate(scope.row)"
-            v-hasPermi="['manage:afterAnalysisResult:edit']"
-          >修改</el-button>
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-delete"
-            @click="handleDelete(scope.row)"
-            v-hasPermi="['manage:afterAnalysisResult:remove']"
-          >删除</el-button>
-        </template>
-      </el-table-column>
+      <el-table-column label="SNS编码" align="center" prop="SNSCode" />
+      <el-table-column label="硬件信息" align="center" prop="HardwareInfo" />
+      <el-table-column label="软件信息" align="center" prop="SoftwareInfo" />
     </el-table>
     
     <pagination
@@ -85,17 +44,6 @@
       :limit.sync="queryParams.pageSize"
       @pagination="getList"
     />
-
-    <!-- 添加或修改维修测试控制解析后数据对话框 -->
-    <el-dialog :title="title" :visible.sync="open" :close-on-click-modal="false" width="500px" append-to-body>
-      <el-form ref="form" :model="form" :rules="rules" label-width="100px">
-          
-      </el-form>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitForm">确 定</el-button>
-        <el-button @click="cancel">取 消</el-button>
-      </div>
-    </el-dialog>
   </div>
 </template>
 
@@ -120,15 +68,13 @@ export default {
       total: 0,
       // 维修测试控制解析后数据表格数据
       afterAnalysisResultList: [],
-      // 弹出层标题
-      title: "",
-      // 是否显示弹出层
-      open: false,
       // 查询参数
       queryParams: {
         pageNum: 1,
         pageSize: 10,
-         
+        SNSCode:null,
+        HardwareInfo:null,
+        SoftwareInfo:null
       },
       // 表单参数
       form: {},
@@ -185,46 +131,6 @@ export default {
       this.open = true;
       this.title = "添加维修测试控制解析后数据";
     },
-    /** 修改按钮操作 */
-    handleUpdate(row) {
-      this.reset();
-      const id = row.id || this.ids
-      getAfterAnalysisResult(id).then(response => {
-        this.form = response.data;
-        this.open = true;
-        this.title = "修改维修测试控制解析后数据";
-      });
-    },
-    /** 提交按钮 */
-    submitForm() {
-      this.$refs["form"].validate(valid => {
-        if (valid) {
-          if (this.form.id != null) {
-            updateAfterAnalysisResult(this.form).then(response => {
-              this.$modal.msgSuccess("修改成功");
-              this.open = false;
-              this.getList();
-            });
-          } else {
-            addAfterAnalysisResult(this.form).then(response => {
-              this.$modal.msgSuccess("新增成功");
-              this.open = false;
-              this.getList();
-            });
-          }
-        }
-      });
-    },
-    /** 删除按钮操作 */
-    handleDelete(row) {
-      const ids = row.id || this.ids;
-      this.$modal.confirm('是否确认删除维修测试控制解析后数据编号为"' + ids + '"的数据项?').then(function() {
-        return delAfterAnalysisResult(ids);
-      }).then(() => {
-        this.getList();
-        this.$modal.msgSuccess("删除成功");
-      }).catch(() => {});
-    },
     /** 导出按钮操作 */
     handleExport() {
       this.download('manage/afterAnalysisResult/export', {

+ 15 - 35
PHM-web/src/views/manage/dataDown/index.vue

@@ -10,6 +10,7 @@
     <el-row :gutter="10" class="mb8">
       <el-col :span="1.5">
         <el-button type="primary" size="mini" @click="handleAdd" v-hasPermi="['manage:dataDown:add']">数据下载</el-button>
+        <el-button type="primary" size="mini" @click="offlineDownload">离线下载</el-button>
       </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
@@ -25,31 +26,20 @@
     <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
       @pagination="getList" />
 
-    <!-- 添加或修改数据下载对话框 -->
-    <el-dialog :title="title" :visible.sync="open" :close-on-click-modal="false" width="500px" append-to-body>
+    <!-- 数据下载对话框 -->
+    <dataDownDialog :open="open" :cancel='cancel' :getList='getList'/>
+    <!-- 离线下载对话框 -->
+    <el-dialog :title="title" :visible.sync="openOffline"  :close-on-click-modal="false" width="600px" append-to-body>
       <el-form ref="form" :model="form" :rules="rules" label-width="100px">
-        <el-form-item label="指令" prop="order">
-          <el-select v-model="form.order" placeholder="请选择指令" style="width:100%">
-            <el-option
-              v-for="item in instructionInfoList"
-              :key="item.attribute"
-              :label="item.attribute"
-              :value="item.attribute">
-            </el-option>
-          </el-select>
-        </el-form-item>
-        <el-form-item label="备注" prop="remark">
-          <el-input v-model="form.remark" placeholder="请输入备注" />
+        <el-form-item label="案例文件" prop="caseFileName">
+          <file-upload ref="fileUpload" v-model="form.caseFileName" :limit="1"></file-upload>
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitForm" :loading="butLoading">{{
-          butText
-        }}</el-button>
+        <el-button type="primary" @click="submitForm">确 定</el-button>
         <el-button @click="cancel">取 消</el-button>
       </div>
     </el-dialog>
-    <dataDownDialog :open="open" :cancel='cancel' :getList='getList'/>
   </div>
 </template>
 
@@ -115,6 +105,8 @@ export default {
       },
       // 表单校验
       rules: {},
+      //打开离线下载对话框
+      openOffline:false
     };
   },
   created() {
@@ -181,6 +173,11 @@ export default {
       this.open = true;
       this.title = "下载指令信息确定";
     },
+    // 打开离线下载框
+    offlineDownload(){
+      this.openOffline=true;
+      this.title = "数据离线下载";
+    },
     /** 修改按钮操作 */
     handleUpdate(row) {
       this.reset();
@@ -220,23 +217,6 @@ export default {
         this.$modal.msgSuccess("下载成功");
         this.open = false;
       }, 1000);
-      // this.$refs["form"].validate(valid => {
-      //   if (valid) {
-      //     if (this.form.id != null) {
-      //       updateDataDown(this.form).then(response => {
-      //         this.$modal.msgSuccess("修改成功");
-      //         this.open = false;
-      //         this.getList();
-      //       });
-      //     } else {
-      //       addDataDown(this.form).then(response => {
-      //         this.$modal.msgSuccess("新增成功");
-      //         this.open = false;
-      //         this.getList();
-      //       });
-      //     }
-      //   }
-      // });
     },
     /** 删除按钮操作 */
     handleDelete(row) {

+ 1 - 1
PHM-web/src/views/manage/faultCase/index.vue

@@ -144,7 +144,7 @@
 
     <!-- 添加或修改故障案例信息对话框 -->
     <el-dialog :title="title" :visible.sync="open"  :close-on-click-modal="false" width="600px" append-to-body>
-      <el-form ref="form" :model="form" :rules="rules" label-width="100px"  :label-position="left">
+      <el-form ref="form" :model="form" :rules="rules" label-width="100px">
         <el-form-item label="案例文件" prop="caseFileName">
           <file-upload ref="fileUpload" v-model="form.caseFileName" :limit="1"></file-upload>
         </el-form-item>

+ 10 - 109
PHM-web/src/views/manage/feedbackRawData/index.vue

@@ -1,7 +1,12 @@
 <template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
-       
+      <el-form-item label="SNS编码" prop="SNSCode">
+        <el-input v-model="queryParams.SNSCode" placeholder="请输入SNS编码" clearable @keyup.enter.native="handleQuery" />
+      </el-form-item>
+      <el-form-item label="源数据" prop="source">
+        <el-input v-model="queryParams.source" placeholder="请输入源数据文件名" clearable @keyup.enter.native="handleQuery" />
+      </el-form-item>
       <el-form-item>
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@@ -9,38 +14,6 @@
     </el-form>
 
     <el-row :gutter="10" class="mb8">
-      <el-col :span="1.5">
-        <el-button
-          type="primary"
-          plain
-          icon="el-icon-plus"
-          size="mini"
-          @click="handleAdd"
-          v-hasPermi="['manage:feedbackRawData:add']"
-        >新增</el-button>
-      </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="success"
-          plain
-          icon="el-icon-edit"
-          size="mini"
-          :disabled="single"
-          @click="handleUpdate"
-          v-hasPermi="['manage:feedbackRawData:edit']"
-        >修改</el-button>
-      </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="danger"
-          plain
-          icon="el-icon-delete"
-          size="mini"
-          :disabled="multiple"
-          @click="handleDelete"
-          v-hasPermi="['manage:feedbackRawData:remove']"
-        >删除</el-button>
-      </el-col>
       <el-col :span="1.5">
         <el-button
           type="warning"
@@ -56,26 +29,8 @@
 
     <el-table v-loading="loading" :data="feedbackRawDataList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
-      
-       
-      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
-        <template slot-scope="scope">
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-edit"
-            @click="handleUpdate(scope.row)"
-            v-hasPermi="['manage:feedbackRawData:edit']"
-          >修改</el-button>
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-delete"
-            @click="handleDelete(scope.row)"
-            v-hasPermi="['manage:feedbackRawData:remove']"
-          >删除</el-button>
-        </template>
-      </el-table-column>
+      <el-table-column label="SNS编码" align="center" prop="SNSCode" />
+      <el-table-column label="源数据" align="center" prop="source" />
     </el-table>
     
     <pagination
@@ -85,17 +40,6 @@
       :limit.sync="queryParams.pageSize"
       @pagination="getList"
     />
-
-    <!-- 添加或修改反馈的源数据对话框 -->
-    <el-dialog :title="title" :visible.sync="open" :close-on-click-modal="false" width="500px" append-to-body>
-      <el-form ref="form" :model="form" :rules="rules" label-width="100px">
-          
-      </el-form>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitForm">确 定</el-button>
-        <el-button @click="cancel">取 消</el-button>
-      </div>
-    </el-dialog>
   </div>
 </template>
 
@@ -120,15 +64,12 @@ export default {
       total: 0,
       // 反馈的源数据表格数据
       feedbackRawDataList: [],
-      // 弹出层标题
-      title: "",
-      // 是否显示弹出层
-      open: false,
       // 查询参数
       queryParams: {
         pageNum: 1,
         pageSize: 10,
-         
+        SNSCode:null,
+        source:null
       },
       // 表单参数
       form: {},
@@ -185,46 +126,6 @@ export default {
       this.open = true;
       this.title = "添加反馈的源数据";
     },
-    /** 修改按钮操作 */
-    handleUpdate(row) {
-      this.reset();
-      const id = row.id || this.ids
-      getFeedbackRawData(id).then(response => {
-        this.form = response.data;
-        this.open = true;
-        this.title = "修改反馈的源数据";
-      });
-    },
-    /** 提交按钮 */
-    submitForm() {
-      this.$refs["form"].validate(valid => {
-        if (valid) {
-          if (this.form.id != null) {
-            updateFeedbackRawData(this.form).then(response => {
-              this.$modal.msgSuccess("修改成功");
-              this.open = false;
-              this.getList();
-            });
-          } else {
-            addFeedbackRawData(this.form).then(response => {
-              this.$modal.msgSuccess("新增成功");
-              this.open = false;
-              this.getList();
-            });
-          }
-        }
-      });
-    },
-    /** 删除按钮操作 */
-    handleDelete(row) {
-      const ids = row.id || this.ids;
-      this.$modal.confirm('是否确认删除反馈的源数据编号为"' + ids + '"的数据项?').then(function() {
-        return delFeedbackRawData(ids);
-      }).then(() => {
-        this.getList();
-        this.$modal.msgSuccess("删除成功");
-      }).catch(() => {});
-    },
     /** 导出按钮操作 */
     handleExport() {
       this.download('manage/feedbackRawData/export', {

+ 146 - 0
PHM-web/src/views/manage/instructionInfo/Editor.vue

@@ -0,0 +1,146 @@
+<template>
+  <div>
+    <codemirror v-model="content" :options="editorOptions" @input="handletextContentChange" class="content"></codemirror>
+    <div slot="footer" class="dialog-footer">
+      <div class="left">
+        <el-button type="primary" @click="formateXml(content)">格式化</el-button>
+      </div>
+      <div class="right">
+        <el-button type="primary" @click="determine">确定修改</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+//xml编辑器
+import { codemirror } from 'vue-codemirror'
+import 'codemirror/lib/codemirror.css'
+import 'codemirror/mode/xml/xml.js'
+import 'codemirror/theme/ssms.css' // 根据需要选择主题
+import 'codemirror/keymap/sublime'
+import "codemirror/addon/hint/xml-hint.js";
+export default {
+  name: 'XmlEditor',
+  components: {
+    codemirror,
+  },
+  props:[ 'textContent','closeEditor','dataType'],
+  data() {
+    return {
+      // 初始的 text 内容
+      content: this.textContent, 
+      // 绑定的数据
+      bindContentData:this.textContent,
+      editorOptions: null,
+    }
+  },
+  created(){
+    if(this.dataType==='XML'){
+      this.editorOptions={
+        mode: 'xml',
+        theme: 'ssms', // 根据需要选择主题
+        // 缩进格式
+				tabSize: 2,
+        autocorrect: true, // 自动更正
+        spellcheck: true, // 拼写检查
+        lint: true, // 检查格式
+        lineNumbers: true, //是否显示行数
+        lineWrapping: true, //是否自动换行
+        styleActiveLine: true, //line选择是是否高亮
+        keyMap: 'sublime', // sublime编辑器效果
+        matchBrackets: true, //括号匹配
+        autoCloseBrackets: true, // 在键入时将自动关闭括号和引号
+        matchTags: { bothTags: true }, // 将突出显示光标周围的标签
+        autoFormatOnLoad: true
+      }
+      this.formateXml(this.content)
+    }
+  },
+  methods:{
+    handletextContentChange(textContent) {
+      // 在这里处理 XML 内容的变化
+      // console.log(textContent)
+    },
+    // xml格式化
+    formateXml(xmlStr){
+      var that = this;
+        var text = xmlStr;
+        //使用replace去空格
+        text = '\n' + text.replace(/(<\w+)(\s.*?>)/g,function($0, name, props){
+            return name + ' ' + props.replace(/\s+(\w+=)/g," $1");
+        }).replace(/>\s*?</g,">\n<");
+        //处理注释
+        text = text.replace(/\n/g,'\r').replace(/<!--(.+?)-->/g,function($0, text){
+            var ret = '<!--' + escape(text) + '-->';
+            return ret;
+        }).replace(/\r/g,'\n');
+        //调整格式  以压栈方式递归调整缩进
+        var rgx = /\n(<(([^\?]).+?)(?:\s|\s*?>|\s*?(\/)>)(?:.*?(?:(?:(\/)>)|(?:<(\/)\2>)))?)/mg;
+        var nodeStack = [];
+        var output = text.replace(rgx,function($0,all,name,isBegin,isCloseFull1,isCloseFull2 ,isFull1,isFull2){
+            var isClosed = (isCloseFull1 == '/') || (isCloseFull2 == '/' ) || (isFull1 == '/') || (isFull2 == '/');
+            var prefix = '';
+            if(isBegin == '!'){//!开头
+                prefix = that.setPrefix(nodeStack.length);
+            }else {
+                if(isBegin != '/'){///开头
+                    prefix = that.setPrefix(nodeStack.length);
+                    if(!isClosed){//非关闭标签
+                        nodeStack.push(name);
+                    }
+                }else{
+                    nodeStack.pop();//弹栈
+                    prefix = that.setPrefix(nodeStack.length);
+                }
+            }
+            var ret =  '\n' + prefix + all;
+            return ret;
+        });
+        var prefixSpace = -1;
+        var outputText = output.substring(1);
+        //还原注释内容
+        outputText = outputText.replace(/\n/g,'\r').replace(/(\s*)<!--(.+?)-->/g,function($0, prefix,  text){
+            if(prefix.charAt(0) == '\r')
+                prefix = prefix.substring(1);
+            text = unescape(text).replace(/\r/g,'\n');
+            var ret = '\n' + prefix + '<!--' + text.replace(/^\s*/mg, prefix ) + '-->';
+            return ret;
+        });
+        outputText= outputText.replace(/\s+$/g,'').replace(/\r/g,'\r\n');
+        this.content=outputText
+        // return outputText;
+    },
+    //计算头函数 用来缩进
+    setPrefix(prefixIndex) {
+        var result = '';
+        var span = '    ';//缩进长度
+        var output = [];
+        for(var i = 0 ; i < prefixIndex; ++i){
+            output.push(span);
+        }
+        result = output.join('');
+        return result;
+    },
+    determine(){
+      this.closeEditor(this.content)
+    },
+    cancel(){
+      this.closeEditor('no')
+    }
+  }
+}
+</script>
+
+<style scoped>
+::v-deep .CodeMirror-code{
+  font-size: 18px;
+}
+.dialog-footer{
+  margin-top: 20px;
+  display: flex;
+  justify-content: space-around;
+  
+}
+</style>

Різницю між файлами не показано, бо вона завелика
+ 90 - 84
PHM-web/src/views/manage/instructionInfo/index.vue


+ 17 - 34
PHM-web/src/views/manage/reasoning/index.vue

@@ -76,7 +76,7 @@ export default {
       loading: true,
       // 显示分析条件
       showSearch: true,
-      //分析参数
+      // 分析参数
       queryParams: {
         sortie: '',
         testModel: '',
@@ -85,15 +85,15 @@ export default {
         faultModel: '',
         computingEngine: '',
       },
-      //诊断模型信息
+      // 诊断模型信息
       diagnosisOptions: [],
-      //故障方程选择器信息
+      // 故障方程选择器信息
       FEQOptions: [
         { value: '选项1', label: '故障方程1' },
         { value: '选项2', label: '故障方程2' },
         { value: '选项3', label: '故障方程3' },
       ],
-      //选择性模型
+      // 选择性模型
       testModelOptions: [
         {
           model: '模型1',
@@ -106,22 +106,22 @@ export default {
           attribute1: '属性2',
         },
       ],
-      //调用计算引擎的选择器
+      // 调用计算引擎的选择器
       ComputingEngine: [
         { value: '选项1', label: '计算引擎1' },
         { value: '选项2', label: '计算引擎2' },
         { value: '选项3', label: '计算引擎3' },
       ],
-      //架次列表
+      // 架次列表
       sortieList: null,
-      //步骤条步骤
+      // 步骤条步骤
       isActive: 0,
       currentRow: null,
-      //下一步按钮
+      // 下一步按钮
       nextBtn: '下一步',
-      //增强诊断模型
+      // 增强诊断模型
       ModelOptions: [],
-      //诊断的模型表格标记
+      // 诊断的模型表格标记
       modelFlag: 0,
     }
   },
@@ -132,13 +132,15 @@ export default {
   watch: {
     queryParams: {
       handler() {
-        this.$refs.selectTable.visible = false
+        if (this.$refs.selectTable) {
+          this.$refs.selectTable.visible = false
+        }
       },
       deep: true,
     },
   },
   methods: {
-    //架次信息列表
+    // 架次信息列表
     getList() {
       this.loading = true
       listSortie(this.queryParams).then(response => {
@@ -237,11 +239,9 @@ export default {
           } else {
             this.$confirm('确定开始故障诊断吗?', '提示')
               .then(() => {
-                // this.$store.dispatch('LogOut').then(() => {
-                //   location.href = '/index'
-                // })
+                console.log(this.queryParams)//
                 this.$message.success('开始故障诊断')
-                //步骤条初始化和内容重置
+                // 步骤条初始化和内容重置
                 this.isActive = 0
                 this.reset()
               })
@@ -254,23 +254,6 @@ export default {
     },
     back() {
       if (this.isActive < 1) this.isActive = 1
-      switch (this.isActive) {
-        // case 0: this.stepOne=false; break;
-        case 1:
-          this.isActive = 1
-          break
-        case 2:
-          this.isActive = 2
-          break
-        case 3:
-          this.isActive = 3
-          break
-        case 4:
-          this.isActive = 4
-          break
-        default:
-          break
-      }
       this.isActive--
     },
     //跳过
@@ -281,7 +264,7 @@ export default {
     },
     // 内容重置
     reset() {
-      this.queryParams= {
+      this.queryParams = {
         sortie: '',
         testModel: '',
         diagnosis: '',

Деякі файли не було показано, через те що забагато файлів було змінено