Browse Source

Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu

5 years ago
parent
commit
339de26441
1 changed files with 12 additions and 2 deletions
  1. 12 2
      ys_vue/src/views/mold/moldDetail.vue

+ 12 - 2
ys_vue/src/views/mold/moldDetail.vue

@@ -950,7 +950,7 @@
                     if(this.approve == 1){
                     if(this.approve == 1){
                         array.push(list[i]);
                         array.push(list[i]);
                     } else {
                     } else {
-                        if(list[i].uplodtorId == this.user.id){
+                        if(list[i].uplodtorId == this.user.id || list[i].state == 3 || list[i].state < 0){
                             array.push(list[i]);
                             array.push(list[i]);
                         }
                         }
                     }
                     }
@@ -1476,7 +1476,17 @@
                 },
                 },
                 res => {
                 res => {
                     if (res.code == "ok") {
                     if (res.code == "ok") {
-                        this.operations = res.data;
+                        if(type == 4){
+                            var list = res.data , array = [];
+                            for(var i in list){
+                                if(list[i].isPass == 1){
+                                    array.push(list[i])
+                                }
+                            }
+                            this.operations = array;
+                        } else {
+                            this.operations = res.data;
+                        }
                     } else {
                     } else {
                         this.$message({
                         this.$message({
                             message: res.msg,
                             message: res.msg,