liuyg
2021-09-25 aab7ba71765b91c568d606744b3376c2798dd969
src/views/dispatch/dispatch.vue
@@ -377,6 +377,8 @@
          },
        ],
      },
      useifid: 266,
    };
  },
  created() {
@@ -387,6 +389,7 @@
      deptColumn.editDisplay = false;
      deptColumn.viewDisplay = false;
      deptColumn.hide = true;
      this.useifid = this.userInfo.dept_id;
    }
  },
  computed: {
@@ -405,9 +408,9 @@
      });
      return ids1.join(",");
    },
        ...mapState({
    ...mapState({
      userInfo: (state) => state.user.userInfo,
        })
    }),
  },
  methods: {
    handleChangeTABS(column) {
@@ -436,7 +439,10 @@
      //   this.$message.success("页码" + val);
    },
    rowSave(form, done, loading) {
      form["deptId"] = this.userInfo.dept_id;
      // form["deptId"] = this.userInfo.dept_id;
      if (this.useifid != 266) {
        form["deptId"] = this.useifid;
      }
      adddata(form).then(
        (res) => {
          this.onLoad(this.page);
@@ -464,6 +470,9 @@
      this.onLoad(this.page);
    },
    rowUpdate(row, index, done, loading) {
      if (this.useifid != 266) {
        row["deptId"] = this.useifid;
      }
      update(row).then(
        () => {
          this.onLoad(this.page);
@@ -575,8 +584,10 @@
          ...this.query,
        };
      }
      console.log(values);
      if (this.useifid != 266) {
        values["deptId"] = this.useifid;
      }
      // console.log(values);
      getdata(
        page.currentPage,