[add] 参数模板列表细节
This commit is contained in:
@@ -122,7 +122,9 @@
|
||||
:title="$t('ParameterDescription')">{{$t('ParameterDescription')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="description">
|
||||
<a-input class="box-input"
|
||||
<a-input class="box-input add-input"
|
||||
style='height: 135px'
|
||||
type="textarea"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.description"
|
||||
:placeholder="$t('PleaseEnter')+$t('ParameterDescription')"/>
|
||||
@@ -329,11 +331,12 @@ export default {
|
||||
rules: {
|
||||
nioNumber:[
|
||||
{ required: true, message: this.$t('PleaseEnter')+this.$t('NiONumber'), trigger: 'change' },
|
||||
// {
|
||||
// pattern: /(?!^\d+$)(?!^[a-zA-Z]+$)[0-9a-zA-Z]{1,15}/,
|
||||
// message: this.$t('onlyThree'),
|
||||
// trigger: 'change'
|
||||
// }
|
||||
{ min:1, max: 15, message: this.$t('cantExeed')+'15'+this.$t('characters'), trigger: 'blur' },
|
||||
{
|
||||
pattern: /^[0-9a-zA-Z-]{1,}$/,
|
||||
message: this.$t('onlyThree'),
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
isMust: [
|
||||
{ required: true, message: this.$t('pleaseSelect')+this.$t('Required'), trigger: 'change' },
|
||||
@@ -439,6 +442,7 @@ export default {
|
||||
this.visible = true
|
||||
this.title = '新增'
|
||||
this.formInline = {}
|
||||
this.formInline.isMust = '0'
|
||||
},
|
||||
editModel(value) {
|
||||
this.visible = true
|
||||
@@ -518,7 +522,9 @@ export default {
|
||||
.formAdd .ant-form-item-label {
|
||||
width: 130px;
|
||||
}
|
||||
|
||||
/deep/.add-input{
|
||||
min-height: 135px!important;
|
||||
}
|
||||
.formAdd .ant-form-item-control-wrapper {
|
||||
display: inline-block;
|
||||
width: calc(100% - 130px);
|
||||
|
||||
Reference in New Issue
Block a user