yuyu
2023-08-03 ca9b5d4118f4c29119359503859fa953495496e9
src/view/index.vue
@@ -302,7 +302,7 @@
            k: 5,
            v: "过程检验",
            i: "font icon-shouye",
            u: ""
            u: "processInspection"
          }, {
            k: 6,
            v: "成品检验",
@@ -349,14 +349,15 @@
    methods: {
      addTab(ob) {
        if (ob.k == 0) this.activeBox = 0
        this.activeP = ob.k
        this.tabActive = ob.k
        this.activeP = ob.k  //0
        this.tabActive = ob.k  //0
        let num = -1;
        this.tabs.forEach((a, ai) => {
          if (ob.k == a.k) {
            num = a.k
          }
        })
        // 如果没有遍历到tabs里没有该ob对应的table,往tabs里面加入该ob
        if (num == -1) {
          this.tabs.push(ob)
        }