提交 d5bb11f0 authored 作者: 钟是志's avatar 钟是志

23771 签约申请/另行签约申请---根据不同就业方向限制图片规格和提示语

上级 3f57d382
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/webPublic.iml" filepath="$PROJECT_DIR$/.idea/webPublic.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
...@@ -181,7 +181,7 @@ export default class userButton extends Component { ...@@ -181,7 +181,7 @@ export default class userButton extends Component {
<TextArea <TextArea
value={value} value={value}
onChange={this.onChange} onChange={this.onChange}
placeholder="请输入审批理由" placeholder={isSecond ? '请输入发起说明' : '请输入审批理由'}
style={{ width: 380, height: 120, color: '#7F8B95' }} style={{ width: 380, height: 120, color: '#7F8B95' }}
/> />
</span> </span>
......
...@@ -84,10 +84,20 @@ class UploadCom extends React.Component { ...@@ -84,10 +84,20 @@ class UploadCom extends React.Component {
img.onload = function () { img.onload = function () {
let valid = img.width >= width && img.height >= height; let valid = img.width >= width && img.height >= height;
if(!!widthMinusHeight && valid){ if(!!widthMinusHeight && valid){
if((img.width - img.height) < widthMinusHeight){
// widthMinusHeight: number// 限制必须宽度大于高度 且 宽度 - 高度 >= widthMinusHeight if(widthMinusHeight > 0){
valid = false; if((img.width - img.height) < widthMinusHeight){
// widthMinusHeight: number// 限制必须宽度大于高度 且 宽度 - 高度 >= widthMinusHeight
valid = false;
}
} }
if(widthMinusHeight < 0){
if((img.height - img.width) < Math.abs(widthMinusHeight)){
// widthMinusHeight: number// 限制必须高度大于宽度
valid = false;
}
}
} }
valid ? resolve() : reject(); valid ? resolve() : reject();
}; };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论