upgrade
This commit is contained in:
@@ -28,6 +28,7 @@ function TRPOrderDetail:init(csObj)
|
||||
MyUtl.setContentView(getChild(self.transform, "PanelContent"), 132 + 160 + 30, 0)
|
||||
---@type UIScrollView
|
||||
uiobjs.scrollView = getCC(self.transform, "PanelContent", "UIScrollView")
|
||||
uiobjs.scrollView.dampenStrength = MyUtl.dampenStrength
|
||||
---@type UITable
|
||||
uiobjs.Table = getCC(uiobjs.scrollView.transform, "Table", "UITable")
|
||||
|
||||
@@ -40,7 +41,8 @@ function TRPOrderDetail:init(csObj)
|
||||
---@type Coolape.CLUILoopGrid
|
||||
uiobjs.Records = getCC(uiobjs.Table.transform, "Records", "CLUILoopGrid")
|
||||
uiobjs.ButtonEndList = getChild(uiobjs.Records.transform, "ButtonEndList")
|
||||
uiobjs.AttachmentRoot = getCC(uiobjs.Table.transform, "AttachmentRoot", "CLCellLua")
|
||||
uiobjs.AttachmentRoot = getCC(uiobjs.Table.transform, "AttachmentRoot", "UIGrid")
|
||||
uiobjs.AttachmentPrefab = getChild(uiobjs.AttachmentRoot.transform, "00000").gameObject
|
||||
|
||||
uiobjs.FinanceRoot = getCC(uiobjs.Table.transform, "FinanceRoot", "CLCellLua")
|
||||
---@type Coolape.CLUILoopGrid
|
||||
@@ -148,6 +150,10 @@ function TRPOrderDetail:setData(paras)
|
||||
if type(self.mdata.prodJson) == "string" then
|
||||
self.mdata.prodJson = json.decode(self.mdata.prodJson)
|
||||
end
|
||||
|
||||
if type(self.mdata.wfOptJson) == "string" then
|
||||
self.mdata.wfOptJson = json.decode(self.mdata.wfOptJson)
|
||||
end
|
||||
end
|
||||
|
||||
---public 当有通用背板显示时的回调
|
||||
@@ -267,10 +273,23 @@ function TRPOrderDetail:showAttachment()
|
||||
SetActive(uiobjs.FinanceRoot.gameObject, false)
|
||||
SetActive(uiobjs.SubOrders.gameObject, false)
|
||||
|
||||
MyUtl.toastW("TODO:还没有附件数据")
|
||||
CLUIUtl.resetList4Lua(
|
||||
uiobjs.AttachmentRoot,
|
||||
uiobjs.AttachmentPrefab,
|
||||
self.mdata.wfOptJson,
|
||||
self:wrapFunc(self.initAttachmentCell)
|
||||
)
|
||||
|
||||
self:reposition()
|
||||
end
|
||||
|
||||
function TRPOrderDetail:initAttachmentCell(cell, data)
|
||||
cell:init(data, self:wrapFunc(self.onClickAttachment))
|
||||
end
|
||||
|
||||
function TRPOrderDetail:onClickAttachment(cell, data)
|
||||
end
|
||||
|
||||
function TRPOrderDetail:showRecords()
|
||||
self:release()
|
||||
SetActive(uiobjs.DetailRoot.gameObject, false)
|
||||
|
||||
Reference in New Issue
Block a user