增加打包功能
This commit is contained in:
@@ -77,8 +77,8 @@ export default {
|
|||||||
desConfigs() {
|
desConfigs() {
|
||||||
let isLine = true
|
let isLine = true
|
||||||
return [
|
return [
|
||||||
{prop: "libShell", label: "打包脚本", width: 100, isLine},
|
{prop: "libShell", label: "打包脚本", width: 100},
|
||||||
{prop: "updateShell", label: "更新脚本", width: 100, isLine},
|
{prop: "updateShell", label: "更新脚本", width: 100},
|
||||||
{prop: "target", label: "nginx地址", width: 100, isLine},
|
{prop: "target", label: "nginx地址", width: 100, isLine},
|
||||||
{prop: "webUrl", label: "项目地址", width: 100},
|
{prop: "webUrl", label: "项目地址", width: 100},
|
||||||
]
|
]
|
||||||
@@ -206,7 +206,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getProcessMsg(row) {
|
getProcessMsg(row) {
|
||||||
return row.error || (row.download ? `最近打包时间:${row.download}` : `暂无打包`)
|
let time = row.zipTime ? this.$moment(row.zipTime).diff(row.download, 's', true) : ""
|
||||||
|
return row.error || (row.download ? `最近打包时间:${row.download}(用时:${time}秒)` :
|
||||||
|
row.zipTime ? `正在打包,开始于:${row.zipTime}` : `暂无打包`)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|||||||
Reference in New Issue
Block a user