qinxianzhangyao
2024-04-25 1842f5f85ff29cd0771c31a6733607485a82eda6
src/components/proposal/index.vue
@@ -52,7 +52,7 @@
            :total="total"
            :page.sync="queryParams.page"
            :limit.sync="queryParams.pageSize"
            @pagination="getList"
            @pagination="radiotjproposalChange"
          />
        </div>
      </div>
@@ -100,7 +100,7 @@
  watch: {
    cusobj(val, newVla) {
      // console.log(val,newVla,1111)
      this.fList= val
      this.fList = val;
      this.queryParams.sex = val.sex;
      this.queryParams.isZj = val.isZj;
      if (this.queryParams.sex) {
@@ -138,16 +138,17 @@
      this.getAllList();
    },
    handleSelectionChange(selection) {
    //   if (selection.length > 1) {
    //     this.$refs.elTable.clearSelection(); // 清空所有选择
    //     this.$refs.elTable.toggleRowSelection(selection.pop()); // 设置选择项
    //   }
      //   if (selection.length > 1) {
      //     this.$refs.elTable.clearSelection(); // 清空所有选择
      //     this.$refs.elTable.toggleRowSelection(selection.pop()); // 设置选择项
      //   }
      this.list = selection;
      console.log( this.list)
      console.log(this.list);
    },
    radiotjproposalChange() {
      if (this.tjproposal == "0") {
        this.queryParams.isZj = this.fList.isZj;
        this.queryParams.userId = null
        this.getList();
      } else {
        this.loading = true;
@@ -155,8 +156,15 @@
          this.queryParams.userId = res.user.userId;
          this.queryParams.isZj = null;
          getCyTjAdviceKjbqBySex(this.queryParams).then((res) => {
            this.dataList = res.data.records;
            this.total = res.data.total;
            if (res.data) {
              this.dataList = res.data.records;
              this.total = res.data.total;
            } else {
                this.dataList =[]
                this.total = 0
                this.$modal.msgError(res.msg);
            }
            this.loading = false;
          });
        });