|
@@ -104,8 +104,9 @@
|
|
|
<modify-schedule
|
|
|
v-if="visibleSchedule"
|
|
|
:visible.sync="visibleSchedule"
|
|
|
- :detail-data="updateSchedule.data"
|
|
|
- :title="'修改排期'"
|
|
|
+ :is-delete.sync="isDelete"
|
|
|
+ :detail-data="nowDetailData"
|
|
|
+ :title="DialogTitle"
|
|
|
@update="queryTeamWorkListByTime(calendarView)"
|
|
|
/>
|
|
|
<!-- 排期操作弹框 -->
|
|
@@ -171,6 +172,8 @@ export default {
|
|
|
visible: false,
|
|
|
data: null
|
|
|
},
|
|
|
+ DialogTitle: '新建排期', // 排期弹框标题
|
|
|
+ isDelete: false, // 删除排期操作
|
|
|
visibleSchedule: false, // 排期任务弹框
|
|
|
colorList: [
|
|
|
'rgba(11,160,188,1)', 'rgba(28,188,126,1)', 'rgba(240,187,39,1)', 'rgba(132,100,247 ,1)', 'rgba(73,92,197 ,1)',
|
|
@@ -307,13 +310,19 @@ export default {
|
|
|
if (data) {
|
|
|
this.nowDetailData = data
|
|
|
}
|
|
|
- this.$confirm('是否删除此日程', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- this.nowDetailData.origin === 0 ? this.deleteSchedule_0() : this.deleteSchedule_1()
|
|
|
- }).catch(() => {})
|
|
|
+ if (this.nowDetailData.origin === 0) {
|
|
|
+ this.DialogTitle = '删除排期'
|
|
|
+ this.isDelete = true
|
|
|
+ this.visibleSchedule = true
|
|
|
+ } else if (this.nowDetailData.origin === 1) {
|
|
|
+ this.$confirm('是否删除此日程', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.deleteSchedule_0()
|
|
|
+ }).catch(() => {})
|
|
|
+ }
|
|
|
},
|
|
|
async deleteSchedule_1() { // 删除日程
|
|
|
const res = await deleteSelfSchedule(this.nowDetailData.id)
|