杨青 1 год назад
Родитель
Сommit
4bffa68829
1 измененных файлов: 9 добавлений и 2 удалений
  1. 9 2
      src/xt_pages/workforce/Patientshift.vue

+ 9 - 2
src/xt_pages/workforce/Patientshift.vue Просмотреть файл

660
       var zoneid=''
660
       var zoneid=''
661
       console.log('kkkkk',e.target.innerText);
661
       console.log('kkkkk',e.target.innerText);
662
       const inntext= e.target.innerText.split('(')[0]
662
       const inntext= e.target.innerText.split('(')[0]
663
+      console.log('vvvv',inntext,val.list[0].new_name);
663
       for(let i=0;i<val.list.length;i++){
664
       for(let i=0;i<val.list.length;i++){
664
-        if(inntext == val.list[i].name){
665
+        if(inntext == val.list[i].new_name){
665
           console.log('6666',val,value);
666
           console.log('6666',val,value);
666
           console.log('7777',this.numberlist);
667
           console.log('7777',this.numberlist);
667
           this.tipDialogVisible=true
668
           this.tipDialogVisible=true
820
     curInfoDragStart(e,val){
821
     curInfoDragStart(e,val){
821
       const inntext2= e.target.innerText.split('(')[0]
822
       const inntext2= e.target.innerText.split('(')[0]
822
       for(let i=0;i<val.list.length;i++){
823
       for(let i=0;i<val.list.length;i++){
823
-        if(inntext2 == val.list[i].name){
824
+        if(inntext2 == val.list[i].new_name){
824
           this.cur_drag_info={
825
           this.cur_drag_info={
825
             id:val.list[i].id,
826
             id:val.list[i].id,
826
             name:val.list[i].name,
827
             name:val.list[i].name,
905
           var numberlist=response.data.data.numberList
906
           var numberlist=response.data.data.numberList
906
           this.numberlist= numberlist
907
           this.numberlist= numberlist
907
           this.subzone = numberlist
908
           this.subzone = numberlist
909
+          for(let i=0;i<list.length;i++){
910
+           const new_name = 'new_name'
911
+           list[i][new_name]=this.nameSplit(list[i].name)
912
+           
913
+          }
914
+          console.log('9999',list);
908
           if (list != null && list.length > 0) {
915
           if (list != null && list.length > 0) {
909
             const dataInfo = {}
916
             const dataInfo = {}
910
             list.forEach((item, index) => {
917
             list.forEach((item, index) => {