保安服务企业管理-验收版本
liuyg
2021-09-09 5f544ba3458420629d2c0d05297fb4464d1e66f0
离职登记和查看
1 files modified
18 ■■■■■ changed files
src/views/securityGuard/securityGuard.vue 18 ●●●●● patch | view | raw | blame | history
src/views/securityGuard/securityGuard.vue
@@ -1068,7 +1068,20 @@
      );
    },
    rowDellook(row) {
      console.log(row);
      console.log(row.reasonForLeav);
      this.$alert(
        row.reasonForLeav == "" ? "未填写" : row.reasonForLeav,
        "离职原因",
        {
          confirmButtonText: "确定",
          callback: (action) => {
            // this.$message({
            //   type: "info",
            //   message: `action: ${action}`,
            // });
          },
        }
      );
    },
    rowDel(row) {
      // this.$confirm("确定将选择保安登记离职?", {
@@ -1094,6 +1107,7 @@
        inputErrorMessage: "邮箱格式不正确",
      }).then(({ value }) => {
        console.log(value);
        row.reasonForLeav = value;
        row.status = "2";
        update(row).then((res) => {
          this.$message({
@@ -1101,6 +1115,7 @@
            message: "操作成功",
          });
        });
        this.refreshChange();
      });
      // .catch(() => {
      //   this.$message({
@@ -1133,6 +1148,7 @@
      this.onLoad(this.page);
    },
    searchChange(params, done) {
      console.log(params, 12);
      this.query = params;
      this.page.currentPage = 1;
      this.onLoad(this.page, params);