songshankun
2023-10-09 f79e98ee0a2b4ff0676241c03ba89c0540673aab
feat: 页面刷新后不再自动弹出任务弹窗
2个文件已修改
6 ■■■■ 已修改文件
src/components/TaskControlModal.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/visualization.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/TaskControlModal.vue
@@ -363,6 +363,8 @@
    getCurrentTaskProduceParams(id) {
      // const id = this.currentTaskData?.Procedure?.ID
      if (id) {
        this.currentProcessParams = []
        this.getProcessParamsErrMsg = ""
        startTask({id}).then((res) => {
          if (res.code === 200) {
            this.currentProcessParams = res.data.Params ?? []
@@ -421,7 +423,7 @@
      if (this.currentTaskData?.Procedure?.ID && this.currentTaskData?.Procedure?.Status === 1) {
        this.num = 0;
        this.showBtn = 1;
        this.show = true;
        // this.show = true;
      } else {
        this.show = false;
      }
src/views/visualization.vue
@@ -605,8 +605,6 @@
    </template> -->
    <!-- 控制的弹框 -->
    <AddControl ref="control" :Arr="Arr" />
    <!-- 控制的弹框 -->
    <TaskControlModal
      ref="control"
      :activeName="activeName"