疯狂的狮子li
2023-02-28 1fd09f8ca369f93e936df04201d37f34d21dff28
ruoyi-ui/src/views/system/tenant/index.vue
@@ -264,9 +264,6 @@
        password: [
          { required: true, message: "密码不能为空", trigger: "blur" },
          { min: 5, max: 20, message: '用户密码长度必须介于 5 和 20 之间', trigger: 'blur' }
        ],
        packageId: [
          { required: true, message: "租户套餐不能为空", trigger: "blur" }
        ]
      }
    };
@@ -294,7 +291,7 @@
    handleStatusChange(row) {
      let text = row.status === "0" ? "启用" : "停用";
      this.$modal.confirm('确认要"' + text + '""' + row.companyName + '"租户吗?').then(function() {
        return changeTenantStatus(row.id, row.status);
        return changeTenantStatus(row.id, row.tenantId, row.status);
      }).then(() => {
        this.$modal.msgSuccess(text + "成功");
      }).catch(function() {
@@ -360,6 +357,7 @@
    handleUpdate(row) {
      this.loading = true;
      this.reset();
      this.getTenantPackage();
      const id = row.id || this.ids
      getTenant(id).then(response => {
        this.loading = false;