Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化:上线单名称/工单名称超过50个字符时增加提示。 #2426

Merged
merged 2 commits into from
Nov 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion sql/templates/sqlsubmit.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div class="form-group">
<input id="workflow_name" type="text" autocomplete="off" name="workflow_name"
class="form-control"
data-name="上线单名称" data-placeholder="请输入上线单名称"
data-name="上线单名称" data-placeholder="请输入上线单名称!"
placeholder="请输入上线单名称,如:XX项目会员功能建表"
required>
</div>
Expand Down Expand Up @@ -333,6 +333,7 @@ <h4 class="modal-title text-danger">提交信息确认</h4>
element.find('[required]').each(
function () {
var fieldElement = $(this);
var fieldId = $(this).attr('id');
//如果为null则设置为''
var value = fieldElement.val() || '';
if (value) {
Expand All @@ -343,6 +344,11 @@ <h4 class="modal-title text-danger">提交信息确认</h4>
result = false;
return result;
}
if(fieldId == "workflow_name" && value.length>=50){
alert("上线单名称/工单名称不能超过50个字符!");
result = false;
return result;
}
}
);
return result;
Expand Down
Loading