+ *
{{$t('relatedProjectVersion')}}
-
-
+
@@ -224,19 +225,23 @@
trigger: 'blur'
}
],
- explanation: [
- {
- max: 500,
- message: this.$t('explain') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
- trigger: 'blur'
- }
- ]
+ projectVersion: [
+ { required: true, message: this.$t('PleaseSelect')+this.$t('relatedProjectVersion'), trigger: 'change' },
+ ],
+ // explanation: [
+ // {
+ // max: 500,
+ // message: this.$t('explain') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
+ // trigger: 'blur'
+ // }
+ // ]
},
areaTable: [],
flag: false, //表单提交标识
spinLoading: false,
confirmLoading: false,
selectedRowKeys: [],
+ projectName:'',
num:'',
pageNo: 1,
pageSize: 10,
@@ -261,6 +266,10 @@
}
},
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.getProjectVersion()
},
@@ -328,11 +337,11 @@
// 编辑一行的数据
this.num = num
let query = JSON.parse(JSON.stringify(edit))
- if (query.projectVersion) {
- query.projectVersion = query.projectVersion.split(',')
- }else{
- query.projectVersion = []
- }
+ // if (query.projectVersion) {
+ // query.projectVersion = query.projectVersion.split(',')
+ // }else{
+ // query.projectVersion = []
+ // }
this.row = query
this.formData = { ...query }
this.selectedRowKeys = query.paramsTemplateId.split(',')
@@ -344,9 +353,9 @@
} else if (this.selectedRowKeys.length > 1) {
this.$message.warning(this.$t('OnlyOneSelected'))
} else {
- if (this.formData.title !== undefined) {
- this.formData.title = this.formData.title.trim()
- }
+ // if (this.formData.title !== undefined) {
+ // this.formData.title = this.formData.title.trim()
+ // }
this.$refs.ruleForm.validate(valid => {
if (valid) {
this.flag = true
@@ -469,7 +478,9 @@
color: red;
}
}
-
+ /deep/.propbox .ant-form-explain{
+ margin-top: -17px !important;
+ }
.drawer-bootom-button {
position: absolute;
bottom: 0;