|
@@ -58,7 +58,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-select
|
|
|
v-model="scope.row.status"
|
|
|
- :class="'status'+scope.row.status"
|
|
|
+ :class="{'status0':scope.row.status===0,'status1':scope.row.status > 0 && scope.row.status <100,'status2':scope.row.status===100,}"
|
|
|
class="btns"
|
|
|
size="mini"
|
|
|
@change="changeStatus(scope.row)"
|
|
@@ -89,12 +89,6 @@
|
|
|
<DailyReport v-if="dialogDailyReport" ref="DailyReport" />
|
|
|
<ClientReport v-if="dialogClientReport" ref="ClientReport" />
|
|
|
<taskDialog v-if="showTaskDialog" :show.sync="showTaskDialog" :task-id="taskId.id" :status-name="taskId.statusString" @getList="get_allTask" />
|
|
|
- <normal-dialog :show-dialog.sync="statusDialog" :title="'状态变更:已上线'" :width="'50%'" @confirm="confirmStatus()">
|
|
|
- <div class="dialog-change-status">
|
|
|
- <span>实际上线时间:</span>
|
|
|
- <el-date-picker v-model="changeStatusDate" type="date" style="width:100%;" placeholder="选择日期" format="yyyy-MM-dd HH:mm:ss" />
|
|
|
- </div>
|
|
|
- </normal-dialog>
|
|
|
<!-- 批量排期 -->
|
|
|
<modify-schedule
|
|
|
v-if="visibleSchedule"
|
|
@@ -116,11 +110,9 @@ import { taskUpdate } from '@/api/projectViewDetails'
|
|
|
import { configShowTaskEnum } from '@/api/taskIndex'
|
|
|
import scheduleList from './scheduleList'
|
|
|
import modifySchedule from './modifySchedule'
|
|
|
-import normalDialog from '@/components/dialog/normalDialog'
|
|
|
import taskDialog from '@/views/projectManage/taskList/dialog/taskDialog' // 任务状态修改(已上线/已提测/已准出)
|
|
|
export default {
|
|
|
components: {
|
|
|
- normalDialog,
|
|
|
TestReport,
|
|
|
DailyReport,
|
|
|
ClientReport,
|
|
@@ -147,7 +139,6 @@ export default {
|
|
|
dialogTestReport: false, // 提测
|
|
|
dialogDailyReport: false, // 日报
|
|
|
dialogClientReport: false, // 准出
|
|
|
- statusDialog: false, // 修改状态弹框
|
|
|
changeStatusDate: null, // 状态改变时间
|
|
|
nowChangeTask: null, // 当前正在改变的任务对象
|
|
|
taskId: '', // 将要修改状态的任务id
|
|
@@ -192,7 +183,7 @@ export default {
|
|
|
isEx ? this.expandArr = this.all_task.map(item => item.id) : this.expandArr = []
|
|
|
},
|
|
|
async changeStatus(e) { // 状态改变
|
|
|
- if (e.status === 2 || e.status === 4 || e.status === 5) {
|
|
|
+ if (e.status === 70 || e.status === 90 || e.status === 100) {
|
|
|
this.taskId = e
|
|
|
this.allStatus.map(item => {
|
|
|
item.code === e.status ? this.taskId.statusString = item.msg : ''
|
|
@@ -209,7 +200,7 @@ export default {
|
|
|
const taskInfoDO = e
|
|
|
const resTask = await taskUpdate({ taskInfoDO, user })
|
|
|
if (resTask.code === 200) {
|
|
|
- this.$message({ message: resTask.msg, type: 'success', offset: 150 })
|
|
|
+ this.$message({ message: '修改成功', type: 'success', offset: 150 })
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -219,7 +210,7 @@ export default {
|
|
|
taskInfoDO.onlineRealTime = this.changeStatusDate
|
|
|
const resTask = await taskUpdate({ taskInfoDO, user })
|
|
|
if (resTask.code === 200) {
|
|
|
- this.$message({ message: resTask.msg, type: 'success', offset: 150 })
|
|
|
+ this.$message({ message: '修改成功', type: 'success', offset: 150 })
|
|
|
}
|
|
|
},
|
|
|
handleSelectionChange(val) { // 任务列表删选操作
|
|
@@ -347,10 +338,10 @@ export default {
|
|
|
.status0 {
|
|
|
@include setStatus(#409EFF)
|
|
|
}
|
|
|
-.status1, .status2, .status3, .status4{
|
|
|
+.status1{
|
|
|
@include setStatus(#FF8952)
|
|
|
}
|
|
|
-.status5 {
|
|
|
+.status2 {
|
|
|
@include setStatus(#7ED321)
|
|
|
}
|
|
|
.expand i {
|