| | |
| | | password: [ |
| | | { required: true, message: "密码不能为空", trigger: "blur" }, |
| | | { min: 5, max: 20, message: '用户密码长度必须介于 5 和 20 之间', trigger: 'blur' } |
| | | ], |
| | | packageId: [ |
| | | { required: true, message: "租户套餐不能为空", trigger: "blur" } |
| | | ] |
| | | } |
| | | }; |
| | |
| | | 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() { |
| | |
| | | handleUpdate(row) { |
| | | this.loading = true; |
| | | this.reset(); |
| | | this.getTenantPackage(); |
| | | const id = row.id || this.ids |
| | | getTenant(id).then(response => { |
| | | this.loading = false; |