小小儁爺
11 小时以前 d7c86ef866b5443c9f1408d64cd2ac511b262e92
src/views/systemHome/index.vue
@@ -284,20 +284,7 @@
            <div slot="header" class="clearfix">
              库存信息
            </div>
            <el-tabs
              style="height: 420px;width: 100%;"
              type="card"
              @tab-click="getHomeIndexBottomSearch"
            >
              <el-tab-pane label="毛坯" name="">
                <div id="echarts3" class="flex_c_c" style="width: 100%;height:420px;" />
              </el-tab-pane>
              <el-tab-pane label="产成品" name="">
                <div id="echarts4" class="flex_c_c" style="width: 100%;height:420px;" />
              </el-tab-pane>
            </el-tabs>
            <div id="echarts3" class="flex_c_c" style="width: 100%;height:450px;" />
          </el-card>
        </el-col>
      </el-row>
@@ -739,11 +726,7 @@
    //
    async getHomeIndexBottomSearch(val) {
      const { data: res } = await HomeIndexBottomSearch()
      if (val && val.label === '产成品') {
        loadEcharts('echarts4', echarts3(res.BottomTwo))
      } else {
        loadEcharts('echarts3', echarts3(res.BottomOne))
      }
      loadEcharts('echarts3', echarts3(res.BottomOne))
    }
  }