田源
2024-08-15 bc90fb7e0c6c8313e7d5fcf3aba57e3a1f975c93
Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/enumType/index.vue
@@ -84,8 +84,8 @@
          </el-form>
          <span slot="footer" class="dialog-footer">
        <el-button type="primary" @click="rowSaveHandler">确 定</el-button>
        <el-button @click="dialogVisible = false">取 消</el-button>
            <el-button type="primary" @click="rowSaveHandler">确 定</el-button>
      </span>
        </el-dialog>
@@ -377,8 +377,12 @@
        row,
        this.$refs.userCrud,
        this.lastIndex,
        (newIndex) => { this.lastIndex = newIndex; },
        () => { this.selectList = []; }
        (newIndex) => {
          this.lastIndex = newIndex;
        },
        () => {
          this.selectList = [];
        }
      );
    },
@@ -473,7 +477,9 @@
    // 对话框枚举保存
    rowSaveHandler() {
      const lengthStatus = this.dialogData.some(item => item.value.length > this.form.length)
      const lengthStatus = this.dialogData.some(item => item.value.length > this.form.length);
      this.$refs.form.validate((valid) => {
        if (valid) {
      if (lengthStatus) {
        this.$message.error('请检查枚举值是否超过最大长度!')
        return;
@@ -528,6 +534,10 @@
          }
        })
      }
        } else {
          return false;
        }
      });
    },
    // 枚举项新增