中心调研表提交校验修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
433cfdc123
commit
8f2109b4cd
|
|
@ -413,7 +413,10 @@ export default {
|
||||||
handleSave(isAutoCommit, isCheck = false) {
|
handleSave(isAutoCommit, isCheck = false) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if (this.IsOnlyUploadFile && !isCheck) {
|
if (this.IsOnlyUploadFile && !isCheck) {
|
||||||
if (!this.form.CommonUploadRecordId) return this.$message.warning(this.$t("trials:researchForm:message:notCommonUploadRecordId"))
|
if (!this.form.CommonUploadRecordId) {
|
||||||
|
this.$message.warning(this.$t("trials:researchForm:message:notCommonUploadRecordId"))
|
||||||
|
return resolve(false)
|
||||||
|
}
|
||||||
this.btnLoading = true
|
this.btnLoading = true
|
||||||
const param = {
|
const param = {
|
||||||
id: this.form.Id,
|
id: this.form.Id,
|
||||||
|
|
@ -448,7 +451,7 @@ export default {
|
||||||
this.btnLoading = false
|
this.btnLoading = false
|
||||||
reject(false)
|
reject(false)
|
||||||
})
|
})
|
||||||
return false
|
return resolve(true)
|
||||||
}
|
}
|
||||||
this.$refs['researchBSForm'].validate(valid => {
|
this.$refs['researchBSForm'].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue