Commit 6ca5759d6550480d2a06ca392b23966705943e30
1 parent
09410be9
* [x] 描述没有的时候,隐藏描述内容
* [x] 工作记录添加好后,应该回到工作记录列表页
Showing
2 changed files
with
57 additions
and
17 deletions
metaCode/Classes/Main/HomePage/Controller/DigitalAuth/工作相关页面/CNLiveVitaeAddWorkController.swift
| ... | ... | @@ -253,11 +253,11 @@ class CNLiveVitaeAddWorkController:CNLiveBaseViewController,UITableViewDataSourc |
| 253 | 253 | } |
| 254 | 254 | }else if self.workAwardType == .award && self.isFirstEdit{ |
| 255 | 255 | if self.seleArr?.count ?? 0 <= 1{ |
| 256 | - self.hangHeight = 15+248+widthHeight+20 | |
| 256 | + self.hangHeight = 15+248+widthHeight+10+20 | |
| 257 | 257 | return self.hangHeight |
| 258 | 258 | }else{ |
| 259 | 259 | let hang:Int = ((self.seleArr?.count ?? 0)-2)/3+2 |
| 260 | - self.hangHeight = CGFloat(15+248+hang*Int(widthHeight)+(hang-1)*Int(addXSpace)+20) | |
| 260 | + self.hangHeight = CGFloat(15+248+hang*Int(widthHeight)+(hang-1)*Int(addXSpace)+10+20) | |
| 261 | 261 | return self.hangHeight |
| 262 | 262 | } |
| 263 | 263 | }else{ |
| ... | ... | @@ -325,8 +325,30 @@ class CNLiveVitaeAddWorkController:CNLiveBaseViewController,UITableViewDataSourc |
| 325 | 325 | |
| 326 | 326 | } |
| 327 | 327 | } |
| 328 | - let danWei = threeCell?.phoneTextFiled.text ?? "" | |
| 329 | - let workDiDian = threeCell?.weizhiRightTitleLabel.text ?? "" | |
| 328 | + var danWei = "" | |
| 329 | + if threeCell?.phoneTextFiled.text?.count ?? 0 <= 0{ | |
| 330 | + | |
| 331 | + }else if threeCell?.phoneTextFiled.text == "请填写"{ | |
| 332 | + | |
| 333 | + }else{ | |
| 334 | + danWei = threeCell?.phoneTextFiled.text ?? "" | |
| 335 | + } | |
| 336 | + var workDiDian = "" | |
| 337 | + if threeCell?.weizhiRightTitleLabel.text?.count ?? 0 <= 0{ | |
| 338 | + | |
| 339 | + }else if threeCell?.weizhiRightTitleLabel.text == "请选择"{ | |
| 340 | + | |
| 341 | + }else{ | |
| 342 | + workDiDian = threeCell?.weizhiRightTitleLabel.text ?? "" | |
| 343 | + } | |
| 344 | + var desc = "" | |
| 345 | + if secCell?.huoJiangtextView.text?.count ?? 0 <= 0{ | |
| 346 | + | |
| 347 | + }else if secCell?.huoJiangtextView.text == "描述"{ | |
| 348 | + | |
| 349 | + }else{ | |
| 350 | + desc = secCell?.huoJiangtextView.text ?? "" | |
| 351 | + } | |
| 330 | 352 | if let userDic = UserDefaults.standard.dictionary(forKey: UserInfoManager.shared.userInfo.uid){ |
| 331 | 353 | let jianli_vitaeId = userDic["jianli_vitaeId"] as? String |
| 332 | 354 | let vsid = userDic["vsid"] as? String |
| ... | ... | @@ -337,13 +359,15 @@ class CNLiveVitaeAddWorkController:CNLiveBaseViewController,UITableViewDataSourc |
| 337 | 359 | if self.workModel != nil{ |
| 338 | 360 | id = self.workModel!.id |
| 339 | 361 | } |
| 340 | - CNLiveVitaeViewModel.saveWork(city: workDiDian, companyName: danWei, imgs: newString, jobDuties: secCell?.huoJiangtextView.text ?? "", startWorkingDate:startTime ?? "" , endWorkingDate: endTime ?? "" , position: firCell?.phoneTextFiled.text ?? "", profession: firCell?.weizhiRightTitleLabel.text ?? "", vsid: vsid ?? "", vitaeId: jianli_vitaeId ?? "", id: id) { result, status in | |
| 362 | + | |
| 363 | + CNLiveVitaeViewModel.saveWork(city: workDiDian, companyName: danWei, imgs: newString, jobDuties: desc, startWorkingDate:startTime ?? "" , endWorkingDate: endTime ?? "" , position: firCell?.phoneTextFiled.text ?? "", profession: firCell?.weizhiRightTitleLabel.text ?? "", vsid: vsid ?? "", vitaeId: jianli_vitaeId ?? "", id: id) { result, status in | |
| 341 | 364 | if status == .success{ |
| 342 | - self.navigationController?.viewControllers.forEach({ item in | |
| 343 | - if (item.isKind(of: CNLiveDigitalResumeController.self)) { | |
| 344 | - self.navigationController?.popToViewController(item, animated: true) | |
| 345 | - } | |
| 346 | - }) | |
| 365 | + self.navigationController?.popViewController(animated: true) | |
| 366 | +// self.navigationController?.viewControllers.forEach({ item in | |
| 367 | +// if (item.isKind(of: CNLiveDigitalResumeController.self)) { | |
| 368 | +// self.navigationController?.popToViewController(item, animated: true) | |
| 369 | +// } | |
| 370 | +// }) | |
| 347 | 371 | } |
| 348 | 372 | } |
| 349 | 373 | } |
| ... | ... | @@ -396,13 +420,30 @@ class CNLiveVitaeAddWorkController:CNLiveBaseViewController,UITableViewDataSourc |
| 396 | 420 | if self.awardModel != nil{ |
| 397 | 421 | id = self.awardModel!.id |
| 398 | 422 | } |
| 399 | - CNLiveVitaeViewModel.saveAward(company: firCell?.banfaTextFiled.text ?? "", description: secCell?.huoJiangtextView.text ?? "", time: startTime ?? "", title: firCell?.phoneTextFiled.text ?? "", imgs: newString, vsid: vsid ?? "", vitaeId: jianli_vitaeId ?? "", id: id) { result, status in | |
| 423 | + var danWei = "" | |
| 424 | + if firCell?.banfaTextFiled.text?.count ?? 0 <= 0{ | |
| 425 | + | |
| 426 | + }else if firCell?.banfaTextFiled.text == "请输入"{ | |
| 427 | + | |
| 428 | + }else{ | |
| 429 | + danWei = firCell?.banfaTextFiled.text ?? "" | |
| 430 | + } | |
| 431 | + var desc = "" | |
| 432 | + if secCell?.huoJiangtextView.text?.count ?? 0 <= 0{ | |
| 433 | + | |
| 434 | + }else if secCell?.huoJiangtextView.text == "描述"{ | |
| 435 | + | |
| 436 | + }else{ | |
| 437 | + desc = secCell?.huoJiangtextView.text ?? "" | |
| 438 | + } | |
| 439 | + CNLiveVitaeViewModel.saveAward(company: danWei, description: desc, time: startTime ?? "", title: firCell?.phoneTextFiled.text ?? "", imgs: newString, vsid: vsid ?? "", vitaeId: jianli_vitaeId ?? "", id: id) { result, status in | |
| 400 | 440 | if status == .success{ |
| 401 | - self.navigationController?.viewControllers.forEach({ item in | |
| 402 | - if (item.isKind(of: CNLiveDigitalResumeController.self)) { | |
| 403 | - self.navigationController?.popToViewController(item, animated: true) | |
| 404 | - } | |
| 405 | - }) | |
| 441 | + self.navigationController?.popViewController(animated: true) | |
| 442 | +// self.navigationController?.viewControllers.forEach({ item in | |
| 443 | +// if (item.isKind(of: CNLiveDigitalResumeController.self)) { | |
| 444 | +// self.navigationController?.popToViewController(item, animated: true) | |
| 445 | +// } | |
| 446 | +// }) | |
| 406 | 447 | } |
| 407 | 448 | |
| 408 | 449 | } | ... | ... |
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/Vitae/Certificate/CNLiveVocationalCertificateFirCell.swift
| ... | ... | @@ -256,7 +256,6 @@ class CNLiveVocationalCertificateFirCell: UITableViewCell, UICollectionViewDataS |
| 256 | 256 | self.cerNumberDetailTitleLabel.snp.makeConstraints { make in |
| 257 | 257 | make.top.equalTo(self.cerNumberTitleLabel.snp.bottom).offset(3) |
| 258 | 258 | make.left.equalTo(self.cerNumberTitleLabel.snp.left) |
| 259 | -// make.left.greaterThanOrEqualTo(self.cerLevelDetailTitleLabel.snp.right).offset(5) | |
| 260 | 259 | make.right.equalToSuperview().offset(-5) |
| 261 | 260 | } |
| 262 | 261 | self.whiteBgView.addSubview(self.cerJiGouTitleLabel) | ... | ... |