This commit is contained in:
2020-07-28 21:02:59 +08:00
parent 5a53995fff
commit 8c38fea011
120 changed files with 7097 additions and 1930 deletions

View File

@@ -57,6 +57,7 @@ function TRPNewFollow:initFiledsAttr()
attr.id = ""
attr.attrType = DBCust.FieldType.dateTime
attr.ifMust = 1
attr.ifTime = 1
attr.donotJoinKey = true
table.insert(self.baseFiledsAttr, attr)
@@ -149,9 +150,12 @@ function TRPNewFollow:onPopupFieldValChg(go)
---@type CLUIElement
local el = go:GetComponent("CLUIElement")
if el.jsonKey == "dealFlag" then
if uiobjs.followUpContent and isNilOrEmpty(uiobjs.followUpContent.value) then
if uiobjs.followUpContent then
local popList = go:GetComponent("UIPopupList")
uiobjs.followUpContent.value = popList.selectedItem
if isNilOrEmpty(uiobjs.followUpContent.value) or self.oldselectedItem == uiobjs.followUpContent.value then
uiobjs.followUpContent.value = popList.selectedItem
self.oldselectedItem = popList.selectedItem
end
end
end
end
@@ -167,6 +171,7 @@ end
-- 关闭页面
function TRPNewFollow:hide()
self.oldselectedItem = nil
if uiobjs.DetailRoot.luaTable then
uiobjs.DetailRoot.luaTable.release()
end