jinxin55

表格定位到特定行


this.rowid=row._XID

 

confirm( ) {
      let CValue="";
      for (let j = 0; j < this.treeData.length; j++) {
        if (this.rowid===this.treeData[j]._XID) {--拿到指定行
          if (this.dataType == 1) {
            for (let i = 0; i < this.sampleCount; i++) {
              for (let k = 0; k < this.dataCount; k++) {
                CValue += JSON.stringify(this.sampleString[i][k].name).replace("\"", "")
              }
            }
            this.treeData[j].CHECK_VALUE = CValue.replace(/\"/g, ",")--获取每个单元格的内容
            console.log(this.treeData[j])
            this.showEdit = false
            CValue = ""
            this.sampleString = []
          } else {
            this.treeData[j].CHECK_VALUE = \'ftp://****/\'
            this.$refs.upload.submit();
          }
        }
      }
    },

 

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-26
  • 2021-12-26
  • 2021-05-19
  • 2022-02-25
  • 2021-12-26
  • 2021-12-26
  • 2022-12-23
猜你喜欢
  • 2021-12-26
  • 2021-12-26
  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
相关资源
相似解决方案