更新部署打包

This commit is contained in:
aixianling
2022-06-16 15:31:40 +08:00
parent fb44d8888a
commit 345f1c10b0

View File

@@ -14,6 +14,14 @@
</ai-search-bar> </ai-search-bar>
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size" <ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
@getList="getTableData" :col-configs="colConfigs" :dict="dict"> @getList="getTableData" :col-configs="colConfigs" :dict="dict">
<el-table-column type="expand" slot="expand">
<template slot-scope="{row}">
<ai-wrapper>
<ai-info-item labelWidth="200px" v-for="op in desConfigs" :key="op.prop" :value="row[op.prop]"
v-bind="op"/>
</ai-wrapper>
</template>
</el-table-column>
<el-table-column slot="process" label="打包进度"> <el-table-column slot="process" label="打包进度">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span v-if="row.count==0" v-text="getProcessMsg(row)"/> <span v-if="row.count==0" v-text="getProcessMsg(row)"/>
@@ -42,6 +50,9 @@
<el-form-item label="更新脚本" prop="updateShell"> <el-form-item label="更新脚本" prop="updateShell">
<el-input v-model="form.updateShell" clearable placeholder="请输入"/> <el-input v-model="form.updateShell" clearable placeholder="请输入"/>
</el-form-item> </el-form-item>
<el-form-item label="项目地址" prop="webUrl">
<el-input v-model="form.webUrl" clearable placeholder="请输入"/>
</el-form-item>
<el-form-item label="开发环境nginx" prop="target"> <el-form-item label="开发环境nginx" prop="target">
<el-input v-model="form.target" clearable placeholder="请输入"/> <el-input v-model="form.target" clearable placeholder="请输入"/>
</el-form-item> </el-form-item>
@@ -62,7 +73,16 @@ export default {
permissions: Function permissions: Function
}, },
computed: { computed: {
...mapState(['user']) ...mapState(['user']),
desConfigs() {
let isLine = true
return [
{prop: "libShell", label: "打包脚本", width: 100, isLine},
{prop: "updateShell", label: "更新脚本", width: 100, isLine},
{prop: "target", label: "nginx地址", width: 100, isLine},
{prop: "webUrl", label: "项目地址", width: 100},
]
},
}, },
data() { data() {
return { return {
@@ -70,9 +90,9 @@ export default {
page: {current: 1, size: 10, total: 0}, page: {current: 1, size: 10, total: 0},
tableData: [], tableData: [],
colConfigs: [ colConfigs: [
{slot: "expand"},
{label: "项目/系统名称", prop: "name", width: 200}, {label: "项目/系统名称", prop: "name", width: 200},
{label: "打包脚本", prop: "libShell"}, {label: "项目地址", prop: "webUrl"},
{label: "更新脚本", prop: "updateShell"},
{label: "nginx地址", prop: "target"}, {label: "nginx地址", prop: "target"},
{slot: "process"}, {slot: "process"},
{slot: "options"} {slot: "options"}