更新部署打包
This commit is contained in:
@@ -14,6 +14,14 @@
|
||||
</ai-search-bar>
|
||||
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
|
||||
@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="打包进度">
|
||||
<template slot-scope="{row}">
|
||||
<span v-if="row.count==0" v-text="getProcessMsg(row)"/>
|
||||
@@ -42,6 +50,9 @@
|
||||
<el-form-item label="更新脚本" prop="updateShell">
|
||||
<el-input v-model="form.updateShell" clearable placeholder="请输入"/>
|
||||
</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-input v-model="form.target" clearable placeholder="请输入"/>
|
||||
</el-form-item>
|
||||
@@ -62,7 +73,16 @@ export default {
|
||||
permissions: Function
|
||||
},
|
||||
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() {
|
||||
return {
|
||||
@@ -70,9 +90,9 @@ export default {
|
||||
page: {current: 1, size: 10, total: 0},
|
||||
tableData: [],
|
||||
colConfigs: [
|
||||
{slot: "expand"},
|
||||
{label: "项目/系统名称", prop: "name", width: 200},
|
||||
{label: "打包脚本", prop: "libShell"},
|
||||
{label: "更新脚本", prop: "updateShell"},
|
||||
{label: "项目地址", prop: "webUrl"},
|
||||
{label: "nginx地址", prop: "target"},
|
||||
{slot: "process"},
|
||||
{slot: "options"}
|
||||
|
||||
Reference in New Issue
Block a user