diff --git a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue
index 03371aea7..86c2333eb 100644
--- a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue
+++ b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue
@@ -79,7 +79,7 @@
{{$t('SynchronousReportLibrary')}}
-
+
{{$t('CompulsoryWithdrawal')}}
@@ -104,7 +104,7 @@
{{$t('submit')}}
-
+
@@ -479,6 +479,82 @@ export default {
})
}
},
+ // 退回
+ returnData() {
+ let _array = []
+ this.selectedRowKeysValue.forEach((item, index) => {
+ _array.push(item.id)
+ })
+ let _this = this
+ let param = {ids: _array.join(',')}
+ axios({
+ url: '/jero-boot/params/collectManifest/back',
+ method: 'post',
+ data: param,
+ transformRequest: [function (data) {
+ let ret = ''
+ for (let it in data) {
+ ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
+ }
+ return ret
+ }],
+ headers: {
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ 'X-Access-Token':_this.token
+ }
+ })
+ .then( (res) =>{
+ console.log(res)
+ if (res.data.success) {
+ _this.$message.success(res.data.result)
+ _this.getTableList()
+ _this.selectedRowKeysValue=[]
+ }else{
+ _this.$message.warning(_this.$t('operationFailed'))
+ }
+ })
+ .catch( (error) =>{
+ console.log(error);
+ });
+ },
+ // 强制撤回
+ compulsoryWithdrawal() {
+ let _array = []
+ this.selectedRowKeysValue.forEach((item, index) => {
+ _array.push(item.id)
+ })
+ let _this = this
+ let param = {ids: _array.join(',')}
+ axios({
+ url: '/jero-boot/params/collectManifest/withdraw',
+ method: 'post',
+ data: param,
+ transformRequest: [function (data) {
+ let ret = ''
+ for (let it in data) {
+ ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
+ }
+ return ret
+ }],
+ headers: {
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ 'X-Access-Token':_this.token
+ }
+ })
+ .then( (res) =>{
+ console.log(res)
+ if (res.data.success) {
+ _this.$message.success(res.data.result)
+ _this.getTableList()
+ _this.selectedRowKeysValue=[]
+ }else{
+ _this.$message.warning(_this.$t('operationFailed'))
+ }
+ })
+ .catch( (error) =>{
+ console.log(error);
+ });
+ },
handleModule() {
},