| | |
| | | methods: { |
| | | openDialog (val,type) { |
| | | const t = this |
| | | t.reset() |
| | | const roles = store.getters && store.getters.roles |
| | | if(roles.includes('admin')){ |
| | | t.isAdmin = true |
| | | }else{ |
| | | t.isAdmin = false |
| | | } |
| | | if(roles.includes('company')){ |
| | | if(roles.includes('company') || roles.includes('feimeiexam')){ |
| | | t.form.isCm = 0 |
| | | } |
| | | if(roles.includes('mk')){ |
| | | if(roles.includes('mk') || roles.includes('mkexam')){ |
| | | t.form.isCm = 1 |
| | | } |
| | | const userInfo = store.getters && store.getters.userInfo |
| | |
| | | t.form.institutionId = userInfo.institutions[0].institutionId |
| | | } |
| | | t.open = true |
| | | t.reset() |
| | | if(type == 'add'){ |
| | | t.title = '新增申报' |
| | | t.disable = false |