[update] 修改bug78111

This commit is contained in:
lideqin
2023-11-02 14:42:07 +08:00
parent 611883d60c
commit 2feaa55a37
4 changed files with 10 additions and 3 deletions
@@ -101,6 +101,10 @@ export default {
if (this.confirmLoading) return
this.form.validateFields((err, values) => {
if (!err) {
if (!values.deptIds && !values.userIds) {
this.$message.warning(this.$t('enterpriseStandardLibrary.standard.pleaseSelectUserOrDepart'))
return
}
this.confirmLoading = true
const param = Object.assign({}, values)
param.standardIds = this.model.standards
@@ -94,7 +94,7 @@
<!--字段长度 key 值必须加解决验证错位的问题-->
<a-col :span="24" v-if="isLength">
<a-form-model-item :label="$t('system.tag.fieldLength')" prop="dbLength" key="dbLength">
<a-input-number v-model="form.dbLength" :min="1" :max="9999"
<a-input-number v-model="form.dbLength" :min="1" :max="form.fieldShowType === FieldType.TEXT_BOX.value ? 50 : 9999"
:placeholder="$t('pleaseEnter') + $t('system.tag.fieldLength')"
style="width: 100%" :formatter="limitNumber" :parser="limitNumber" />
</a-form-model-item>
@@ -213,6 +213,7 @@ export default {
},
data () {
return {
FieldType,
canOpeFlag: process.env.VUE_APP_TAG_FLAG === '0', // 是否存在字段名称,开发环境存在
visible: false,
title: '',