loulijun2021
2022-08-29 1d739783b70e11e964d86a882b00c20d2e000997
1.修改top5从顶部开始排列
已修改3个文件
46 ■■■■■ 文件已修改
src/utils/myEcharts.js 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/kb/zhkb.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scgl/gd.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/myEcharts.js
@@ -360,6 +360,14 @@
  const titlename = titlenameArr
  const length = titlename.length
  if (titlename.length < 5) {
    for (let i = 0; i < 5 - length; i++) {
      titlename.push('0')
    }
  }
  console.log(titlenameArr)
  const valdata = [683, 500, 400, 300, 200]
  // const myColor = ['#FF0000', '#FF5511', '#FF8800', '#FFBB00', '#FFFF00']
  // const myColor = ['#0000FF']
@@ -408,8 +416,10 @@
          show: false
        },
        axisLabel: {
          // color: '#d8d7d9',
          color: '#fff',
          // color: '#fff',
          color: function(value, index) {
            return value === '0' ? 'transparent' : '#fff'
          },
          fontSize: 14,
          // formatter: function(value, index) {
          //   return [
src/views/kb/zhkb.vue
@@ -690,7 +690,8 @@
          }
          // console.log(res1.data[0].children.length, 9999)
          // console.log(res1.data[0].children, 8888)
          if (res1.data[0].children.length > 0 && res1.data[0].children.length === count++) {
          // if (res1.data[0].children.length > 0 && res1.data[0].children.length === count++) {
          if (res1.data[0].children.length === count++) {
            count = 0
            LineSearchTopLeftData([item]).then(res => {
              res1 = res
@@ -721,7 +722,7 @@
              children: res2.data[0].children ? res2.data[0].children[count] : []
            }
          }
          if (res2.data[0].children.length > 0 && res2.data[0].children.length === count++) {
          if (res2.data[0].children.length === count++) {
            count = 0
            LineSearchTopLeftData([item]).then(res => {
              res2 = res
@@ -753,7 +754,7 @@
              children: res3.data[0].children ? res3.data[0].children[count] : []
            }
          }
          if (res3.data[0].children.length > 0 && res3.data[0].children.length === count++) {
          if (res3.data[0].children.length === count++) {
            count = 0
            LineSearchTopLeftData([item]).then(res => {
              res3 = res
@@ -784,7 +785,8 @@
              children: res4.data[0].children ? res4.data[0].children[count] : []
            }
          }
          if (res4.data[0].children > 0 && res4.data[0].children.length === count++) {
          // if (res4.data[0].children > 0 && res4.data[0].children.length === count++) {
          if (res4.data[0].children.length === count++) {
            count = 0
            LineSearchTopLeftData([item]).then(res => {
              res4 = res
src/views/scgl/gd.vue
@@ -685,7 +685,7 @@
      :close-on-click-modal="false"
      @close="dialogVisibleSourceClose"
    >
      <div class="bodyTopFormGroup">
      <div class="bodyTopFormGroup" style="animation: move 1s linear">
        <el-form
          ref="sourceForm"
          :model="sourceForm"
@@ -774,17 +774,17 @@
          </div>
        </el-form>
      </div>
      <el-tooltip :content="!isExpand?'点击展示更多':'收起'" placement="bottom">
        <div
          style="display:flex;justify-content: center;
      <!--      <el-tooltip  :content="!isExpand?'点击展示更多':'收起'" placement="bottom">-->
      <div
        style="display:flex;justify-content: center;
          align-items:center;background-color:#eee;cursor: pointer"
          @click="isExpand=!isExpand"
        >
          <i
            :class="!isExpand?'el-icon-arrow-down':'el-icon-arrow-up'"
            :style="{color:'#42B983'}"
          /></div>
      </el-tooltip>
        @click="isExpand=!isExpand"
      >
        <i
          :class="!isExpand?'el-icon-arrow-down':'el-icon-arrow-up'"
          :style="{color:'#42B983'}"
        /></div>
      <!--      </el-tooltip>-->
      <div class="elTableDiv">
        <el-table
          :data="sourceTableData"