diff --git a/src/views/modules/base/smartExcel/cpts/excel-summary.vue b/src/views/modules/base/smartExcel/cpts/excel-summary.vue
index a1ee0861a..fde8c4140 100644
--- a/src/views/modules/base/smartExcel/cpts/excel-summary.vue
+++ b/src/views/modules/base/smartExcel/cpts/excel-summary.vue
@@ -20,7 +20,7 @@
-
+
@@ -36,7 +36,8 @@ export default {
],
workbookId:'',
sheetTotal:false,
- infoObj:{}
+ infoObj:{},
+ mergeObj:null//用于传递subworkbookId与workbookId
};
},
created() {
@@ -80,12 +81,13 @@ export default {
this.$emit('close')
},
handleClickShowView(val){
- const { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction } = val;
+ const { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction,subWorkBookId,workBookId } = val;
this.$store.state.sidebarFold = true;
this.showView = true;
this.sheetTotal = false
this.workbookId = val.taskId;
- this.infoObj = { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction };
+ this.infoObj = { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction};
+ this.mergeObj = {subWorkBookId,workBookId }
},
handleClickShowViewAll(val){
this.$store.state.sidebarFold = true;
diff --git a/src/views/modules/base/smartExcel/cpts/excel-view.vue b/src/views/modules/base/smartExcel/cpts/excel-view.vue
index 4c1e4fda3..461752afe 100644
--- a/src/views/modules/base/smartExcel/cpts/excel-view.vue
+++ b/src/views/modules/base/smartExcel/cpts/excel-view.vue
@@ -75,6 +75,10 @@ export default {
infoObj:{
type:Object,
default:()=>{}
+ },
+ mergeObj:{
+ type:Object,
+ default:()=>{}
}
},
computed: {
@@ -202,7 +206,10 @@ export default {
let parm = {
...this.infoObj
}
- parm.taskState = val
+ parm.taskState = val;
+ if(val === 'archived'){
+ this.workbookMerge()
+ }
const {data,code,msg} = await requestPost(url,parm)
if(code === 0){
this.$message.success('操作成功')
@@ -210,6 +217,18 @@ export default {
console.log(msg);
}
},
+ async workbookMerge(){
+ const url = '/actual/base/luckySheet/workbook/merge'
+ let parm = {
+ sourceWorkbookId:this.mergeObj.subWorkBookId,
+ targetWorkbookId:this.mergeObj.workBookId
+ }
+ const {data,code,msg} = await requestPost(url,parm)
+ if(code === 0){
+ console.log('合并成功');
+ }
+ },
+
},
components: {
excelUploadData