|
|
@ -35,7 +35,7 @@ |
|
|
|
<th> |
|
|
|
<th> |
|
|
|
<span>{{$t('Update Time')}}</span> |
|
|
|
<span>{{$t('Update Time')}}</span> |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th width="80"> |
|
|
|
<th width="120"> |
|
|
|
<span>{{$t('Operation')}}</span> |
|
|
|
<span>{{$t('Operation')}}</span> |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
@ -98,6 +98,28 @@ |
|
|
|
@click="_offline(item)" |
|
|
|
@click="_offline(item)" |
|
|
|
v-if="item.releaseState === 'ONLINE'"> |
|
|
|
v-if="item.releaseState === 'ONLINE'"> |
|
|
|
</x-button> |
|
|
|
</x-button> |
|
|
|
|
|
|
|
<x-poptip |
|
|
|
|
|
|
|
:ref="'poptip-delete-' + $index" |
|
|
|
|
|
|
|
placement="bottom-end" |
|
|
|
|
|
|
|
width="90"> |
|
|
|
|
|
|
|
<p>{{$t('Delete?')}}</p> |
|
|
|
|
|
|
|
<div style="text-align: right; margin: 0;padding-top: 4px;"> |
|
|
|
|
|
|
|
<x-button type="text" size="xsmall" shape="circle" @click="_closeDelete($index)">{{$t('Cancel')}}</x-button> |
|
|
|
|
|
|
|
<x-button type="primary" size="xsmall" shape="circle" @click="_delete(item,$index)">{{$t('Confirm')}}</x-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<template slot="reference"> |
|
|
|
|
|
|
|
<x-button |
|
|
|
|
|
|
|
icon="iconfont icon-shanchu" |
|
|
|
|
|
|
|
type="error" |
|
|
|
|
|
|
|
shape="circle" |
|
|
|
|
|
|
|
size="xsmall" |
|
|
|
|
|
|
|
:disabled="item.releaseState === 'ONLINE'" |
|
|
|
|
|
|
|
data-toggle="tooltip" |
|
|
|
|
|
|
|
:title="$t('delete')" |
|
|
|
|
|
|
|
v-ps="['GENERAL_USER']"> |
|
|
|
|
|
|
|
</x-button> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</x-poptip> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</table> |
|
|
@ -135,7 +157,28 @@ |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
...mapActions('dag', ['getScheduleList', 'scheduleOffline', 'scheduleOnline', 'getReceiver']), |
|
|
|
...mapActions('dag', ['getScheduleList', 'scheduleOffline', 'scheduleOnline', 'getReceiver','deleteTiming']), |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* delete |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
_delete (item, i) { |
|
|
|
|
|
|
|
this.deleteTiming({ |
|
|
|
|
|
|
|
scheduleId: item.id |
|
|
|
|
|
|
|
}).then(res => { |
|
|
|
|
|
|
|
this.$refs[`poptip-delete-${i}`][0].doClose() |
|
|
|
|
|
|
|
this.$message.success(res.msg) |
|
|
|
|
|
|
|
this.$router.push({ name: 'projects-definition-list' }) |
|
|
|
|
|
|
|
}).catch(e => { |
|
|
|
|
|
|
|
this.$refs[`poptip-delete-${i}`][0].doClose() |
|
|
|
|
|
|
|
this.$message.error(e.msg || '') |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Close the delete layer |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
_closeDelete (i) { |
|
|
|
|
|
|
|
this.$refs[`poptip-delete-${i}`][0].doClose() |
|
|
|
|
|
|
|
}, |
|
|
|
/** |
|
|
|
/** |
|
|
|
* return state |
|
|
|
* return state |
|
|
|
*/ |
|
|
|
*/ |
|
|
|