Browse Source

Merge pull request #364 from millionfor/branch-1.0.2

up
millionfor 6 years ago
parent
commit
8d73197454

+ 2 - 4
escheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/list.vue

@@ -295,10 +295,8 @@
       /**
        * click the select-all checkbox
        */
-      _topCheckBoxClick (v) {
-        this.list.forEach((item, i) => {
-          this.$set(this.list[i], 'isCheck', item.releaseState !== 'OFFLINE' ? v : false)
-        })
+      _topCheckBoxClick (is) {
+        _.map(this.list , v => v.isCheck = v.releaseState === 'ONLINE' ? false : is)
         this._arrDelChange()
       },
       /**