This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-06-16 13:39:23 +08:00
parent 2b86871502
commit ce20a724c7
7 changed files with 21 additions and 7 deletions

View File

@ -9,9 +9,10 @@ import (
type care struct {
Tables
order string `data:"6"`
role string `data:"leader,worker"`
setInfo string `name:"setInfo info" help:"备注" role:"worker"`
order string `data:"6"`
role string `data:"leader,worker"`
setInfo string `name:"setInfo info" help:"备注" role:"worker"`
userInfo string `name:"userInfo" help:"成员信息" role:"worker"`
}
func (s care) SetInfo(m *ice.Message, arg ...string) {

View File

@ -32,7 +32,6 @@ func (s coder) check(m *ice.Message, arg ...string) bool {
m.OptionDefault(model.USER_UID, m.Option(ice.MSG_USERUID))
s.SettingSelect(m.Options(model.PLACE_UID, m.Option(model.STORY_UID)))
msg := m.Cmd(userStory{}, s.Select, m.OptionSimple(model.STORY_UID, model.USER_UID))
m.Info("what %v", msg.FormatChain())
if s.SettingIsOn(m, CREATOR_PROGRAM) && msg.Append(model.ROLE) == "1" {
return true
} else if s.SettingIsOn(m, LEADER_PROGRAM) && msg.Append(model.ROLE) == "2" {

View File

@ -49,6 +49,7 @@ type Table struct {
fileList string `name:"fileList" role:"worker"`
meetList string `name:"meetList" role:"worker"`
dealList string `name:"dealList" role:"worker"`
userInfo string `name:"userInfo" help:"所有项目" role:"worker"`
}
func (s Table) Inputs(m *ice.Message, arg ...string) {
@ -156,7 +157,7 @@ func (s Table) PushIssueButton(m *ice.Message, value ice.Maps, arg ...ice.Any) {
if isLeader {
button = append(button, s.DateInsert)
}
if isWorker {
if isLeader {
button = append(button, s.AddNote)
}
if isLeaderApproved {
@ -190,7 +191,7 @@ func (s Table) PushIssueButton(m *ice.Message, value ice.Maps, arg ...ice.Any) {
if isWorker && value[model.LINK] != "" {
button = append(button, s.Preview)
}
if isWorker {
if isLeader {
button = append(button, s.AddNote)
}
if isWorker {

View File

@ -51,6 +51,7 @@ const (
MeetCheck
MeetPlan
MeetCode
MeetTest
)
var MeetTypeList = map[MeetType]string{
@ -59,6 +60,7 @@ var MeetTypeList = map[MeetType]string{
MeetCheck: "项目验收",
MeetPlan: "方向规划",
MeetCode: "编程直播",
MeetTest: "产品内测",
}
func (s MeetType) String() string { return MeetTypeList[s] }

View File

@ -42,6 +42,8 @@ func (s Plan) List(m *ice.Message, arg ...string) {
s.SettingSelect(m)
issue_max_create := kit.Int(m.Option(ISSUE_MAX_CREATE))
msg := m.Cmd(Issue{}, s.Select, model.STORY_UID, arg[0], m.OptionSimple(model.USER_UID), model.STATUS, IssueCreate)
m.Info("what %v %v", msg.Length(), issue_max_create)
m.Info("what %v", m.FormatChain())
s.Orders(m, model.STATUS, model.ISSUE_COUNT, s.Desc(model.UPDATED_AT)).Limit(m, 300)
s.ValueList(m, arg).Table(func(value ice.Maps) {
button := []ice.Any{}

View File

@ -11,7 +11,8 @@ import (
type Portal struct {
guanlixitong.Portal
placeCreate string `name:"placeCreate city_name* company_name* story_name* story_type:select" role:"void"`
placeCreate string `name:"placeCreate city_name* company_name* story_name*" role:"void"`
// placeCreate string `name:"placeCreate city_name* company_name* story_name* story_type:select" role:"void"`
}
func (s Plan) AfterMigrate(m *ice.Message, arg ...string) {

View File

@ -9,5 +9,13 @@ Volcanos(chat.ONIMPORT, {
]},
{view: html.OUTPUT, list: [value.content]}, can.onimport.titleAction(can, value),
] })
if (msg.IsDetail()) {
can.onappend.plugin(can, {
height: can.ConfHeight()/2,
space: msg.Append(web.SPACE),
index: "web.team.production.coder",
args: [msg.Append(nfs.PATH), "portal.go"],
})
}
},
})