add file open

This commit is contained in:
2020-08-07 22:40:04 +08:00
parent c1e3f992aa
commit f9bedd2c62
115 changed files with 9835 additions and 1096 deletions

View File

@@ -252,7 +252,7 @@ function TRPOrderDetail:showExtentFiles(templetId)
param.data = self.mdata and self.mdata.attrJson or {}
param.onFinish = self:wrapFunc(self.reposition)
param.fields = {}
local fields = DBCust.getFieldsByTask(templetId) or {}
local fields = DBOrder.getFields(templetId) or {}
---@type _ParamCellExtendFiled
local filedInfor
for i, v in ipairs(fields) do
@@ -301,13 +301,15 @@ function TRPOrderDetail:onClickAttachment(cell, data)
false,
"打开",
function()
Application.OpenURL(joinStr("file://", path))
-- Application.OpenURL(joinStr("file://", path))
MyFileOpen.open(path)
end,
"取消",
nil
)
else
MyUtl.toastW("附件未下载完成,暂时无法查看")
cell.luaTable.download()
-- MyUtl.toastW("附件未下载完成,暂时无法查看")
end
end