| | |
| | | |
| | | <i v-if="workType == 5" class="iconfont icon-zuoyerenyuan" /> |
| | | <span v-if="workType == 5">其他</span> |
| | | |
| | | <i v-if="workType == 6" class="iconfont icon-ceshi" /> |
| | | <span v-if="workType == 6">自动化测试</span> |
| | | </div> |
| | | <div class="content-item yellow link" @click="planId = null, nodeId = null"> |
| | | <div class="sort">4</div> |
| | |
| | | <div class="duty-item yellow link" style="width: 280px;" @click="dutyId = 2; planId = null; nodeId = null;"> |
| | | <i class="iconfont icon-linshirenwu" /> |
| | | <span>临时任务</span> |
| | | </div> |
| | | <div class="duty-item green link" style="width: 280px;" @click="dutyId = 2; workType = 6; planId = null; nodeId = null;"> |
| | | <i class="iconfont icon-ceshi" /> |
| | | <span>自动化测试</span> |
| | | </div> |
| | | </div> |
| | | <span>请选择您任务种类</span> |
| | |
| | | }); |
| | | } |
| | | }, |
| | | autoTest: function () { |
| | | console.log('test') |
| | | this.goto('test') |
| | | }, |
| | | // 检查登录状态 |
| | | chenkWorkId: function () { |
| | | if (!localStorage.workId) { |
| | |
| | | that.goto('repair') |
| | | } else if (res.content.workType == 5) { |
| | | that.goto('other') |
| | | } else if (res.content.workType == 6) { |
| | | that.goto('autoTest') |
| | | } |
| | | }, |
| | | cancleBack: () => { |
| | |
| | | that.userInfo = res.content |
| | | this.$notify({ |
| | | title: '人员信息查询成功', |
| | | message: `当前操作人员:${res.content.name}`, |
| | | message: `已退出工作台,请重新认领工作任务。`, |
| | | type: 'success' |
| | | }) |
| | | } else { |
| | |
| | | that.goto('repair') |
| | | } else if (that.workType == 5) { |
| | | that.goto('other') |
| | | } else if (that.workType == 6) { |
| | | that.goto('autoTest') |
| | | } |
| | | } else { |
| | | this.$notify({ |