fix 修复租户套餐导出接口地址错误,租户套餐选择加入前端必填限制,修复删除弹窗提示错误

This commit is contained in:
Yjoioooo 2023-03-09 16:21:12 +08:00
parent 8095db9e28
commit 0269a6ad4f
2 changed files with 5 additions and 2 deletions

View File

@ -271,6 +271,9 @@ export default {
password: [ password: [
{ required: true, message: "密码不能为空", trigger: "blur" }, { required: true, message: "密码不能为空", trigger: "blur" },
{ min: 5, max: 20, message: '用户密码长度必须介于 5 和 20 之间', trigger: 'blur' } { min: 5, max: 20, message: '用户密码长度必须介于 5 和 20 之间', trigger: 'blur' }
],
packageId: [
{ required: true, message: "租户套餐不能为空", trigger: "blur" },
] ]
} }
}; };
@ -401,7 +404,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除租户编号为"' + ids + '"的数据项?').then(() => { this.$modal.confirm('是否确认删除租户编号为"' + row.tenantId + '"的数据项?').then(() => {
this.loading = true; this.loading = true;
return delTenant(ids); return delTenant(ids);
}).then(() => { }).then(() => {

View File

@ -379,7 +379,7 @@ export default {
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download('system/tenantPackage/export', { this.download('system/tenant/package/export', {
...this.queryParams ...this.queryParams
}, `tenantPackage_${new Date().getTime()}.xlsx`) }, `tenantPackage_${new Date().getTime()}.xlsx`)
} }