排序字段需设置必填
Showing
1 changed file
with
9 additions
and
0 deletions
| ... | @@ -404,6 +404,15 @@ function confirm () { | ... | @@ -404,6 +404,15 @@ function confirm () { |
| 404 | delete body.fieldRSVOS | 404 | delete body.fieldRSVOS |
| 405 | // return | 405 | // return |
| 406 | const request = props.type === 'add' ? saveMetaStandard : updateMetaStandard | 406 | const request = props.type === 'add' ? saveMetaStandard : updateMetaStandard |
| 407 | if (!fieldsDisabled.value) { | ||
| 408 | if (body.orderField) { | ||
| 409 | if (body.fieldRQVOS?.some(f => f.fileNameCode == body.orderField && f.isNotnull != 'Y')) { | ||
| 410 | ElMessage.error('排序字段需设置必填') | ||
| 411 | return; | ||
| 412 | } | ||
| 413 | } | ||
| 414 | } | ||
| 415 | debugger | ||
| 407 | confirmLoading.value = true | 416 | confirmLoading.value = true |
| 408 | request(body).then((res:any) => { | 417 | request(body).then((res:any) => { |
| 409 | if (res.code === proxy.$passCode) { | 418 | if (res.code === proxy.$passCode) { | ... | ... |
-
Please register or sign in to post a comment