参数模板
This commit is contained in:
@@ -706,6 +706,7 @@ module.exports = {
|
|||||||
uploadTime: 'Upload time',
|
uploadTime: 'Upload time',
|
||||||
enclosure: 'enclosure',
|
enclosure: 'enclosure',
|
||||||
// 认证
|
// 认证
|
||||||
|
templateName: 'template Name',
|
||||||
pleaseSelectData: 'please Select Data',
|
pleaseSelectData: 'please Select Data',
|
||||||
templateCopy: 'template Copy',
|
templateCopy: 'template Copy',
|
||||||
NiOnumberalreadyexists: 'NiO number already exists, please replace NiO number',
|
NiOnumberalreadyexists: 'NiO number already exists, please replace NiO number',
|
||||||
|
|||||||
@@ -712,6 +712,7 @@ module.exports = {
|
|||||||
uploadTime:'上传时间',
|
uploadTime:'上传时间',
|
||||||
enclosure:'附件',
|
enclosure:'附件',
|
||||||
// 认证
|
// 认证
|
||||||
|
templateName: '模板名称',
|
||||||
pleaseSelectData: '请选择数据',
|
pleaseSelectData: '请选择数据',
|
||||||
templateCopy: '模板复制',
|
templateCopy: '模板复制',
|
||||||
NiOnumberalreadyexists: 'NIO编号已存在,请更换NIO编号',
|
NiOnumberalreadyexists: 'NIO编号已存在,请更换NIO编号',
|
||||||
|
|||||||
@@ -64,7 +64,8 @@
|
|||||||
:title="$t('contentDescription')">{{$t('contentDescription')}}</span>
|
:title="$t('contentDescription')">{{$t('contentDescription')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="description">
|
<a-form-model-item class="itemModel" prop="description">
|
||||||
<a-input class="box-input"
|
<a-input class="box-input add-input"
|
||||||
|
type="textarea"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="formInline.description"
|
v-model="formInline.description"
|
||||||
:placeholder="$t('PleaseEnter')+$t('contentDescription')"/>
|
:placeholder="$t('PleaseEnter')+$t('contentDescription')"/>
|
||||||
@@ -97,23 +98,12 @@ export default {
|
|||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
visible: false,
|
visible: false,
|
||||||
rules: {
|
rules: {
|
||||||
ipdInfo: [
|
paramsTemplateName:[
|
||||||
{
|
{ required: true, message: this.$t('PleaseEnter')+this.$t('parameterTemplate'), trigger: 'change' },
|
||||||
pattern: /(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%$#_]*)?/,
|
{ min:1, max: 50, message: this.$t('cantExeed')+'50'+this.$t('characters'), trigger: 'blur' },
|
||||||
message: this.$t('pleaseEnterTheCorrectWebAddress')
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
vehicleDevelopmentPlan: [
|
description:[
|
||||||
{
|
{ min:1, max: 300, message: this.$t('cantExeed')+'300'+this.$t('characters'), trigger: 'blur' },
|
||||||
pattern: /(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%$#_]*)?/,
|
|
||||||
message: this.$t('pleaseEnterTheCorrectWebAddress')
|
|
||||||
}
|
|
||||||
],
|
|
||||||
attestationPlan: [
|
|
||||||
{
|
|
||||||
pattern: /(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%$#_]*)?/,
|
|
||||||
message: this.$t('pleaseEnterTheCorrectWebAddress')
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
disabled: false,
|
disabled: false,
|
||||||
@@ -138,6 +128,7 @@ export default {
|
|||||||
this.visible = true
|
this.visible = true
|
||||||
this.title = '新增'
|
this.title = '新增'
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
|
this.formInline.state = '1'
|
||||||
},
|
},
|
||||||
editModel(value) {
|
editModel(value) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
@@ -306,6 +297,9 @@ export default {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 0 0 2px 2px;
|
border-radius: 0 0 2px 2px;
|
||||||
}
|
}
|
||||||
|
/deep/.add-input{
|
||||||
|
min-height: 135px!important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
.ant-input-disabled {
|
.ant-input-disabled {
|
||||||
|
|||||||
@@ -93,11 +93,12 @@
|
|||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-model-item class="itemModel" prop="paramsTemplateName">
|
<a-form-model-item class="itemModel" prop="paramsTemplateName">
|
||||||
<span class="title-text-text"
|
<span class="title-text-text"
|
||||||
:title="$t('parameterTemplate')">{{$t('parameterTemplate')}}</span>
|
:title="$t('templateName')">{{$t('templateName')}}
|
||||||
<a-input class="box-input"
|
</span>
|
||||||
|
<a-input class="box-input add-input"
|
||||||
v-model="paramsTemplateName"
|
v-model="paramsTemplateName"
|
||||||
:placeholder="$t('PleaseEnter')+$t('parameterTemplate')"/>
|
:placeholder="$t('PleaseEnter')+$t('templateName')"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@@ -202,15 +203,20 @@ export default {
|
|||||||
this.areaVisible=false
|
this.areaVisible=false
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
getAction(this.url.copy + `?id=${this.selectedRowKeys[0]}¶msTemplateName=${this.paramsTemplateName}`, {}).then((res) => {
|
if(this.paramsTemplateName.trim() === '') {
|
||||||
if (res.success) {
|
this.$message.warning(this.$t('templateName') + this.$t('cannotEmpty'))
|
||||||
this.areaVisible=false
|
} else {
|
||||||
this.$message.success(res.message)
|
getAction(this.url.copy + `?id=${this.selectedRowKeys[0]}¶msTemplateName=${this.paramsTemplateName}`, {}).then((res) => {
|
||||||
this.getList()
|
if (res.success) {
|
||||||
} else {
|
this.areaVisible=false
|
||||||
this.$message.warning(res.message)
|
this.$message.success(res.message)
|
||||||
}
|
this.getList()
|
||||||
})
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
console.log(this.paramsTemplateName,'this.paramsTemplateName')
|
||||||
},
|
},
|
||||||
handleToggleSearch() {
|
handleToggleSearch() {
|
||||||
this.toggleSearchStatus = !this.toggleSearchStatus
|
this.toggleSearchStatus = !this.toggleSearchStatus
|
||||||
@@ -392,7 +398,9 @@ export default {
|
|||||||
height: 38px;
|
height: 38px;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
.add-input{
|
||||||
|
width: 82%;
|
||||||
|
}
|
||||||
.box-button {
|
.box-button {
|
||||||
height: 38px;
|
height: 38px;
|
||||||
/*margin-top: 2px;*/
|
/*margin-top: 2px;*/
|
||||||
|
|||||||
Reference in New Issue
Block a user