|
@@ -125,6 +125,7 @@
|
|
|
:class="{"btn-info active": taskQueryParam.processStatusQuery == "RUNNING"}"
|
|
:class="{"btn-info active": taskQueryParam.processStatusQuery == "RUNNING"}"
|
|
|
@click="choiceStatus('RUNNING')"
|
|
@click="choiceStatus('RUNNING')"
|
|
|
>{{ $t("lang.CopyTaskWorkflow.haveInHand") }}</button>
|
|
>{{ $t("lang.CopyTaskWorkflow.haveInHand") }}</button>
|
|
|
|
|
+ <a-button type="link" @click="completeApproval">全部完成审阅</a-button>
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -192,6 +193,7 @@ export default {
|
|
|
|
|
|
|
|
components: {
|
|
components: {
|
|
|
},
|
|
},
|
|
|
|
|
+ emits:['refreshStasticCount'],
|
|
|
data: function () {
|
|
data: function () {
|
|
|
return {
|
|
return {
|
|
|
defaultStartAfter: '', //默认开始日期
|
|
defaultStartAfter: '', //默认开始日期
|
|
@@ -216,7 +218,6 @@ export default {
|
|
|
loading: false,
|
|
loading: false,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
mounted: function () {
|
|
mounted: function () {
|
|
|
this.init();
|
|
this.init();
|
|
|
},
|
|
},
|
|
@@ -521,7 +522,37 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ // 全部完成审阅
|
|
|
|
|
+ completeApproval: function () {
|
|
|
|
|
+ const _self = this;
|
|
|
|
|
+ _self.loading = false;
|
|
|
|
|
+ $.ajax({
|
|
|
|
|
+ url: Common.getApiURL('WorkflowResource/completeCopyTasks'),
|
|
|
|
|
+ type: 'post',
|
|
|
|
|
+ dataType: 'json',
|
|
|
|
|
+ contentType: 'application/json',
|
|
|
|
|
+ beforeSend: function (request) {
|
|
|
|
|
+ Common.addTokenToRequest(request);
|
|
|
|
|
+ },
|
|
|
|
|
+ success: function (data) {
|
|
|
|
|
+ _self.loading = false;
|
|
|
|
|
+ if(data.errorCode === 0){
|
|
|
|
|
+ _self.$emit('refreshStasticCount');
|
|
|
|
|
+ _self.searchCopyTask();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ Notify.error('错误', data.errorMessage, false);
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
|
|
|
+ _self.loading = false;
|
|
|
|
|
+ Common.processException(
|
|
|
|
|
+ XMLHttpRequest,
|
|
|
|
|
+ textStatus,
|
|
|
|
|
+ errorThrown,
|
|
|
|
|
+ );
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|