jwyu 5 månader sedan
förälder
incheckning
aa37cdccd5

+ 4 - 2
src/views/datasheet_manage/balanceSheetEdit.vue

@@ -41,7 +41,7 @@
               children: 'Children',
               multiple: true,
               emitPath: false,
-              checkStrictly: true,
+              checkStrictly: false,
             }"
             clearable
             :placeholder="$t('OnlineExcelPage.Co_editor')"
@@ -525,9 +525,11 @@ export default {
     },
 
     // 点击更新
-    updateHandle(){
+    async updateHandle(){
       if(this.updating) return
       this.updating=true
+      // 保存一次
+      await this.$refs.balanceTableRef.saveChildSheet()
       // 重新获取当前子表的数据
       this.$refs.balanceTableRef.getSheetDetail('refresh')
     },

+ 5 - 2
src/views/datasheet_manage/components/BalanceTable.vue

@@ -584,6 +584,8 @@ export default {
     },
     // 选择表格结束
     endSelection() {
+      // 只有添加图标弹窗弹起时有效
+      if(!this.isShowAddChart) return
       if(this.disabled) return
       console.log('结束选择');
       // console.log(this.selectedCells);
@@ -838,8 +840,9 @@ export default {
     async saveChildSheet(type){
       console.log('执行保存表格操作');
       const item=this.sheetOpts.filter(e=>e.ExcelInfoId===this.activeSheetId)[0]
-      console.log(item);
-      console.log(this.sheetOpts,this.activeSheetId);
+      // console.log(item);
+      // console.log(this.sheetOpts,this.activeSheetId);
+      if(!this.activeSheetId) return
       const params={
         ExcelInfoId:this.activeSheetId,
         ExcelName: item.ExcelName,

+ 4 - 0
src/views/datasheet_manage/sheetList.vue

@@ -1167,6 +1167,10 @@ export default {
       this.$message.success(this.$t('MsgPrompt.saved_msg') );
       this.cancelSaveOther();
       this.getTreeData();
+      if(this.sourceMap[this.$route.path]==5){
+        this.sheet_page=1
+        this.getPublicList();
+      }
     },
 
     /* 重绘右侧区域宽度 */