Browse Source

我的图库中平衡表图表删除调用平衡表中的接口

jwyu 5 months ago
parent
commit
eabc5a8b10
1 changed files with 4 additions and 7 deletions
  1. 4 7
      src/views/mychart_manage/components/chartDetailDia.vue

+ 4 - 7
src/views/mychart_manage/components/chartDetailDia.vue

@@ -1179,12 +1179,9 @@ export default {
     },
 
     /* 删除方法 */
-    delHandle(ChartInfoId) {
-      dataBaseInterface
-        .delChartClassify({
-          ChartInfoId,
-        })
-        .then((res) => {
+    async delHandle(ChartInfoId) {
+      const res=this.chartInfo.Source==11?await sheetInterface.delBalanceChart({ChartInfoId}):await dataBaseInterface.delChartClassify({ChartInfoId})
+
           if (res.Ret !== 200) return;
           this.$message.success(res.Msg);
           sessionStorage.removeItem('myChartbeforeOptions');
@@ -1199,7 +1196,7 @@ export default {
 
           // //只有一个图表且删除了 则展示缺省
           this.isNoChart = !this.allChart.length ? true : false;
-        });
+        
     },
 
     /* 转base64 */