소스 검색

Merge branch 'diagBaseCopy' into test

zhangxc 5 년 전
부모
커밋
19b876d2d5

+ 4 - 0
src/api/utils.js

@@ -420,5 +420,9 @@ export default {
       $(document).on('mousemove', handleMove)
       $(document).on('mousemove', handleMove)
       $(document).on('mouseup', handleUp)
       $(document).on('mouseup', handleUp)
     }
     }
+  },
+  getCurrentPage(currentChange, total, pageSize) {
+    const currentPage =  currentChange > Math.ceil(total/pageSize) ? Math.ceil(total/pageSize) : currentChange
+    return currentPage;
   }
   }
 }
 }

+ 2 - 0
src/components/diagBase/DiagBase.vue

@@ -95,6 +95,7 @@
 import api from '@api/diagBase.js';
 import api from '@api/diagBase.js';
 import apis from '@api/icss.js';
 import apis from '@api/icss.js';
 import config from '@api/config.js';
 import config from '@api/config.js';
+import utils from '@api/utils.js';
 
 
 export default {
 export default {
     name: 'diagBase',
     name: 'diagBase',
@@ -142,6 +143,7 @@ export default {
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
         getDropList() {
         getDropList() {

+ 1 - 0
src/components/diagBase/QuestionWords.vue

@@ -131,6 +131,7 @@ export default {
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
         getValue(val) {
         getValue(val) {

+ 2 - 0
src/components/icss/AssaySon.vue

@@ -84,6 +84,7 @@
 <script>
 <script>
   import api from '@api/icss.js';
   import api from '@api/icss.js';
   import config from '@api/config.js';
   import config from '@api/config.js';
+  import utils from '@api/utils.js';
 
 
   export default {
   export default {
     name: 'AssaySon',   //慢病指标值关联维护
     name: 'AssaySon',   //慢病指标值关联维护
@@ -125,6 +126,7 @@
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
         getDataList(isTurnPage) {
         getDataList(isTurnPage) {

+ 2 - 0
src/components/icss/ChemicalAndCommonMapping.vue

@@ -88,6 +88,7 @@
 <script>
 <script>
 import api from '@api/icss.js';
 import api from '@api/icss.js';
 import config from '@api/config.js';
 import config from '@api/config.js';
+import utils from '@api/utils.js';
 
 
 export default {
 export default {
     name: 'ChemicalAndCommonMapping',   //化验大小项和公表维护
     name: 'ChemicalAndCommonMapping',   //化验大小项和公表维护
@@ -132,6 +133,7 @@ export default {
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
         getDataList(isTurnPage) {
         getDataList(isTurnPage) {

+ 2 - 0
src/components/icss/ChronicAndIndexRelation.vue

@@ -79,6 +79,7 @@
 <script>
 <script>
   import api from '@api/icss.js';
   import api from '@api/icss.js';
   import config from '@api/config.js';
   import config from '@api/config.js';
+  import utils from '@api/utils.js';
 
 
   export default {
   export default {
     name: 'ChronicAndIndexRelation',   //慢病指标值关联维护
     name: 'ChronicAndIndexRelation',   //慢病指标值关联维护
@@ -119,6 +120,7 @@
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
         getDataList(isTurnPage) {
         getDataList(isTurnPage) {

+ 2 - 0
src/components/icss/ChronicDiseaseStructureList.vue

@@ -87,6 +87,7 @@
 <script>
 <script>
   import api from '@api/icss.js';
   import api from '@api/icss.js';
   import config from '@api/config.js';
   import config from '@api/config.js';
+  import utils from '@api/utils.js';
 
 
   export default {
   export default {
     name: 'TemplateMaintenance',
     name: 'TemplateMaintenance',
@@ -137,6 +138,7 @@
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
       getDropList() {
       getDropList() {

+ 2 - 0
src/components/icss/ConceptRelation.vue

@@ -91,6 +91,7 @@
 <script>
 <script>
 import api from '@api/icss.js';
 import api from '@api/icss.js';
 import config from '@api/config.js';
 import config from '@api/config.js';
+import utils from '@api/utils.js';
 
 
 export default {
 export default {
     name: 'ConceptRelation',   //诊断量表关联维护
     name: 'ConceptRelation',   //诊断量表关联维护
@@ -137,6 +138,7 @@ export default {
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
         toggTab(item){
         toggTab(item){

+ 1 - 0
src/components/icss/IndeptLabel.vue

@@ -144,6 +144,7 @@
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
       getValue(val) {
       getValue(val) {

+ 2 - 0
src/components/icss/LabelGroup.vue

@@ -101,6 +101,7 @@
 <script>
 <script>
 import api from '@api/icss.js';
 import api from '@api/icss.js';
 import config from '@api/config.js';
 import config from '@api/config.js';
+import utils from '@api/utils.js';
 
 
 export default {
 export default {
     name: 'tag-group',
     name: 'tag-group',
@@ -146,6 +147,7 @@ export default {
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
         getValue(val) {
         getValue(val) {

+ 3 - 0
src/components/icss/MedicalMultRelation.vue

@@ -75,6 +75,8 @@
 <script>
 <script>
   import api from '@api/icss.js';
   import api from '@api/icss.js';
   import config from '@api/config.js';
   import config from '@api/config.js';
+  import utils from '@api/utils.js';
+  
   export default {
   export default {
     name: 'MedicalName',
     name: 'MedicalName',
     data: function () {
     data: function () {
@@ -124,6 +126,7 @@
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
       addMedicalMultR(){
       addMedicalMultR(){

+ 3 - 1
src/components/icss/MedicalName.vue

@@ -120,7 +120,8 @@
 <script>
 <script>
   import api from '@api/icss.js';
   import api from '@api/icss.js';
   import config from '@api/config.js';
   import config from '@api/config.js';
-
+  import utils from '@api/utils.js';
+  
   export default {
   export default {
     name: 'MedicalName',
     name: 'MedicalName',
     data: function () {
     data: function () {
@@ -174,6 +175,7 @@
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
       reloadLib(){
       reloadLib(){

+ 2 - 0
src/components/icss/MedicalRelation.vue

@@ -121,6 +121,7 @@
 <script>
 <script>
   import api from '@api/icss.js';
   import api from '@api/icss.js';
   import config from '@api/config.js';
   import config from '@api/config.js';
+  import utils from '@api/utils.js';
 
 
   export default {
   export default {
     name: 'MedicalRelation',
     name: 'MedicalRelation',
@@ -177,6 +178,7 @@
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
       addMedicalR(){
       addMedicalR(){

+ 2 - 0
src/components/icss/MedicinePrompt.vue

@@ -94,6 +94,7 @@
 <script>
 <script>
   import api from '@api/icss.js';
   import api from '@api/icss.js';
   import config from '@api/config.js';
   import config from '@api/config.js';
+  import utils from '@api/utils.js';
 
 
   export default {
   export default {
     name: 'MedicinePrompt',
     name: 'MedicinePrompt',
@@ -148,6 +149,7 @@
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
       addMedicalPrompt(){
       addMedicalPrompt(){

+ 2 - 0
src/components/icss/PhysicalExamTemplate.vue

@@ -81,6 +81,7 @@
 <script>
 <script>
   import api from '@api/icss.js';
   import api from '@api/icss.js';
   import config from '@api/config.js';
   import config from '@api/config.js';
+  import utils from '@api/utils.js';
 
 
   export default {
   export default {
     name: 'PhysicalExamTemplate',
     name: 'PhysicalExamTemplate',
@@ -126,6 +127,7 @@
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
       addModule() {
       addModule() {

+ 2 - 0
src/components/icss/TemplateMaintenance.vue

@@ -102,6 +102,7 @@
 <script>
 <script>
   import api from '@api/icss.js';
   import api from '@api/icss.js';
   import config from '@api/config.js';
   import config from '@api/config.js';
+  import utils from '@api/utils.js';
 
 
   export default {
   export default {
     name: 'TemplateMaintenance',
     name: 'TemplateMaintenance',
@@ -196,6 +197,7 @@
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
       getSubTemplate() {
       getSubTemplate() {

+ 2 - 0
src/components/icss/VersionInfo.vue

@@ -91,6 +91,7 @@
 <script>
 <script>
   import api from '@api/icss.js';
   import api from '@api/icss.js';
   import config from '@api/config.js';
   import config from '@api/config.js';
+  import utils from '@api/utils.js';
 
 
   export default {
   export default {
     name: 'VersionInfo',
     name: 'VersionInfo',
@@ -137,6 +138,7 @@
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
       getProdType(item){
       getProdType(item){

+ 2 - 0
src/components/medicalTerm/AssistCheckSon.vue

@@ -84,6 +84,7 @@
 <script>
 <script>
   import api from '@api/medicalTerm.js';
   import api from '@api/medicalTerm.js';
   import config from '@api/config.js';
   import config from '@api/config.js';
+  import utils from '@api/utils.js';
 
 
   export default {
   export default {
     name: 'AssistCheckSon',   //慢病指标值关联维护
     name: 'AssistCheckSon',   //慢病指标值关联维护
@@ -125,6 +126,7 @@
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
         getDataList(isTurnPage) {
         getDataList(isTurnPage) {

+ 2 - 0
src/components/preTreat/CombinQuestion.vue

@@ -99,6 +99,7 @@
 <script>
 <script>
   import api from '@api/preTreat.js';
   import api from '@api/preTreat.js';
   import config from '@api/config.js';
   import config from '@api/config.js';
+  import utils from '@api/utils.js';
 
 
   export default {
   export default {
     name: 'combinQuestion',
     name: 'combinQuestion',
@@ -142,6 +143,7 @@
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
       getDropList() {
       getDropList() {

+ 2 - 0
src/components/preTreat/QuestionModules.vue

@@ -99,6 +99,7 @@
 <script>
 <script>
   import api from '@api/preTreat.js';
   import api from '@api/preTreat.js';
   import config from '@api/config.js';
   import config from '@api/config.js';
+  import utils from '@api/utils.js';
 
 
   export default {
   export default {
     name: 'QuestionModules',
     name: 'QuestionModules',
@@ -142,6 +143,7 @@
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
       getDropList() {
       getDropList() {

+ 2 - 0
src/components/preTreat/SimpleQuestion.vue

@@ -107,6 +107,7 @@
 <script>
 <script>
   import api from '@api/preTreat.js';
   import api from '@api/preTreat.js';
   import config from '@api/config.js';
   import config from '@api/config.js';
+  import utils from '@api/utils.js';
 
 
   export default {
   export default {
     name: 'simpleQuestion',
     name: 'simpleQuestion',
@@ -152,6 +153,7 @@
     methods: {
     methods: {
       handleSizeChange(val){
       handleSizeChange(val){
         this.pageSize = val;
         this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentChange, this.total, this.pageSize);
         this.getDataList();
         this.getDataList();
       },
       },
       getDropList() {
       getDropList() {