Browse Source

更改按钮权限 宣传物料

wgp 3 years ago
parent
commit
53ee40a8c4
1 changed files with 13 additions and 6 deletions
  1. 13 6
      src/pages/main/advertising/materialApplication.vue

+ 13 - 6
src/pages/main/advertising/materialApplication.vue

@@ -36,10 +36,17 @@
                             <!-- <el-button size="mini" type="primary" @click="dialogCheck(2,scope.row)">修改</el-button> -->
                             <el-button size="mini" type="primary" @click="jump(2, scope.row)">查看</el-button>
                             <!-- <el-button size="mini" type="primary" @click="jump(1, scope.row)" v-if="loginNoStr == scope.row.nextOpNo && scope.row.woSts == 0">审批</el-button>                             -->
-                           <el-button size="mini" type="primary" @click="jump(1, scope.row)" v-if="(loginNoStr == scope.row.nextOpNo && ((scope.row.provinceCity == 1 && scope.row.nextStep != 12) || (scope.row.provinceCity == 2 && scope.row.nextStep != 10) || (scope.row.provinceCity == 3 && scope.row.nextStep != 11))) && (scope.row.sts != 2 && scope.row.sts != 3)">审批</el-button> 
+                           <el-button size="mini" type="primary" @click="jump(1, scope.row)" v-if="(loginNoStr == scope.row.nextOpNo && ((scope.row.provinceCity == 1 && scope.row.nextStep != 12) || (scope.row.provinceCity == 2 && scope.row.nextStep != 10) || (scope.row.provinceCity == 3 && scope.row.nextStep != 11))) && (scope.row.sts != 3)">审批</el-button>
                             <el-button size="mini" type="primary" @click="jump(3, scope.row)" v-if="(loginNoStr == scope.row.nextOpNo && ((scope.row.provinceCity == 1 && scope.row.nextStep ==7) || (scope.row.provinceCity == 1 && scope.row.nextStep ==11) || (scope.row.provinceCity == 2 && scope.row.nextStep == 9) || (scope.row.provinceCity == 3 && scope.row.nextStep == 10))) && (scope.row.sts != 3)">子任务列表</el-button>
                             <el-button size="mini" type="danger" @click="delLine(scope.row)" v-if="(loginNoStr == scope.row.opNo && ((scope.row.provinceCity == 1 && scope.row.nextStep <= 7) || (scope.row.provinceCity == 2 && scope.row.nextStep <= 10) || (scope.row.provinceCity == 3 && scope.row.nextStep <= 11)) && (scope.row.sts != 3))">删除</el-button>
                             <el-button size="mini" type="primary" @click="jump(4, scope.row)" v-if="((scope.row.provinceCity == 1 && scope.row.nextStep == 12) || (scope.row.provinceCity == 2 && scope.row.nextStep == 10) || (scope.row.provinceCity == 3 && scope.row.nextStep == 11)) && (scope.row.countrySts == 0 || scope.row.countrySts == 2)">验收</el-button>
+
+                            <!--<el-button size="mini" type="primary" @click="jump(1, scope.row)" v-if="scope.row.sp">审批</el-button>-->
+                            <!--<el-button size="mini" type="primary" @click="jump(3, scope.row)" v-if="scope.row.zrw">子任务列表</el-button>-->
+                            <!--<el-button size="mini" type="danger" @click="delLine(scope.row)" v-if="scope.row.sc">删除</el-button>-->
+                            <!--<el-button size="mini" type="primary" @click="jump(4, scope.row)" v-if="scope.row.yc">验收</el-button>-->
+
+
                         </template>
                     </el-table-column>
                 </el-table>
@@ -200,7 +207,7 @@
     import myMessage from "../../../components/myMessage.vue"
     import toolList from '../../../components/toolList'
 	import myUpload from '../../../components/upload'
-    
+
 
     export default {
         components: {
@@ -322,7 +329,7 @@
                                 path: '/materialApplicationExa',
                                 query: {cityWoId: n.cityWoId, id: n.id, btnS: 1}
                         })
-                    
+
                 }else if(v === 2){
                     this.$router.push("/materialApplicationDetail?id="+ n.id + "")
                 }else if(v === 3){
@@ -330,7 +337,7 @@
 
                     sessionStorage.setItem("jumpParams", JSON.stringify(jumpParams))
                     if(n.provinceCity == 1 && n.nextStep ==7){
-                        
+
                         this.$router.push({
                                 path: '/subtaskList',
                                 // query: { cityWoId: n.cityWoId, countyWoId: n.countryWoId, woId: n.id, }
@@ -338,7 +345,7 @@
                                 // name: 'subtaskList',
                                 // params: { cityWoId: n.cityWoId, countyWoId: n.countryWoId, woId: n.id, }
                         })
-                        
+
                     } else if((n.provinceCity == 1 && n.nextStep ==11) || (n.provinceCity == 2 && n.nextStep == 9) || (n.provinceCity == 3 && n.nextStep == 10)){
                         this.$router.push({
                                 path: '/acceptanceSituation',
@@ -397,7 +404,7 @@
             },
             //获取列表
             getList(v, n) {
-                
+
                 this.pageSize = n;
                 let _this = this;
                 this.loading = true;