|
@@ -102,32 +102,9 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
|
</el-table>
|
|
- <div class="bottom-detail">
|
|
|
|
- <el-row>交付日期:{{ scheduleDetail.endTime }}</el-row>
|
|
|
|
- <el-row>排期:{{ scheduleDetail.startTime | handlerDate }} ~ {{ scheduleDetail.endTime | handlerDate }} <span style="color: #999999; font-size: 14px;">{{ '(' + scheduleDetail.scheduleTimeAnnotation ? '' : scheduleDetail.scheduleTimeAnnotation.所有 + ')' }}</span></el-row>
|
|
|
|
- <el-row>预计上线版本:
|
|
|
|
- <span v-if="scheduleDetail.preOnlineVersion && scheduleDetail.preOnlineVersion.length > 0">
|
|
|
|
- <span v-for="item in scheduleDetail.preOnlineVersion" :key="item">{{ item }}</span>
|
|
|
|
- </span>
|
|
|
|
- <el-tooltip class="item" effect="dark" content="版本有问题?点击触发重新计算!" placement="right">
|
|
|
|
- <svg-icon :icon-class="icon_problem ? 'problem1' : 'problem'" style="cursor: pointer;" @mouseenter="icon_problem = true" @mouseleave="icon_problem = false" @click="taskUpdatePreOnlineVersion" />
|
|
|
|
- </el-tooltip>
|
|
|
|
- </el-row>
|
|
|
|
- <div class="detail-info border-top">
|
|
|
|
- <el-divider />
|
|
|
|
- <el-form ref="form_query" :inline="true" :model="form_query" class="Layout_space_start" label-position="left" label-width="140px">
|
|
|
|
- <el-form-item v-if="brdPassRealTime" label="实际提测时间">
|
|
|
|
- <el-date-picker v-model="form_query.brdPassRealTime" type="date" :clearable="false" placeholder="请选择" format="yyyy.MM.dd" value-format="yyyy.MM.dd" style="width: 100%;" size="small" @change="setChangeArea(2)" />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item v-if="prdPassRealTime" label="实际准出时间:">
|
|
|
|
- <el-date-picker v-model="form_query.prdPassRealTime" type="date" :clearable="false" placeholder="请选择" format="yyyy.MM.dd" value-format="yyyy.MM.dd" style="width: 100%;" size="small" @change="setChangeArea(2)" />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item v-if="techInRealTime" label="实际上线时间:">
|
|
|
|
- <el-date-picker v-model="form_query.techInRealTime" type="date" :clearable="false" placeholder="请选择" format="yyyy.MM.dd" value-format="yyyy.MM.dd" style="width: 100%;" size="small" @change="setChangeArea(2)" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <!-- 交付日期 排期 预计上线版本 -->
|
|
|
|
+ <online-date :data="scheduleDetail" @update="listByTask(taskId)" />
|
|
|
|
+ <!-- 交付日期 排期 预计上线版本 -->
|
|
<modify-schedule
|
|
<modify-schedule
|
|
v-if="visibleSchedule"
|
|
v-if="visibleSchedule"
|
|
:visible.sync="visibleSchedule"
|
|
:visible.sync="visibleSchedule"
|
|
@@ -140,23 +117,18 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import { taskUpdatePreOnlineVersion } from '@/api/taskIndex.js'
|
|
|
|
import { EncryptId } from '@/utils/crypto-js.js'
|
|
import { EncryptId } from '@/utils/crypto-js.js'
|
|
import { mapGetters } from 'vuex'
|
|
import { mapGetters } from 'vuex'
|
|
import Sortable from 'sortablejs'
|
|
import Sortable from 'sortablejs'
|
|
-import moment from 'moment'
|
|
|
|
import 'moment/locale/zh-cn'
|
|
import 'moment/locale/zh-cn'
|
|
import { listByTask, sortForTask } from '@/api/projectViewDetails'
|
|
import { listByTask, sortForTask } from '@/api/projectViewDetails'
|
|
import modifySchedule from '@/views/projectManage/projectList/components/modifySchedule'
|
|
import modifySchedule from '@/views/projectManage/projectList/components/modifySchedule'
|
|
import move from '@/assets/麻将@2x.png'
|
|
import move from '@/assets/麻将@2x.png'
|
|
|
|
+import onlineDate from '@/views/projectManage/components/onlineTime.vue'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
- modifySchedule
|
|
|
|
- },
|
|
|
|
- filters: {
|
|
|
|
- handlerDate(val) {
|
|
|
|
- return val ? moment(val).format('YYYY-MM-DD') : ''
|
|
|
|
- }
|
|
|
|
|
|
+ modifySchedule,
|
|
|
|
+ onlineDate
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
id: {
|
|
id: {
|
|
@@ -184,7 +156,6 @@ export default {
|
|
return {
|
|
return {
|
|
taskId: '',
|
|
taskId: '',
|
|
move: move,
|
|
move: move,
|
|
- icon_problem: false,
|
|
|
|
scheduleList: [],
|
|
scheduleList: [],
|
|
scheduleDetail: {},
|
|
scheduleDetail: {},
|
|
visibleSchedule: false,
|
|
visibleSchedule: false,
|
|
@@ -236,17 +207,6 @@ export default {
|
|
this.$message({ message: '移动成功', type: 'success', duration: 1000, offset: 150 })
|
|
this.$message({ message: '移动成功', type: 'success', duration: 1000, offset: 150 })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- async taskUpdatePreOnlineVersion() {
|
|
|
|
- const res = await taskUpdatePreOnlineVersion(this.taskId)
|
|
|
|
- if (res.code === 200) {
|
|
|
|
- this.listByTask(this.taskId)
|
|
|
|
- this.$message({ message: '预计上线版本重新计算中,请稍后刷新页面查看!', type: 'success', offset: 150 })
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- // getType(value) {
|
|
|
|
- // const res = this.taskScheduleEvent.find(item => item.code === value) || {}
|
|
|
|
- // return res.msg
|
|
|
|
- // },
|
|
|
|
async listByTask(id) { // 获取排期列表
|
|
async listByTask(id) { // 获取排期列表
|
|
this.taskId = id
|
|
this.taskId = id
|
|
const res = await listByTask(id)
|
|
const res = await listByTask(id)
|
|
@@ -316,15 +276,6 @@ export default {
|
|
background: #ffffff !important;
|
|
background: #ffffff !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-.bottom-detail {
|
|
|
|
- font-size: 14px;
|
|
|
|
- width: calc(100% - 40px);
|
|
|
|
- margin: 0 20px;
|
|
|
|
- padding: 20px 0;
|
|
|
|
- :nth-child(2) {
|
|
|
|
- margin: 10px 0;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
.sortable-tip {
|
|
.sortable-tip {
|
|
height: 26px;
|
|
height: 26px;
|
|
width: 15px;
|
|
width: 15px;
|