wangyanshen
2023-01-11 0acffcc27d165374222737fb7f7b574ece4662cb
src/views/main/istation/trend/onLineSequenceModel.vue
@@ -36,6 +36,7 @@
                <fks-button
                  style="margin-left: 10px"
                  type="primary"
                  icon="fks-icon-search"
                  @click="query"
                  >搜索</fks-button
                >
@@ -92,6 +93,7 @@
                <fks-button
                  style="margin-left: 10px"
                  type="primary"
                  icon="fks-icon-search"
                  @click="query"
                  >搜索</fks-button
                >
@@ -340,12 +342,12 @@
          <div class="dialogBottomLeft">
            <titleBoxVue style="background-color: #fff" title="历史数据图">
            </titleBoxVue>
            <div id="chartLeft1" style="height: calc(100% - 40px)"></div>
            <div id="chartLeftOnLineModel" style="height: calc(100% - 40px)"></div>
          </div>
          <div class="dialogBottomRight">
            <titleBoxVue style="background-color: #fff" title="趋势预警图">
            </titleBoxVue>
            <div id="chartRight33"  style="height: calc(100% - 40px)"></div>
            <div id="chartRightOnLineModel"  style="height: calc(100% - 40px)"></div>
          </div>
        </div>
      </div>
@@ -359,6 +361,30 @@
        nextName
      }}</fks-button>
    </div>
    <fks-dialog
      title="生成预警记录"
      width="400px"
      :visible.sync="finishTreadVisible"
    >
      <fks-form :model="finishTreadForm" label-width="80px">
        <fks-form-item label="说明">
          <fks-input
            type="textarea"
            :rows="4"
            autocomplete="off"
            v-model="finishTreadForm.note"
          >
          </fks-input>
        </fks-form-item>
      </fks-form>
      <div slot="footer" class="dialog-footer">
        <fks-button @click="finishTreadVisible = false">取 消</fks-button>
        <fks-button type="primary" @click="finishTreadRecord">确 定</fks-button>
      </div>
    </fks-dialog>
 
  </div>
@@ -507,17 +533,6 @@
      treeData1: treeData1,
      currentNodeKey: "s1",
      defaultExpandedKeys: ["s1"],
      FaultReportForm: {
        name: "测试01",
        station: "测试01",
        product: "1#泵",
        fault: "水泵无法启动",
        model: "模型01",
        username: "管理员",
        date: "2023-1-1",
        note: "",
      },
      fangxiang: [
        {
          value: "1",
@@ -571,6 +586,10 @@
        fangxiang: "正向",
        userName: "专家",
      },
      finishTreadForm:{
        note:''
      },
      finishTreadVisible:false,
    };
  },
  created() {},
@@ -1124,7 +1143,7 @@
      if (m_chartMain1) {
        m_chartMain1.clear();
      }
      m_chartMain1 = echarts.init(document.getElementById("chartLeft1"));
      m_chartMain1 = echarts.init(document.getElementById("chartLeftOnLineModel"));
      let m_unitName = "MPa";
      let m_recordName = "压力";
@@ -1426,7 +1445,7 @@
      if (m_chartQH1) {
        m_chartQH1.clear();
      }
      m_chartQH1 = echarts.init(document.getElementById("chartRight33"));
      m_chartQH1 = echarts.init(document.getElementById("chartRightOnLineModel"));
      let QH = [];
      let data =  [
@@ -1609,8 +1628,19 @@
    gobackActiveIndex() {
      this.activeIndex = 0;
    },
    finishTreadRecord(){
      this.finishTreadVisible=false;
      this.activeIndex = 3
      setTimeout(() => {
            this.initChartLeft1(testData.recordData.Data);
            this.initChartRight1();
          }, 300);
    },
    next() {
      if(this.activeIndex===2){
        this.finishTreadVisible=true;
        return
      }
      this.activeIndex++;
      if(this.activeIndex===2){
        setTimeout(() => {
@@ -1618,12 +1648,7 @@
            this.initChartRight();
          }, 300);
      }
      if(this.activeIndex===3){
        setTimeout(() => {
            this.initChartLeft1(testData.recordData.Data);
            this.initChartRight1();
          }, 300);
      }
    },
    query() {
      console.log(this.searchWord, 105);