shuishen
2021-11-12 8e2a42e4a2da78f9cda9fa3e7732a0ef72f0c906
src/views/securityUnit/selfRecruitedSecurityGuard.vue
@@ -290,7 +290,7 @@
    };
  },
  created() {
    this.option0.column[4].value = 2;
    this.option0.column[4].value = 0;
    this.option0.column[4].disabled = true;
  },
  computed: {
@@ -431,14 +431,19 @@
        this.$message.warning("请选择至少一条数据");
        return;
      }
      this.$confirm("确定批量将选择数据删除?", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      })
      this.$confirm(
        "该操作将会把保安员数据一并删除,不可恢复!确定将选择公司删除?",
        {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning",
        }
      )
        .then(() => {
          // console.log(this.ids);
          return remove(this.ids, this.ids1);
          return remove(this.ids, this.ids1).then((res) => {
            this.refreshChange();
          });
        })
        .then(() => {
          this.onLoad(this.page);
@@ -508,13 +513,17 @@
    //   this.nobumen = 1;
    // },
    handleSubmit(form, done) {
      console.log(form);
      form["createUserId"] = this.userInfo.Id;
      // console.log(form);
      // done();
      // return;
      adddata(form).then((res) => {
        if (res.data.success) {
          this.$message({
            message: "提交成功",
            type: "success",
          });
          this.refreshChange();
          done();
          this.forms = false;
        } else {
@@ -522,6 +531,7 @@
            message: "提交失败",
            type: "warning",
          });
          done();
        }
      });
    },