Browse Source

管理费用

caojunjie 2 years ago
parent
commit
e044d79084
1 changed files with 16 additions and 0 deletions
  1. 16 0
      src/views/costManagement/index.vue

+ 16 - 0
src/views/costManagement/index.vue

@@ -1010,6 +1010,14 @@ export default {
     //查询列数据
     getRow(data, list, add, i) {
       console.log(data, list, add)
+
+      for (let item in this.contentOption) {
+        for (let li in this.pushList) {
+          if (this.contentOption[item].label === this.pushList[li].label) {
+            this.contentOption.splice(item, 1)
+          }
+        }
+      }
       select(data).then((res) => {
         this.$refs.avatar.form = {}
         if (data.tableName === '费用管理详情') {
@@ -1073,6 +1081,14 @@ export default {
               this.contentOption = [...this.contentOption, ...dataTwo]
             }
             this.inDex = this.contentOption.length
+          }else {
+            for (let item in this.contentOption) {
+              for (let li in this.pushList) {
+                if (this.contentOption[item].label === this.pushList[li].label) {
+                  this.contentOption.splice(item, 1)
+                }
+              }
+            }
           }
           let data = {
             actId: 560,