caojunjie 2 gadi atpakaļ
vecāks
revīzija
1725255f7b
2 mainītis faili ar 18 papildinājumiem un 8 dzēšanām
  1. 3 0
      src/components/cUpload/index.vue
  2. 15 8
      src/views/costManagement/index.vue

+ 3 - 0
src/components/cUpload/index.vue

@@ -387,6 +387,9 @@ export default {
   watch:{
     dataList(newVla, oldVal){
       this.$emit("list", this.dataList);
+    },
+    list(newVla, oldVal){
+      this.dataList = this.list
     }
   },
   created() {

+ 15 - 8
src/views/costManagement/index.vue

@@ -452,14 +452,16 @@ export default {
         //   name:'立即修改',
         //   disabled:false,
         // },
+        //主页列表按钮
+        // {
+        //   type: 'warning',
+        //   size: 'mini',
+        //   icon: 'el-icon-upload2',
+        //   name: '导出',
+        //   disabled: false,
+        //   hasPermi: ['anpin:stockControl:export']
+        // },
         {
-          type: 'warning',
-          size: 'mini',
-          icon: 'el-icon-upload2',
-          name: '导出',
-          disabled: false,
-          hasPermi: ['anpin:stockControl:export']
-        }, {
           type: 'success',
           size: 'mini',
           icon: 'el-icon-c-scale-to-original',
@@ -913,6 +915,8 @@ export default {
         this.tableData = res.rows
         this.total = res.total
       })
+      this.tEnclosure = []
+      this.disabled = true
     },
     //查询列数据
     getRow(data, list, add, i) {
@@ -933,6 +937,7 @@ export default {
           }
           if (add) {
             this.purchaseList.columnList.forEach(item => item.disabled = false)
+            this.disabled = false
           } else {
             this.purchaseList.columnList.forEach(item => item.disabled = true)
           }
@@ -1300,6 +1305,8 @@ export default {
               })
               this.contentButton.forEach(item => item.disabled = false)
               this.contentStyle.forEach(item => item.disabled = false)
+              this.tEnclosure = []
+              // this.$set(this,'tEnclosure',[])
               this.$refs.avatar.clearVerification()
               this.$refs.avatar.form.createBy = Cookies.get('userName')
             } else {
@@ -1323,9 +1330,9 @@ export default {
             })
             this.contentButton.forEach(item => item.disabled = false)
             this.contentStyle.forEach(item => item.disabled = false)
+            this.tEnclosure = []
             this.$refs.avatar.clearVerification()
             this.$refs.avatar.form.createBy = Cookies.get('userName')
-
           }
           break
         case '保存':