如果工艺参数是空,或者报错,弹框提示工艺参数错误的提示而不是新任务的弹框
3个文件已修改
18 ■■■■■ 已修改文件
src/api/home/index.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/AddIssue.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/visualization.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/home/index.js
@@ -91,6 +91,7 @@
  return request({
    url: `v1/task/start/${data.id}`,
    method: "get",
    loadingFlag:true,
    data,
  });
};
src/components/AddIssue.vue
@@ -167,7 +167,7 @@
      </div>
      <div slot="footer" :class="messageError?'dialog-footer tac btn-error':'dialog-footer tac'" style="overflow: hidden">
        <template v-if="messageError">
          <div class="btn" v-if="messageError =='下发成功!'"  @click="closeClick">
          <div class="btn" v-if="messageError =='下发成功!'||ArrError"  @click="closeClick">
            <img  src="../../public/close-btn.png" />
          </div>
          <div class="btn" v-else  @click="confirmClick2">
@@ -227,6 +227,12 @@
      type: [Array],
      default: () => {
        return [];
      },
    },
    ArrError:{
      type: [String],
      default: () => {
        return '';
      },
    },
    safeProduce:{
@@ -319,6 +325,10 @@
        this.islook = false;
        // this.islook = true;
      }
      if(this.ArrError){
        this.messageError=this.ArrError;
      }
      
    },
    getDateObj(date, fmt) {
src/views/visualization.vue
@@ -598,6 +598,7 @@
    <AddIssue
      ref="control"
      :Arr="Arr"
      :ArrError="ArrError"
      :safeProduce="safeProduce"
      :taskData="taskData"
      :Order="taskData.Order"
@@ -726,6 +727,7 @@
      countDownHour: 0,
      countDownMinute: 0,
      Arr: [],
      ArrError:'',
      // 记录定时器状态
      procInfoTimer: null,
      cutdownTimer: null,
@@ -1046,10 +1048,13 @@
      getTaskInfo({taskMode:1}).then(res=>{
        if(res.code==200){
          this.taskData=res.data.Tasks?res.data.Tasks[0]:{};
          this.ArrError=''
          if (this.taskData.Procedure.ID) {
              startTask({ id: this.taskData.Procedure.ID }).then((res) => {
                if (res.code == 200) {
                  this.Arr =res.data.Params ? res.data.Params : []
                }else{
                  this.ArrError=res.msg;
                }
              });
            }