From b56fcf3fcb680a1491485964ad70cd2983c9cf0e Mon Sep 17 00:00:00 2001 From: shy Date: Tue, 20 Aug 2024 22:09:33 +0800 Subject: [PATCH] add some --- src/gonganxitong/common.js | 2 +- src/gonganxitong/message.go | 2 ++ src/gonganxitong/portal.js | 3 ++- src/gonganxitong/recent.go | 2 ++ src/gonganxitong/service.go | 3 +-- src/gonganxitong/support.go | 7 ++++++- .../export/web.team.guanlixitong.portal/hash.json | 11 +++++++++++ .../export/web.team.yuehaoxitong.portal/hash.json | 14 ++++++++++++++ 8 files changed, 39 insertions(+), 5 deletions(-) diff --git a/src/gonganxitong/common.js b/src/gonganxitong/common.js index d2712db..89b18a9 100644 --- a/src/gonganxitong/common.js +++ b/src/gonganxitong/common.js @@ -1,5 +1,5 @@ Volcanos(chat.ONIMPORT, { - _init: function(can, msg) { can.onimport.shareTitle(can, msg) + _init: function(can, msg) { can.onimport.shareTitle && can.onimport.shareTitle(can, msg) var PLACE_NAME = msg.Option("_place_name"), PLACE_TYPE = msg.Option("_place_type"), USER_PLACE_ROLE = msg.Option("_user_place_role") can.onimport.itemcards(can, msg, function(value) { value._style = [value[PLACE_TYPE]||"", value[USER_PLACE_ROLE]||""] return [ diff --git a/src/gonganxitong/message.go b/src/gonganxitong/message.go index 945bfb6..6d7b7ca 100644 --- a/src/gonganxitong/message.go +++ b/src/gonganxitong/message.go @@ -9,6 +9,8 @@ import ( type message struct { Table + order string `data:"100"` + portal string `data:"true"` domain string `data:"gonganxitong"` read string `name:"read" role:"void"` done string `name:"done" role:"void"` diff --git a/src/gonganxitong/portal.js b/src/gonganxitong/portal.js index 5c7bb3b..ae2e5f6 100644 --- a/src/gonganxitong/portal.js +++ b/src/gonganxitong/portal.js @@ -64,7 +64,8 @@ Volcanos(chat.ONIMPORT, { }, myList: function(can, msg, target, PLACE_UID, USER_PLACE_ROLE) { var width = (can.ConfWidth()-40)/parseInt((can.ConfWidth()-40)/100), height = width+20; can.user.isMobile && !can.user.isLandscape() && (width = (can.ConfWidth()-40)/4, height = width+20) - return can.page.Append(can, target||can._output, msg.Table(function(value) { if (value.enable != ice.TRUE) { return } + return can.page.Append(can, target||can._output, msg.Table(function(value) { + // if (value.enable != ice.TRUE) { return } return {view: [[html.ITEM, ctx.INDEX].concat( value.type? [mdb.TYPE]: [], can.core.Split(value.type||""), value.role? [aaa.ROLE]: [], can.core.Split(value.role||""), diff --git a/src/gonganxitong/recent.go b/src/gonganxitong/recent.go index e34158e..a00b8ab 100644 --- a/src/gonganxitong/recent.go +++ b/src/gonganxitong/recent.go @@ -11,6 +11,8 @@ import ( type recent struct { Table + order string `data:"101"` + portal string `data:"true"` domain string `data:"gonganxitong"` create string `name:"create name icon space index args"` remove string `name:"remove" role:"void"` diff --git a/src/gonganxitong/service.go b/src/gonganxitong/service.go index 37bcde2..11d3e0d 100644 --- a/src/gonganxitong/service.go +++ b/src/gonganxitong/service.go @@ -19,9 +19,8 @@ import ( type service struct { Table - order string `data:"100"` + order string `data:"102"` portal string `data:"true"` - role string `data:"creator"` domain string `data:"gonganxitong"` update string `name:"update name icon index"` autogen string `name:"autogen name* help* class* table*" icon:"bi bi-plus-square-dotted"` diff --git a/src/gonganxitong/support.go b/src/gonganxitong/support.go index 393b409..068a14e 100644 --- a/src/gonganxitong/support.go +++ b/src/gonganxitong/support.go @@ -2,7 +2,12 @@ package gonganxitong import "shylinux.com/x/ice" -type support struct{ Tables } +type support struct { + Tables + order string `data:"103"` + portal string `data:"true"` + domain string `data:"gonganxitong"` +} func (s support) List(m *ice.Message, arg ...string) {} diff --git a/usr/local/export/web.team.guanlixitong.portal/hash.json b/usr/local/export/web.team.guanlixitong.portal/hash.json index 2b974dc..c858dcd 100644 --- a/usr/local/export/web.team.guanlixitong.portal/hash.json +++ b/usr/local/export/web.team.guanlixitong.portal/hash.json @@ -74,6 +74,7 @@ "icons": "https://img.icons8.com/officel/80/multiple-smartphones.png", "index": "web.team.guanlixitong.recent", "name": "最近访问", + "order": "100", "time": "2024-08-20 11:07:54.831" } }, @@ -96,6 +97,15 @@ "time": "2024-08-07 12:36:07.526" } }, + "c27ad1df8aa9059d6018fb5add5ee546": { + "meta": { + "icons": "https://img.icons8.com/officel/80/customer-support.png", + "index": "web.team.guanlixitong.support", + "name": "客服支持", + "order": "100", + "time": "2024-08-20 21:24:17.126" + } + }, "c36d47e2611b0d1e7a14088bc3293d04": { "meta": { "_target": [ @@ -114,6 +124,7 @@ "icons": "https://img.icons8.com/officel/80/test-partial-passed.png", "index": "web.team.guanlixitong.message", "name": "消息待办", + "order": "100", "time": "2024-08-20 11:07:54.833" } }, diff --git a/usr/local/export/web.team.yuehaoxitong.portal/hash.json b/usr/local/export/web.team.yuehaoxitong.portal/hash.json index ab74ac2..0530189 100644 --- a/usr/local/export/web.team.yuehaoxitong.portal/hash.json +++ b/usr/local/export/web.team.yuehaoxitong.portal/hash.json @@ -43,9 +43,11 @@ }, "377f3c0dae9dbf423a8e188bfd245b7a": { "meta": { + "enable": "true", "icons": "https://img.icons8.com/officel/80/multiple-smartphones.png", "index": "web.team.yuehaoxitong.recent", "name": "最近访问", + "order": "100", "time": "2024-08-20 11:07:54.840" } }, @@ -106,9 +108,11 @@ }, "98d6d53a44113b33a82c4e914cb23489": { "meta": { + "enable": "true", "icons": "https://img.icons8.com/officel/80/test-partial-passed.png", "index": "web.team.yuehaoxitong.message", "name": "消息待办", + "order": "100", "time": "2024-08-20 11:07:54.887" } }, @@ -140,6 +144,16 @@ "time": "2024-08-11 09:30:00.509" } }, + "b811b4ed8b1b372958bbb4bb1b2709b8": { + "meta": { + "enable": "true", + "icons": "https://img.icons8.com/officel/80/customer-support.png", + "index": "web.team.yuehaoxitong.support", + "name": "客服支持", + "order": "100", + "time": "2024-08-20 21:24:17.275" + } + }, "ba468c870a9645a8a162c31c4d860fbd": { "meta": { "_target": [