|
@@ -7,7 +7,7 @@
|
|
|
</div>
|
|
|
<div class="detail-info">
|
|
|
<el-table
|
|
|
- :data="launchTestInfoDOS"
|
|
|
+ :data="testData"
|
|
|
size="small"
|
|
|
:header-cell-style="{ background: '#E9E9E9', color: '#333B4A' }"
|
|
|
show-overflow-tooltip="true"
|
|
@@ -38,7 +38,7 @@
|
|
|
<span v-if="scope.row.status === 0 ? true : false" style="margin: 0 30px;" class="btn" @click="back(6,scope.row.id, scope.row)">编辑</span>
|
|
|
<span v-if="scope.row.status === 0 ? true : false" class="btn" @click="back(4,scope.row.id, scope.row )">删除</span>
|
|
|
<span v-if="scope.row.status === 2 ? true : false" class="btn" @click="back(3,scope.row.id, scope.row)">重新提测</span>
|
|
|
- <el-dialog :title="titName" :visible.sync="dialog_launchTestInfoDOS" width="30%" :close-on-click-modal="false">
|
|
|
+ <el-dialog :title="titName" :visible.sync="dialog_testData" width="30%" :close-on-click-modal="false">
|
|
|
<div style="position: absolute; top: 23px; left: 12px;width:4px;height:17px;background:#409EFF;border-radius:1px;" />
|
|
|
<div align="center">
|
|
|
<div>是否{{ Str }}以下提测?</div>
|
|
@@ -54,22 +54,20 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <div align="right">
|
|
|
- <el-pagination
|
|
|
- :page-sizes="[5, 10, 15, testPages.total]"
|
|
|
- :current-page="testPages.curIndex"
|
|
|
- :page-size="testPages.pageSize"
|
|
|
- background
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="testPages.total"
|
|
|
- @size-change="testSizeChange"
|
|
|
- @current-change="testCurrentChange"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <div align="right">
|
|
|
+ <el-pagination
|
|
|
+ :page-sizes="[5, 10, 15, testPages.total]"
|
|
|
+ :current-page="testPages.curIndex"
|
|
|
+ :page-size="testPages.pageSize"
|
|
|
+ background
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="testPages.total"
|
|
|
+ @size-change="testSizeChange"
|
|
|
+ @current-change="testCurrentChange"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
</div>
|
|
|
</section>
|
|
|
<section class="main-section">
|
|
@@ -78,38 +76,74 @@
|
|
|
<div class="title-left-name">日报报告</div>
|
|
|
</div>
|
|
|
<div class="detail-info">
|
|
|
- <el-tab-pane label="日报报告">
|
|
|
- <el-table :data="dailyTestReports" 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">
|
|
|
- <a href="javascript:void(0)" style="color:#20a0ff" @click="toReportView(scope.row, 0)">{{ scope.row.reportName }}</a>
|
|
|
- </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.createrObject.name }}</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>
|
|
|
- <el-col :span="24">
|
|
|
- <div align="right">
|
|
|
- <el-pagination
|
|
|
- :page-sizes="[5, 10, 15, testPages.total]"
|
|
|
- :current-page="testPages.curIndex"
|
|
|
- :page-size="testPages.pageSize"
|
|
|
- background
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="testPages.total"
|
|
|
- @size-change="testSizeChange"
|
|
|
- @current-change="testCurrentChange"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-tab-pane>
|
|
|
+ <el-table :data="dailyData" 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">
|
|
|
+ <a href="javascript:void(0)" style="color:#20a0ff" @click="toReportView(scope.row, 0)">{{ scope.row.reportName }}</a>
|
|
|
+ </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.createrObject.name }}</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>
|
|
|
+ <el-col :span="24">
|
|
|
+ <div align="right">
|
|
|
+ <el-pagination
|
|
|
+ :page-sizes="[5, 10, 15, dailyPages.total]"
|
|
|
+ :current-page="dailyPages.curIndex"
|
|
|
+ :page-size="dailyPages.pageSize"
|
|
|
+ background
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="dailyPages.total"
|
|
|
+ @size-change="dailySizeChange"
|
|
|
+ @current-change="dailyCurrentChange"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </div>
|
|
|
+ </section>
|
|
|
+ <section class="main-section">
|
|
|
+ <div class="el-main-title">
|
|
|
+ <div class="title-left-icon" />
|
|
|
+ <div class="title-left-name">准出报告</div>
|
|
|
+ </div>
|
|
|
+ <div class="detail-info">
|
|
|
+ <el-table :data="clientData" 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">
|
|
|
+ <a href="javascript:void(0)" style="color:#20a0ff" @click="toReportView(scope.row, 1)">{{ scope.row.reportName }}</a>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="状态" min-width="100" align="center">
|
|
|
+ <template slot-scope="scope">{{ scope.row.reportStatusString }}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="创建人" min-width="100" align="center">
|
|
|
+ <template slot-scope="scope">{{ scope.row.createrObject.name }}</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>
|
|
|
+ <el-col :span="24">
|
|
|
+ <div align="right">
|
|
|
+ <el-pagination
|
|
|
+ :page-sizes="[5, 10, 15, clientPages.total]"
|
|
|
+ :current-page="clientPages.curIndex"
|
|
|
+ :page-size="clientPages.pageSize"
|
|
|
+ background
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="clientPages.total"
|
|
|
+ @size-change="clientSizeChange"
|
|
|
+ @current-change="clientCurrentChange"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
</div>
|
|
|
</section>
|
|
|
<!-- 弹框 -->
|
|
@@ -141,21 +175,27 @@ export default {
|
|
|
userNames: localStorage.getItem('realname'),
|
|
|
taskId: Number(this.$route.query.id), // 任务id
|
|
|
stColors: ['#409EFF', '#07BCA4', '#F56C6C', '#07BCA4'],
|
|
|
- dialog_launchTestInfoDOS: false, // 打回弹窗
|
|
|
+ dialog_testData: false, // 打回弹窗
|
|
|
CallBackTheReason: '', // 打回原因
|
|
|
CallBackStatus: '', // 打回状态
|
|
|
CallBackId: '', // 打回id
|
|
|
titName: '', // 打回title
|
|
|
Str: '', // 打回操作名称
|
|
|
requireName: '', // 归属需求name
|
|
|
- launchTestInfoDOS: [], // 提测信息
|
|
|
+ testData: [], // 提测信息
|
|
|
testPages: { // 提测分页
|
|
|
curIndex: 1,
|
|
|
pageSize: 5,
|
|
|
total: 0
|
|
|
},
|
|
|
- dailyTestReports: [], // 日报信息
|
|
|
- DailyPages: { // 提测分页
|
|
|
+ dailyData: [], // 日报信息
|
|
|
+ dailyPages: { // 提测分页
|
|
|
+ curIndex: 1,
|
|
|
+ pageSize: 5,
|
|
|
+ total: 0
|
|
|
+ },
|
|
|
+ clientData: [], // 准出信息
|
|
|
+ clientPages: {// 准出分页
|
|
|
curIndex: 1,
|
|
|
pageSize: 5,
|
|
|
total: 0
|
|
@@ -167,16 +207,34 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getTest()
|
|
|
+ this.getDaily()
|
|
|
+ this.getClient()
|
|
|
},
|
|
|
methods: {
|
|
|
async getTest() { // 获取提测
|
|
|
const params = { taskId: this.taskId, curIndex: this.testPages.curIndex, pageSize: this.testPages.pageSize }
|
|
|
const res = await launchTest(params)
|
|
|
if (res.code === 200) {
|
|
|
- this.launchTestInfoDOS = res.data.list
|
|
|
+ this.testData = res.data.list
|
|
|
this.testPages.total = res.data.total
|
|
|
}
|
|
|
},
|
|
|
+ async getDaily() { // 获取日报
|
|
|
+ const params = { taskId: this.taskId, curIndex: this.dailyPages.curIndex, pageSize: this.dailyPages.pageSize }
|
|
|
+ const res = await dailyReport(params)
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.dailyData = res.data.list
|
|
|
+ this.dailyPages.total = res.data.total
|
|
|
+ }
|
|
|
+ },
|
|
|
+ async getClient() { // 获取准出
|
|
|
+ const params = { taskId: this.taskId, curIndex: this.clientPages.curIndex, pageSize: this.clientPages.pageSize }
|
|
|
+ const res = await projectTestReport(params)
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.clientData = res.data.list
|
|
|
+ this.clientPages.total = res.data.total
|
|
|
+ }
|
|
|
+ },
|
|
|
testSizeChange(e) { // 提测分页
|
|
|
this.testPages.pageSize = e
|
|
|
this.getTest()
|
|
@@ -185,8 +243,24 @@ export default {
|
|
|
this.testPages.curIndex = e
|
|
|
this.getTest()
|
|
|
},
|
|
|
+ dailySizeChange(e) { // 日报分页
|
|
|
+ this.dailyPages.pageSize = e
|
|
|
+ this.getDaily()
|
|
|
+ },
|
|
|
+ dailyCurrentChange(e) { // 日报分页
|
|
|
+ this.dailyPages.curIndex = e
|
|
|
+ this.getDaily()
|
|
|
+ },
|
|
|
+ clientSizeChange(e) { // 准出分页
|
|
|
+ this.clientPages.pageSize = e
|
|
|
+ this.getClient()
|
|
|
+ },
|
|
|
+ clientCurrentChange(e) { // 准出分页
|
|
|
+ this.clientPages.curIndex = e
|
|
|
+ this.getClient()
|
|
|
+ },
|
|
|
async passOrBackSend() { // 提测打回
|
|
|
- this.dialog_launchTestInfoDOS = false
|
|
|
+ this.dialog_testData = false
|
|
|
const launchTestInfo = { status: this.CallBackStatus, id: this.CallBackId }
|
|
|
const userData = { id: '', ename: this.userInformation, name: this.userNames }
|
|
|
const objData = { launchTestInfo: launchTestInfo, user: userData }
|
|
@@ -206,7 +280,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
endDialog() { // 结束对话框
|
|
|
- this.dialog_launchTestInfoDOS = false
|
|
|
+ this.dialog_testData = false
|
|
|
this.$message({ type: 'warning', message: '已取消' })
|
|
|
},
|
|
|
toReportView(ele, index) { // 进入报告详情页
|
|
@@ -237,12 +311,12 @@ export default {
|
|
|
this.CallBackId = ele
|
|
|
switch (e) {
|
|
|
case 1:
|
|
|
- this.dialog_launchTestInfoDOS = true
|
|
|
+ this.dialog_testData = true
|
|
|
this.titName = '提测确认'
|
|
|
this.Str = '通过'
|
|
|
break
|
|
|
case 2:
|
|
|
- this.dialog_launchTestInfoDOS = true
|
|
|
+ this.dialog_testData = true
|
|
|
this.titName = '提测确认'
|
|
|
this.Str = '打回'
|
|
|
break
|
|
@@ -254,7 +328,7 @@ export default {
|
|
|
})
|
|
|
break
|
|
|
case 4:
|
|
|
- this.dialog_launchTestInfoDOS = true
|
|
|
+ this.dialog_testData = true
|
|
|
this.titName = '删除确认'
|
|
|
this.Str = '删除'
|
|
|
break
|
|
@@ -279,6 +353,7 @@ export default {
|
|
|
@import '@/styles/detail-pages.scss';
|
|
|
.main-section {
|
|
|
@include main-section;
|
|
|
+ overflow: auto;
|
|
|
.detail-info {
|
|
|
padding: 0 34px 20px 34px;
|
|
|
}
|