This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-12-17 15:38:46 +08:00
parent 74b73cf64d
commit 1c30ff4d40
11 changed files with 27 additions and 3 deletions

View File

@ -6,6 +6,7 @@ type contract struct {
Table Table
order string `data:"95"` order string `data:"95"`
auth string `data:"issued"` auth string `data:"issued"`
role string `data:"leader,worker"`
fields string `data:"title"` fields string `data:"title"`
create string `name:"create title*" role:"leader"` create string `name:"create title*" role:"leader"`
remove string `name:"remove" role:"leader"` remove string `name:"remove" role:"leader"`

View File

@ -10,6 +10,7 @@ type document struct {
Table Table
order string `data:"94"` order string `data:"94"`
auth string `data:"issued"` auth string `data:"issued"`
role string `data:"leader,worker"`
fields string `data:"folder_id,vendor,user_uid"` fields string `data:"folder_id,vendor,user_uid"`
open string `name:"open" style:"notice" role:"void"` open string `name:"open" style:"notice" role:"void"`
} }

View File

@ -17,6 +17,7 @@ type goodslist struct {
paymentlist paymentlist paymentlist paymentlist
order string `data:"91"` order string `data:"91"`
auth string `data:"issued"` auth string `data:"issued"`
role string `data:"leader,worker"`
fields string `data:"name,amount,title,content,user_uid"` fields string `data:"name,amount,title,content,user_uid"`
create string `name:"create name* amount* title* content*" role:"leader"` create string `name:"create name* amount* title* content*" role:"leader"`
remove string `name:"remove" role:"leader"` remove string `name:"remove" role:"leader"`

View File

@ -11,6 +11,7 @@ type paymentlist struct {
Table Table
order string `data:"92"` order string `data:"92"`
auth string `data:"issued"` auth string `data:"issued"`
role string `data:"leader,worker"`
fields string `data:"amount,title,content,paymentlist_status,goodslist_uid,user_uid"` fields string `data:"amount,title,content,paymentlist_status,goodslist_uid,user_uid"`
create string `name:"create amount* title* content" role:"leader"` create string `name:"create amount* title* content" role:"leader"`
request string `name:"request" help:"支付" style:"notice" role:"void"` request string `name:"request" help:"支付" style:"notice" role:"void"`

View File

@ -11,6 +11,7 @@ type photo struct {
Table Table
order string `data:"96"` order string `data:"96"`
auth string `data:"issued"` auth string `data:"issued"`
role string `data:"leader,worker"`
fields string `data:"space_id,access_token,expire_time,vendor"` fields string `data:"space_id,access_token,expire_time,vendor"`
upload string `name:"upload" role:"worker"` upload string `name:"upload" role:"worker"`
rename string `name:"rename newname" role:"worker"` rename string `name:"rename newname" role:"worker"`

View File

@ -27,7 +27,7 @@ type Portal struct {
service service service service
export string `data:"true"` export string `data:"true"`
short string `data:"index"` short string `data:"index"`
field string `data:"time,icons,name,index,order,enable,type,auth,role,view,init,portal,public"` field string `data:"time,icons,name,index,order,enable,type,auth,role,view,init,portal"`
create string `name:"create index name icons"` create string `name:"create index name icons"`
list string `name:"list place_uid index uid auto" role:"void"` list string `name:"list place_uid index uid auto" role:"void"`
placeCreate string `name:"placeCreate city_name* street_name* place_name* place_type:select address" icon:"bi bi-plus-square-dotted" role:"void"` placeCreate string `name:"placeCreate city_name* street_name* place_name* place_type:select address" icon:"bi bi-plus-square-dotted" role:"void"`

View File

@ -235,7 +235,7 @@ Volcanos(chat.ONEXPORT, {
can.ui.myinit && can.onimport.myInit(can, can._index_msg, value, can.ui.myinit) can.ui.myinit && can.onimport.myInit(can, can._index_msg, value, can.ui.myinit)
can.ui.mycount && can.onimport.myCount(can, value, can.ui.mycount) can.ui.mycount && can.onimport.myCount(can, value, can.ui.mycount)
can.ui.mynotice && can.onimport.myNotice(can, value, can.ui.mynotice) can.ui.mynotice && can.onimport.myNotice(can, value, can.ui.mynotice)
can.ui.myallow && can.onmotion.toggle(can, can.ui.myallow, status && (value._role == "creator" || can.page.Select(can, can.ui.myallow, "div.item.index.role."+value._role).length > 0)) can.ui.myallow && can.onmotion.toggle(can, can.ui.myallow, status && (value._role == "creator" || parseInt(value._role) > 0 || can.page.Select(can, can.ui.myallow, "div.item.index.role."+value._role).length > 0))
can.ui.myindex && can.onmotion.toggle(can, can.ui.myindex, status) can.ui.myindex && can.onmotion.toggle(can, can.ui.myindex, status)
if (!can.onmotion.cache(can, function() { return value._uid }, can.ui.header) && value.auth_background) { if (!can.onmotion.cache(can, function() { return value._uid }, can.ui.header) && value.auth_background) {
can.page.Append(can, can.ui.header, [{img: value.auth_background}]) can.page.Append(can, can.ui.header, [{img: value.auth_background}])
@ -244,7 +244,7 @@ Volcanos(chat.ONEXPORT, {
}, },
index: function(can, value, role) { role = role||value._role index: function(can, value, role) { role = role||value._role
can.ui.role && can.onmotion.toggle(can, can.ui.role, value._role == "creator") can.ui.role && can.onmotion.toggle(can, can.ui.role, value._role == "creator")
can.ui.role && can.onmotion.select(can, can.ui.role, html.SPAN, can.page.SelectOne(can, can.ui.role, "span."+role)) parseInt(role) > 0 || can.ui.role && can.onmotion.select(can, can.ui.role, html.SPAN, can.page.SelectOne(can, can.ui.role, "span."+role))
can.page.Select(can, can.ui.myindex, html.DIV_ITEM, function(target) { var list = target.className.split(" ") can.page.Select(can, can.ui.myindex, html.DIV_ITEM, function(target) { var list = target.className.split(" ")
if (list.indexOf("issued") > -1 && value.auth_status != "issued") { if (list.indexOf("issued") > -1 && value.auth_status != "issued") {
can.onmotion.toggle(can, target, false) can.onmotion.toggle(can, target, false)

View File

@ -118,6 +118,7 @@
"index": "web.team.guanlixitong.goodslist", "index": "web.team.guanlixitong.goodslist",
"name": "在线商城", "name": "在线商城",
"order": "91", "order": "91",
"role": "leader,worker",
"time": "2024-12-04 16:43:56.678" "time": "2024-12-04 16:43:56.678"
} }
}, },
@ -138,6 +139,7 @@
"index": "web.team.guanlixitong.photo", "index": "web.team.guanlixitong.photo",
"name": "在线相册", "name": "在线相册",
"order": "95", "order": "95",
"role": "leader,worker",
"time": "2024-11-25 18:11:44.299" "time": "2024-11-25 18:11:44.299"
} }
}, },
@ -232,6 +234,7 @@
"index": "web.team.guanlixitong.paymentlist", "index": "web.team.guanlixitong.paymentlist",
"name": "在线支付", "name": "在线支付",
"order": "92", "order": "92",
"role": "leader,worker",
"time": "2024-11-22 17:42:50.864" "time": "2024-11-22 17:42:50.864"
} }
}, },
@ -251,6 +254,7 @@
"index": "web.team.guanlixitong.contract", "index": "web.team.guanlixitong.contract",
"name": "在线合同", "name": "在线合同",
"order": "94", "order": "94",
"role": "leader,worker",
"time": "2024-11-25 18:11:44.307" "time": "2024-11-25 18:11:44.307"
} }
}, },
@ -261,6 +265,7 @@
"index": "web.team.guanlixitong.document", "index": "web.team.guanlixitong.document",
"name": "在线文档", "name": "在线文档",
"order": "93", "order": "93",
"role": "leader,worker",
"time": "2024-11-10 09:43:58.429" "time": "2024-11-10 09:43:58.429"
} }
}, },

View File

@ -6,6 +6,7 @@
"index": "web.team.huodongzuzhi.goodslist", "index": "web.team.huodongzuzhi.goodslist",
"name": "在线商城", "name": "在线商城",
"order": "91", "order": "91",
"role": "leader,worker",
"time": "2024-12-04 16:43:56.566" "time": "2024-12-04 16:43:56.566"
} }
}, },
@ -26,6 +27,7 @@
"index": "web.team.huodongzuzhi.contract", "index": "web.team.huodongzuzhi.contract",
"name": "在线合同", "name": "在线合同",
"order": "94", "order": "94",
"role": "leader,worker",
"time": "2024-11-25 18:11:44.294" "time": "2024-11-25 18:11:44.294"
} }
}, },
@ -36,6 +38,7 @@
"index": "web.team.huodongzuzhi.document", "index": "web.team.huodongzuzhi.document",
"name": "在线文档", "name": "在线文档",
"order": "93", "order": "93",
"role": "leader,worker",
"time": "2024-11-25 18:19:23.750" "time": "2024-11-25 18:19:23.750"
} }
}, },
@ -151,6 +154,7 @@
"index": "web.team.huodongzuzhi.photo", "index": "web.team.huodongzuzhi.photo",
"name": "在线相册", "name": "在线相册",
"order": "95", "order": "95",
"role": "leader,worker",
"time": "2024-11-25 18:11:44.292" "time": "2024-11-25 18:11:44.292"
} }
}, },
@ -161,6 +165,7 @@
"index": "web.team.huodongzuzhi.paymentlist", "index": "web.team.huodongzuzhi.paymentlist",
"name": "在线支付", "name": "在线支付",
"order": "92", "order": "92",
"role": "leader,worker",
"time": "2024-11-22 17:42:50.775" "time": "2024-11-22 17:42:50.775"
} }
}, },

View File

@ -7,6 +7,7 @@
"index": "web.team.renzhengshouquan.photo", "index": "web.team.renzhengshouquan.photo",
"name": "在线相册", "name": "在线相册",
"order": "96", "order": "96",
"role": "leader,worker",
"time": "2024-11-25 18:11:44.117" "time": "2024-11-25 18:11:44.117"
} }
}, },
@ -28,6 +29,7 @@
"index": "web.team.renzhengshouquan.document", "index": "web.team.renzhengshouquan.document",
"name": "在线文档", "name": "在线文档",
"order": "95", "order": "95",
"role": "leader,worker",
"time": "2024-11-25 18:19:23.561" "time": "2024-11-25 18:19:23.561"
} }
}, },
@ -39,6 +41,7 @@
"index": "web.team.renzhengshouquan.contract", "index": "web.team.renzhengshouquan.contract",
"name": "在线合同", "name": "在线合同",
"order": "94", "order": "94",
"role": "leader,worker",
"time": "2024-11-25 18:11:44.121" "time": "2024-11-25 18:11:44.121"
} }
}, },
@ -172,6 +175,7 @@
"index": "web.team.renzhengshouquan.paymentlist", "index": "web.team.renzhengshouquan.paymentlist",
"name": "在线支付", "name": "在线支付",
"order": "92", "order": "92",
"role": "leader,worker",
"time": "2024-11-22 17:42:50.659", "time": "2024-11-22 17:42:50.659",
"type": "company,school,street,service" "type": "company,school,street,service"
} }

View File

@ -15,6 +15,7 @@
"index": "web.team.yuehaoxitong.contract", "index": "web.team.yuehaoxitong.contract",
"name": "在线合同", "name": "在线合同",
"order": "94", "order": "94",
"role": "leader,worker",
"time": "2024-11-25 18:11:44.106" "time": "2024-11-25 18:11:44.106"
} }
}, },
@ -104,6 +105,7 @@
"index": "web.team.yuehaoxitong.goodslist", "index": "web.team.yuehaoxitong.goodslist",
"name": "在线商城", "name": "在线商城",
"order": "91", "order": "91",
"role": "leader,worker",
"time": "2024-12-04 16:43:56.282" "time": "2024-12-04 16:43:56.282"
} }
}, },
@ -134,6 +136,7 @@
"index": "web.team.yuehaoxitong.paymentlist", "index": "web.team.yuehaoxitong.paymentlist",
"name": "在线支付", "name": "在线支付",
"order": "92", "order": "92",
"role": "leader,worker",
"time": "2024-11-22 17:42:50.642" "time": "2024-11-22 17:42:50.642"
} }
}, },
@ -153,6 +156,7 @@
"index": "web.team.yuehaoxitong.photo", "index": "web.team.yuehaoxitong.photo",
"name": "在线相册", "name": "在线相册",
"order": "95", "order": "95",
"role": "leader,worker",
"time": "2024-11-25 18:11:44.112" "time": "2024-11-25 18:11:44.112"
} }
}, },
@ -233,6 +237,7 @@
"index": "web.team.yuehaoxitong.document", "index": "web.team.yuehaoxitong.document",
"name": "在线文档", "name": "在线文档",
"order": "93", "order": "93",
"role": "leader,worker",
"time": "2024-11-25 18:19:23.441" "time": "2024-11-25 18:19:23.441"
} }
}, },