liurunyu
8 天以前 e617afd6e36249422f965b51b827c7f5f700c732
src/views/start.vue
@@ -41,6 +41,9 @@
        
        <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>
@@ -62,6 +65,10 @@
          <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>
@@ -250,6 +257,10 @@
        });
      }
    },
    autoTest: function () {
      console.log('test')
      this.goto('test')
    },
    // 检查登录状态
    chenkWorkId: function () {
      if (!localStorage.workId) {
@@ -289,6 +300,8 @@
                    that.goto('repair')
                  } else if (res.content.workType == 5) {
                    that.goto('other')
                  } else if (res.content.workType == 6) {
                    that.goto('autoTest')
                  }
                },
                cancleBack: () => {
@@ -497,7 +510,7 @@
            that.userInfo = res.content
            this.$notify({
              title: '人员信息查询成功',
              message: `当前操作人员:${res.content.name}`,
              message: `已退出工作台,请重新认领工作任务。`,
              type: 'success'
            })
          } else {
@@ -592,6 +605,8 @@
              that.goto('repair')
            } else if (that.workType == 5) {
              that.goto('other')
            } else if (that.workType == 6) {
              that.goto('autoTest')
            }
          } else {
            this.$notify({