| | |
| | | |
| | | <view class="flex"> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">操作:</view> |
| | | <view class="flex-sub bg-blue padding-xs margin-xs radius text-sm text-center" |
| | | <view v-if="authIncludes('eam:repair:collect')" |
| | | class="flex-sub bg-blue padding-xs margin-xs radius text-sm text-center" |
| | | @click.stop="handleStartWork(item)" hover-class="is-hover">领取</view> |
| | | |
| | | </view> |
| | |
| | | announcement1: [], |
| | | msg1Count: 0, |
| | | msg2Count: 0, |
| | | msg1Title: "" |
| | | msg1Title: "", |
| | | equipmentId: '' |
| | | } |
| | | }, |
| | | mounted() { |
| | | console.log('从 store 获取的 auth:', this.$store.getters.getAuth) |
| | | }, |
| | | computed: { |
| | | authList() { |
| | | return this.$store.getters.getAuth || [] |
| | | }, |
| | | top() { |
| | | return this.CustomBar * 2 + 50 |
| | | }, |
| | |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | onShow() { |
| | | if (this.mescroll) { |
| | | this.mescroll.resetUpScroll() |
| | | } |
| | | }, |
| | | |
| | | onLoad: function(options) { |
| | | this.equipmentId = options.equipmentId ? |
| | | decodeURIComponent(options.equipmentId) : |
| | | ''; |
| | | }, |
| | | created() {}, |
| | | methods: { |
| | | |
| | | /** |
| | | * @param {Object} code按钮权限 |
| | | */ |
| | | authIncludes(code) { |
| | | return this.authList.some(auth => auth.action === code) |
| | | }, |
| | | /** |
| | | * 领取 |
| | | */ |
| | |
| | | pageSize: page.size, |
| | | order: 'desc', |
| | | column: 'createTime', |
| | | reportStatus: 'WAIT_REPAIR' |
| | | reportStatus: 'WAIT_REPAIR', |
| | | equipmentId: this.equipmentId || '' |
| | | }, |
| | | |
| | | }).then(res => { |