Commit e14a9a96 authored by 黎博's avatar 黎博

冒烟测试和发送进度对话框新增未解决bug立碑

parent a9376e19
......@@ -94,3 +94,11 @@ export function editPipeline(data) {
data
})
}
export function getJiraIssueList(data) {
return request({
url: '/jira/issue/list',
method: 'get',
params: data
})
}
......@@ -215,6 +215,18 @@
<el-input v-model="sendScheduleForm.risk" type="textarea" placeholder="请输入测试风险点(非必填)"></el-input>
</el-form-item>
</el-form>
<p>未解决BUG列表:</p>
<el-table :data="scheduleUnsolvedIssueList" border style="width: 100%">
<el-table-column prop="key" label="关键字" width="150">
</el-table-column>
<el-table-column prop="summary" label="标题">
</el-table-column>
<el-table-column prop="priority" label="优先级" width="100">
</el-table-column>
<el-table-column prop="assignee" label="经办人" width="80">
</el-table-column>
</el-table>
<span slot="footer" class="dialog-footer">
<el-button @click="sendScheduleDialogVisible = false">取 消</el-button>
<el-button type="primary" @click="sendSchedule">发 送</el-button>
......@@ -237,6 +249,18 @@
<el-input v-model="sendSmokingForm.risk" type="textarea" placeholder="请输入测试风险点(非必填)"></el-input>
</el-form-item>
</el-form>
<p>未解决BUG列表:</p>
<el-table :data="smokingUnsolvedIssueList" border style="width: 100%">
<el-table-column prop="key" label="关键字" width="150">
</el-table-column>
<el-table-column prop="summary" label="标题">
</el-table-column>
<el-table-column prop="priority" label="优先级" width="100">
</el-table-column>
<el-table-column prop="assignee" label="经办人" width="80">
</el-table-column>
</el-table>
<span slot="footer" class="dialog-footer">
<el-button @click="smokingDialogVisible = false">取 消</el-button>
<el-button type="primary" @click="sendSmoking">发 送</el-button>
......@@ -255,7 +279,8 @@ import {
sendScheduleReport,
sendSmokingResult,
getGitProjectList,
getGitBranchList
getGitBranchList,
getJiraIssueList
} from '@/api/jira'
import { getNamespaceList } from '@/api/getXyqbData'
// import { getGitlabProject } from '@/api/qaApi'
......@@ -294,6 +319,10 @@ export default {
editRobotForm: {},
sendProjectRobot: {},
// 冒烟未解决BUG列表
smokingUnsolvedIssueList: [],
// 发送进度未解决BUG列表
scheduleUnsolvedIssueList: [],
// 发送进度报告参数
sendScheduleData: {},
// 发送冒烟结果参数
......@@ -532,17 +561,31 @@ export default {
},
openEditDialog(projectRobot) {
this.editDialogVisible = true
this.editRobotForm = projectRobot
this.editRobotForm = projectRobot.dingRobot
},
// 打开发送进度对话框
openSendDialog(projectRobot) {
this.sendScheduleDialogVisible = true
this.sendProjectRobot = projectRobot
this.sendProjectRobot = projectRobot.dingRobot
getJiraIssueList({
jiraProjectKey: this.sendProjectRobot.jiraProjectKey,
projectName: this.sendProjectRobot.projectName,
unsolved: true
}).then((resp) => {
this.scheduleUnsolvedIssueList = resp.data.data
})
},
// 打开发送冒烟测试结果对话框
openSendSmokingDialog(projectRobot) {
this.smokingDialogVisible = true
this.sendProjectRobot = projectRobot
this.sendProjectRobot = projectRobot.dingRobot
getJiraIssueList({
jiraProjectKey: this.sendProjectRobot.jiraProjectKey,
projectName: this.sendProjectRobot.projectName,
unsolved: true
}).then((resp) => {
this.smokingUnsolvedIssueList = resp.data.data
})
},
closeAddDialog() {
this.$refs.addRobotFormRef.resetFields()
......
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