2025-06-16 13:39:23 +08:00

21 lines
732 B
JavaScript

Volcanos(chat.ONIMPORT, {
_init: function(can, msg) {
can.onimport.myView(can, msg, function(value) { return [
{view: html.TITLE, list: [value.title, can.onimport.textView(can, value, "task_status")]},
{view: html.STATUS, list: [
(value.process_time||value.begin_time).split(" ")[0],
can.onimport.unitView(can, value, "plan_title"),
can.onimport.unitView(can, value, "case_count", "个"),
]},
{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"],
})
}
},
})