From ba80caeb82b180cf6babb19de4ee137813a3248c Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Wed, 29 Dec 2021 09:14:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=9F=E5=90=8D=E7=AE=A1=E7=90=86=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/serverManage/add.vue | 18 +++++++++++++----- src/views/system/serverManage/index.vue | 6 +++++- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/views/system/serverManage/add.vue b/src/views/system/serverManage/add.vue index 5893252d0..5164e4058 100644 --- a/src/views/system/serverManage/add.vue +++ b/src/views/system/serverManage/add.vue @@ -24,7 +24,8 @@ export default { formModel: { id: '', domainName: '', - project: '' + project: '', + resourcesDomainName: '' }, loading: false }; @@ -34,7 +35,8 @@ export default { const form = { labelWidth: '120px', items: [ - { prop: 'domainName', label: '域名', type: 'text', required: true, placeholder: '请输入域名' }, + { prop: 'domainName', label: '接口域名', type: 'text', required: true, placeholder: '请输入域名' }, + { prop: 'resourcesDomainName', label: '资源域名', type: 'text', required: true, placeholder: '请输入域名' }, { prop: 'project', label: '项目', type: 'select', required: true, options: this.projectList, placeholder: '请选择项目' } ] }; @@ -43,7 +45,10 @@ export default { rules() { const crules = { domainName: [ - { required: true, message: '请输入域名', trigger: 'blur' } + { required: true, message: '请输入接口域名', trigger: 'blur' } + ], + resourcesDomainName: [ + { required: true, message: '请输入资源域名', trigger: 'blur' } ], project: [ { required: true, message: '请选择项目', trigger: 'change' } @@ -63,6 +68,7 @@ export default { this.formModel.id = data.id; this.formModel.domainName = data.domainName; this.formModel.project = data.project; + this.formModel.resourcesDomainName = data.resourcesDomainName; } this.dialogVisible = true; }, @@ -72,7 +78,8 @@ export default { const data = { id: this.formModel.id, domainName: this.formModel.domainName, - project: this.formModel.project.toUpperCase() + project: this.formModel.project.toUpperCase(), + resourcesDomainName: this.formModel.resourcesDomainName }; if (data.id) { updateProjectServer(data.id, data).then(resp => { @@ -99,7 +106,8 @@ export default { this.formModel = { id: '', domainName: '', - project: '' + project: '', + resourcesDomainName: '' }; this.$refs.dataform.resetForm(); this.dialogVisible = false; diff --git a/src/views/system/serverManage/index.vue b/src/views/system/serverManage/index.vue index d94cb2698..a00b5c9a1 100644 --- a/src/views/system/serverManage/index.vue +++ b/src/views/system/serverManage/index.vue @@ -44,9 +44,13 @@ export default { indexShow: true, columns: [ { - title: '域名', + title: '接口域名', prop: 'domainName' }, + { + title: '资源域名', + prop: 'resourcesDomainName' + }, { title: '项目名称', prop: 'projectCode',