对接认证目录

This commit is contained in:
qq787203167
2022-05-23 14:44:00 +08:00
parent 912f2dac24
commit ab5b175d2d
3 changed files with 8 additions and 3 deletions
@@ -114,7 +114,7 @@
{ min:1, max: 50, message: this.$t('cantExeed')+'50'+this.$t('characters'), trigger: 'blur' }, { min:1, max: 50, message: this.$t('cantExeed')+'50'+this.$t('characters'), trigger: 'blur' },
], ],
description:[ description:[
{ required: true, message: this.$t('PleaseEnterDescription'), trigger: 'blur' }, // { required: true, message: this.$t('PleaseEnterDescription'), trigger: 'blur' },
{ min:1, max: 200, message: this.$t('cantExeed')+'200'+this.$t('characters'), trigger: 'blur' }, { min:1, max: 200, message: this.$t('cantExeed')+'200'+this.$t('characters'), trigger: 'blur' },
] ]
}, },
@@ -164,6 +164,7 @@
let query = { let query = {
pageNo: this.pageNo, pageNo: this.pageNo,
pageSize: this.pageSize, pageSize: this.pageSize,
projectLibraryId:this.$route.query.id,
...this.queryParam ...this.queryParam
} }
this.loading = true this.loading = true
@@ -166,8 +166,12 @@
url = this.url.add url = this.url.add
Action = postAction Action = postAction
} }
let query = {
projectLibraryId: this.$route.query.id,
...this.formInline
}
this.confirmLoading = true this.confirmLoading = true
Action(url, this.formInline).then((res) => { Action(url, query).then((res) => {
if (res.success) { if (res.success) {
this.$message.success(this.$t('OperationSuccessful')) this.$message.success(this.$t('OperationSuccessful'))
this.visible = false this.visible = false
@@ -175,7 +179,7 @@
this.$emit('certificationDirectoryList') this.$emit('certificationDirectoryList')
} else { } else {
this.confirmLoading = false this.confirmLoading = false
this.$message.success(this.$t('OperationSuccessful')) this.$message.warning(res.message)
} }
}) })
} }