소스 검색

常见科室症状和查体标签左右移动可连续移动

zhangxc 6 년 전
부모
커밋
6f75dfc9b8
2개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 3
      src/components/icss/AddCommonSymptom.vue
  2. 2 2
      src/components/icss/AddPhysicalExamTemp.vue

+ 3 - 3
src/components/icss/AddCommonSymptom.vue

@@ -204,7 +204,7 @@
             }
             this.rightTagsList.splice(this.selectRightTagIndex, 1)
             this.selectLeftTagsList = [];
-            this.selectRightTagIndex = -1;
+            this.selectRightTagIndex -= 1;
             this.getSymptomList()
 
         },
@@ -215,7 +215,7 @@
             const tempItem = this.rightTagsList[this.selectRightTagIndex]
             this.rightTagsList.splice(this.selectRightTagIndex, 1)
             this.rightTagsList.splice(this.selectRightTagIndex-1, 0,tempItem)
-            this.selectRightTagIndex = -1
+            this.selectRightTagIndex -= 1
         },
         toDown(){
              if(this.selectRightTagIndex === this.rightTagsList.length-1 || this.selectRightTagIndex === -1) {
@@ -224,7 +224,7 @@
             const tempItem = this.rightTagsList[this.selectRightTagIndex]
             this.rightTagsList.splice(this.selectRightTagIndex, 1)
             this.rightTagsList.splice(this.selectRightTagIndex+1, 0,tempItem)
-            this.selectRightTagIndex = -1
+            this.selectRightTagIndex += 1
 
         },
 

+ 2 - 2
src/components/icss/AddPhysicalExamTemp.vue

@@ -201,7 +201,7 @@
             const tempItem = this.rightTagsList[this.selectRightTagIndex]
             this.rightTagsList.splice(this.selectRightTagIndex, 1)
             this.rightTagsList.splice(this.selectRightTagIndex-1, 0,tempItem)
-            this.selectRightTagIndex = -1
+            this.selectRightTagIndex -= 1
         },
         toDown(){
              if(this.selectRightTagIndex === this.rightTagsList.length-1 || this.selectRightTagIndex === -1) {
@@ -210,7 +210,7 @@
             const tempItem = this.rightTagsList[this.selectRightTagIndex]
             this.rightTagsList.splice(this.selectRightTagIndex, 1)
             this.rightTagsList.splice(this.selectRightTagIndex+1, 0,tempItem)
-            this.selectRightTagIndex = -1
+            this.selectRightTagIndex += 1
 
         },