11
86134
2023-11-09 b51c27865bccc91d4cfe0fc4e380bad3fe9d9b86
src/views/common/ztt-table.vue
@@ -327,7 +327,12 @@
              <template v-else>
                <template v-if="!item.render">
                  <template v-if="item.formatter">
                    <span
                    <span v-if="item.isTag" style="text-align: center;">
                      <el-tag style="width:50px;margin: 3px;" :type="scope.row[item.prop] == 0 ? 'success' : 'info'">
                        <span v-html="item.formatter(scope.row, item, scope.row[item.prop])"></span>
                      </el-tag>
                    </span>
                    <span v-else
                      v-html="
                        item.formatter(scope.row, item, scope.row[item.prop])
                      "
@@ -502,11 +507,11 @@
            >
              <i class="el-icon-upload"></i>
              <div class="el-upload__text"><em>点击导入数据</em></div>
              <div class="el-upload__tip" slot="tip">
              <div class="el-upload__tip" slot="tip" >
                只能上传xlsx/xls文件,且不超过10M<el-button
                  type="text"
                  style="font-size:12px;"
                  @click="downDataTemplate"
                  @click="downDataTemplate"   v-if="uploadInfo.Download"
                  >下载模板</el-button
                >
              </div>
@@ -814,6 +819,7 @@
            this.isCleanInfo = true
          }
        }
        this.$emit("queryParam",this.queryParam)
      },
      deep: true
    },
@@ -954,7 +960,6 @@
          arr.push(this.paramArr[i])
        }
      }
      return this.doCallback(this.ajaxFun, arr, selectedId)
    },
    doCallback(fn, args, selectedId) {
@@ -962,7 +967,12 @@
        .apply(this, args)
        .then((response) => {
          var _this = this
          _this.tableData = response.data.data.records
          var resultData = response.data.data.records
          if(resultData == undefined){
            _this.tableData = response.data.data
          }else{
            _this.tableData = response.data.data.records
          }
          _this.pagination.total = response.data.data.total
          // 置空选中
          this.$refs.lmesTable.setCurrentRow()
@@ -990,6 +1000,7 @@
              this.clickTable(selectObj)
            }
          }
        this.$emit('change',resultData);
        })
        .catch((error) => {
          this.dataListLoading = false
@@ -1522,6 +1533,7 @@
          }
        }
      }
      console.log(this.columnList);
      this.tableKey = Math.random()
      // this.$forceUpdate();
      const currPathColumnOrder = this.currPath + '_column'