mirror of
https://shylinux.com/x/operation
synced 2025-07-01 13:14:43 +08:00
21 lines
732 B
JavaScript
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"],
|
|
})
|
|
}
|
|
},
|
|
}) |