|  | @@ -285,7 +285,7 @@
 | 
	
		
			
				|  |  |                v-if="false"
 | 
	
		
			
				|  |  |              ></el-table-column>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            <el-table-column fixed="right" width="200" label="操作">
 | 
	
		
			
				|  |  | +            <el-table-column fixed="right" width="210" label="操作">
 | 
	
		
			
				|  |  |                <template slot-scope="r">
 | 
	
		
			
				|  |  |                  <el-button
 | 
	
		
			
				|  |  |                    size="mini"
 | 
	
	
		
			
				|  | @@ -563,34 +563,45 @@ export default {
 | 
	
		
			
				|  |  |      sel(selectList, row) {
 | 
	
		
			
				|  |  |        let msg = "";
 | 
	
		
			
				|  |  |        if (row.planStatus == 0) {
 | 
	
		
			
				|  |  | -        msg = "是否立即生成任务?";
 | 
	
		
			
				|  |  | -        this.$refs["DialogThreeState"].show(msg, (state) => {
 | 
	
		
			
				|  |  | -          if (state == 0 || state == 1) {
 | 
	
		
			
				|  |  | -            this.loading = true;
 | 
	
		
			
				|  |  | -            api
 | 
	
		
			
				|  |  | -              .distribute(selectList, state == 1)
 | 
	
		
			
				|  |  | -              .then((response) => {
 | 
	
		
			
				|  |  | -                this.getList();
 | 
	
		
			
				|  |  | -                this.loading = false;
 | 
	
		
			
				|  |  | -              })
 | 
	
		
			
				|  |  | -              .catch(() => {
 | 
	
		
			
				|  |  | -                this.loading = false;
 | 
	
		
			
				|  |  | -              });
 | 
	
		
			
				|  |  | +        msg = "请选择从当前轮次或周期开始生成任务?";
 | 
	
		
			
				|  |  | +        this.$refs["DialogThreeState"].show(
 | 
	
		
			
				|  |  | +          msg,
 | 
	
		
			
				|  |  | +          (state) => {
 | 
	
		
			
				|  |  | +            if (state == 0 || state == 1) {
 | 
	
		
			
				|  |  | +              this.distributeInner(selectList, state == 1);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  | +          {
 | 
	
		
			
				|  |  | +            yesText: "当前轮次",
 | 
	
		
			
				|  |  | +            noText: "下周期",
 | 
	
		
			
				|  |  | +            cancelText: "取消下发",
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | -      } else {
 | 
	
		
			
				|  |  | -        this.loading = true;
 | 
	
		
			
				|  |  | -        api
 | 
	
		
			
				|  |  | -          .distribute(selectList, false)
 | 
	
		
			
				|  |  | -          .then((response) => {
 | 
	
		
			
				|  |  | -            this.getList();
 | 
	
		
			
				|  |  | -            this.loading = false;
 | 
	
		
			
				|  |  | +        );
 | 
	
		
			
				|  |  | +      } else if (row.planStatus == 2) {
 | 
	
		
			
				|  |  | +        this.$modal
 | 
	
		
			
				|  |  | +          .confirm("因存在已完成任务,本次任务下发仅支持下周期生成任务", {
 | 
	
		
			
				|  |  | +            confirmButtonText: "下周期",
 | 
	
		
			
				|  |  | +            canelButtonText: "取消下发",
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  | -          .catch(() => {
 | 
	
		
			
				|  |  | -            this.loading = false;
 | 
	
		
			
				|  |  | +          .then(() => {
 | 
	
		
			
				|  |  | +            this.distributeInner(selectList, false);
 | 
	
		
			
				|  |  |            });
 | 
	
		
			
				|  |  | +      } else {
 | 
	
		
			
				|  |  | +        this.distributeInner(selectList, false);
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    distributeInner(selectList, imme) {
 | 
	
		
			
				|  |  | +      this.loading = true;
 | 
	
		
			
				|  |  | +      api
 | 
	
		
			
				|  |  | +        .distribute(selectList, imme)
 | 
	
		
			
				|  |  | +        .then((response) => {
 | 
	
		
			
				|  |  | +          this.getList();
 | 
	
		
			
				|  |  | +          this.loading = false;
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +        .catch(() => {
 | 
	
		
			
				|  |  | +          this.loading = false;
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      async getRolesByOrg() {
 | 
	
		
			
				|  |  |        await allRole().then((res) => {
 | 
	
		
			
				|  |  |          // console.info(res);
 | 
	
	
		
			
				|  | @@ -636,25 +647,34 @@ export default {
 | 
	
		
			
				|  |  |        } else {
 | 
	
		
			
				|  |  |          msg = "本周期未完成任务应用最新任务内容";
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.$refs["DialogThreeState"].show(msg, async (state) => {
 | 
	
		
			
				|  |  | -        if (state == 2) {
 | 
	
		
			
				|  |  | -          return;
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        this.distributeHS(row.id, state == 1);
 | 
	
		
			
				|  |  | -      });
 | 
	
		
			
				|  |  | -      // this.$modal
 | 
	
		
			
				|  |  | -      //   .confirm(msg, "提示")
 | 
	
		
			
				|  |  | -      //   .then(() => {
 | 
	
		
			
				|  |  | -      //     // 用户点击了确认按钮
 | 
	
		
			
				|  |  | -      //     console.log("执行操作...");
 | 
	
		
			
				|  |  | -      //     distributeHS(row.id, true);
 | 
	
		
			
				|  |  | -      //   })
 | 
	
		
			
				|  |  | -      //   .catch(() => {
 | 
	
		
			
				|  |  | -      //     // 用户点击了取消按钮
 | 
	
		
			
				|  |  | -      //     // console.log("取消操作...");
 | 
	
		
			
				|  |  | -      //     distributeHS(row.id, false);
 | 
	
		
			
				|  |  | -      //   });
 | 
	
		
			
				|  |  | +      if (row.planStatus == 0) {
 | 
	
		
			
				|  |  | +        msg = "请选择从当前轮次或周期开始生成任务?";
 | 
	
		
			
				|  |  | +        this.$refs["DialogThreeState"].show(
 | 
	
		
			
				|  |  | +          msg,
 | 
	
		
			
				|  |  | +          (state) => {
 | 
	
		
			
				|  |  | +            if (state == 0 || state == 1) {
 | 
	
		
			
				|  |  | +              this.distributeHS(row.id, state == 1);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  | +          {
 | 
	
		
			
				|  |  | +            yesText: "当前轮次",
 | 
	
		
			
				|  |  | +            noText: "下周期",
 | 
	
		
			
				|  |  | +            cancelText: "取消下发",
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        );
 | 
	
		
			
				|  |  | +      } else if (row.planStatus == 2) {
 | 
	
		
			
				|  |  | +        this.$modal
 | 
	
		
			
				|  |  | +          .confirm("因存在已完成任务,本次任务下发仅支持下周期生成任务", {
 | 
	
		
			
				|  |  | +            confirmButtonText: "下周期",
 | 
	
		
			
				|  |  | +            canelButtonText: "取消下发",
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +          .then(() => {
 | 
	
		
			
				|  |  | +            this.distributeHS(row.id, false);
 | 
	
		
			
				|  |  | +          });
 | 
	
		
			
				|  |  | +      } else {
 | 
	
		
			
				|  |  | +        this.distributeHS(row.id, false);
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      distributeHS(id, immediateEffect) {
 | 
	
		
			
				|  |  |        this.loading = true;
 |