loulijun2021
2024-05-06 fcac164d607958b8271e70b010376ab52a843ce1
src/views/kanbanManager/zhkb.vue
@@ -233,14 +233,14 @@
                  label="序号"
                  width="60"
                />
                <el-table-column
                  prop="linename"
                  width="125"
                  label="产线"
                />
                <!--                <el-table-column-->
                <!--                  prop="linename"-->
                <!--                  width="125"-->
                <!--                  label="产线"-->
                <!--                />-->
                <el-table-column
                  prop="partname"
                  width="160"
                  width="260"
                  label="产品"
                >
                  <template slot-scope="{row}">
@@ -251,7 +251,7 @@
                <el-table-column
                  prop="good_qty"
                  label="数量"
                  width="90"
                  width="115"
                >
                  <template slot-scope="{row}">
                    <div>{{ parseFloat(row.good_qty) }}</div>
@@ -552,23 +552,23 @@
    getLineSearchTopRightData() {
      LineSearchTopRightData({ shopcode: this.ShopArr.join(',') }).then(res => {
        this.tableDataRightTop = res.data
        const divData = this.$refs.tableDataRightTopRef.bodyWrapper
        const temp = setInterval(() => {
          divData.scrollTop += 1
          if (divData.clientHeight + divData.scrollTop === divData.scrollHeight) {
            divData.scrollTop = 0
            LineSearchTopRightData({ shopcode: this.ShopArr.join(',') }).then(res => {
              this.tableDataRightTop = res.data
              if (this.tableDataRightTop.length > 9) {
                clearInterval(temp)
                this.getLineSearchTopRightData()
              }
            })
          }
        }, this.tableDataRightTop.length <= 9 ? 1000 * 15 : 300)
        // const divData = this.$refs.tableDataRightTopRef.bodyWrapper
        //
        // const temp = setInterval(() => {
        //   divData.scrollTop += 1
        //
        //   if (divData.clientHeight + divData.scrollTop === divData.scrollHeight) {
        //     divData.scrollTop = 0
        //     LineSearchTopRightData({ shopcode: this.ShopArr.join(',') }).then(res => {
        //       this.tableDataRightTop = res.data
        //
        //       if (this.tableDataRightTop.length > 9) {
        //         clearInterval(temp)
        //         this.getLineSearchTopRightData()
        //       }
        //     })
        //   }
        // }, this.tableDataRightTop.length <= 9 ? 1000 * 15 : 300)
      })
      // let startValue = 0 // 初始值