mirror of
https://shylinux.com/x/community
synced 2025-04-25 09:38:06 +08:00
add some
This commit is contained in:
parent
1942402b2d
commit
3f3d9dc654
@ -538,9 +538,11 @@ func PortalCmd(portal ice.Any) {
|
||||
}, cmd.Actions[ice.CTX_INIT].Hand)
|
||||
}
|
||||
cmd("portal", portal)
|
||||
// cmd("search", search{Tables: tables})
|
||||
cmd("meeting", meeting{Table: table})
|
||||
cmd("paymentlist", paymentlist{Table: table})
|
||||
cmd("meeting", meeting{Table: table})
|
||||
cmd("document", document{Table: table})
|
||||
cmd("contract", contract{Table: table})
|
||||
cmd("photo", photo{Table: table})
|
||||
cmd("credit", credit{Tables: tables})
|
||||
cmd("member", member{Tables: tables})
|
||||
cmd("setting", setting{Table: table})
|
||||
|
@ -4,13 +4,14 @@ import "shylinux.com/x/ice"
|
||||
|
||||
type contract struct {
|
||||
Table
|
||||
order string `data:"93"`
|
||||
order string `data:"94"`
|
||||
fields string `data:"title"`
|
||||
create string `name:"create title*" role:"leader"`
|
||||
remove string `name:"remove" role:"leader"`
|
||||
}
|
||||
|
||||
func (s contract) List(m *ice.Message, arg ...string) {
|
||||
m.Display("")
|
||||
}
|
||||
|
||||
func init() { ice.TeamCtxCmd(contract{}) }
|
||||
func init() { ice.TeamCtxCmd(contract{Table: newTable()}) }
|
||||
|
10
src/gonganxitong/contract.js
Normal file
10
src/gonganxitong/contract.js
Normal file
@ -0,0 +1,10 @@
|
||||
Volcanos(chat.ONIMPORT, {
|
||||
_init: function(can, msg) {
|
||||
can.page.Append(can, can._output, [
|
||||
{view: html.ITEM, list: [{type: html.INPUT, data: {type: html.TEXT}, onblur: function() {
|
||||
can.sup.onimport.size(can.sup, can.sup.ConfHeight(), can.sup.ConfWidth())
|
||||
can.onmotion.delay(can, function() { can._root.Action.onlayout._init(can) })
|
||||
}}]},
|
||||
])
|
||||
},
|
||||
})
|
15
src/gonganxitong/document.go
Normal file
15
src/gonganxitong/document.go
Normal file
@ -0,0 +1,15 @@
|
||||
package gonganxitong
|
||||
|
||||
import "shylinux.com/x/ice"
|
||||
|
||||
type document struct {
|
||||
Table
|
||||
order string `data:"93"`
|
||||
fields string `data:"title,content,user_uid"`
|
||||
create string `name:"create title* content*" role:"leader"`
|
||||
remove string `name:"remove" role:"leader"`
|
||||
}
|
||||
|
||||
func (s document) List(m *ice.Message, arg ...string) { s.ValueList(m, arg).Display("") }
|
||||
|
||||
func init() { ice.TeamCtxCmd(document{Table: newTable()}) }
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
type meeting struct {
|
||||
Table
|
||||
order string `data:"91"`
|
||||
order string `data:"92"`
|
||||
role string `data:"leader,worker"`
|
||||
fields string `data:"user_id,vendor"`
|
||||
config string `name:"config place_uid* user_uid* user_id* vendor*"`
|
||||
|
@ -180,9 +180,14 @@ type Paymentlist struct {
|
||||
Status uint8 `gorm:"default:0"`
|
||||
Type uint8 `gorm:"default:0"`
|
||||
}
|
||||
type Photo struct {
|
||||
db.ModelWithUID
|
||||
}
|
||||
type Document struct {
|
||||
db.ModelWithUID
|
||||
}
|
||||
type Contract struct {
|
||||
db.ModelWithUID
|
||||
Title string `gorm:"type:varchar(128)"`
|
||||
}
|
||||
type Meeting struct {
|
||||
db.ModelWithUID
|
||||
@ -284,6 +289,7 @@ func init() {
|
||||
db.CmdModels("",
|
||||
&Sess{}, &User{}, &UserPlace{}, &Place{}, &Street{}, &City{},
|
||||
&Paymentlist{}, &Contract{}, &Meeting{}, &Setting{},
|
||||
&Document{}, &Photo{},
|
||||
&Apply{}, &Allow{}, &Event{}, &Notice{},
|
||||
&Domain{}, &Market{}, &Thumb{}, &Comment{}, &Favor{},
|
||||
&Command{}, &Message{}, &Recent{}, &Service{}, &Support{},
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
|
||||
type paymentlist struct {
|
||||
Table
|
||||
order string `data:"92"`
|
||||
order string `data:"91"`
|
||||
fields string `data:"user_uid,paymentlist_status,amount,title,content"`
|
||||
create string `name:"create amount* title* content" role:"leader"`
|
||||
payfor string `name:"payfor" help:"支付" style:"notice" role:"void"`
|
||||
|
16
src/gonganxitong/photo.go
Normal file
16
src/gonganxitong/photo.go
Normal file
@ -0,0 +1,16 @@
|
||||
package gonganxitong
|
||||
|
||||
import "shylinux.com/x/ice"
|
||||
|
||||
type photo struct {
|
||||
Table
|
||||
order string `data:"95"`
|
||||
fields string `data:"title,content,user_uid"`
|
||||
create string `name:"create title* content*" role:"leader"`
|
||||
remove string `name:"remove" role:"leader"`
|
||||
}
|
||||
|
||||
func (s photo) List(m *ice.Message, arg ...string) {
|
||||
}
|
||||
|
||||
func init() { ice.TeamCtxCmd(photo{Table: newTable()}) }
|
@ -141,7 +141,8 @@ fieldset.web.team.storage.file div.item.card div.title span:first-child { flex-g
|
||||
fieldset.web.team.renzhengshouquan.profile>div.output div.code { margin-top:60px; margin-bottom:240px; }
|
||||
body.dark $output>div>div.list.mynotice>span:first-child { background-color:var(--hover-bg-color); color:yellow; white-space:pre; }
|
||||
body.width1 $output img.qrcode { width:100%; margin:0; }
|
||||
body.width1 div.input.float { position:absolute; top:0 !important; margin:0; width:100% !important; max-width:100% !important; }
|
||||
body.width1 div.input.float { margin:0; width:100% !important; max-width:100% !important; }
|
||||
// body.width1 div.input.float { position:absolute; top:0 !important; }
|
||||
body.width1 div.input.float input[name=submit] { background-color:var(--notice-bg-color); color:var(--notice-fg-color); }
|
||||
body.width1 fieldset.panel.Action>div.output { background-color:var(--plugin-bg-color); }
|
||||
body:not(.mobile) $output>fieldset.story>div.output div.item.card:not(:hover) { background-color:var(--output-bg-color); }
|
||||
@ -149,9 +150,3 @@ body:not(.width1) $output div.item.card div.title div.action { display:none; }
|
||||
body.en $output>fieldset table.content td:first-child { max-width:180px; width:unset;}
|
||||
$fieldset { box-shadow:none; }
|
||||
$output>div.output>div.code { padding:10px; }
|
||||
body.mobile {
|
||||
// overflow:auto !important;
|
||||
}
|
||||
body.mobile div.input.float {
|
||||
// position:static;
|
||||
}
|
||||
|
@ -178,7 +178,8 @@ Volcanos(chat.ONACTION, {
|
||||
// can.user.isMobile && can._fields.appendChild(sub._target)
|
||||
// can.user.isMobile && can.onmotion.hidden(can, can._output)
|
||||
|
||||
can.user.isMobile && can.page.style(can, sub._target, html.MAX_HEIGHT, "")
|
||||
can.user.isMobile && can.page.style(can, sub._target, html.LEFT, (can.page.width()-sub._target.offsetWidth)/2, html.TOP, 0)
|
||||
can.user.isMobile && can.page.style(can, sub._target, html.MAX_HEIGHT, can.page.height())
|
||||
can.user.isMobile && can._root.Inputs && can._root.Inputs.appendChild(sub._target)
|
||||
can.user.isMobile && can.page.style(can, can._root.Action._output, html.VISIBILITY, html.HIDDEN)
|
||||
|
||||
@ -202,6 +203,7 @@ Volcanos(chat.ONACTION, {
|
||||
sub.Option("grade", "2024级")
|
||||
},
|
||||
afterInputs: function(event, can, button, sub) {
|
||||
can.onmotion.delay(can, function() { can._root.Action.onlayout._init(can) })
|
||||
can.user.isMobile && can.page.style(can, can._root.Action._output, html.VISIBILITY, "")
|
||||
can.user.isMobile && can.page.style(can, can._root.Action._target, html.DISPLAY, "")
|
||||
can.user.isMobile && can.onmotion.toggle(can, can._output, true)
|
||||
|
@ -2,6 +2,7 @@
|
||||
"portal": "用户场景", "placeCreate": "创建", "placeRemove": "删除",
|
||||
"credit": "用户名片", "member": "组织成员",
|
||||
"meeting": "在线会议", "contract": "在线合同", "paymentlist": "在线支付",
|
||||
"document": "在线文档", "photo": "在线相册",
|
||||
"setting": "服务配置", "email": "邮箱配置",
|
||||
"qrcode": "场景码", "event": "事件流", "apply": "权限申请", "allow": "权限审批", "notice": "通知公告",
|
||||
"domain": "领域分类", "market": "人民广场", "message": "消息待办", "recent": "最近访问", "service": "服务发现", "support": "客服支持",
|
||||
@ -17,6 +18,8 @@
|
||||
"city": "https://img.icons8.com/officel/80/qr-code.png",
|
||||
"street": "https://img.icons8.com/officel/80/qr-code.png",
|
||||
"meeting": "https://img.icons8.com/officel/80/video-conference.png",
|
||||
"photo": "https://img.icons8.com/officel/50/ios-photos.png",
|
||||
"document": "https://img.icons8.com/officel/50/documents.png",
|
||||
"contract": "https://img.icons8.com/officel/80/agreement.png",
|
||||
"paymentlist": "https://img.icons8.com/officel/80/online-payment-with-a-credit-card.png",
|
||||
"credit": "https://img.icons8.com/officel/80/passport.png",
|
||||
|
@ -4,6 +4,8 @@ import (
|
||||
_ "shylinux.com/x/ice/devops"
|
||||
_ "shylinux.com/x/mysql-story/src/db/mysql"
|
||||
|
||||
_ "shylinux.com/x/community/src/renzhengshouquan/external/tencentcloud"
|
||||
_ "shylinux.com/x/community/src/renzhengshouquan/external/tencentdocument"
|
||||
_ "shylinux.com/x/community/src/renzhengshouquan/external/tencentmeeting"
|
||||
_ "shylinux.com/x/community/src/renzhengshouquan/external/tencentmeeting/model"
|
||||
_ "shylinux.com/x/community/src/renzhengshouquan/external/tencentqian"
|
||||
|
19
src/renzhengshouquan/external/tencentcloud/tencentcloud.go
vendored
Normal file
19
src/renzhengshouquan/external/tencentcloud/tencentcloud.go
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
package tencentcloud
|
||||
|
||||
import (
|
||||
"shylinux.com/x/ice"
|
||||
|
||||
"shylinux.com/x/community/src/renzhengshouquan"
|
||||
)
|
||||
|
||||
type tencentcloud struct {
|
||||
renzhengshouquan.Tables
|
||||
fields string `data:"title,content,user_uid"`
|
||||
create string `name:"create title* content*" role:"leader"`
|
||||
remove string `name:"remove" role:"leader"`
|
||||
}
|
||||
|
||||
func (s tencentcloud) List(m *ice.Message, arg ...string) {
|
||||
}
|
||||
|
||||
func init() { ice.TeamCtxCmd(tencentcloud{}) }
|
19
src/renzhengshouquan/external/tencentdocument/tencentdocument.go
vendored
Normal file
19
src/renzhengshouquan/external/tencentdocument/tencentdocument.go
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
package tencentdocument
|
||||
|
||||
import (
|
||||
"shylinux.com/x/ice"
|
||||
|
||||
"shylinux.com/x/community/src/renzhengshouquan"
|
||||
)
|
||||
|
||||
type tencentdocument struct {
|
||||
renzhengshouquan.Tables
|
||||
fields string `data:"title,content,user_uid"`
|
||||
create string `name:"create title* content*" role:"leader"`
|
||||
remove string `name:"remove" role:"leader"`
|
||||
}
|
||||
|
||||
func (s tencentdocument) List(m *ice.Message, arg ...string) {
|
||||
}
|
||||
|
||||
func init() { ice.TeamCtxCmd(tencentdocument{}) }
|
Loading…
x
Reference in New Issue
Block a user