haoxuan
2023-10-09 2dbc2e4a8d64ed2fea3996a07d3659fac19b56b4
工艺模型需求小优化
1个文件已修改
13 ■■■■ 已修改文件
src/components/ProcessModel.vue 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/ProcessModel.vue
@@ -59,7 +59,7 @@
      </div>
      <div slot="footer" class="dialog-footer tac" style="overflow: hidden">
        
            <el-button
            <el-button v-if="isPage"
                      type="primary"
                      size="mini"
                      :disabled="top"
@@ -70,7 +70,7 @@
                      上一页</el-button
                    >
          
          <el-button
          <el-button v-if="isPage"
                      type="primary"
                      size="mini"
                      :disabled="bottom"
@@ -123,6 +123,8 @@
      top:false,
      bottom:false,
      index:null,
      isPage:false,
      isRenew:false,
    };
  },
  mounted() {
@@ -171,9 +173,11 @@
            }
            this.total=res.total?res.total:0;
            if(this.total<=6){
              this.isPage=false;
              this.top=true;
              this.bottom=true;
            }else{
              this.isPage=true;
              let pageTotal=Math.ceil(Number(this.total)/6)
              if(this.pageObj.page<pageTotal){
               
@@ -196,6 +200,7 @@
      this.processObj.paramsMap=this.processObj.newParamsMap
      this.processObj.number=this.processObj.newNumber
      this.processObj.isUpdate=false
      this.isRenew=true;
      this.$emit('updateGet',this.processObj.newNumber)
      this.getProcessModelList(this.processObj.newNumber)
    },
@@ -225,7 +230,9 @@
    },
    shutdown() {
      this.islook = false;
      this.$emit('updateGet',this.processObj.newNumber,true)
      if(this.isRenew){
        this.$emit('updateGet',this.processObj.newNumber,true)
      }
    },
  },
};