|
@@ -142,18 +142,13 @@
|
|
|
<div style="width:4px;height:17px;background:#409EFF;border-radius:1px;" />
|
|
|
<div style="width:83px;height:20px;font-size:16px;font-family:MicrosoftYaHei;color:rgba(51,59,74,1);margin-left:6px">排期事件</div>
|
|
|
</div>
|
|
|
- <el-row :gutter="20" style="margin: 2% 0.8%">
|
|
|
- <el-col :span="12">
|
|
|
- <el-button size="mini" type="primary" plain icon="el-icon-plus" @click="add_Event">添加事件</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12" :push="7">
|
|
|
- <el-radio-group v-model="radio" size="mini" style="margin-left: 5%">
|
|
|
- <el-radio-button label="列表" @click.native="GanttChart(1)" />
|
|
|
- <el-radio-button label="甘特图" @click.native="GanttChart(2)" />
|
|
|
- </el-radio-group>
|
|
|
-
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <div style="margin: 2% 20px; display: flex; align-items: center; justify-content: space-between;">
|
|
|
+ <el-button size="mini" type="primary" plain icon="el-icon-plus" @click="add_Event">添加事件</el-button>
|
|
|
+ <el-radio-group v-model="radio" size="mini" style="margin-left: 5%">
|
|
|
+ <el-radio-button label="列表" @click.native="GanttChart(1)" />
|
|
|
+ <el-radio-button label="甘特图" @click.native="GanttChart(2)" />
|
|
|
+ </el-radio-group>
|
|
|
+ </div>
|
|
|
<div>
|
|
|
<div v-show="Gantt" style="padding:0 46px">
|
|
|
<gantt
|
|
@@ -163,45 +158,46 @@
|
|
|
:versions="appVersion"
|
|
|
/>
|
|
|
</div>
|
|
|
- <el-table
|
|
|
- v-show="table_show"
|
|
|
- :data="arr_event"
|
|
|
- style="width: 100%;"
|
|
|
- size="mini"
|
|
|
- :header-cell-style="{ background: '#6AB4FF', color: '#FFFFFF' }"
|
|
|
- show-overflow-tooltip="true"
|
|
|
- >
|
|
|
- <el-table-column label="事件类型" min-width="100" align="center">
|
|
|
- <template slot-scope="scope">{{ scope.row.name }}</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="描述" min-width="200" align="center">
|
|
|
- <template slot-scope="scope">{{ scope.row.desc }}</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="排期" min-width="200" align="center">
|
|
|
- <template slot-scope="scope">{{ scope.row.startTime | naspOut }} - {{ scope.row.endTime | naspOut }}</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="人员" min-width="200" align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <div v-for="item of scope.row.peopleObject" :key="item.idapId">{{ item.name }}</div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="操作" min-width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button size="mini" type="primary" plain @click="event_query(scope.row.id)">编辑</el-button>
|
|
|
- <el-button
|
|
|
- v-if="scope.row.canDelete === 1? false : true"
|
|
|
- size="mini"
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- @click="event_delete(scope.row.id)"
|
|
|
- >删除</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
-
|
|
|
+ <div style="margin: 0 20px;">
|
|
|
+ <el-table
|
|
|
+ v-show="table_show"
|
|
|
+ :data="arr_event"
|
|
|
+ style="width: 100%;"
|
|
|
+ size="small"
|
|
|
+ :header-cell-style="{ background: '#E9E9E9', color: '#333B4A' }"
|
|
|
+ show-overflow-tooltip="true"
|
|
|
+ >
|
|
|
+ <el-table-column label="事件类型" min-width="100" align="center">
|
|
|
+ <template slot-scope="scope">{{ scope.row.name }}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="描述" min-width="200" align="center">
|
|
|
+ <template slot-scope="scope">{{ scope.row.desc }}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="排期" min-width="200" align="center">
|
|
|
+ <template slot-scope="scope">{{ scope.row.startTime | naspOut }} - {{ scope.row.endTime | naspOut }}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="人员" min-width="200" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div v-for="item of scope.row.peopleObject" :key="item.idapId">{{ item.name }}</div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" min-width="100">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button size="mini" type="primary" plain @click="event_query(scope.row.id)">编辑</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.canDelete === 1? false : true"
|
|
|
+ size="mini"
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ @click="event_delete(scope.row.id)"
|
|
|
+ >删除</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
<el-row
|
|
|
:gutter="20"
|
|
|
- style="margin: 2% 3%; color: #333B4A; padding-bottom:2%;border-bottom:1px solid #E9E9E9;"
|
|
|
+ style="margin: 1.5% 20px; color: #333B4A; padding-bottom:1.5%;border-bottom:1px solid #E9E9E9;"
|
|
|
>
|
|
|
<el-col :span="12">
|
|
|
<div class="dateSet">排期汇总:{{ tiem_date.startTime | naspOut }} ~ {{ tiem_date.endTime | naspOut }}</div>
|
|
@@ -209,7 +205,7 @@
|
|
|
</el-row>
|
|
|
<el-row
|
|
|
:gutter="20"
|
|
|
- style="margin: 2% 3%; color: #333B4A; padding-bottom:2%;border-bottom:1px solid #E9E9E9;"
|
|
|
+ style="margin: 1.5% 20px; color: #333B4A; padding-bottom:1.5%;border-bottom:1px solid #E9E9E9;"
|
|
|
>
|
|
|
<el-col :span="8">
|
|
|
<div class="dateSet">实际提测时间:{{ task_form.launchTestRealTime | naspOut }}</div>
|
|
@@ -223,7 +219,7 @@
|
|
|
</el-row>
|
|
|
<el-row
|
|
|
:gutter="20"
|
|
|
- style="margin: 2% 3%; color: #333B4A; padding-bottom:2%;border-bottom:1px solid #E9E9E9; "
|
|
|
+ style="margin: 1.5% 20px; color: #333B4A; padding-bottom:1.5%;border-bottom:1px solid #E9E9E9; "
|
|
|
>
|
|
|
<el-col :span="8">
|
|
|
<div class="dateSet">预计上线版本:{{ task_form.preOnlineVersion }}</div>
|
|
@@ -252,7 +248,7 @@
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
</span>
|
|
|
- <el-tabs tab-position="top">
|
|
|
+ <el-tabs tab-position="top" @tab-click="click_launchTestInfoDOS">
|
|
|
<el-tab-pane label="Bug" style="position: relative;">
|
|
|
<div
|
|
|
style="padding: 1.5% 0;font-family: MicrosoftYaHei;color: rgba(51,51,51,1);font-size: 14px;align-items: center;display: flex; justify-content: space-start; align-items: center;border-top: 1px solid #E9E9E9;"
|
|
@@ -265,7 +261,7 @@
|
|
|
@click="bug_list(item.code)"
|
|
|
><span :style="{color: item.msg === '全部'? colorSty :''}">{{ item.msg }}</span></span>
|
|
|
</div>
|
|
|
- <el-table size="mini" :data="bugBaseInfoDOList" min-height="200" style="width: 100%; font-size: 14px; color:rgba(102,102,102,1);" show-overflow-tooltip="true" :default-sort="{prop: 'priorityCode'}" :header-cell-style="{ color: '#4A4A4A', fontSize: '14px', fontWeight: '500',borderTop: '0.5px solid #EEF0F5'}">
|
|
|
+ <el-table size="mini" :data="bugBaseInfoDOList" min-height="200" style="width: 100%; font-size: 14px; color:rgba(102,102,102,1);" show-overflow-tooltip="true" :default-sort="{prop: 'priorityCode'}" :header-cell-style="{ background: '#E9E9E9', color: '#333B4A', fontSize: '14px', fontWeight: '500',borderTop: '0.5px solid #EEF0F5'}">
|
|
|
<el-table-column label="优先级" prop="priorityCode" sortable align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="div_priority" :style="{background: priorityColors[scope.row.priorityCode]}">{{ scope.row.priorityLevel | oneA }}</div>
|
|
@@ -310,20 +306,20 @@
|
|
|
<el-table
|
|
|
:data="launchTestInfoDOS"
|
|
|
style="width: 100%;margin:2% 0;"
|
|
|
- size="mini"
|
|
|
- :header-cell-style="{ background: '#6AB4FF', color: '#FFFFFF' }"
|
|
|
+ size="small"
|
|
|
+ :header-cell-style="{ background: '#E9E9E9', color: '#333B4A' }"
|
|
|
show-overflow-tooltip="true"
|
|
|
>
|
|
|
- <el-table-column label="ID" min-width="100" align="center">
|
|
|
- <template slot-scope="scope">{{ scope.row.id }}</template>
|
|
|
- </el-table-column>
|
|
|
<el-table-column label="标题名称" min-width="100" align="center">
|
|
|
<template slot-scope="scope">{{ scope.row.name }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" min-width="100" align="center">
|
|
|
<template slot-scope="scope">{{ scope.row.statusString }}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="创建日期" min-width="100" align="center">
|
|
|
+ <el-table-column label="创建人" min-width="100" align="center">
|
|
|
+ <template slot-scope="scope">{{ scope.row.creater }}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="创建日期" min-width="200" align="center">
|
|
|
<template slot-scope="scope">{{ scope.row.gmtCreate }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" width="300">
|
|
@@ -346,21 +342,36 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
+ <div align="right">
|
|
|
+ <el-pagination
|
|
|
+ background
|
|
|
+ :current-page="currentPage"
|
|
|
+ :page-sizes="[15]"
|
|
|
+ :page-size="15"
|
|
|
+ layout="total, prev, pager, next, jumper"
|
|
|
+ :total="total"
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="测试报告" style="overflow: auto;width: 100%;">
|
|
|
<el-table
|
|
|
:data="dailyTestReports"
|
|
|
style="width: 100%;margin:2% 0;"
|
|
|
- size="mini"
|
|
|
- :header-cell-style="{ background: '#6AB4FF', color: '#FFFFFF' }"
|
|
|
+ size="small"
|
|
|
+ :header-cell-style="{ background: '#E9E9E9', color: '#333B4A' }"
|
|
|
show-overflow-tooltip="true"
|
|
|
>
|
|
|
- <el-table-column label="ID" min-width="100" align="center">
|
|
|
- <template slot-scope="scope">{{ scope.row.id }}</template>
|
|
|
- </el-table-column>
|
|
|
<el-table-column label="标题名称" min-width="100" align="center">
|
|
|
<template slot-scope="scope">{{ scope.row.reportName }}</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="状态" min-width="100" align="center">
|
|
|
+ <template slot-scope="scope">{{ scope.row.gmtCreate }}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="创建人" min-width="100" align="center">
|
|
|
+ <template slot-scope="scope">{{ scope.row.gmtCreate }}</template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="创建日期" min-width="100" align="center">
|
|
|
<template slot-scope="scope">{{ scope.row.gmtCreate }}</template>
|
|
|
</el-table-column>
|
|
@@ -370,23 +381,35 @@
|
|
|
<el-table
|
|
|
:data="projectTestReportDOS"
|
|
|
style="width: 100%;margin:2% 0;"
|
|
|
- size="mini"
|
|
|
- :header-cell-style="{ background: '#6AB4FF', color: '#FFFFFF' }"
|
|
|
+ size="small"
|
|
|
+ :header-cell-style="{ background: '#E9E9E9', color: '#333B4A' }"
|
|
|
show-overflow-tooltip="true"
|
|
|
>
|
|
|
- <el-table-column label="ID" min-width="100" align="center">
|
|
|
- <template slot-scope="scope">{{ scope.row.id }}</template>
|
|
|
- </el-table-column>
|
|
|
<el-table-column label="标题名称" min-width="100" align="center">
|
|
|
- <template slot-scope="scope">{{ scope.row.reportName }}</template>
|
|
|
+ <template slot-scope="scope">{{ scope.row.name }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" min-width="100" align="center">
|
|
|
<template slot-scope="scope">{{ scope.row.statusString }}</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="创建人" min-width="100" align="center">
|
|
|
+ <template slot-scope="scope">{{ scope.row.creater }}</template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="创建日期" min-width="100" align="center">
|
|
|
<template slot-scope="scope">{{ scope.row.gmtCreate }}</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
+ <div align="right">
|
|
|
+ <el-pagination
|
|
|
+ background
|
|
|
+ :current-page="currentPage"
|
|
|
+ :page-sizes="[15]"
|
|
|
+ :page-size="15"
|
|
|
+ layout="total, prev, pager, next, jumper"
|
|
|
+ :total="total"
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="评论">
|
|
|
<p v-show="commentShow" style="color:#9B9B9B">还没有评论,快来评论吧!</p>
|
|
@@ -403,7 +426,7 @@
|
|
|
show-word-limit
|
|
|
/>
|
|
|
<p style="text-align: right;">
|
|
|
- <el-button size="mini" type="primary" @click="comment(content)">发表评论</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="comment(content)">发表评论</el-button>
|
|
|
</p>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
@@ -554,7 +577,10 @@ import {
|
|
|
ScheduleUpdate,
|
|
|
commentCreate,
|
|
|
commentList,
|
|
|
- deleteEvent
|
|
|
+ deleteEvent,
|
|
|
+ projectTestReport,
|
|
|
+ dailyReport,
|
|
|
+ launchTest
|
|
|
} from '@/api/taskIndex' // ajax
|
|
|
import openDialog from '@/views/projectManage/dialog_vue'
|
|
|
import { launchTestUpdate } from '@/api/projectPage.js'
|
|
@@ -706,6 +732,31 @@ export default {
|
|
|
this.get_echarts()
|
|
|
},
|
|
|
methods: {
|
|
|
+ click_launchTestInfoDOS(e) {
|
|
|
+ console.log(e.index)
|
|
|
+ var url = window.location.href // 获取url中"?"符后的字
|
|
|
+ this.taskId = url.split('?id=')
|
|
|
+ switch (e.index) {
|
|
|
+ case '1':
|
|
|
+ launchTest({ taskId: this.taskId[1], curIndex: this.curIndex, pageSize: this.pageSize }).then(res => {
|
|
|
+ this.launchTestInfoDOS = res.data.list // 准出
|
|
|
+ this.total = res.data.total
|
|
|
+ })
|
|
|
+ break
|
|
|
+ case '2':
|
|
|
+ dailyReport({ taskId: this.taskId[1], curIndex: this.curIndex, pageSize: this.pageSize }).then(res => {
|
|
|
+ this.dailyTestReports = res.data.list
|
|
|
+ this.total = res.data.total
|
|
|
+ })
|
|
|
+ break
|
|
|
+ case '3':
|
|
|
+ projectTestReport({ taskId: this.taskId[1], curIndex: this.curIndex, pageSize: this.pageSize }).then(res => {
|
|
|
+ this.projectTestReportDOS = res.data.list
|
|
|
+ this.total = res.data.total
|
|
|
+ })
|
|
|
+ break
|
|
|
+ }
|
|
|
+ },
|
|
|
click_bugName(id) {
|
|
|
this.bugId = id
|
|
|
this.initCount++
|
|
@@ -738,7 +789,7 @@ export default {
|
|
|
this.table_loading = false
|
|
|
this.launchTestInfoDOS = res.data.launchTestInfoDOS // 提测
|
|
|
this.dailyTestReports = res.data.dailyTestReports // 测试
|
|
|
- this.projectTestReportDOS = res.data.projectTestReportDOS // 准出
|
|
|
+ // this.projectTestReportDOS = res.data.projectTestReportDOS // 准出
|
|
|
this.bug_list(-1)
|
|
|
this.task_form.bugBaseInfoDOList !== null ? (this.bugBaseInfoDOList = res.date.bugBaseInfoDOList) : (this.bugBaseInfoDOList = []) // bug
|
|
|
const param = {
|