修改认证
This commit is contained in:
@@ -603,6 +603,18 @@
|
|||||||
text: this.$t('parameterBatch'),
|
text: this.$t('parameterBatch'),
|
||||||
dictCode: 'params_batch'
|
dictCode: 'params_batch'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: '',
|
||||||
|
value: 'sdt',
|
||||||
|
text: this.$t('sdt'),
|
||||||
|
dictCode: 'sdt'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: '',
|
||||||
|
value: 'dre',
|
||||||
|
text: this.$t('dre'),
|
||||||
|
dictCode: 'dre'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||||
|
},
|
||||||
],
|
],
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
textLoading: false,
|
textLoading: false,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<span class="Required">*</span>
|
<span class="Required">*</span>
|
||||||
<span class="title-text-text" :title="$t('title')">{{$t('title')}}</span>
|
<span class="title-text-text" :title="$t('title')">{{$t('title')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" :prop='title'>
|
<a-form-model-item class="itemModel" prop='title'>
|
||||||
<!-- <a-input class="box-input"-->
|
<!-- <a-input class="box-input"-->
|
||||||
<!-- :disabled="disabled"-->
|
<!-- :disabled="disabled"-->
|
||||||
<!-- v-model="formInline[item.db_field_name]"-->
|
<!-- v-model="formInline[item.db_field_name]"-->
|
||||||
@@ -38,12 +38,13 @@
|
|||||||
<a-col :span='11'>
|
<a-col :span='11'>
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
|
<span class="Required">*</span>
|
||||||
<span class="title-text-text"
|
<span class="title-text-text"
|
||||||
:title="$t('relatedProjectVersion')">{{$t('relatedProjectVersion')}}</span>
|
:title="$t('relatedProjectVersion')">{{$t('relatedProjectVersion')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" style="height: 40px">
|
<a-form-model-item class="itemModel" prop='projectVersion'>
|
||||||
<a-select mode="multiple"
|
<a-select
|
||||||
class="box-input"
|
class="box-input propbox"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
v-model='formData.projectVersion'
|
v-model='formData.projectVersion'
|
||||||
:placeholder="$t('PleaseSelect')+$t('relatedProjectVersion')">
|
:placeholder="$t('PleaseSelect')+$t('relatedProjectVersion')">
|
||||||
@@ -224,19 +225,23 @@
|
|||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
explanation: [
|
projectVersion: [
|
||||||
{
|
{ required: true, message: this.$t('PleaseSelect')+this.$t('relatedProjectVersion'), trigger: 'change' },
|
||||||
max: 500,
|
],
|
||||||
message: this.$t('explain') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
// explanation: [
|
||||||
trigger: 'blur'
|
// {
|
||||||
}
|
// max: 500,
|
||||||
]
|
// message: this.$t('explain') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||||
|
// trigger: 'blur'
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
},
|
},
|
||||||
areaTable: [],
|
areaTable: [],
|
||||||
flag: false, //表单提交标识
|
flag: false, //表单提交标识
|
||||||
spinLoading: false,
|
spinLoading: false,
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
|
projectName:'',
|
||||||
num:'',
|
num:'',
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
@@ -261,6 +266,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
let str =this.$route.query.projectName
|
||||||
|
let index = str.lastIndexOf("-");
|
||||||
|
this.projectName = str.substr(index+1,str.length);
|
||||||
|
this.formData.projectVersion = this.projectName
|
||||||
this.loadData()
|
this.loadData()
|
||||||
this.getProjectVersion()
|
this.getProjectVersion()
|
||||||
},
|
},
|
||||||
@@ -328,11 +337,11 @@
|
|||||||
// 编辑一行的数据
|
// 编辑一行的数据
|
||||||
this.num = num
|
this.num = num
|
||||||
let query = JSON.parse(JSON.stringify(edit))
|
let query = JSON.parse(JSON.stringify(edit))
|
||||||
if (query.projectVersion) {
|
// if (query.projectVersion) {
|
||||||
query.projectVersion = query.projectVersion.split(',')
|
// query.projectVersion = query.projectVersion.split(',')
|
||||||
}else{
|
// }else{
|
||||||
query.projectVersion = []
|
// query.projectVersion = []
|
||||||
}
|
// }
|
||||||
this.row = query
|
this.row = query
|
||||||
this.formData = { ...query }
|
this.formData = { ...query }
|
||||||
this.selectedRowKeys = query.paramsTemplateId.split(',')
|
this.selectedRowKeys = query.paramsTemplateId.split(',')
|
||||||
@@ -344,9 +353,9 @@
|
|||||||
} else if (this.selectedRowKeys.length > 1) {
|
} else if (this.selectedRowKeys.length > 1) {
|
||||||
this.$message.warning(this.$t('OnlyOneSelected'))
|
this.$message.warning(this.$t('OnlyOneSelected'))
|
||||||
} else {
|
} else {
|
||||||
if (this.formData.title !== undefined) {
|
// if (this.formData.title !== undefined) {
|
||||||
this.formData.title = this.formData.title.trim()
|
// this.formData.title = this.formData.title.trim()
|
||||||
}
|
// }
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.flag = true
|
this.flag = true
|
||||||
@@ -469,7 +478,9 @@
|
|||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/deep/.propbox .ant-form-explain{
|
||||||
|
margin-top: -17px !important;
|
||||||
|
}
|
||||||
.drawer-bootom-button {
|
.drawer-bootom-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user