add file open
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user