zmc
2023-11-14 0ee16e9f5dd31c6c98df1a5fdcf081c8eb7f80df
src/views/line_graph/DataRiskModel.vue
@@ -24,7 +24,7 @@
      isNoData: false,
      loading: false,
      screenLoading: false,
      parentDataFlag:false,
      parentDataFlag: false,
      chartData: [],
      chartData1: {}, //保存查询的结果
      chartData2: {},
@@ -78,7 +78,7 @@
  watch: {
    sName() {
      // 当别的页面调用时
      if (this.sName != ''|| this.month_1 != '') {
      if (this.sName != '' || this.month_1 != '') {
        // 更新站点名字和时间
        this.form.name = this.sName
        this.month = this.month_1
@@ -89,7 +89,7 @@
        this.getAnalysisData()
        // 计算风险值
        this.calRiskValue()
      }
      }
    }
  },
@@ -244,7 +244,7 @@
          this.bill.exceptionTypeAggregation = obj['exceptionTypeAggregation']
        })
    },
    // 选择其他值类型时
    setChart() {
      if (this.chartData.length) {
@@ -338,8 +338,6 @@
      ></InputSearch>
    </el-form-item>
    <el-form-item>
      <MonthSelect :month="this.month_1" @submit-value="giveMonth"></MonthSelect>
    </el-form-item>
@@ -376,40 +374,56 @@
                label="序号"
                :index="indexMethod"
                fixed
                width="25"
                width="52"
                show-overflow-tooltip
                align="center"
              />
              <el-table-column prop="siteName" label="站点名称" show-overflow-tooltip />
              <el-table-column
                prop="riskValue"
                label="风险值"
                sortable
                width="67"
                prop="siteName"
                label="站点名称"
                show-overflow-tooltip
              />
              <el-table-column label="操作" align="center">
                align="center"
              >
                <template #default="{ row }">
                  <el-button
                    type="primary"
                    text
                    class="table-button"
                    @click="querySiteStaticsInfo(row)"
                    >风险详情</el-button
                    >{{ row.siteName }}</el-button
                  >
                </template>
              </el-table-column>
              <el-table-column
                prop="riskValue"
                label="风险值"
                sortable
                show-overflow-tooltip
                align="center"
              />
              <!-- <el-table-column label="操作" align="center">
                <template #default="{ row }">
                  <el-button
                    type="primary"
                    text
                    class="table-button"
                    @click="querySiteStaticsInfo(row)"
                    >详情</el-button
                  >
                </template>
              </el-table-column> -->
            </el-table>
          </el-card>
        </el-col>
        <el-col :span="12">
          <el-card shadow="never">
          <el-card shadow="never" class="table-class">
            <DustRadarChart
              :name="[
                '数据有效风险',
                '典型异常复现风险',
                '异常类型聚集风险',
                '数据超标风险',
                '超标异常风险',
                '数据在线风险'
              ]"
              :yData="[
@@ -550,7 +564,7 @@
  /* padding:0px */
}
.card-height {
  height: 540px;
  height: 570px;
}
.el-header {
  background-color: #010408;
@@ -619,7 +633,7 @@
.table-class {
  /* border: 1px solid blue; */
  /* margin: 20px 0px 20px 0px; */
  height: 540px;
  height: 570px;
}
.table-button {