guoyujia 5 月之前
父節點
當前提交
cdf3cf2980
共有 2 個文件被更改,包括 7 次插入15 次删除
  1. 6 4
      src/layout/components/TagsView/index.vue
  2. 1 11
      src/store/modules/innerOutsourceOrder.js

+ 6 - 4
src/layout/components/TagsView/index.vue

@@ -196,21 +196,23 @@ function refreshSelectedTag(view) {
   }
 }
 function closeSelectedTag(view) {
+  console.log(view.fullPath)
   //关闭批次查询页面时清空批次查询页面store
-  if ((view.fullPath = "/Production/lot/:productionPlanNo/:lineNumber")) {
+  if ((view.fullPath == "/Production/lot/:productionPlanNo/:lineNumber")) {
     lotStore().setlotQueryParams(null);
   }
-  if ((view.fullPath = "/Production/daywork")) {
+  if ((view.fullPath == "/Production/daywork")) {
     dayworkStore().setProductionPlanNoQueryParams(null);
     dayworkStore().setProductDescriptionQueryParams(null);
     dayworkStore().setDeptIdQueryParams(null);
     dayworkStore().setEquipmentDetailCodeQueryParams(null);
     dayworkStore().setProcessIdQueryParams(null);
   }
-  if ((view.fullPath = "/Production/furnaceInfo")) {
+  if ((view.fullPath == "/Production/furnaceInfo")) {
     furnaceStore().setlotQueryParams(null);
   }
-  if ((view.fullPath = "/outsourced/innerOutsource")) {
+  if ((view.fullPath == "/outsourced/innerOutsource")) {
+    
     innerOutsourceStore().setInnerOutsourceQueryParams(null);
   }
   proxy.$tab.closePage(view).then(({ visitedViews }) => {

+ 1 - 11
src/store/modules/innerOutsourceOrder.js

@@ -7,17 +7,7 @@ const innerOutsourceStore = defineStore('innerOutsourceOrder', {
     setInnerOutsourceQueryParams(value) {
       this.innerOutsourceQueryParams = value;
     },
-    checkClean(obj) {
-      // console.log(obj.name)
-      if (obj.name == '') {
-        this.innerOutsourceQueryParams = null
-      }
-    },
-    allClean() {
-      this.innerOutsourceQueryParams = null
-    },
-    otherClean(obj) {
-    }
+
   }
 })