diff --git a/io.sc.engine.rule.core/src/main/java/io/sc/engine/rule/core/po/model/ParameterInOptionAddtion.java b/io.sc.engine.rule.core/src/main/java/io/sc/engine/rule/core/po/model/ParameterInOptionAddtion.java index 71a5efc9..fe0440c8 100644 --- a/io.sc.engine.rule.core/src/main/java/io/sc/engine/rule/core/po/model/ParameterInOptionAddtion.java +++ b/io.sc.engine.rule.core/src/main/java/io/sc/engine/rule/core/po/model/ParameterInOptionAddtion.java @@ -10,9 +10,12 @@ public class ParameterInOptionAddtion { protected QualitativeAdditionComponentType componentType; protected String condition; protected Boolean enable =true; + protected Boolean required =true; protected Integer order; - protected Integer rows; + protected Integer textareaHeight; + protected Integer textMinLength; + protected Integer textMaxLength; protected String prompt; protected String attachmentExtendNames; protected Integer attachmentMaxCount; @@ -73,6 +76,14 @@ public class ParameterInOptionAddtion { this.enable = enable; } + public Boolean getRequired() { + return required; + } + + public void setRequired(Boolean required) { + this.required = required; + } + public Integer getOrder() { return order; } @@ -81,12 +92,28 @@ public class ParameterInOptionAddtion { this.order = order; } - public Integer getRows() { - return rows; + public Integer getTextareaHeight() { + return textareaHeight; + } + + public void setTextareaHeight(Integer textareaHeight) { + this.textareaHeight = textareaHeight; + } + + public Integer getTextMinLength() { + return textMinLength; + } + + public void setTextMinLength(Integer textMinLength) { + this.textMinLength = textMinLength; + } + + public Integer getTextMaxLength() { + return textMaxLength; } - public void setRows(Integer rows) { - this.rows = rows; + public void setTextMaxLength(Integer textMaxLength) { + this.textMaxLength = textMaxLength; } public String getPrompt() { diff --git a/io.sc.engine.rule.frontend/src/i18n/messages.json b/io.sc.engine.rule.frontend/src/i18n/messages.json index 5327db72..46c27f79 100644 --- a/io.sc.engine.rule.frontend/src/i18n/messages.json +++ b/io.sc.engine.rule.frontend/src/i18n/messages.json @@ -101,9 +101,11 @@ "re.addition.grid.entity.description": "Description", "re.addition.grid.entity.componentType": "Component Type", "re.addition.grid.entity.condition": "Condition", - "re.addition.grid.entity.rows": "rows for textarea", + "re.addition.grid.entity.textareaHeight": "Height of Textarea(Unit:pixel)", + "re.addition.grid.entity.textMinLength": "Minimal Length of Text", + "re.addition.grid.entity.textMaxLength": "Maximum Length of Text", "re.addition.grid.entity.prompt": "Prompts", - "re.addition.grid.entity.attachmentExtendNames": "Extend Names of Attachment to upload", + "re.addition.grid.entity.attachmentExtendNames": "Extend Names of Attachment to upload(split by comma when multiple)", "re.addition.grid.entity.attachmentMaxCount": "Max Count of Attachment to upload", "re.processor.dialog.decisionTree.title": "Decision Tree Designer", diff --git a/io.sc.engine.rule.frontend/src/i18n/messages_tw_CN.json b/io.sc.engine.rule.frontend/src/i18n/messages_tw_CN.json index c695a444..37c816f1 100644 --- a/io.sc.engine.rule.frontend/src/i18n/messages_tw_CN.json +++ b/io.sc.engine.rule.frontend/src/i18n/messages_tw_CN.json @@ -101,9 +101,11 @@ "re.addition.grid.entity.description": "描述", "re.addition.grid.entity.componentType": "組件類型", "re.addition.grid.entity.condition": "觸發條件", - "re.addition.grid.entity.rows": "文本框行數", + "re.addition.grid.entity.textareaHeight": "文本框高度(單位:像素)", + "re.addition.grid.entity.textMinLength": "文本框允許輸入的字符個數(最小值)", + "re.addition.grid.entity.textMaxLength": "文本框允許輸入的字符個數(最大值)", "re.addition.grid.entity.prompt": "提示詞", - "re.addition.grid.entity.attachmentExtendNames": "允許上傳附件的文件擴展名", + "re.addition.grid.entity.attachmentExtendNames": "允許上傳附件的文件擴展名(多個採用逗號分隔)", "re.addition.grid.entity.attachmentMaxCount": "允許上傳附件的最大個數", "re.processor.dialog.decisionTree.title": "決策樹設計器", diff --git a/io.sc.engine.rule.frontend/src/i18n/messages_zh_CN.json b/io.sc.engine.rule.frontend/src/i18n/messages_zh_CN.json index 5fd817b6..036cfec1 100644 --- a/io.sc.engine.rule.frontend/src/i18n/messages_zh_CN.json +++ b/io.sc.engine.rule.frontend/src/i18n/messages_zh_CN.json @@ -102,9 +102,11 @@ "re.addition.grid.entity.description": "描述", "re.addition.grid.entity.componentType": "组件类型", "re.addition.grid.entity.condition": "触发条件", - "re.addition.grid.entity.rows": "文本框行数", + "re.addition.grid.entity.textareaHeight": "文本框高度(单位:像素)", + "re.addition.grid.entity.textMinLength": "文本框允许输入的字符个数(最小值)", + "re.addition.grid.entity.textMaxLength": "文本框允许输入的字符个数(最大值)", "re.addition.grid.entity.prompt": "提示词", - "re.addition.grid.entity.attachmentExtendNames": "允许上传附件的文件扩展名", + "re.addition.grid.entity.attachmentExtendNames": "允许上传附件的文件扩展名(多个采用逗号分隔)", "re.addition.grid.entity.attachmentMaxCount": "允许上传附件的最大个数", "re.processor.dialog.decisionTree.title": "决策树设计器", diff --git a/io.sc.engine.rule.frontend/src/views/authorization/Authorization.vue b/io.sc.engine.rule.frontend/src/views/authorization/Authorization.vue index 30866e61..d1b52b18 100644 --- a/io.sc.engine.rule.frontend/src/views/authorization/Authorization.vue +++ b/io.sc.engine.rule.frontend/src/views/authorization/Authorization.vue @@ -1,5 +1,5 @@