ludc
2024-08-15 b19fab639f82d33776e58b541c17a17be75325e7
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>
@@ -243,6 +243,7 @@
      dialogData: [],
      dialogOption: {
        ...basicOption,
        calcHeight: 50,
        refreshBtn: false,
        selection: false,
        column: [
@@ -376,8 +377,12 @@
        row,
        this.$refs.userCrud,
        this.lastIndex,
        (newIndex) => { this.lastIndex = newIndex; },
        () => { this.selectList = []; }
        (newIndex) => {
          this.lastIndex = newIndex;
        },
        () => {
          this.selectList = [];
        }
      );
    },
@@ -472,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;
@@ -527,6 +534,10 @@
          }
        })
      }
        } else {
          return false;
        }
      });
    },
    // 枚举项新增