Commit d04a5c24 authored by Steven杜宇's avatar Steven杜宇

// 资料上传

parent 94b2a09e
...@@ -287,9 +287,6 @@ extension YHResignMaterialUploadVC: UITableViewDelegate, UITableViewDataSource { ...@@ -287,9 +287,6 @@ extension YHResignMaterialUploadVC: UITableViewDelegate, UITableViewDataSource {
private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat {
if section == 0 { if section == 0 {
// if supplementInfo.templateInfo.isNeedShowTemplate() {
// return UITableView.automaticDimension
// }
return UITableView.automaticDimension return UITableView.automaticDimension
} }
return UITableView.automaticDimension return UITableView.automaticDimension
...@@ -300,10 +297,6 @@ extension YHResignMaterialUploadVC: UITableViewDelegate, UITableViewDataSource { ...@@ -300,10 +297,6 @@ extension YHResignMaterialUploadVC: UITableViewDelegate, UITableViewDataSource {
let view = UIView() let view = UIView()
if section == 0 { // 证件示例模版 if section == 0 { // 证件示例模版
// if !supplementInfo.templateInfo.isNeedShowTemplate() {
// return view
// }
let titlelabel = UILabel() let titlelabel = UILabel()
titlelabel.textColor = UIColor.mainTextColor titlelabel.textColor = UIColor.mainTextColor
titlelabel.textAlignment = .left titlelabel.textAlignment = .left
...@@ -512,9 +505,9 @@ extension YHResignMaterialUploadVC: UITableViewDelegate, UITableViewDataSource { ...@@ -512,9 +505,9 @@ extension YHResignMaterialUploadVC: UITableViewDelegate, UITableViewDataSource {
if indexPath.section == 0 { // 模版列表 if indexPath.section == 0 { // 模版列表
if 0 <= indexPath.row && indexPath.row < templateArr.count { if 0 <= indexPath.row && indexPath.row < templateArr.count {
let path = templateArr[indexPath.row] let path = templateArr[indexPath.row]
print(path.file_url) print(path.fileUrl)
if !path.file_url.isEmpty { if !path.fileUrl.isEmpty {
self.previewFileTool.openXLSXRemoteFile(urlString:path.file_url, fileName:"预览") self.previewFileTool.openXLSXRemoteFile(urlString:path.fileUrl, fileName:"预览")
} }
} }
......
...@@ -98,7 +98,7 @@ class YHResignTemplateDetail: SmartCodable { ...@@ -98,7 +98,7 @@ class YHResignTemplateDetail: SmartCodable {
class YHResignTemplateItemModel: SmartCodable { class YHResignTemplateItemModel: SmartCodable {
var name: String = "" var name: String = ""
var file_url: String = "" var fileUrl: String = ""
required init() { required init() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment