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

Conversation

pengkang1991
Copy link
Contributor

image

Copy link

codecov bot commented Nov 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b9d4cca) 76.54% compared to head (b66966e) 76.54%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2426   +/-   ##
=======================================
  Coverage   76.54%   76.54%           
=======================================
  Files         115      115           
  Lines       15874    15874           
=======================================
  Hits        12150    12150           
  Misses       3724     3724           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@LeoQuote LeoQuote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

function validateForm(element) {
var result = true;
element.find('[required]').each(
function () {
var fieldElement = $(this);
//如果为null则设置为''
var value = fieldElement.val() || '';
if (value) {
value = value.trim();
}
if (!value || value === fieldElement.attr('data-placeholder')) {
alert(fieldElement.attr('data-placeholder'));
result = false;
return result;
}
}
);
return result;

在这实现吧

@LeoQuote LeoQuote merged commit fd0c974 into hhyo:master Nov 30, 2023
10 checks passed
finovy pushed a commit to finovy/Archery that referenced this pull request Dec 1, 2023
* 优化:上线单名称/工单名称超过50个字符时增加提示。

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

---------

Co-authored-by: kang.peng <kang.peng@qx.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants