Browse Source

修改相关问题

luyanan 7 years ago
parent
commit
b5aac8276a
4 changed files with 24 additions and 15 deletions
  1. 4 4
      cmp-portal/js/cmp-updateinfo.js
  2. 1 1
      cmp-portal/resourceIssue.html
  3. 18 9
      js/information.js
  4. 1 1
      resourceIssue.html

+ 4 - 4
cmp-portal/js/cmp-updateinfo.js

@ -138,7 +138,7 @@ $(document).ready(function() {
138 138
			return;
139 139
		}
140 140
		if(oBusinessAbbreviation.length > 10) {
141
			$.MsgBox.Alert('提示', '企业简称不超过10个字');
141
			$.MsgBox.Alert('提示', '企业简称不超过10个字');
142 142
			return;
143 143
		}
144 144
		/*
@ -187,7 +187,7 @@ $(document).ready(function() {
187 187
		}
188 188
		if($("#inteAddress").val().trim()) {
189 189
			if($("#inteAddress").val().trim().length > 20) {
190
				$.MsgBox.Alert('提示', '企业官网 20个字之内!');
190
				$.MsgBox.Alert('提示', '企业官网不得超过20个字');
191 191
				return;
192 192
			}
193 193
			$info.orgUrl = $("#inteAddress").val();
@ -203,7 +203,7 @@ $(document).ready(function() {
203 203
		}
204 204
		if($("#cmpAddress").val().trim()) {
205 205
			if($("#cmpAddress").val().trim().length > 50) {
206
				$.MsgBox.Alert('提示', '企业地址 50个字之内!');
206
				$.MsgBox.Alert('提示', '企业地址不得超过50个字');
207 207
				return;
208 208
			} else {
209 209
				$info.addr = $("#cmpAddress").val();
@ -211,7 +211,7 @@ $(document).ready(function() {
211 211
		}
212 212
		if($("#phone").val().trim()) {
213 213
			if($("#phone").val().trim().length > 50) {
214
				$.MsgBox.Alert('提示', '办公电话50个字之内!');
214
				$.MsgBox.Alert('提示', '办公电话不得超过50个字');
215 215
				return;
216 216
			} else {
217 217
				$info.contactNum = $("#phone").val().trim();

+ 1 - 1
cmp-portal/resourceIssue.html

@ -48,7 +48,7 @@
48 48
						<input type="text" class="frmtype frmcontype" id="resourceName" value="" placeholder="请输入资源名称" />
49 49
					</li>
50 50
					<li class="form-item">
51
						<div class="aboutTit">关键词<span class="frmconmsg" id="keywordPrompt" style="display:none;">最多可添加5个关键词、每个关键词最多10个字</span></div>
51
						<div class="aboutTit">关键词<span class="frmconmsg" id="keywordPrompt" style="display:none;">最多可添加5个关键词、每个关键词最多15个字</span></div>
52 52
						<div style="position: relative;" id="keywordHide">
53 53
							<input type="text" class="frmtype frmcontype" id="keywordName" value="" placeholder="请输入关键词" />
54 54
							<!--输入框中键入内容时按钮显示,添加内容出现在结果标签中时按钮隐藏-->

+ 18 - 9
js/information.js

@ -703,7 +703,7 @@ $(function() {
703 703
				$string.find(".mr_btn").val(data[i].degree);
704 704
				yearAdd();
705 705
				month();
706
				//$(".full_year li:first-child").before('<li class="yearli">至今</li>');
706
				$(".full_year li:first-child").before('<li class="yearli">至今</li>');
707 707
			}
708 708
			
709 709
		}
@ -816,7 +816,7 @@ $(function() {
816 816
				var sDate = "",sDateV="";
817 817
				var eDate = "",eDateV="";
818 818
				if(data[i].department) {
819
					var dep = "-" + data[i].department;
819
					var dep = " - " + data[i].department;
820 820
					var depart = data[i].department;
821 821
				} else {
822 822
					var dep = "";
@ -834,7 +834,7 @@ $(function() {
834 834
					}
835 835
				}
836 836
				var string ='<li>'
837
				string += ' <div class="showBx"><div class="h4Font h4tit">' + data[i].company  + dep + '-' + data[i].title + '<small class="h6Font">';
837
				string += ' <div class="showBx"><div class="h4Font h4tit">' + data[i].company  + dep + ' - ' + data[i].title + '<small class="h6Font">';
838 838
					string += sDate;
839 839
					if(eDate) string += (" - " + eDate);
840 840
					string += '</small><em class="btnClick exitlist">编辑</em></div></div>';
@ -1027,7 +1027,9 @@ $(function() {
1027 1027
					stringHtml +='<button type="button" class="frmcontype btnModel saveGo">保存</button>'
1028 1028
					stringHtml +='<button type="button" class="frmcontype btnModel btnCancel cancelList">取消</button>'
1029 1029
					stringHtml +='<button type="button" class="frmcontype btnModel fontLink">删除本条</button></div></li>'
1030
				$("#projectShow").append(stringHtml);
1030
				var $stringHtml=$(stringHtml);
1031
				$("#projectShow").append($stringHtml);
1032
				limitObj($stringHtml.find(".projectDescp"),200)
1031 1033
				yearAdd();
1032 1034
				month();
1033 1035
			}
@ -1051,7 +1053,9 @@ $(function() {
1051 1053
				string +='<button type="button" class="frmcontype btnModel saveGo">保存</button>'
1052 1054
				string +='<button type="button" class="frmcontype btnModel btnCancel cancelO">取消</button></div></li>'
1053 1055
			string +='</ul></div><li>';
1054
		$("" + select + "").prepend(string);
1056
		var $ostr=$(string);
1057
		$("" + select + "").prepend($ostr);
1058
		limitObj($ostr.find(".projectDescp"),200)
1055 1059
	}
1056 1060
	var projectThis=""
1057 1061
	$("#projectShow").on("click", ".fontLink", function() {//编辑各个列表中的删除
@ -1077,7 +1081,7 @@ $(function() {
1077 1081
			}
1078 1082
		});
1079 1083
	}
1080
	limitObj(".projectDescp",200)
1084
	
1081 1085
	//项目经历保存		
1082 1086
	$("#projectShow").on("click", ".saveGo", function() {
1083 1087
		var length = trim($(this).parents(".modifybox").find(".projectName").val());
@ -1165,8 +1169,10 @@ $(function() {
1165 1169
						stringHtml +='<button type="button" class="frmcontype btnModel saveGo">保存</button>'
1166 1170
						stringHtml +='<button type="button" class="frmcontype btnModel btnCancel cancelList">取消</button>'
1167 1171
						stringHtml +='<button type="button" class="frmcontype btnModel fontLink">删除本条</button></div></li>'
1168
				$("#honorShow").append(stringHtml);
1172
				var $stringHtml=$(stringHtml)
1173
				$("#honorShow").append($stringHtml);
1169 1174
				yearAdd();
1175
				limitObj($stringHtml.find(".honorDescp"),200)
1170 1176
			}
1171 1177
		}
1172 1178
	}
@ -1184,7 +1190,10 @@ $(function() {
1184 1190
				string +='<button type="button" class="frmcontype btnModel saveGo">保存</button>'
1185 1191
				string +='<button type="button" class="frmcontype btnModel btnCancel cancelO">取消</button></div></li>'
1186 1192
			string +='</ul></div><li>';
1187
			$("" + select + "").prepend(string);
1193
			var $ostr=$(string);
1194
			$("" + select + "").prepend($ostr);
1195
			limitObj($ostr.find(".honorDescp"),200)
1196
			
1188 1197
	}
1189 1198
	var honorThis=""
1190 1199
	$("#honorShow").on("click", ".fontLink", function() {
@ -1209,7 +1218,7 @@ $(function() {
1209 1218
			}
1210 1219
		});
1211 1220
	}
1212
	limitObj(".honorDescp",200)
1221
	
1213 1222
	//荣誉及奖项保存
1214 1223
	$("#honorShow").on("click", ".saveGo", function() {
1215 1224
		var length = trim($(this).parents(".modifybox").find(".honorName").val());

+ 1 - 1
resourceIssue.html

@ -46,7 +46,7 @@
46 46
						<input type="text" class="frmtype frmcontype" id="resourceName" value="" placeholder="请输入资源名称" />
47 47
					</li>
48 48
					<li class="form-item">
49
						<div class="aboutTit">关键词<span class="frmconmsg" id="keywordPrompt" style="display:none;">最多可添加5个关键词、每个关键词最多10个字</span></div>
49
						<div class="aboutTit">关键词<span class="frmconmsg" id="keywordPrompt" style="display:none;">最多可添加5个关键词、每个关键词最多15个字</span></div>
50 50
						<div style="position: relative;" id="keywordHide">
51 51
							<input type="text" class="frmtype frmcontype" id="keywordName" value="" placeholder="请输入关键词" />
52 52
							<!--输入框中键入内容时按钮显示,添加内容出现在结果标签中时按钮隐藏-->