|
|
|
@ -95,9 +95,9 @@
|
|
|
|
|
shape="circle" |
|
|
|
|
size="xsmall" |
|
|
|
|
data-toggle="tooltip" |
|
|
|
|
:title="item.state === 'STOP' ? $t('Recovery Stop') : $t('Stop')" |
|
|
|
|
:title="item.state === 'STOP' ? $t('Recovery Suspend') : $t('Stop')" |
|
|
|
|
@click="_stop(item,$index)" |
|
|
|
|
icon="iconfont icon-zanting1" |
|
|
|
|
:icon="item.state === 'STOP' ? 'iconfont icon-ai06' : 'iconfont icon-zanting'" |
|
|
|
|
:disabled="item.state !== 'RUNNING_EXEUTION' && item.state != 'STOP'"></x-button> |
|
|
|
|
<x-button type="warning" |
|
|
|
|
shape="circle" |
|
|
|
@ -105,7 +105,7 @@
|
|
|
|
|
data-toggle="tooltip" |
|
|
|
|
:title="item.state === 'PAUSE' ? $t('Recovery Suspend') : $t('Pause')" |
|
|
|
|
@click="_suspend(item,$index)" |
|
|
|
|
:icon="item.state === 'PAUSE' ? 'iconfont icon-ai06' : 'iconfont icon-zanting'" |
|
|
|
|
:icon="item.state === 'PAUSE' ? 'iconfont icon-ai06' : 'iconfont icon-zanting1'" |
|
|
|
|
:disabled="item.state !== 'RUNNING_EXEUTION' && item.state !== 'PAUSE'"></x-button> |
|
|
|
|
<x-poptip |
|
|
|
|
:ref="'poptip-delete-' + $index" |
|
|
|
@ -155,7 +155,7 @@
|
|
|
|
|
shape="circle" |
|
|
|
|
size="xsmall" |
|
|
|
|
disabled="true"> |
|
|
|
|
{{item.count}}s |
|
|
|
|
{{item.count}} |
|
|
|
|
</x-button> |
|
|
|
|
<x-button |
|
|
|
|
v-show="buttonType !== 'run'" |
|
|
|
@ -173,7 +173,7 @@
|
|
|
|
|
shape="circle" |
|
|
|
|
size="xsmall" |
|
|
|
|
disabled="true"> |
|
|
|
|
{{item.count}}s |
|
|
|
|
{{item.count}} |
|
|
|
|
</x-button> |
|
|
|
|
<x-button |
|
|
|
|
v-show="buttonType !== 'store'" |
|
|
|
@ -185,26 +185,26 @@
|
|
|
|
|
</x-button> |
|
|
|
|
|
|
|
|
|
<!--Stop--> |
|
|
|
|
<x-button |
|
|
|
|
type="error" |
|
|
|
|
shape="circle" |
|
|
|
|
size="xsmall" |
|
|
|
|
icon="iconfont icon-zanting1" |
|
|
|
|
disabled="true"> |
|
|
|
|
</x-button> |
|
|
|
|
<!--<x-button--> |
|
|
|
|
<!--type="error"--> |
|
|
|
|
<!--shape="circle"--> |
|
|
|
|
<!--size="xsmall"--> |
|
|
|
|
<!--icon="iconfont icon-zanting1"--> |
|
|
|
|
<!--disabled="true">--> |
|
|
|
|
<!--</x-button>--> |
|
|
|
|
|
|
|
|
|
<!--倒计时 => Recovery Suspend/Pause--> |
|
|
|
|
<x-button |
|
|
|
|
v-show="item.state === 'PAUSE' && buttonType === 'suspend'" |
|
|
|
|
v-show="(item.state === 'PAUSE' || item.state == 'STOP') && buttonType === 'suspend'" |
|
|
|
|
type="warning" |
|
|
|
|
shape="circle" |
|
|
|
|
size="xsmall" |
|
|
|
|
disabled="true"> |
|
|
|
|
{{item.count}}s |
|
|
|
|
{{item.count}} |
|
|
|
|
</x-button> |
|
|
|
|
<!--Recovery Suspend--> |
|
|
|
|
<x-button |
|
|
|
|
v-show="item.state === 'PAUSE' && buttonType !== 'suspend'" |
|
|
|
|
v-show="(item.state === 'PAUSE' || item.state == 'STOP') && buttonType !== 'suspend'" |
|
|
|
|
type="warning" |
|
|
|
|
shape="circle" |
|
|
|
|
size="xsmall" |
|
|
|
@ -217,6 +217,15 @@
|
|
|
|
|
type="warning" |
|
|
|
|
shape="circle" |
|
|
|
|
size="xsmall" |
|
|
|
|
icon="iconfont icon-zanting1" |
|
|
|
|
disabled="true"> |
|
|
|
|
</x-button> |
|
|
|
|
<!--Stop--> |
|
|
|
|
<x-button |
|
|
|
|
v-show="item.state !== 'STOP'" |
|
|
|
|
type="warning" |
|
|
|
|
shape="circle" |
|
|
|
|
size="xsmall" |
|
|
|
|
icon="iconfont icon-zanting" |
|
|
|
|
disabled="true"> |
|
|
|
|
</x-button> |
|
|
|
@ -392,7 +401,7 @@
|
|
|
|
|
} else { |
|
|
|
|
this._upExecutorsState({ |
|
|
|
|
processInstanceId: item.id, |
|
|
|
|
executeType: item.state === 'PAUSE' ? 'RECOVER_SUSPENDED_PROCESS' : 'PAUSE' |
|
|
|
|
executeType: 'PAUSE' |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -444,7 +453,7 @@
|
|
|
|
|
if (data.length) { |
|
|
|
|
_.map(data, v => { |
|
|
|
|
v.disabled = true |
|
|
|
|
v.count = 10 |
|
|
|
|
v.count = 9 |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
return data |
|
|
|
|