shuishen
2021-11-05 3a2d7d729aaeada800616ebd60eec5f42066670f
src/views/dispatchChild/index.vue
@@ -63,7 +63,7 @@
    </span>
    <!-- <span v-else-if="typeTABS.prop === 'tab3'">选项卡内容3</span> -->
  </div>
</template>
</template>
<script>
import { column, column1 } from "./data";
@@ -164,7 +164,6 @@
        // this.onLoad(this.page);
      } else if (column.prop == "tab2") {
        // this.loading = false;
        // console.log(document.getElementsByClassName("el-card__body")[0]);
        this.onLoad1(this.page1); //第二个表格不会自动执行
      }
      // this.$message.success(JSON.stringify(column));
@@ -285,7 +284,6 @@
        });
    },
    refreshChange1() {
      // console.log(4534)
      this.onLoad1(this.page1, this.query1);
    },
@@ -296,13 +294,11 @@
      // params["name"] = this.name;
      // params["dispatcherCompany"] = this.dispatcherCompany;
      params["dispatcherUnitId"] = this.id;
      // console.log(params, "get");
      getdata1(
        page.currentPage,
        page.pageSize,
        Object.assign(params, this.query)
      ).then((res) => {
        // console.log(res);
        const data = res.data.data;
        this.page1.total = data.total;
        this.data1 = data.records;
@@ -310,7 +306,6 @@
        //   this.data1[k].securityName = this.data1[k].securityName.split(",");
        //   this.data1[k].securityName = this.data1[k].securityName.join(" | ");
        // }
        console.log(this.data1, 1);
        this.loading1 = false;
      });
    },
@@ -344,7 +339,6 @@
        if (i == 1) {
          // console.log("存在");
        } else {
          // console.log("已删除");
          this.obj0 = {};
          this.obj0.name = row.name + " 该派遣单位已删除";
@@ -353,7 +347,6 @@
        }
      }
    } else {
      // console.log("no");
      this.obj0.name = " 未选择派遣单位";
    }
  },
@@ -370,4 +363,4 @@
.el-collapse-item {
  padding-top: 15px !important;
}
</style>
</style>