Kaynağa Gözat

删除多余注释代码

liucf 5 yıl önce
ebeveyn
işleme
8fa1a96383

+ 1 - 1
build/webpack.dev.conf.js

@@ -34,7 +34,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
     compress: true,
     // host: HOST || config.dev.host,
     // host: '192.168.3.6',
-    host: '192.168.1.104',
+    host: '192.168.1.106',
     port: PORT || config.dev.port,
     open: config.dev.autoOpenBrowser,
     overlay: config.dev.errorOverlay

+ 0 - 10
src/common/CheckBox.vue

@@ -1,18 +1,8 @@
 <template>
   <div class="check-wrap" v-if="item">
-    <!-- <img :src="datas.url.replace('{imageUrlPrefix}',imgUrl)" v-if="datas.url"> -->
     <p v-for="(it,index) in datas.questionDetailList" :key="it.id" class="list" @click="handleClick(it,index,'',true)">
       <img :src="it.select==1?check:defaultPic">
-      <!-- <span :class="{'check':it.select==1}">{{it.name}}</span> -->
       <span v-if="((it.description||it.name).indexOf('${'))==-1" :class="[{'check':it.select==1},{'exclu':exclusion !==999 && it.exclusion !== exclusion}]">{{it.description||it.name}}</span>
-      <!-- <MultiLineInput v-else 
-          @handleInp="inpVal($event,index)"
-          :msg="it.name" 
-          :part="it"
-          :border="false" 
-          :inline="true" 
-          :select="it.select==1" 
-          /> -->
       <OptionInp v-else 
           :item="it" 
           ref="inp"

+ 0 - 12
src/common/Label.vue

@@ -2,7 +2,6 @@
   <div class="label-wrap" v-if="item">
     <p v-for="(it,index) in datas.questionMapping" :key="it.id" :class="['symp',{'check':it.select==1},{'exclu':exclusion !==999 && it.exclusionType !== exclusion}]" @click="handleClick(it,index,true)">
       <span>{{it.description||it.name}}</span>
-      <!-- <span v-if="it.select==1" @click="deletSymp($event,it,index)"><img src="../images/delete.png" alt=""></span> -->
       <span v-if="it.select==1" @click="deletSymp($event,it,index)"><img src="../images/del.png" alt=""></span>
     </p>
     <Toast :message="delText" 
@@ -72,7 +71,6 @@
         this.$store.commit('setDatas',{type:this.moduleType,data:newItem,pId:this.datas.id,ppId:this.ppId});
         this.$store.commit('setText',{type:this.moduleType,text:it.name,textP:(it.description||it.name),pId:it.id,order:this.order,index:index,arrFlag:true});
         if(it.questionMapping&&it.questionMapping.length>0){//有明细
-          // this.$emit("setDetail",{detail:it,ppId:this.ppId})
           this.$store.commit('setDetail',{detail:it,ppId:this.ppId,moduleType:this.moduleType,order:this.order,index:index})
         }
       },
@@ -126,7 +124,6 @@
         //存值
         this.$store.commit('setDatas',{type:this.moduleType,data:newItem,pId:this.datas.id,ppId:this.ppId});
         this.$store.commit('delText',{type:this.moduleType,pId:temp.id,order:this.order,index:this.delIndx});
-        // this.$store.commit('setText',{type:this.moduleType,text:it.name,textP:(it.description||it.name),pId:it.id,order:this.order,index:index,arrFlag:true});
         this.cancelDel();
       },
       cancelDel(){
@@ -141,7 +138,6 @@
   .label-wrap{
     font-size: .3rem;
      .symp{
-      // position: relative;
       display: inline-block;
       min-width:1.9rem;
       height: .72rem;
@@ -150,21 +146,16 @@
         vertical-align: top;
       }
       span:first-child{
-        // min-width:1.34rem;
         min-width:1.42rem;
         height: .72rem;
         line-height: .72rem;
         text-align: center;
       }
       img{
-        // width:.56rem;
         width:.48rem;
         height: .70rem;
         vertical-align: top;
         z-index: 22;
-        // position: absolute;
-        // top:0;
-        // right: 0;
       }
     }
     .symp:last-child{
@@ -172,13 +163,10 @@
     }
     .check{
       color: #fff;
-      // background: linear-gradient(-270deg, #4F4FFF, #4F8BFF);
       background: linear-gradient(-270deg, #3638EE, #4E72FF);
       box-shadow: 0 .08rem .16rem 0 rgba(79,129,255,0.40);
-      // padding-right: 0.57rem;
     }
     .exclu{
-      // background:#f0f1f5;
       background:#E3E4E8;
     }
   }

+ 1 - 5
src/common/OptionInp.vue

@@ -16,7 +16,7 @@
   </div>
 </template>
 <script type="text/javascript">
-import { getExpStr,scrollToV,isIos} from '@utils/tools';
+import { getExpStr} from '@utils/tools';
   export default {
     name:'OptionInp',
     data(){
@@ -61,10 +61,6 @@ import { getExpStr,scrollToV,isIos} from '@utils/tools';
         // const select = this.item.select;
         if(!this.select){//聚焦时自动选中该项
           this.$emit('handleSelec');
-        }
-        if(!isIos()){
-          // scrollToV(e)
-          // document.activeElement.scrollIntoViewIfNeeded(true);
         } 
       }
     },

+ 0 - 14
src/common/Radio.vue

@@ -1,18 +1,8 @@
 <template>
   <div class="radio-wrap" v-if="item">
-    <!-- <img :src="datas.url.replace('{imageUrlPrefix}',imgUrl)" v-if="datas.url"> -->
     <p v-for="(it,index) in datas.questionDetailList" :key="it.id" class="list" @click="handleClick(it,index,true)">
       <img :src="it.select==1?check:defaultPic">
-      <!-- <span :class="{'check':it.select==1}">{{it.name}}</span> -->
       <span v-if="((it.description||it.name).indexOf('${'))==-1" :class="{'check':it.select==1}">{{it.description||it.name}}</span>
-      <!-- <MultiLineInput v-else 
-          @handleInp="inpVal($event,index)"
-          :msg="it.name" 
-          :part="it" 
-          :border="false" 
-          :inline="true" 
-          :select="it.select==1" 
-          /> -->
       <OptionInp v-else :item="it" @handleInp="inpVal($event,index)" @handleSelec="handleClick(it,index)"/>
     </p>
   </div>
@@ -70,10 +60,6 @@ import OptionInp from '../common/OptionInp.vue';
         this.datas.valueP = temp.valueP;
         this.$emit("updata",this.datas);
       },
-      /*inpSele(index){//输入框反选
-        let detailList = this.datas.questionDetailList;console.log("单选:",index,detailList[index])
-        detailList[index].select = 1;
-      }*/
     },
     watch:{
       item:{

+ 0 - 12
src/common/Toast.vue

@@ -25,21 +25,9 @@ import $ from 'jquery';
       }
     },
     props:['message','show','labShow'],
-    /*mounted(){
-      $('body').bind("touchmove",function(e){
-        e.preventDefault();
-      })
-    },
-    beforeDestroy(){
-      $('body').bind("touchmove",function(e){
-        e.next();
-      })
-    },*/
     methods:{
       comfirn(){
         this.$emit("comfirn")
-        // const prehandler = function(e){e.preventDefault();}
-        // document.removeEventListener("touchmove",prehandler,false);
       },
       cancel(){
         this.$emit("cancel")

+ 2 - 10
src/common/UploadImg.vue

@@ -49,7 +49,7 @@ export default {
       flag:true //图片处理完成后才可以再次点击上传
     }
   },
-  props: ['item', 'moduleType', 'imgList'],//moduleType-哪个模块下上传的图
+  props: ['item', 'moduleType', 'imgList'],
   mounted() {
     this.imgs = this.imgList; //回读
     this.imgLen = Object.keys(this.imgList).length;
@@ -64,13 +64,6 @@ export default {
   },
   methods: {
     handleUpload() {
-      // navigator.getUserMedia({video: true,audio:true}, function onSuccess(stream) {
-      /*navigator.getUserMedia({video: true}, function onSuccess(stream) {
-        const inp = this.$refs.inp;
-        inp.click();
-      }, function onError(error) {
-        alert("请开启权限设置")
-      })*/
       const inp = this.$refs.inp;
       if(this.flag){
         inp.click();
@@ -97,12 +90,11 @@ export default {
         var uploadSrc;
         var uploadFile;
         if (fileSize > maxSize) { // 如果图片大小大于4m,进行压缩
-          // console.log(maxSize,fileSize, maxSize/fileSize );
           uploadSrc = canvas.toDataURL(file.type, maxSize / fileSize);
           uploadFile = that.dataURLtoFile(uploadSrc, file.name.split('.')[0]); // 转成file文件
           // uploadFile = that.convertBase64UrlToBlob(uploadSrc); // 转成blob
         } else {
-          uploadSrc = image.src; //canvas.toDataURL(file.type,0.5);
+          uploadSrc = image.src; 
           uploadFile = file;
         }
 

+ 0 - 25
src/components/DetailBox.vue

@@ -43,7 +43,6 @@
       return{
         msg:"胸痛详情",
         data:detailInfo,
-        // privateData:{},
         privateData:detailInfo.detail||{},
         compFlag:false,
         clearTxt:"是否清空当前已选内容?",
@@ -54,15 +53,8 @@
         reqFinish:false
       }
     },
-    created(){
-      // this.privateData = this.data;
-    },
     mounted(){
       this.$nextTick(()=>{
-        // const box = this.$refs.detailBox;
-        // const height = document.documentElement.clientHeight;
-        // box.style.height = height - 45 + 'px'; 
-        // $('body').css({'height':height+'px','overflow-y':'hidden'})
         // 校验是否有已填项,有--弹窗;无--return
         let hasCheck = this.$refs.detail.check();
         let checkReq = this.$refs.detail.checkReq();
@@ -77,20 +69,13 @@
           this.scroll = scroll
           scroll.on('scroll', this.onScroll)
         }, 400);
-        // fixedKeyboard();//给Window绑定事件
       })
     },
-    beforeDestroy(){//给Window解绑事件
-      // $(window).off("resize");
-      // $(window).off("click");
-      // $('body').css({'height':'100%','overflow-y':'auto'})
-    },
     methods:{
       onScroll() {
         document.activeElement.scrollIntoViewIfNeeded(true);        
       },
       close(){
-        // this.$emit("close");
         // 有必填项但没值则将choose移除 8-19
         const type = this.data.moduleType;
         if(type == moduleCP['symp']){//只处理主诉症状
@@ -114,8 +99,6 @@
         if(this.reqFinish){
           this.$refs.detail.saveData();
           this.$store.commit('setSearchShow', false);
-          // this.$emit("pComplete");
-          // this.$store.commit('setDetail',{detail:{}})
         }
       },
       changeCheck(flag){//是否有选中项
@@ -148,7 +131,6 @@
         
       }
     },
-    // props:['data','moduleType','ppId'],
     components:{
       Detail,
       Toast
@@ -190,17 +172,14 @@
     background: #fff;
     border-radius: .08rem .08rem 0 0;
     font-size: .3rem;
-    // animation: wave .4s ease-in;
     animation: wave .4s linear;
     height: 100%;
     overflow: hidden;
     .head{
-      // height: .88rem;
       height: 1rem; //增加了提示
       line-height: .88rem;
       display: flex; //有清空时
       justify-content: space-between;
-      // text-align: center; //去掉清空
       border-bottom: 1px solid #E6E7EF;
       padding: 0 .4rem 0 .32rem;
       font-size: .28rem;
@@ -225,8 +204,6 @@
         display: inline-block;
         height: 100%;
         padding: 0 .1rem;
-        // position: absolute;//去掉清空
-        // left: .32rem;
         img{
           width:.34rem;
           vertical-align: middle;
@@ -240,8 +217,6 @@
     .main{
       height: 100%;
       width:100%;
-      // overflow-y: auto;
-      // padding-top: 1rem;
       padding-bottom: 1rem;
     }
   }

+ 0 - 13
src/components/DiagTreat.vue

@@ -46,10 +46,8 @@
             ></MultiLineInput>
         </template>
       </div>
-      <!-- <div class="result" v-if="checkText.length>0"> -->
       <div class="result" v-if="getText()">
         <p class="title">{{datas.name}}</p>
-        <!-- <p v-for="(v,i) in checkText">{{v.text}}</p> -->
         <p>{{getText()}}</p>
       </div>
     </div>
@@ -136,7 +134,6 @@
         let value = "";
         let valueP = "";
         for(let i in list){
-          // if(list[i].id==data.id){
           if(list[i].id==id){
             if(list[i].controlType == 3){//多行输入
               let detailList = list[i].questionDetailList;
@@ -199,11 +196,6 @@
     }
     .label{
       .label;
-      /* img{
-        width:.56rem;
-        height: .74rem;
-        vertical-align: top;
-      } */
     }
     .result{
       .result;
@@ -212,11 +204,6 @@
   .foot{
     .dbfooter;
   }
-  .detail{
-    // .mask;
-    // z-index: 66;
-  }
-  
 .footer{
   .footer;
 }

+ 0 - 10
src/components/Others.vue

@@ -7,7 +7,6 @@
           class="label">
         <p class="quest">{{i + 1 +'.' + (it.description||it.name)}}</p>
         <img class="questionImg" :src="it.url.replace('{imageUrlPrefix}',imgUrl)" v-if="it.url">
-        <!-- <Label v-if="it.controlType==0" -->
         <Label v-if="it.controlType==0"
               :item="it"
               :ppId="it.id" 
@@ -42,7 +41,6 @@
             ></MultiLineInput>
         </template>
       </div>
-      <!-- <div class="result" v-if="checkText.length>0"> -->
       <div class="result" v-if="getText()">
         <p class="title">{{datas.name}}</p>
         <p>{{getText()}}</p>
@@ -76,8 +74,6 @@
       let {origin,datas,text} = this.$store.state.others;
       return{
         msg:"其他情况",
-        // imgs:this.$store.state.others.imgSrc,
-        // dtoList:origin, //模板数据
         dtoList:datas, //模板数据
         labelDetail:{}, //标签明细
         checkText:text, //选中的文字
@@ -115,7 +111,6 @@
         let value = "";
         let valueP = "";
         for(let i in list){
-          // if(list[i].id==data.id){
           if(list[i].id==id){
             if(list[i].controlType == 3){//多行输入
               let detailList = list[i].questionDetailList;
@@ -135,7 +130,6 @@
           }
         }
         
-        // this.$store.commit('setOrigin',{type:'3',data:data,pId:data.id});
         this.$store.commit('setDatas',{type:moduleCP['other'],data:data,pId:data.id,ppId:id});
         this.$store.commit('setText',{type:moduleCP['other'],text:value.replace(patt,'').replace(/\#\{/g,'').replace(/\}/g,''),textP:valueP.replace(patt,'').replace(/\#\{/g,'').replace(/\}/g,''),pId:data.id,flag:true,order:order}); 
         
@@ -206,10 +200,6 @@
   .foot{
     .dbfooter;
   }
-  .detail{
-    // .mask;
-    // z-index: 66;
-  }
   .questionImg {
     width: 96%;
   }

+ 1 - 44
src/components/PathInfo.vue

@@ -25,26 +25,6 @@
         <span>预约时间:</span>
         <span>{{pathInfo.systemTime}}</span>
       </p>
-      <!-- <div class="dept">
-        <p>
-          <span>挂号科室:</span>
-          <span>{{pathInfo.selfDeptName}}</span>
-        </p>
-        <p>
-          <span>门诊号:</span>
-          <span>{{pathInfo.recordId}}</span>
-        </p> 
-      </div>
-      <div class="doct">
-        <p>
-          <span>预约医生:</span>
-          <span>{{pathInfo.doctorName}}</span>
-        </p>
-        <p>
-          <span>预约时间:</span>
-          <span>{{pathInfo.systemTime}}</span>
-        </p>
-      </div> -->
       <p class="already" v-if="type !== 1">{{text[type]}}</p>
     </div>
     <div class="out-box">
@@ -57,7 +37,6 @@
           <p>该系统通过智能引导式问诊,帮助医生规范、全面的采集患者的症状、体征、病史等信息,从而实现诊疗流程的优化和配置。</p>
           <button @click="getStart">开始</button>
         </div>
-        <!-- <p v-if="type==3">您已完成过一次预问诊,是否再次录入</p> -->
       </div>
       <div class="child" v-if="child.length>0&&child[0].value==1 && !hideChild">
         <div class="baner">
@@ -80,7 +59,7 @@
 <script type="text/javascript">
   import api from '@utils/api.js'
   import Submit from '../common/Submit';
-  import {getUrlArgObject} from '@utils/tools.js'
+  import {getUrlArgObject} from '@utils/tools.js';
   export default {
     name:'PathInfo',
     data(){
@@ -190,7 +169,6 @@
             const datas = result.data;
             this.$store.commit('saveAll',datas)
             let access = datas.filter(item=>item.type == 1).length>0
-            // console.log(datas.filter(item=>item.type == 1)>0)
             this.isReady=access
           }else{
             this.defaultWaring(result.msg)
@@ -262,19 +240,6 @@
           margin-right: .25rem;
         }
       }
-      /* .dept,.doct{
-        display: inline-block;
-        p{
-          display: inline-block;
-          margin-top: .27rem;
-          span{
-            color: #7C828E;
-          }
-        }
-      }
-      .doct{
-        margin-left: .26rem;
-      } */
       .already{
         position: absolute;
         left: 0;
@@ -292,17 +257,13 @@
     .emery,.child{
       display: inline-block;
       vertical-align: top;
-      // width:5.3rem;
       width:5.1rem;
       margin-top: .91rem;
-      // margin-left: .6rem;
       box-sizing: border-box;
       .baner{
         box-sizing: border-box;
         width:100%;
-        // height: 2.52rem;
         height: 2.3rem;
-        // padding: .66rem 0 0 .6rem;
         padding-top: .5rem;
         p{
           color:#fff;
@@ -313,7 +274,6 @@
         }
       }
       .inner{
-        // height: 4.98rem;
         height: 4.5rem;
         box-shadow:-.05rem .05rem .10rem -.04rem #989da3,.05rem .05rem .10rem -.04rem #989da3;
         border-radius: 0 0 .20rem .20rem;
@@ -331,14 +291,11 @@
           height: .88rem;
           color: #fff;
           font-size: .32rem;
-          // margin-top: .20rem;
           margin: .40rem 0 0 -.05rem;
           background: -webkit-gradient(linear, right top, left top, from(#4F8BFF), to(#4F4FFF));
           background: -webkit-linear-gradient(right, #4F8BFF, #4F4FFF);
           box-shadow: 0 .12rem .24rem 0 rgba(79,129,255,0.40);
           border-radius: .44rem;
-          // position: absolute;
-          // bottom: .7rem;
         }
       }
     }

+ 0 - 16
src/components/Symptom.vue

@@ -90,7 +90,6 @@ export default {
       sexType: pathInfo.patientSex == '男' ? 1 : (pathInfo.patientSex == '女' ? 2 : 3),
       deptName: pathInfo.selfDeptName,
       hosCode: pathInfo.hospitalCode,
-      // show: false, //显示明细
       chooseSymp: choose, //已选症状
       symp: [], //症状
       labelDetail: {}, //明细
@@ -155,9 +154,6 @@ export default {
     onScroll() {
       document.activeElement.scrollIntoViewIfNeeded(true);        
     },
-    searchVal(val) {
-      // console.log(val)
-    },
     search(flg) {
       this.$store.commit('setSearchShow', flg);
     },
@@ -333,7 +329,6 @@ export default {
     color: #000;
     margin-bottom: 0.36rem;
     font-weight: 700;
-    // padding-right: .2rem;
     .searchImg {
       width: 0.44rem;
       height: 0.44rem;
@@ -346,21 +341,17 @@ export default {
   .choo-symp{
       display: inline-block;
       min-width:1.9rem;
-      // min-width:1.42rem;
       height: .74rem;
-      // background: linear-gradient(-270deg, #4F4FFF, #4F8BFF);
       background: linear-gradient(-270deg, #3638EE, #4E72FF);
       box-shadow: 0 .08rem .16rem 0 rgba(79,129,255,0.40);
       border-radius: .08rem;
       white-space: nowrap;
-      // margin: 0 .3rem .3rem 0;
       margin: 0 .25rem .3rem 0;
       span{
         display: inline-block;
         vertical-align: top;
       }
       span:first-child{
-        // min-width:1.34rem;
         min-width:1.42rem;
         height: .74rem;
         line-height: .74rem;
@@ -368,7 +359,6 @@ export default {
         color: #fff;
       }
       img{
-        // width:.56rem;
         width:.48rem;
         height: .74rem;
       }
@@ -407,12 +397,6 @@ export default {
   .footer;
 }
 .nofoot{
-  // opacity: 0.3;
-  // background: linear-gradient(-270deg,#4F4FFF, #4F8BFF);
   background:#CACCFF;
 }
-.detail{
-  // .mask;
-  // z-index: 103;
-}
 </style>

+ 0 - 7
src/components/TabPage.vue

@@ -7,7 +7,6 @@
         :key="it.id"
         @click="clickTab(it,index)">
         <span :class="{current:index==number,comp:finish[it.type]}" v-if="type[it.type]==1">
-          <!-- <i>{{it.type}}</i> -->
           <i>{{index+1}}</i>
           {{it.name}}
         </span>
@@ -180,7 +179,6 @@ export default {
           this.finish[j] = true
         }
       }
-      // $('body').scrollTop(0);
     },
     beBack(preview) {
       if(preview === 'preview'){
@@ -201,7 +199,6 @@ export default {
           this.finish[j] = true
         }
       }
-      // $('body').scrollTop(0);
     },
     toggleModule(flg){
       this.moduleShow = flg
@@ -250,8 +247,6 @@ export default {
       line-height: 0.5rem;
       color: #7c828e;
       text-align: center;
-      // margin-left: 0.2rem;
-      // margin-right: 0.19rem;
     }
     .current {
       color: #0043e8;
@@ -264,8 +259,6 @@ export default {
 }
   .content {
     font-size: 0.3rem;
-    // padding: 0.45rem 0.6rem;
-    // padding: 0.45rem 0.3rem 0.45rem 0.6rem;
     padding: 0.45rem 0 0.45rem 0.3rem;
   }
 }

+ 0 - 7
src/less/base.less

@@ -28,7 +28,6 @@
   position: fixed;
   bottom: 0;
   left: 0;
-  // background: #F2F2F5;
   background: #e5ecfc;
   z-index: 66;
   display: flex;
@@ -41,14 +40,10 @@
     vertical-align: top;
   }
   .back{
-    // width: 2.5rem;
     width: 40%;
-    // color: #7C828E;
     color: #0043E8;
   }
   .next{
-    // width: 5rem;
-    // width: 4.91rem;
     width: 58%;
     color: #fff;
     background: linear-gradient(-270deg, #4F4FFF,#4F8BFF);
@@ -61,7 +56,6 @@
   padding-bottom: .2rem;
   .symp{
     display: inline-block;
-    // width:1.9rem;
     min-width:1.9rem;
     height: .74rem;
     line-height: .74rem;
@@ -69,7 +63,6 @@
     border-radius: .08rem;
     text-align: center;
     color: #7C828E;
-    // margin: 0 .3rem .3rem 0;
     margin: 0 .25rem .3rem 0;
     padding: 0 .05rem;
     box-sizing: border-box;

+ 0 - 4
src/less/index.less

@@ -62,9 +62,6 @@ a {
 
 html,body{
   width: 100%;
-  // height: auto !important;
-  // height: auto;
-  // overflow-y: auto;
   height: 100%;
   position: absolute;
   overflow: hidden;
@@ -72,7 +69,6 @@ html,body{
 html{
   margin: 0;
   padding: 0;
-  // font-size: @font-size;  //750px,1vw = 750*1%=7.5px
   font-size: 13.33333333vw !important;
 }
 

+ 2 - 2
src/router/index.js

@@ -22,11 +22,11 @@ const router = new Router({
       name:'TabPage',
       component:TabPage
     },
-    {
+    /*{
       path:'/login',
       name:'Login',
       component:Login
-    },
+    },*/
     {
       path:'/department',
       name:'Department',

+ 0 - 42
src/store.js

@@ -240,21 +240,6 @@ const store = new Vuex.Store({
             }
           }
           state.diagnose.text = diaText;
-
-
-          /*if(diaText.length > 0){
-            for(let i in diaText){
-              if(diaText[i].pId==param.pId){
-                if(param.flag){
-                  diaText.splice(i,1,param);
-                }
-                return
-              }
-            }
-            diaText.push(param);
-          }else{
-            diaText.push(param);
-          }*/
           break;
         case moduleCP['other']: //其他情况
           let otherText = JSON.parse(JSON.stringify(state.others.text));
@@ -284,20 +269,6 @@ const store = new Vuex.Store({
             }
           }
           state.others.text = otherText;
-
-          /*if(otherText.length > 0){
-            for(let i in otherText){
-              if(otherText[i].pId==param.pId){
-                if(param.flag){
-                  otherText.splice(i,1,param);
-                }
-                return
-              }
-            }
-            otherText.push(param);
-          }else{
-            otherText.push(param);
-          }*/
           break;
         case moduleCP['suplement']:
           let addText = state.addContent.txt
@@ -325,25 +296,12 @@ const store = new Vuex.Store({
           let temp = diaText[param.order];
           temp[param.index] = null;
           state.diagnose.text = diaText;
-
-          // let diaText = state.diagnose.text;
-          /*for(let i in diaText){
-            if(diaText[i].pId==param.pId){
-              diaText.splice(i,1)
-            }
-          }*/
           break;
         case moduleCP['other']:
           let otherText = JSON.parse(JSON.stringify(state.others.text));
           let otemp = otherText[param.order];
           otemp[param.index] = null;
           state.others.text = otherText;
-          /*let otherText = state.others.text;
-          for(let i in otherText){
-            if(otherText[i].pId==param.pId){
-              otherText.splice(i,1)
-            }
-          }*/
           break;
         case moduleCP['suplement']: