Commit e2b61ff9 authored by 晓彤's avatar 晓彤

样式

parent 79b79f46
<template> <template>
<div> <div style="margin-left:30px">
<h2>欢迎来到QA测试平台!</h2> <h2>欢迎来到QA测试平台!</h2>
<p>本平台当前包含的功能有:</p> <p>本平台当前包含的功能有:</p>
<p>1. 现金分期 <p>1. 现金分期
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 添加 Pipeline --> <!-- 添加 Pipeline -->
<el-form-item label="Pipeline" prop="piplineList"> <el-form-item label="Pipeline">
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<div style="text-align: center"> <div style="text-align: center">
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<div style="text-align: center;margin-top:5px"> <div style="text-align: center;margin-top:5px">
<el-switch v-model="item.enable" active-color="#13ce66" inactive-color="#A9A9A9" active-text="是" inactive-text="否" active-value="1" inactive-value="0"></el-switch> <el-switch v-model="item.enable" active-color="#13ce66" inactive-color="#A9A9A9" active-text="是" inactive-text="否" :active-value='1' :inactive-value='0'></el-switch>
</div> </div>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
...@@ -106,7 +106,9 @@ ...@@ -106,7 +106,9 @@
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-button size="mini" type="primary" @click="AddPipelineListRow()" style="mragin-top: 10px;width:500px">添加</el-button> <el-row>
<el-button size="mini" type="primary" icon="el-icon-circle-plus-outline" @click="AddPipelineListRow()" style="margin-top: 10px">添加</el-button>
</el-row>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
...@@ -190,7 +192,7 @@ ...@@ -190,7 +192,7 @@
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-button size="mini" plain @click="EditPipelineListRow()" style="mragin-top: 10px" class="el-icon-circle-plus">添加</el-button> <el-button size="mini" plain @click="EditPipelineListRow()" icon="el-icon-circle-plus-outline">添加</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -307,7 +309,7 @@ export default { ...@@ -307,7 +309,7 @@ export default {
serviceBranch: '', serviceBranch: '',
serviceType: '', serviceType: '',
namespace: '', namespace: '',
enable: 1 enable: '1'
} }
] ]
}, },
...@@ -329,7 +331,7 @@ export default { ...@@ -329,7 +331,7 @@ export default {
serviceBranch: '', serviceBranch: '',
serviceType: '', serviceType: '',
namespace: '', namespace: '',
enable: 1 enable: ''
} }
] ]
}, },
...@@ -419,16 +421,7 @@ export default { ...@@ -419,16 +421,7 @@ export default {
}, },
namespaceList: [], namespaceList: [],
projectName: '', projectName: ''
// 编辑pipeline
editPipelineList: [
{
serviceName: '',
serviceBranch: '',
enable: true
}
]
} }
}, },
methods: { methods: {
...@@ -460,6 +453,7 @@ export default { ...@@ -460,6 +453,7 @@ export default {
pipeline.namespace = this.pipelineFrom.dingRobot.namespace pipeline.namespace = this.pipelineFrom.dingRobot.namespace
}) })
}) })
console.log('5555', this.pipelineFrom)
addPipeline(this.pipelineFrom).then((resp) => { addPipeline(this.pipelineFrom).then((resp) => {
if (resp.data.data === true) { if (resp.data.data === true) {
this.addDialogVisible = false this.addDialogVisible = false
...@@ -467,7 +461,7 @@ export default { ...@@ -467,7 +461,7 @@ export default {
this.pipelineFrom.pipelineList.push({ this.pipelineFrom.pipelineList.push({
serviceName: '', serviceName: '',
serviceBranch: '', serviceBranch: '',
enable: 1 enable: ''
}) })
this.getProjectRobotList() this.getProjectRobotList()
return this.$message.success('新增成功!') return this.$message.success('新增成功!')
...@@ -619,9 +613,16 @@ export default { ...@@ -619,9 +613,16 @@ export default {
}, },
closeAddDialog() { closeAddDialog() {
this.$refs.addRobotFormRef.resetFields() this.$refs.addRobotFormRef.resetFields()
this.pipelineFrom.pipelineList = []
this.pipelineFrom.pipelineList.push({
serviceName: '',
serviceBranch: '',
enable: ''
})
}, },
closeEditDialog() { closeEditDialog() {
this.$refs.editRobotFormRef.resetFields() this.$refs.editRobotFormRef.resetFields()
this.getProjectRobotList()
}, },
closeSendDialog() { closeSendDialog() {
this.$refs.sendFormRef.resetFields() this.$refs.sendFormRef.resetFields()
...@@ -641,7 +642,7 @@ export default { ...@@ -641,7 +642,7 @@ export default {
this.pipelineFrom.pipelineList.push({ this.pipelineFrom.pipelineList.push({
serviceName: '', serviceName: '',
serviceBranch: '', serviceBranch: '',
enable: 1 enable: ''
}) })
}, },
// 删除行 // 删除行
...@@ -653,7 +654,7 @@ export default { ...@@ -653,7 +654,7 @@ export default {
this.editPipelineForm.pipelineList.push({ this.editPipelineForm.pipelineList.push({
serviceName: '', serviceName: '',
serviceBranch: '', serviceBranch: '',
enable: 1 enable: ''
}) })
}, },
// 编辑删除pipeline按钮 // 编辑删除pipeline按钮
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment