|
@@ -424,7 +424,7 @@
|
|
|
<el-button
|
|
<el-button
|
|
|
style="margin-top: 5px; margin-left: 5px"
|
|
style="margin-top: 5px; margin-left: 5px"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
- @click="handleBuildLogFile(scope.$index, scope.row)"
|
|
|
|
|
|
|
+ @click="handleBuildLogFile(scope.row)"
|
|
|
>日志</el-button>
|
|
>日志</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
style="margin-top: 5px; margin-left: 5px"
|
|
style="margin-top: 5px; margin-left: 5px"
|
|
@@ -593,6 +593,19 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ title="构建日志"
|
|
|
|
|
+ width="100%"
|
|
|
|
|
+ append-to-body
|
|
|
|
|
+ :visible.sync="showBuildLogFileDialog"
|
|
|
|
|
+ center
|
|
|
|
|
+ >
|
|
|
|
|
+ <template>
|
|
|
|
|
+ <div v-if="buildLogFile !== null" style="margin-bottom: 20px;">
|
|
|
|
|
+ {{ buildLogFile }}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-dialog>
|
|
|
</el-container>
|
|
</el-container>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -600,7 +613,7 @@
|
|
|
import {
|
|
import {
|
|
|
buildApp,
|
|
buildApp,
|
|
|
cancelBuildTask, deleteBuildLog, deployApp, getBuildConfigSnapshot, getBuildConsumed,
|
|
cancelBuildTask, deleteBuildLog, deployApp, getBuildConfigSnapshot, getBuildConsumed,
|
|
|
- getBuildDeployList,
|
|
|
|
|
|
|
+ getBuildDeployList, getBuildLogFile,
|
|
|
getBuildLogList, getBuildPackageUrl, getBuildResult,
|
|
getBuildLogList, getBuildPackageUrl, getBuildResult,
|
|
|
getBuildTaskList,
|
|
getBuildTaskList,
|
|
|
getDeployList,
|
|
getDeployList,
|
|
@@ -647,6 +660,8 @@ export default {
|
|
|
buildConfigSnapshot: null,
|
|
buildConfigSnapshot: null,
|
|
|
showConsumedDialog: false,
|
|
showConsumedDialog: false,
|
|
|
buildConsumed: null,
|
|
buildConsumed: null,
|
|
|
|
|
+ showBuildLogFileDialog: false,
|
|
|
|
|
+ buildLogFile: null,
|
|
|
// **********************************************************************
|
|
// **********************************************************************
|
|
|
deployDialogTitle: '',
|
|
deployDialogTitle: '',
|
|
|
showDeployDialog: false,
|
|
showDeployDialog: false,
|
|
@@ -807,7 +822,6 @@ export default {
|
|
|
getBuildConsumed(queryInfo).then(resp => {
|
|
getBuildConsumed(queryInfo).then(resp => {
|
|
|
if (resp.code === 0) {
|
|
if (resp.code === 0) {
|
|
|
this.buildConsumed = resp.data
|
|
this.buildConsumed = resp.data
|
|
|
- console.log(this.buildConsumed)
|
|
|
|
|
this.showConsumedDialog = true
|
|
this.showConsumedDialog = true
|
|
|
} else {
|
|
} else {
|
|
|
this.$message.error(resp.msg)
|
|
this.$message.error(resp.msg)
|
|
@@ -830,7 +844,18 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
handleBuildLogFile(row) {
|
|
handleBuildLogFile(row) {
|
|
|
- this.$message.info('get build log file')
|
|
|
|
|
|
|
+ const queryInfo = {}
|
|
|
|
|
+ queryInfo.buildLogId = row.buildLogId
|
|
|
|
|
+ getBuildLogFile(queryInfo).then(resp => {
|
|
|
|
|
+ if (resp.code === 0) {
|
|
|
|
|
+ this.buildLogFile = resp.data
|
|
|
|
|
+ this.showBuildLogFileDialog = true
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(resp.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(error => {
|
|
|
|
|
+ this.$message.error(error.message)
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
handleDeployBuild(index, row) {
|
|
handleDeployBuild(index, row) {
|
|
|
const formData = new FormData()
|
|
const formData = new FormData()
|