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

// 资料上传

parent 94b2a09e
......@@ -287,9 +287,6 @@ extension YHResignMaterialUploadVC: UITableViewDelegate, UITableViewDataSource {
private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat {
if section == 0 {
// if supplementInfo.templateInfo.isNeedShowTemplate() {
// return UITableView.automaticDimension
// }
return UITableView.automaticDimension
}
return UITableView.automaticDimension
......@@ -299,11 +296,7 @@ extension YHResignMaterialUploadVC: UITableViewDelegate, UITableViewDataSource {
let view = UIView()
if section == 0 { // 证件示例模版
// if !supplementInfo.templateInfo.isNeedShowTemplate() {
// return view
// }
let titlelabel = UILabel()
titlelabel.textColor = UIColor.mainTextColor
titlelabel.textAlignment = .left
......@@ -512,9 +505,9 @@ extension YHResignMaterialUploadVC: UITableViewDelegate, UITableViewDataSource {
if indexPath.section == 0 { // 模版列表
if 0 <= indexPath.row && indexPath.row < templateArr.count {
let path = templateArr[indexPath.row]
print(path.file_url)
if !path.file_url.isEmpty {
self.previewFileTool.openXLSXRemoteFile(urlString:path.file_url, fileName:"预览")
print(path.fileUrl)
if !path.fileUrl.isEmpty {
self.previewFileTool.openXLSXRemoteFile(urlString:path.fileUrl, fileName:"预览")
}
}
......
......@@ -98,7 +98,7 @@ class YHResignTemplateDetail: SmartCodable {
class YHResignTemplateItemModel: SmartCodable {
var name: String = ""
var file_url: String = ""
var fileUrl: String = ""
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