From 9c937c51f8bb52e1226342082847e48cdb310f20 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Mon, 17 Feb 2025 16:41:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=9F=E6=88=B7=E6=96=B0=E5=A2=9E=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/tenant.vue | 40 ++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/src/views/system/tenant.vue b/src/views/system/tenant.vue index 5af35157..d67eac03 100644 --- a/src/views/system/tenant.vue +++ b/src/views/system/tenant.vue @@ -129,6 +129,7 @@ import { mapGetters } from 'vuex'; import { getMenuTree } from '@/api/system/menu'; import { validatenull } from '@/utils/validate'; import { getAppMenuTree } from '@/api/system/appmenu'; +import { isNumber } from '@/utils/util'; export default { data() { @@ -231,14 +232,26 @@ export default { addDisplay: false, editDisplay: false, }, + { + label: '文件存储', + prop: 'fileSpace', + width: 120, + type: 'number', + min: 0, + }, + { + label: '数据存储', + prop: 'dataSpace', + width: 120, + type: 'number', + min: 0, + }, { label: '租户类型', prop: 'tenantType', span: 24, type: 'select', - rules: [ - { required: true, message: '请选择租户类型', trigger: 'blur' } - ], + rules: [{ required: true, message: '请选择租户类型', trigger: 'blur' }], dicData: [ { label: '干仓配', @@ -461,6 +474,9 @@ export default { } this.form = data; }); + } else { + this.form.fileSpace = isNumber(this.form.fileSpace) ? Number(this.form.fileSpace) : 0; + this.form.dataSpace = isNumber(this.form.dataSpace) ? Number(this.form.dataSpace) : 0; } done(); }, @@ -637,17 +653,17 @@ export default { }; -