域名管理调整
This commit is contained in:
parent
b3fb8bff0a
commit
ba80caeb82
@ -24,7 +24,8 @@ export default {
|
|||||||
formModel: {
|
formModel: {
|
||||||
id: '',
|
id: '',
|
||||||
domainName: '',
|
domainName: '',
|
||||||
project: ''
|
project: '',
|
||||||
|
resourcesDomainName: ''
|
||||||
},
|
},
|
||||||
loading: false
|
loading: false
|
||||||
};
|
};
|
||||||
@ -34,7 +35,8 @@ export default {
|
|||||||
const form = {
|
const form = {
|
||||||
labelWidth: '120px',
|
labelWidth: '120px',
|
||||||
items: [
|
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: '请选择项目' }
|
{ prop: 'project', label: '项目', type: 'select', required: true, options: this.projectList, placeholder: '请选择项目' }
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@ -43,7 +45,10 @@ export default {
|
|||||||
rules() {
|
rules() {
|
||||||
const crules = {
|
const crules = {
|
||||||
domainName: [
|
domainName: [
|
||||||
{ required: true, message: '请输入域名', trigger: 'blur' }
|
{ required: true, message: '请输入接口域名', trigger: 'blur' }
|
||||||
|
],
|
||||||
|
resourcesDomainName: [
|
||||||
|
{ required: true, message: '请输入资源域名', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
project: [
|
project: [
|
||||||
{ required: true, message: '请选择项目', trigger: 'change' }
|
{ required: true, message: '请选择项目', trigger: 'change' }
|
||||||
@ -63,6 +68,7 @@ export default {
|
|||||||
this.formModel.id = data.id;
|
this.formModel.id = data.id;
|
||||||
this.formModel.domainName = data.domainName;
|
this.formModel.domainName = data.domainName;
|
||||||
this.formModel.project = data.project;
|
this.formModel.project = data.project;
|
||||||
|
this.formModel.resourcesDomainName = data.resourcesDomainName;
|
||||||
}
|
}
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
},
|
},
|
||||||
@ -72,7 +78,8 @@ export default {
|
|||||||
const data = {
|
const data = {
|
||||||
id: this.formModel.id,
|
id: this.formModel.id,
|
||||||
domainName: this.formModel.domainName,
|
domainName: this.formModel.domainName,
|
||||||
project: this.formModel.project.toUpperCase()
|
project: this.formModel.project.toUpperCase(),
|
||||||
|
resourcesDomainName: this.formModel.resourcesDomainName
|
||||||
};
|
};
|
||||||
if (data.id) {
|
if (data.id) {
|
||||||
updateProjectServer(data.id, data).then(resp => {
|
updateProjectServer(data.id, data).then(resp => {
|
||||||
@ -99,7 +106,8 @@ export default {
|
|||||||
this.formModel = {
|
this.formModel = {
|
||||||
id: '',
|
id: '',
|
||||||
domainName: '',
|
domainName: '',
|
||||||
project: ''
|
project: '',
|
||||||
|
resourcesDomainName: ''
|
||||||
};
|
};
|
||||||
this.$refs.dataform.resetForm();
|
this.$refs.dataform.resetForm();
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false;
|
||||||
|
@ -44,9 +44,13 @@ export default {
|
|||||||
indexShow: true,
|
indexShow: true,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: '域名',
|
title: '接口域名',
|
||||||
prop: 'domainName'
|
prop: 'domainName'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '资源域名',
|
||||||
|
prop: 'resourcesDomainName'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '项目名称',
|
title: '项目名称',
|
||||||
prop: 'projectCode',
|
prop: 'projectCode',
|
||||||
|
Loading…
Reference in New Issue
Block a user