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