WXL
2024-07-16 df21bfb0065ec44c06cd9d3fcd3dc41582cc91a9
测试完成
已修改2个文件
28 ■■■■ 文件已修改
src/App.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/tasklist/index.vue 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/App.vue
@@ -22,7 +22,8 @@
    };
  },
  created() {
    console.log(this.routers);
    this.routertf = this.$route.param5;
    console.log(this.routertf);
    if (
      this.routers == "outsideChainxj" ||
      this.routers == "outsideChain" ||
src/views/followvisit/tasklist/index.vue
@@ -280,7 +280,7 @@
      </div>
      <div
        style="font-size: 18px; margin-bottom: 20px"
        v-if="taskform.showDate[0]"
        v-if="taskform.showDate"
      >
        执行日期:<span
          style="font-size: 18px; color: #2376b7; margin-bottom: 20px"
@@ -657,6 +657,7 @@
      getTasklist(this.topqueryParams).then((response) => {
        this.userList = response.rows;
        this.total = response.total;
        this.$forceUpdate();
        this.loading = false;
      });
    },
@@ -796,6 +797,7 @@
    sponsor(row) {
      console.log(row, "任务信息");
      this.taskform = row;
      console.log(12);
      if (this.taskform.showDate && this.taskform.sendType != 2) {
        this.taskform.showDate = this.taskform.showDate.split(",");
      }
@@ -814,8 +816,27 @@
      } else {
        this.taskform.showTimeNoon = [];
      }
      if (row.sendState != 2) {
      if (this.taskform.sendState != 2 && this.taskform.sendType != 2) {
        this.taskformVisible = true;
      } else if (this.taskform.sendState != 2 && this.taskform.sendType == 2) {
        this.TaskOperation.taskId = row.taskid;
        this.TaskOperation.sendState = 2;
        this.TaskOperation.sendType = 2;
        this.$modal
          .confirm(
            '当前选中任务名称为"' +
              row.taskName +
              '"的数据项为立即执行任务,发起执行后不可撤回!是否继续'
          )
          .then(() => {
            TaskTemplateSendExecution(this.TaskOperation).then((res) => {
              if (res.code == 200) {
                this.getList();
                this.$modal.msgSuccess("任务已立即执行");
              }
            });
          })
          .catch(() => {});
      } else {
        this.$modal.msgError("任务已发起,不可再次发起");
      }