|
@ -1,9 +1,9 @@
|
1
|
1
|
$(document).ready(function() {
|
2
|
2
|
$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
|
3
|
3
|
var id = $.cookie('orgId');
|
4
|
|
if(id == "" || id == null || id == "null"){
|
5
|
|
location.href = "cmp-settled-log.html";
|
6
|
|
}
|
|
4
|
if(id == "" || id == null || id == "null") {
|
|
5
|
location.href = "cmp-settled-log.html";
|
|
6
|
}
|
7
|
7
|
var fileId = null;
|
8
|
8
|
var cacheImageKey = null;
|
9
|
9
|
/*企业信息*/
|
|
@ -64,17 +64,32 @@ $(document).ready(function() {
|
64
|
64
|
indu($data.subject, '#subjectList')
|
65
|
65
|
}
|
66
|
66
|
if($data.qualification) {
|
67
|
|
indu($data.qualification, '.editUlistC ')
|
|
67
|
indu($data.qualification, '.editUlistC')
|
|
68
|
}
|
|
69
|
if($data.fieldOfSupplier) {
|
|
70
|
indu($data.fieldOfSupplier, '#subjectListOut')
|
|
71
|
}
|
|
72
|
if($data.fieldOfCustomer) {
|
|
73
|
indu($data.fieldOfCustomer, '#subjectListIn')
|
|
74
|
}
|
|
75
|
if($data.addr) {
|
|
76
|
$("#cmpAddress").val($data.addr);
|
|
77
|
}
|
|
78
|
if($data.contactNum) {
|
|
79
|
$("#phone").val($data.contactNum);
|
|
80
|
}
|
|
81
|
if($data.email) {
|
|
82
|
$("#mail").val($data.email);
|
68
|
83
|
}
|
69
|
84
|
//省份城市颜色
|
70
|
|
if($("#oprovince").text()=="请选择企业总部所在省或直辖市"){
|
|
85
|
if($("#oprovince").text() == "请选择企业总部所在省或直辖市") {
|
71
|
86
|
$("#oprovince").removeClass("mr_select");
|
72
|
|
}else{
|
|
87
|
} else {
|
73
|
88
|
$("#oprovince").addClass("mr_select");
|
74
|
89
|
}
|
75
|
|
if($("#ocity").text()=="请选择企业总部所在城市"){
|
|
90
|
if($("#ocity").text() == "请选择企业总部所在城市") {
|
76
|
91
|
$("#ocity").removeClass("mr_select");
|
77
|
|
}else{
|
|
92
|
} else {
|
78
|
93
|
$("#ocity").addClass("mr_select");
|
79
|
94
|
}
|
80
|
95
|
}
|
|
@ -85,7 +100,7 @@ $(document).ready(function() {
|
85
|
100
|
})
|
86
|
101
|
}
|
87
|
102
|
companyInformation()
|
88
|
|
/*时间格式*/
|
|
103
|
/*时间格式*/
|
89
|
104
|
function timeGeshi(otm) {
|
90
|
105
|
var otme = otm.substring(0, 4) + "-" + otm.substring(4, 6) + "-" + otm.substring(6, 8);
|
91
|
106
|
return otme;
|
|
@ -119,7 +134,7 @@ $(document).ready(function() {
|
119
|
134
|
},
|
120
|
135
|
keyup: function(e) {
|
121
|
136
|
if($("textarea").val().length > 500) {
|
122
|
|
$("textarea").val($("textarea").val().substring(0,500));
|
|
137
|
$("textarea").val($("textarea").val().substring(0, 500));
|
123
|
138
|
e.preventDefault();
|
124
|
139
|
}
|
125
|
140
|
setTimeout(function() {
|
|
@ -127,6 +142,113 @@ $(document).ready(function() {
|
127
|
142
|
}, 1);
|
128
|
143
|
}
|
129
|
144
|
});
|
|
145
|
|
|
146
|
$(".oinput").bind({
|
|
147
|
paste: function(e) {
|
|
148
|
var pastedText;
|
|
149
|
if (window.clipboardData && window.clipboardData.getData) { // IE
|
|
150
|
|
|
151
|
pastedText = $(this).val() + window.clipboardData.getData('Text');
|
|
152
|
}
|
|
153
|
else {
|
|
154
|
pastedText = $(this).val() + e.originalEvent.clipboardData.getData('Text'); //e.clipboardData.getData('text/plain');
|
|
155
|
|
|
156
|
}
|
|
157
|
$(this).val(pastedText.substring(0, 10));
|
|
158
|
|
|
159
|
var $this = $(this);
|
|
160
|
setTimeout(function() {
|
|
161
|
if($this.val().trim()) {
|
|
162
|
$this.siblings("button").show();
|
|
163
|
} else {
|
|
164
|
$this.siblings("button").hide();
|
|
165
|
}
|
|
166
|
}, 1);
|
|
167
|
e.preventDefault();
|
|
168
|
},
|
|
169
|
cut: function(e) {
|
|
170
|
var $this = $(this);
|
|
171
|
setTimeout(function() {
|
|
172
|
if($this.val().trim()) {
|
|
173
|
$this.siblings("button").show();
|
|
174
|
} else {
|
|
175
|
$this.siblings("button").hide();
|
|
176
|
}
|
|
177
|
}, 1);
|
|
178
|
},
|
|
179
|
blur:function(){
|
|
180
|
var $this=$(this);
|
|
181
|
setTimeout(function(){
|
|
182
|
$this.siblings(".keydrop").hide();
|
|
183
|
},500)
|
|
184
|
},
|
|
185
|
focus:function(){
|
|
186
|
$(this).siblings(".keydrop").show();
|
|
187
|
},
|
|
188
|
keyup: function(e) {
|
|
189
|
if($(this).val().trim()) {
|
|
190
|
$(this).siblings("button").show();
|
|
191
|
var lNum = $.trim($(this).val()).length;
|
|
192
|
if(lNum > 10) {
|
|
193
|
$(this).val($(this).val().substr(0, 10));
|
|
194
|
} else if(0 < lNum && lNum < 10) {
|
|
195
|
var $this = $(this)
|
|
196
|
$("#addKeyword").show();
|
|
197
|
$.ajax({
|
|
198
|
"url": "/ajax/dataDict/qaHotKey",
|
|
199
|
"type": "GET",
|
|
200
|
"success": function(data) {
|
|
201
|
console.log(data);
|
|
202
|
if(data.success) {
|
|
203
|
if(data.data.length == 0) {
|
|
204
|
$this.siblings(".keydrop").addClass("displayNone");
|
|
205
|
$this.siblings(".keydrop").find("ul").html("");
|
|
206
|
} else {
|
|
207
|
$this.siblings(".keydrop").removeClass("displayNone");
|
|
208
|
var oSr = "";
|
|
209
|
for(var i = 0; i < data.data.length; i++) {
|
|
210
|
oSr += '<li>' + data.data[i].caption + '<div class="closeThis"></div></li>';
|
|
211
|
}
|
|
212
|
$this.siblings(".keydrop").find("ul").html(oSr);
|
|
213
|
}
|
|
214
|
} else {
|
|
215
|
$this.siblings(".keydrop").addClass("displayNone");
|
|
216
|
$this.siblings(".keydrop").find("ul").html("");
|
|
217
|
}
|
|
218
|
},
|
|
219
|
"data": {
|
|
220
|
"key": $(this).val()
|
|
221
|
},
|
|
222
|
dataType: "json",
|
|
223
|
'error': function() {
|
|
224
|
$.MsgBox.Alert('提示', '服务器连接超时!');
|
|
225
|
}
|
|
226
|
});
|
|
227
|
}
|
|
228
|
} else {
|
|
229
|
$(this).siblings("button").hide();
|
|
230
|
$(this).siblings(".keydrop").addClass("displayNone");
|
|
231
|
$(this).siblings(".keydrop").find("ul").html("");
|
|
232
|
}
|
|
233
|
}
|
|
234
|
})
|
|
235
|
$(".keydrop").on("click","li",function(){
|
|
236
|
var oValue = $(this).text();
|
|
237
|
var oJudge = $(this).parents(".col-w-12").siblings().find("ul.ulspace li");
|
|
238
|
for(var i = 0; i < oJudge.length; i++) {
|
|
239
|
if(oValue == oJudge[i].innerText) {
|
|
240
|
$.MsgBox.Alert('提示', '添加内容不能重复');
|
|
241
|
return;
|
|
242
|
}
|
|
243
|
}
|
|
244
|
$(this).parents(".col-w-12").siblings().find("ul.ulspace").append('<li>' + oValue + '<div class="closeThis"></div></li>');
|
|
245
|
$(this).parents(".keydrop").siblings("input").val("");
|
|
246
|
if(oJudge.length == 4) {
|
|
247
|
$(this).parents(".keydrop").siblings("input").val("");
|
|
248
|
$(this).parents(".col-w-12").hide();
|
|
249
|
}
|
|
250
|
$(this).parent("ul").html("")
|
|
251
|
})
|
130
|
252
|
/*应用行业及领域及企业资质*/
|
131
|
253
|
function indu(oString, oSelector) {
|
132
|
254
|
var arr = oString.split(",");
|
|
@ -139,150 +261,160 @@ $(document).ready(function() {
|
139
|
261
|
}
|
140
|
262
|
/*删除*/
|
141
|
263
|
$("body").on("click", ".closeThis", function() {
|
142
|
|
$(this).parent().remove();
|
143
|
|
})
|
|
264
|
if($(this).parent().length < 5) {
|
|
265
|
$(this).parents(".keyResult").siblings("div").show();
|
|
266
|
}
|
|
267
|
$(this).parent().remove();
|
|
268
|
|
|
269
|
})
|
144
|
270
|
/*添加*/
|
145
|
271
|
$("button:contains('添加')").click(function() {
|
146
|
|
var oValue = $(this).siblings("input").val().trim();
|
147
|
|
var oJudge = $(this).parent().siblings().find("ul.ulspace li");
|
148
|
|
if(!oValue) {
|
149
|
|
$.MsgBox.Alert('提示', '请先填写内容');
|
150
|
|
return;
|
151
|
|
}
|
152
|
|
if(oValue.length > 10) {
|
153
|
|
$.MsgBox.Alert('提示', '添加内容不能超过10个字');
|
|
272
|
var oValue = $(this).siblings("input").val().trim();
|
|
273
|
var oJudge = $(this).parent().siblings().find("ul.ulspace li");
|
|
274
|
if(!oValue) {
|
|
275
|
$.MsgBox.Alert('提示', '请先填写内容');
|
|
276
|
return;
|
|
277
|
}
|
|
278
|
if(oValue.length > 10) {
|
|
279
|
$.MsgBox.Alert('提示', '添加内容不能超过10个字');
|
|
280
|
return;
|
|
281
|
}
|
|
282
|
for(var i = 0; i < oJudge.length; i++) {
|
|
283
|
if(oValue == oJudge[i].innerText) {
|
|
284
|
$.MsgBox.Alert('提示', '添加内容不能重复');
|
154
|
285
|
return;
|
155
|
286
|
}
|
156
|
|
for(var i = 0; i < oJudge.length; i++) {
|
157
|
|
if(oValue == oJudge[i].innerText) {
|
158
|
|
$.MsgBox.Alert('提示', '添加内容不能重复');
|
159
|
|
return;
|
160
|
|
}
|
161
|
|
}
|
162
|
|
$(this).parent().siblings().find("ul.ulspace").append('<li>' + oValue + '<div class="closeThis"></div></li>');
|
163
|
|
$(this).siblings("input").val("");
|
164
|
|
})
|
|
287
|
}
|
|
288
|
$(this).parent().siblings().find("ul.ulspace").append('<li>' + oValue + '<div class="closeThis"></div></li>');
|
|
289
|
$(this).siblings("input").val("");
|
|
290
|
if(oJudge.length == 4) {
|
|
291
|
$(this).val("").parents(".col-w-12").hide();
|
|
292
|
}
|
|
293
|
$(this).siblings(".keydrop").find("ul").html("");
|
|
294
|
})
|
165
|
295
|
|
166
|
296
|
/*保存*/
|
167
|
297
|
$("button:contains('保存')").click(function() {
|
168
|
298
|
var oBusinessAbbreviation = $("#businessAbbreviation").val().trim();
|
169
|
299
|
if(!oBusinessAbbreviation) {
|
170
|
|
$.MsgBox.Alert('提示', '企业简称不能为空');
|
171
|
|
return;
|
172
|
|
}
|
173
|
|
if(oBusinessAbbreviation.length > 10) {
|
174
|
|
$.MsgBox.Alert('提示', '企业简称不能超过10个字');
|
175
|
|
return;
|
176
|
|
}
|
177
|
|
/*
|
178
|
|
var oTextArea = $("textarea").val().trim();
|
179
|
|
var oBusinessType = $("#orgType").find("option").length;
|
180
|
|
var oBusinessDimensions = $("#qualificationList").find("li.cmpBg.listactive").length;
|
181
|
|
var oIndustryNumber = $("#industryList").find("li").length;
|
182
|
|
var oSubjectNumber = $("#subjectList").find("li").length;
|
183
|
|
var oEditUlistCNumber = $(".editUlistC ").find("li").length;
|
|
300
|
$.MsgBox.Alert('提示', '企业简称不能为空');
|
|
301
|
return;
|
|
302
|
}
|
|
303
|
if(oBusinessAbbreviation.length > 10) {
|
|
304
|
$.MsgBox.Alert('提示', '企业简称不能超过10个字');
|
|
305
|
return;
|
|
306
|
}
|
|
307
|
/*
|
|
308
|
var oTextArea = $("textarea").val().trim();
|
|
309
|
var oBusinessType = $("#orgType").find("option").length;
|
|
310
|
var oBusinessDimensions = $("#qualificationList").find("li.cmpBg.listactive").length;
|
|
311
|
var oIndustryNumber = $("#industryList").find("li").length;
|
|
312
|
var oSubjectNumber = $("#subjectList").find("li").length;
|
|
313
|
var oEditUlistCNumber = $(".editUlistC ").find("li").length;
|
184
|
314
|
|
185
|
|
if(!oTextArea) {
|
186
|
|
$.MsgBox.Alert('提示', '企业简介不能为空');
|
187
|
|
return;
|
188
|
|
}
|
189
|
|
if(oBusinessType == 0) {
|
190
|
|
$.MsgBox.Alert('提示', '请选择企业类型');
|
191
|
|
return;
|
192
|
|
}
|
193
|
|
if(oIndustryNumber == 0) {
|
194
|
|
$.MsgBox.Alert('提示', '企业所属行业必填一项');
|
|
315
|
if(!oTextArea) {
|
|
316
|
$.MsgBox.Alert('提示', '企业简介不能为空');
|
|
317
|
return;
|
|
318
|
}
|
|
319
|
if(oBusinessType == 0) {
|
|
320
|
$.MsgBox.Alert('提示', '请选择企业类型');
|
|
321
|
return;
|
|
322
|
}
|
|
323
|
if(oIndustryNumber == 0) {
|
|
324
|
$.MsgBox.Alert('提示', '企业所属行业必填一项');
|
|
325
|
return;
|
|
326
|
}
|
|
327
|
if(oSubjectNumber == 0) {
|
|
328
|
$.MsgBox.Alert('提示', '企业所属领域必填一项');
|
|
329
|
return;
|
|
330
|
}
|
|
331
|
if(oBusinessDimensions == 0) {
|
|
332
|
$.MsgBox.Alert('提示', '请选择企业规模');
|
|
333
|
return;
|
|
334
|
}
|
|
335
|
if(oEditUlistCNumber == 0) {
|
|
336
|
$.MsgBox.Alert('提示', '企业资质必填一项');
|
|
337
|
return;
|
|
338
|
}*/
|
|
339
|
var $info = {};
|
|
340
|
$info.id = id;
|
|
341
|
if(cacheImageKey != null) {
|
|
342
|
$info.fn = cacheImageKey;
|
|
343
|
}
|
|
344
|
$info.forShort = $("#businessAbbreviation").val();
|
|
345
|
if($("#orgType").find("option:selected").text() != "请选择最符合的一项") {
|
|
346
|
$info.orgType = $("#orgType").find("option:selected").text()
|
|
347
|
}
|
|
348
|
if($("#qualificationList").find("option:selected").text() != "请选择员工数量范围") {
|
|
349
|
$info.orgSize = $("#qualificationList").find("option:selected").text();
|
|
350
|
}
|
|
351
|
if($("#inteAddress").val().trim()) {
|
|
352
|
if($("#inteAddress").val().trim().length > 20) {
|
|
353
|
$.MsgBox.Alert('提示', '企业官网 20个字之内!');
|
195
|
354
|
return;
|
196
|
355
|
}
|
197
|
|
if(oSubjectNumber == 0) {
|
198
|
|
$.MsgBox.Alert('提示', '企业所属领域必填一项');
|
|
356
|
$info.orgUrl = $("#inteAddress").val();
|
|
357
|
}
|
|
358
|
if($("#oprovince").text() != "请选择企业总部所在省或直辖市") {
|
|
359
|
$info.province = $("#oprovince").text();
|
|
360
|
}
|
|
361
|
if($("#ocity").text() != "请选择企业总部所在城市") {
|
|
362
|
$info.city = $("#ocity").text();
|
|
363
|
}
|
|
364
|
if($("#createTime").val()) {
|
|
365
|
$info.foundTime = st6($("#createTime").val());
|
|
366
|
}
|
|
367
|
if($("#cmpAddress").val().trim()) {
|
|
368
|
if($("#cmpAddress").val().trim().length > 20) {
|
|
369
|
$.MsgBox.Alert('提示', '企业地址 20个字之内!');
|
199
|
370
|
return;
|
|
371
|
} else {
|
|
372
|
$info.addr = $("#cmpAddress").val();
|
200
|
373
|
}
|
201
|
|
if(oBusinessDimensions == 0) {
|
202
|
|
$.MsgBox.Alert('提示', '请选择企业规模');
|
|
374
|
}
|
|
375
|
if($("#phone").val().trim()) {
|
|
376
|
if($("#phone").val().trim().length > 50) {
|
|
377
|
$.MsgBox.Alert('提示', '办公电话50个字之内!');
|
203
|
378
|
return;
|
|
379
|
} else {
|
|
380
|
$info.contactNum = $("#cmpAddress").val();
|
204
|
381
|
}
|
205
|
|
if(oEditUlistCNumber == 0) {
|
206
|
|
$.MsgBox.Alert('提示', '企业资质必填一项');
|
|
382
|
}
|
|
383
|
if($("#mail").val().trim()) {
|
|
384
|
if($("#mail").val().trim().indexOf("@")) {
|
|
385
|
$info.email = $("#mail").val();
|
|
386
|
} else {
|
|
387
|
$.MsgBox.Alert('提示', '邮箱格式不正确');
|
207
|
388
|
return;
|
208
|
|
}*/
|
209
|
|
var $info = {};
|
210
|
|
$info.id = id;
|
211
|
|
if(cacheImageKey != null) {
|
212
|
|
$info.fn = cacheImageKey;
|
213
|
|
}
|
214
|
|
$info.forShort = $("#businessAbbreviation").val();
|
215
|
|
if($("#orgType").find("option:selected").text()!="请选择最符合的一项") {
|
216
|
|
$info.orgType =$("#orgType").find("option:selected").text()
|
217
|
|
}
|
218
|
|
if($("#qualificationList").find("option:selected").text()!="请选择员工数量范围") {
|
219
|
|
$info.orgSize = $("#qualificationList").find("option:selected").text();
|
220
|
389
|
}
|
221
|
|
if($("#inteAddress").val().trim()) {
|
222
|
|
if($("#inteAddress").val().trim().length>20) {
|
223
|
|
$.MsgBox.Alert('提示', '企业官网 20个字之内!');
|
224
|
|
return;
|
225
|
|
}
|
226
|
|
$info.orgUrl = $("#inteAddress").val();
|
227
|
|
}
|
228
|
|
if($("#oprovince").text() != "请选择企业总部所在省或直辖市") {
|
229
|
|
$info.province = $("#oprovince").text();
|
230
|
|
}
|
231
|
|
if($("#ocity").text() != "请选择企业总部所在城市") {
|
232
|
|
$info.city = $("#ocity").text();
|
233
|
|
}
|
234
|
|
if($("#createTime").val()) {
|
235
|
|
$info.foundTime = st6($("#createTime").val());
|
236
|
|
}
|
237
|
|
if($("#cmpAddress").val().trim()) {
|
238
|
|
if($("#cmpAddress").val().trim().length>20) {
|
239
|
|
$.MsgBox.Alert('提示', '企业地址 20个字之内!');
|
240
|
|
return;
|
241
|
|
}else{
|
242
|
|
$info.addr=$("#cmpAddress").val();
|
243
|
|
}
|
244
|
|
}
|
245
|
|
if($("#phone").val().trim()) {
|
246
|
|
if($("#phone").val().trim().length>50) {
|
247
|
|
$.MsgBox.Alert('提示', '办公电话50个字之内!');
|
248
|
|
return;
|
249
|
|
}else{
|
250
|
|
$info.contactNum=$("#cmpAddress").val();
|
251
|
|
}
|
252
|
|
}
|
253
|
|
if($("#mail").val().trim()) {
|
254
|
|
if($("#mail").val().trim().indexOf("@")) {
|
255
|
|
$info.email =$("#mail").val();
|
256
|
|
}else{
|
257
|
|
$.MsgBox.Alert('提示', '邮箱格式不正确');
|
258
|
|
return;
|
|
390
|
}
|
|
391
|
$info.descp = $("textarea").val();
|
|
392
|
$info.industry = oString("#industryList");
|
|
393
|
$info.subject = oString("#subjectList");
|
|
394
|
$info.qualification = oString(".editUlistC");
|
|
395
|
$info.fieldOfCustomer=oString(subjectListIn);
|
|
396
|
$info.fieldOfSupplier==oString(subjectListOut);
|
|
397
|
$.ajax({
|
|
398
|
url: "/ajax/org/update",
|
|
399
|
type: "POST",
|
|
400
|
data: $info,
|
|
401
|
timeout: 10000,
|
|
402
|
dataType: "json",
|
|
403
|
beforeSend: function() {},
|
|
404
|
success: function(data, textState) {
|
|
405
|
if(data.success) {
|
|
406
|
$.MsgBox.Alert('提示', '修改成功');
|
|
407
|
$("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
|
|
408
|
setTimeout(function() {
|
|
409
|
location.reload(false)
|
|
410
|
}, 500);
|
259
|
411
|
}
|
|
412
|
},
|
|
413
|
error: function(XMLHttpRequest, textStats, errorThrown) {
|
|
414
|
$.MsgBox.Alert('提示', '服务器请求失败')
|
260
|
415
|
}
|
261
|
|
$info.descp = $("textarea").val();
|
262
|
|
$info.industry = oString("#industryList");
|
263
|
|
$info.subject = oString("#subjectList");
|
264
|
|
$info.qualification = oString(".editUlistC");
|
265
|
|
$.ajax({
|
266
|
|
url: "/ajax/org/update",
|
267
|
|
type: "POST",
|
268
|
|
data: $info,
|
269
|
|
timeout: 10000,
|
270
|
|
dataType: "json",
|
271
|
|
beforeSend: function() {},
|
272
|
|
success: function(data, textState) {
|
273
|
|
if(data.success) {
|
274
|
|
$.MsgBox.Alert('提示', '修改成功');
|
275
|
|
$("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
|
276
|
|
setTimeout(function(){
|
277
|
|
location.reload(false)
|
278
|
|
},500);
|
279
|
|
}
|
280
|
|
},
|
281
|
|
error: function(XMLHttpRequest, textStats, errorThrown) {
|
282
|
|
$.MsgBox.Alert('提示', '服务器请求失败')
|
283
|
|
}
|
284
|
|
})
|
285
|
416
|
})
|
|
417
|
})
|
286
|
418
|
/*应用行业,学术领域,企业纸质生成字符串*/
|
287
|
419
|
function oString(sele) {
|
288
|
420
|
var len = $(sele).find("li");
|
|
@ -333,9 +465,9 @@ $(document).ready(function() {
|
333
|
465
|
}*/
|
334
|
466
|
|
335
|
467
|
});
|
336
|
|
uploader.onError = function( code ) {
|
337
|
|
$.MsgBox.Alert('提示', '请上传jpg、jpeg、png格式的图片,大小不超过5M')
|
338
|
|
};
|
|
468
|
uploader.onError = function(code) {
|
|
469
|
$.MsgBox.Alert('提示', '请上传jpg、jpeg、png格式的图片,大小不超过5M')
|
|
470
|
};
|
339
|
471
|
uploader.on('uploadSuccess', function(file, data) {
|
340
|
472
|
uploader.removeFile(fileId);
|
341
|
473
|
cacheImageKey = data.data[0].cacheKey;
|
|
@ -343,18 +475,18 @@ $(document).ready(function() {
|
343
|
475
|
});
|
344
|
476
|
/*取消*/
|
345
|
477
|
$("#Ocancel").click(function() {
|
346
|
|
location.href="cmp-workspaces.html"
|
|
478
|
location.href = "cmp-workspaces.html"
|
347
|
479
|
})
|
348
|
480
|
/*选择省份*/
|
349
|
481
|
$(document).on("click", "#Province li a", function() {
|
350
|
482
|
var aVal = $(this).text();
|
351
|
483
|
$(this).parent().parent().parent().find('.mr_show').text(aVal);
|
352
|
484
|
$(this).parent().parent().parent().find('input[name=cho_Province]').val(aVal);
|
353
|
|
|
354
|
|
if($("#oprovince").text()=="请选择企业总部所在省或直辖市"){
|
|
485
|
|
|
486
|
if($("#oprovince").text() == "请选择企业总部所在省或直辖市") {
|
355
|
487
|
$("#oprovince").removeClass("mr_select");
|
356
|
488
|
$("#ocity").removeClass("mr_select");
|
357
|
|
}else{
|
|
489
|
} else {
|
358
|
490
|
$("#oprovince").addClass("mr_select");
|
359
|
491
|
$("#ocity").removeClass("mr_select");
|
360
|
492
|
}
|
|
@ -364,11 +496,11 @@ $(document).ready(function() {
|
364
|
496
|
var aVal = $(this).text();
|
365
|
497
|
$(this).parent().parent().parent().find('.mr_show').text(aVal);
|
366
|
498
|
$(this).parent().parent().parent().find('input[name=cho_City]').val(aVal);
|
367
|
|
if($("#ocity").text()=="请选择企业总部所在城市"){
|
|
499
|
if($("#ocity").text() == "请选择企业总部所在城市") {
|
368
|
500
|
$("#ocity").removeClass("mr_select");
|
369
|
|
}else{
|
|
501
|
} else {
|
370
|
502
|
$("#ocity").addClass("mr_select");
|
371
|
503
|
}
|
372
|
504
|
});
|
373
|
|
|
|
505
|
|
374
|
506
|
})
|