|
@@ -53,7 +53,6 @@
|
53
|
53
|
</ul>
|
54
|
54
|
</div>
|
55
|
55
|
<div class="clear"></div>
|
56
|
|
-
|
57
|
56
|
<!-- 新增轮播图 -->
|
58
|
57
|
<el-dialog
|
59
|
58
|
title="新增轮播图"
|
|
@@ -270,7 +269,8 @@
|
270
|
269
|
<el-dialog
|
271
|
270
|
title="新增名医介绍"
|
272
|
271
|
:visible.sync="four"
|
273
|
|
- width="550px">
|
|
272
|
+ width="550px"
|
|
273
|
+ center>
|
274
|
274
|
<el-form ref="doctorform" :model="doctorform" label-width="90px" :rules="rules" >
|
275
|
275
|
<el-form-item label="模块标题:" required prop="title">
|
276
|
276
|
<el-input v-model="doctorform.title"></el-input>
|
|
@@ -282,7 +282,7 @@
|
282
|
282
|
<el-form-item label="新增名医:" v-model="doctorform.image">
|
283
|
283
|
<div class="flex-img" v-show="headshow">
|
284
|
284
|
<div class="el-upload-list el-upload-list--picture-card" >
|
285
|
|
- <div class="el-upload-list__item is-success" v-for="item in this.docform" :key="item.id">
|
|
285
|
+ <div class="el-upload-list__item is-success" v-for="(item,index) in this.docform" :key="item.id">
|
286
|
286
|
<img class="flex-img__image" :src="item.dochead">
|
287
|
287
|
<label class="el-upload-list__item-status-label">
|
288
|
288
|
<i class="el-icon-upload-success el-icon-check"></i>
|
|
@@ -301,13 +301,13 @@
|
301
|
301
|
</el-form>
|
302
|
302
|
<span slot="footer" class="dialog-footer">
|
303
|
303
|
<el-button @click="four = false">取 消</el-button>
|
304
|
|
- <el-button type="primary" @click="AddDoctor('doctorform')">确 定</el-button>
|
|
304
|
+ <el-button type="primary" @click="AddDoctor('doctorform');editDoctorInfo('doctorform')">确 定</el-button>
|
305
|
305
|
</span>
|
306
|
306
|
</el-dialog>
|
307
|
307
|
|
308
|
|
- <!-- 编辑名医介绍 -->
|
|
308
|
+ <!-- 新增医生信息 -->
|
309
|
309
|
<el-dialog
|
310
|
|
- title="编辑医生介绍"
|
|
310
|
+ title="新增医生信息"
|
311
|
311
|
:visible.sync="centerDialogVisible"
|
312
|
312
|
width="50%"
|
313
|
313
|
center>
|
|
@@ -315,13 +315,12 @@
|
315
|
315
|
<el-row :span=20>
|
316
|
316
|
<el-col :span="12">
|
317
|
317
|
<el-form-item label="医生姓名:">
|
318
|
|
- <el-select v-model="eidtDoctorform.name" placeholder="请选择" @change="change(eidtDoctorform.name)">
|
|
318
|
+ <el-select placeholder="请选择" v-model="eidtDoctorform.name" @change="change(eidtDoctorform.name)">
|
319
|
319
|
<el-option
|
320
|
320
|
v-for="item in docnames"
|
321
|
321
|
:key="item.id"
|
322
|
322
|
:label="item.name"
|
323
|
|
- :value="item.id"
|
324
|
|
- >
|
|
323
|
+ :value="item.id" >
|
325
|
324
|
</el-option>
|
326
|
325
|
</el-select>
|
327
|
326
|
</el-form-item>
|
|
@@ -385,14 +384,13 @@
|
385
|
384
|
<el-form label-width="90px" class="clearfix" :model="editdocfrom" ref="editdocfrom" :rules="rules">
|
386
|
385
|
<el-row :span=20>
|
387
|
386
|
<el-col :span="10">
|
388
|
|
- <el-form-item label="医生姓名:" required prop="docname">
|
389
|
|
- <el-input v-model="editdocfrom.docname"></el-input>
|
|
387
|
+ <el-form-item label="医生姓名:" required prop="doc_name">
|
|
388
|
+ <el-input v-model="editdocfrom.doc_name"></el-input>
|
390
|
389
|
</el-form-item>
|
391
|
390
|
</el-col>
|
392
|
391
|
<el-col :span="12">
|
393
|
|
- <el-form-item label="医生职称:" required prop="doc_position">
|
394
|
|
- <!-- <el-input v-model="editdocfrom.doc_position"></el-input> -->
|
395
|
|
- <el-select v-model="editdocfrom.doc_position" placeholder="请选择">
|
|
392
|
+ <el-form-item label="医生职称:" required prop="doc_postion">
|
|
393
|
+ <el-select v-model="editdocfrom.doc_postion" placeholder="请选择">
|
396
|
394
|
<el-option
|
397
|
395
|
v-for="item in positions"
|
398
|
396
|
:key="item.index"
|
|
@@ -550,36 +548,147 @@
|
550
|
548
|
</span>
|
551
|
549
|
</el-dialog>
|
552
|
550
|
<!-- 新增魔方导航 -->
|
553
|
|
- <el-dialog
|
|
551
|
+
|
|
552
|
+ <el-dialog
|
554
|
553
|
title="新增魔方导航"
|
555
|
554
|
:visible.sync="eight"
|
556
|
|
- width="550px"
|
557
|
|
- :before-close="handleClose">
|
558
|
|
- <el-form ref="form" :model="form" label-width="100px">
|
559
|
|
- <el-form-item label="模块标题: ">
|
560
|
|
- <el-input v-model="form.name"></el-input>
|
|
555
|
+ width="550px">
|
|
556
|
+ <el-form ref="marginform" :model="marginform" label-width="90px" :rules="rules" >
|
|
557
|
+ <el-form-item label="模块标题:" required prop="title">
|
|
558
|
+ <el-input v-model="marginform.title"></el-input>
|
561
|
559
|
</el-form-item>
|
562
|
|
- <el-form-item label="排序值: ">
|
563
|
|
- <el-input v-model="form.name"></el-input>
|
|
560
|
+ <el-form-item label="排序值:" required prop="sort">
|
|
561
|
+ <el-input v-model="marginform.sort"></el-input>
|
564
|
562
|
<p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
|
565
|
563
|
</el-form-item>
|
566
|
|
- <el-form-item label="新增科室环境: ">
|
567
|
|
- <el-upload
|
568
|
|
- action="https://jsonplaceholder.typicode.com/posts/"
|
|
564
|
+ <el-form-item label="添加图片:" v-model="marginform.marginImages" required prop="marginImages">
|
|
565
|
+ <div>
|
|
566
|
+ </div>
|
|
567
|
+ <el-upload
|
|
568
|
+ :data="rotationData"
|
|
569
|
+ action="https://upload.qiniup.com"
|
569
|
570
|
list-type="picture-card"
|
570
|
|
- :on-remove="handleRemove"
|
|
571
|
+ :on-success="RotationchartSuccess"
|
|
572
|
+ :before-upload="beforeRotationUpload"
|
|
573
|
+ v-show="show">
|
|
574
|
+ <i slot="default" class="el-icon-plus"></i>
|
|
575
|
+ <div slot="file" slot-scope="{file}">
|
|
576
|
+ <img
|
|
577
|
+ class="el-upload-list__item-thumbnail"
|
|
578
|
+ :src="file.url"
|
571
|
579
|
>
|
572
|
|
- <i class="el-icon-plus"></i>
|
573
|
|
- </el-upload>
|
|
580
|
+ <span class="el-upload-list__item-actions">
|
|
581
|
+ <span
|
|
582
|
+ v-if="!disabled"
|
|
583
|
+ class="el-upload-list__item-delete"
|
|
584
|
+ >
|
|
585
|
+ <i class="el-icon-edit-outline" @click="rotationEditImages()"></i>
|
|
586
|
+ </span>
|
|
587
|
+ <span
|
|
588
|
+ v-if="!disabled"
|
|
589
|
+ class="el-upload-list__item-delete"
|
|
590
|
+ >
|
|
591
|
+ <i class="el-icon-delete"></i>
|
|
592
|
+ </span>
|
|
593
|
+ </span>
|
|
594
|
+ </div>
|
|
595
|
+ </el-upload>
|
|
596
|
+ <img src="static/images/u999.png" @click="addmagin()">
|
574
|
597
|
</el-form-item>
|
575
|
598
|
</el-form>
|
576
|
599
|
<span slot="footer" class="dialog-footer">
|
577
|
600
|
<el-button @click="eight = false">取 消</el-button>
|
578
|
|
- <el-button type="primary" @click="eight = false">确 定</el-button>
|
|
601
|
+ <el-button type="primary" @click="AddRotationChart('rotationform')">确 定</el-button>
|
579
|
602
|
</span>
|
580
|
603
|
</el-dialog>
|
581
|
|
-
|
582
|
|
-
|
|
604
|
+
|
|
605
|
+ <!-- 编辑魔法导航 -->
|
|
606
|
+ <el-dialog
|
|
607
|
+ title="编辑魔法导航"
|
|
608
|
+ :visible.sync="MagicNavigation"
|
|
609
|
+ width="40%"
|
|
610
|
+ center>
|
|
611
|
+ <el-form label-width="90px" ref="editmarginform" :model="editmarginform" :rules="rules">
|
|
612
|
+ <el-form-item label="导航标题:" prop="title">
|
|
613
|
+ <el-input style="width:400px" v-model="editmarginform.margtitle"></el-input>
|
|
614
|
+ </el-form-item>
|
|
615
|
+ <el-form-item label="导航图标:" prop="margimage">
|
|
616
|
+ <el-upload
|
|
617
|
+ class="avatar-uploader"
|
|
618
|
+ :data="magicData"
|
|
619
|
+ action="https://upload.qiniup.com"
|
|
620
|
+ :on-success="MagicSuccess"
|
|
621
|
+ :before-upload="MagicUpload"
|
|
622
|
+ :show-file-list="false">
|
|
623
|
+ <img v-if="editmarginform.margImage" :src="editmarginform.margImage" class="avatar">
|
|
624
|
+ <i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
625
|
+ </el-upload>
|
|
626
|
+ </el-form-item>
|
|
627
|
+ <el-form-item label="跳转设置">
|
|
628
|
+ <el-radio-group v-model="form.gender">
|
|
629
|
+ <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderOptions" :key="index" @change="selectGender(gender.id)">{{gender.name}}</el-radio>
|
|
630
|
+ </el-radio-group>
|
|
631
|
+ </el-form-item>
|
|
632
|
+ <el-form-item>
|
|
633
|
+ <el-col :span="12" v-mode="editmarginform.marginaddress">
|
|
634
|
+ <el-input style="width:300px" v-show="define"></el-input>
|
|
635
|
+ </el-col>
|
|
636
|
+ <el-col :span="4">
|
|
637
|
+ <el-button size="medium" @click="setlink()" v-show="define">设置链接</el-button>
|
|
638
|
+ </el-col>
|
|
639
|
+ </el-form-item>
|
|
640
|
+ </el-form>
|
|
641
|
+ <span slot="footer" class="dialog-footer">
|
|
642
|
+ <el-button @click="MagicNavigation = false">取 消</el-button>
|
|
643
|
+ <el-button type="primary" @click="MagicNavigation = false">确 定</el-button>
|
|
644
|
+ </span>
|
|
645
|
+</el-dialog>
|
|
646
|
+
|
|
647
|
+<el-dialog
|
|
648
|
+ title="设置链接地址"
|
|
649
|
+ :visible.sync="magicVisible"
|
|
650
|
+ width="30%"
|
|
651
|
+ :before-close="handleClose"
|
|
652
|
+ center>
|
|
653
|
+ <el-form label-width="90px">
|
|
654
|
+ <el-form-item label="连接类型">
|
|
655
|
+ <el-radio-group v-model="form.gender">
|
|
656
|
+ <el-radio :label="item.id" :value="item.id" v-for="(item,index) in defineOptions" :key="index" @change="selectItem(item.id)">{{item.name}}</el-radio>
|
|
657
|
+ </el-radio-group>
|
|
658
|
+ </el-form-item>
|
|
659
|
+ <el-form-item label="链接类型:" v-show="definetwo">
|
|
660
|
+ <el-select v-model="value" placeholder="请选择">
|
|
661
|
+ <el-option
|
|
662
|
+ v-for="item in options"
|
|
663
|
+ :key="item.value"
|
|
664
|
+ :label="item.label"
|
|
665
|
+ :value="item.value">
|
|
666
|
+ </el-option>
|
|
667
|
+ </el-select>
|
|
668
|
+ </el-form-item>
|
|
669
|
+ <el-form-item label="文章分类" v-show="definetwo">
|
|
670
|
+ <el-select v-model="value" placeholder="请选择">
|
|
671
|
+ <el-option
|
|
672
|
+ v-for="item in options"
|
|
673
|
+ :key="item.value"
|
|
674
|
+ :label="item.label"
|
|
675
|
+ :value="item.value">
|
|
676
|
+ </el-option>
|
|
677
|
+ </el-select>
|
|
678
|
+ </el-form-item>
|
|
679
|
+ <el-form-item label="电话号码:" v-show="definethree">
|
|
680
|
+ <el-input></el-input>
|
|
681
|
+ </el-form-item>
|
|
682
|
+ <el-form-item label="站外链接:" v-show="definefour">
|
|
683
|
+ <el-input></el-input>
|
|
684
|
+ </el-form-item>
|
|
685
|
+ </el-form>
|
|
686
|
+ <span slot="footer" class="dialog-footer">
|
|
687
|
+ <el-button @click="magicVisible = false">取 消</el-button>
|
|
688
|
+ <el-button type="primary" @click="magicVisible = false">确 定</el-button>
|
|
689
|
+ </span>
|
|
690
|
+</el-dialog>
|
|
691
|
+
|
583
|
692
|
</div>
|
584
|
693
|
</template>
|
585
|
694
|
|
|
@@ -594,6 +703,7 @@
|
594
|
703
|
import 'quill/dist/quill.snow.css'
|
595
|
704
|
import 'quill/dist/quill.bubble.css'
|
596
|
705
|
import { constants } from 'crypto';
|
|
706
|
+import { fail } from 'assert';
|
597
|
707
|
export default {
|
598
|
708
|
name: "newfeature",
|
599
|
709
|
components:{
|
|
@@ -602,6 +712,16 @@ export default {
|
602
|
712
|
props: ['image', 'clearList'],
|
603
|
713
|
data() {
|
604
|
714
|
return {
|
|
715
|
+ genderOptions:[
|
|
716
|
+ {id:1, name:'自定义'},
|
|
717
|
+ {id:2, name:'不跳转'},
|
|
718
|
+ ],
|
|
719
|
+ defineOptions:[
|
|
720
|
+ {id:1,name:'无'},
|
|
721
|
+ {id:2,name:'站内链接'},
|
|
722
|
+ {id:3,name:'电话'},
|
|
723
|
+ {id:4,name:'站外链接'},
|
|
724
|
+ ],
|
605
|
725
|
options: [{
|
606
|
726
|
value: '选项1',
|
607
|
727
|
label: '文章'
|
|
@@ -617,7 +737,13 @@ export default {
|
617
|
737
|
label:'数学',
|
618
|
738
|
}],
|
619
|
739
|
headshow:false,
|
|
740
|
+ define:false,
|
|
741
|
+ definetwo:false,
|
|
742
|
+ definethree:false,
|
|
743
|
+ definefour:false,
|
620
|
744
|
docnames:[],
|
|
745
|
+ radio: '1',
|
|
746
|
+ radiotwo:'2',
|
621
|
747
|
positions:[
|
622
|
748
|
{ index: 1, name: '医士' },
|
623
|
749
|
{ index: 2, name: '医师' },
|
|
@@ -632,7 +758,11 @@ export default {
|
632
|
758
|
{ index: 11, name: '主任护师' },
|
633
|
759
|
{ index: 12, name: '运营专员' },
|
634
|
760
|
],
|
|
761
|
+ form:{
|
|
762
|
+ gender:"",
|
|
763
|
+ },
|
635
|
764
|
value: '',
|
|
765
|
+ imageUrl:'',
|
636
|
766
|
new1: require("../../../assets/preview/u481.png"),
|
637
|
767
|
new2: require("../../../assets/preview/u493.png"),
|
638
|
768
|
new3: require("../../../assets/preview/u496.png"),
|
|
@@ -645,6 +775,8 @@ export default {
|
645
|
775
|
dialogRotationVisible: false,
|
646
|
776
|
editcenterDialogVisible: false,
|
647
|
777
|
addpicVisible:false,
|
|
778
|
+ MagicNavigation:false,
|
|
779
|
+ magicVisible:false,
|
648
|
780
|
radio: '1',
|
649
|
781
|
two: false,
|
650
|
782
|
three: false,
|
|
@@ -661,6 +793,7 @@ export default {
|
661
|
793
|
doctorData: { token: '', key: '' },
|
662
|
794
|
doctorDatatwo: { token: '', key: '' },
|
663
|
795
|
rotationData: { token:'',key: '' },
|
|
796
|
+ magicData:{ token:'',key:''},
|
664
|
797
|
keData: { token: '' ,key: ''},
|
665
|
798
|
file: this.image ? this.image : '',
|
666
|
799
|
hideShow:false,
|
|
@@ -675,8 +808,7 @@ export default {
|
675
|
808
|
image:"",
|
676
|
809
|
},
|
677
|
810
|
docform:[],
|
678
|
|
-
|
679
|
|
-
|
|
811
|
+
|
680
|
812
|
hispitalform:{
|
681
|
813
|
title:"",
|
682
|
814
|
sort:"",
|
|
@@ -692,11 +824,12 @@ export default {
|
692
|
824
|
sort:"",
|
693
|
825
|
image:"",
|
694
|
826
|
docimages:[],
|
|
827
|
+ ids:[],
|
695
|
828
|
},
|
696
|
829
|
editdocfrom:{
|
697
|
|
- docname:"",
|
|
830
|
+ doc_name:"",
|
698
|
831
|
dochead:"",
|
699
|
|
- doc_position:"",
|
|
832
|
+ doc_postion:"",
|
700
|
833
|
doc_sort:"",
|
701
|
834
|
docintroduction:"",
|
702
|
835
|
},
|
|
@@ -712,6 +845,16 @@ export default {
|
712
|
845
|
title:"",
|
713
|
846
|
sort:"",
|
714
|
847
|
rotationImages:[],
|
|
848
|
+ },
|
|
849
|
+ marginform:{
|
|
850
|
+ title:"",
|
|
851
|
+ sort:"",
|
|
852
|
+ marginImages:[],
|
|
853
|
+ },
|
|
854
|
+ editmarginform:{
|
|
855
|
+ margtitle:"",
|
|
856
|
+ margImage:"",
|
|
857
|
+ marginaddress:"",
|
715
|
858
|
},
|
716
|
859
|
keform:{
|
717
|
860
|
title:"",
|
|
@@ -728,9 +871,11 @@ export default {
|
728
|
871
|
introduction: [{required: true,message:"请填写医院介绍"}],
|
729
|
872
|
image: [{required: true,message:"请填写新增名医"}],
|
730
|
873
|
docname: [{required:true,message:"请填写医生姓名"}],
|
|
874
|
+ doc_name:[{required:true,message:"请填写医生姓名"}],
|
731
|
875
|
docHead: [{required: true,message:"请填写医生头像"}],
|
732
|
876
|
dochead: [{required: true,message:"请填写医生头像"}],
|
733
|
877
|
docpositional:[{required:true,message:"请填写医生职位"}],
|
|
878
|
+ doc_postion:[{required:true,message:"请填写医生职位"}],
|
734
|
879
|
docintroduction:[{required:true,message:"请填写医生简介"}],
|
735
|
880
|
images:[{required:true,message:"请填写新增科室环境"}],
|
736
|
881
|
rotationImages:[{required:true,message:"请填写添加图片"}],
|
|
@@ -741,14 +886,20 @@ export default {
|
741
|
886
|
};
|
742
|
887
|
},
|
743
|
888
|
// 医院介绍模块
|
744
|
|
- methods:{
|
|
889
|
+ methods:{
|
|
890
|
+
|
745
|
891
|
addpic(){
|
746
|
892
|
this.addpicVisible = true;
|
747
|
893
|
},
|
748
|
|
-
|
|
894
|
+ addmagin(){
|
|
895
|
+ this.MagicNavigation = true
|
|
896
|
+ },
|
749
|
897
|
addlink(){
|
750
|
898
|
this.linkVisible = true;
|
751
|
899
|
},
|
|
900
|
+ setlink(){
|
|
901
|
+ this.magicVisible = true;
|
|
902
|
+ },
|
752
|
903
|
//轮播图
|
753
|
904
|
rotationEditImages(){
|
754
|
905
|
this.dialogRotationVisible = true;
|
|
@@ -797,7 +948,9 @@ export default {
|
797
|
948
|
handleRemove() {
|
798
|
949
|
this.file = '';
|
799
|
950
|
},
|
800
|
|
-
|
|
951
|
+ define(){
|
|
952
|
+ alert("aa")
|
|
953
|
+ },
|
801
|
954
|
|
802
|
955
|
handleAvatarSuccess(res, file) {
|
803
|
956
|
this.eidtDoctorform.dochead = this.qiniuDomain + res.url;
|
|
@@ -916,6 +1069,40 @@ export default {
|
916
|
1069
|
return isJPG && isLt2M;
|
917
|
1070
|
},
|
918
|
1071
|
|
|
1072
|
+ MagicSuccess(res,file){
|
|
1073
|
+ this.editmarginform.margImage =this.qiniuDomain + res.url;
|
|
1074
|
+ },
|
|
1075
|
+
|
|
1076
|
+ MagicUpload(file){
|
|
1077
|
+ const isJPG = file.type === 'image/jpeg';
|
|
1078
|
+ const isLt2M = file.size / 1024 / 1024 < 2;
|
|
1079
|
+
|
|
1080
|
+ if (!isJPG) {
|
|
1081
|
+ this.$message.error('上传头像图片只能是 JPG 格式!');
|
|
1082
|
+ }
|
|
1083
|
+ if (!isLt2M) {
|
|
1084
|
+ this.$message.error('上传头像图片大小不能超过 2MB!');
|
|
1085
|
+ }
|
|
1086
|
+
|
|
1087
|
+ var date = new Date()
|
|
1088
|
+ var ext = getFileExtension(file.name)
|
|
1089
|
+ var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
|
|
1090
|
+ this.loadingText = '封面图片上传中'
|
|
1091
|
+ const _self = this
|
|
1092
|
+ return new Promise((resolve, reject) => {
|
|
1093
|
+ getToken().then(response => {
|
|
1094
|
+ const token= response.data.data.uptoken
|
|
1095
|
+ console.log("导航头像token是什么?",token)
|
|
1096
|
+ _self._data.magicData.token = token;
|
|
1097
|
+ _self._data.magicData.key = key;
|
|
1098
|
+ resolve(true)
|
|
1099
|
+ }).catch(err => {
|
|
1100
|
+ reject(false)
|
|
1101
|
+ })
|
|
1102
|
+ })
|
|
1103
|
+ return isJPG && isLt2M;
|
|
1104
|
+ },
|
|
1105
|
+
|
919
|
1106
|
//新增轮播图
|
920
|
1107
|
AddRotationChart(formName){
|
921
|
1108
|
this.$refs[formName].validate((valid)=>{
|
|
@@ -943,7 +1130,7 @@ export default {
|
943
|
1130
|
var hospital = response.data.data.hospital;
|
944
|
1131
|
//console.log("返回数据",hospital)
|
945
|
1132
|
this.$message.success("添加医院介绍成功");
|
946
|
|
- this.two = false;
|
|
1133
|
+ this.two = false;
|
947
|
1134
|
}
|
948
|
1135
|
})
|
949
|
1136
|
}
|
|
@@ -969,29 +1156,36 @@ export default {
|
969
|
1156
|
|
970
|
1157
|
//名医介绍
|
971
|
1158
|
AddDoctor(formName){
|
972
|
|
- var images = [];
|
|
1159
|
+ var images = [];
|
|
1160
|
+ var ids = [];
|
973
|
1161
|
for (let index = 0; index < this.docform.length; index++) {
|
974
|
|
- images.push(this.docform[index].dochead);
|
|
1162
|
+ images.push(this.docform[index].dochead);
|
|
1163
|
+ ids.push(this.docform[index].id);
|
975
|
1164
|
}
|
976
|
|
- this.doctorform.docimages = images,
|
|
1165
|
+ this.doctorform.docimages = images,
|
|
1166
|
+ this.doctorform.ids = ids;
|
977
|
1167
|
this.$refs[formName].validate((valid)=>{
|
978
|
1168
|
if(valid){
|
979
|
1169
|
AddDoctor(this.doctorform).then(response=>{
|
980
|
|
- console.log("啊啊啊",this.doctorform);
|
|
1170
|
+ // console.log("啊啊啊",this.doctorform);
|
981
|
1171
|
if(response.data.state==1){
|
982
|
1172
|
var doctor = response.data.data.doctor;
|
983
|
1173
|
console.log("返回数据",doctor)
|
|
1174
|
+ this.headshow = false;
|
984
|
1175
|
this.four = false;
|
|
1176
|
+ this.docform = "";
|
|
1177
|
+ this.doctorform = "";
|
985
|
1178
|
}
|
986
|
1179
|
})
|
987
|
1180
|
}
|
988
|
1181
|
})
|
989
|
1182
|
},
|
|
1183
|
+
|
990
|
1184
|
getQueryDocInfo(){
|
991
|
1185
|
getQueryDocInfo(this.doctorform).then(response=>{
|
992
|
1186
|
if(response.data.state==1){
|
993
|
1187
|
this.docnames = response.data.data.doctor;
|
994
|
|
-
|
|
1188
|
+ console.log("获取医生信息",response.data.data.doctor)
|
995
|
1189
|
}
|
996
|
1190
|
})
|
997
|
1191
|
},
|
|
@@ -999,16 +1193,15 @@ export default {
|
999
|
1193
|
getQueryDoCHead(){
|
1000
|
1194
|
getQueryDoCHead().then(response=>{
|
1001
|
1195
|
if(response.data.state==1){
|
1002
|
|
- //var docHead = response.data.data.docHead;
|
|
1196
|
+ var docHead = response.data.data.docHead;
|
1003
|
1197
|
this.docform = response.data.data.docHead;
|
1004
|
1198
|
console.log("aaa",response.data.data.docHead)
|
1005
|
1199
|
this.headshow = true;
|
1006
|
|
- //console.log("数据返回",docHead)
|
|
1200
|
+ console.log("头像数据返回",docHead)
|
1007
|
1201
|
}
|
1008
|
1202
|
})
|
1009
|
1203
|
},
|
1010
|
1204
|
change(id){
|
1011
|
|
- // alert(id);
|
1012
|
1205
|
change(id).then(response=>{
|
1013
|
1206
|
if(response.data.state == 1){
|
1014
|
1207
|
var docinfo = response.data.data.docinfo;
|
|
@@ -1018,11 +1211,11 @@ export default {
|
1018
|
1211
|
}
|
1019
|
1212
|
})
|
1020
|
1213
|
},
|
1021
|
|
- editDoctor(id){
|
|
1214
|
+ editDoctor(id){
|
1022
|
1215
|
editDoctor(id).then(response=>{
|
1023
|
1216
|
if(response.data.state ==1){
|
1024
|
1217
|
var docionfo = response.data.data.docinfo;
|
1025
|
|
- this.editdocfrom = response.data.data.docinfo;
|
|
1218
|
+ this.editdocfrom = response.data.data.docinfo;
|
1026
|
1219
|
console.log("数据",docionfo);
|
1027
|
1220
|
}
|
1028
|
1221
|
});
|
|
@@ -1044,8 +1237,8 @@ export default {
|
1044
|
1237
|
var doctor = response.data.data.doctor;
|
1045
|
1238
|
this.centerDialogVisible = false;
|
1046
|
1239
|
console.log("返回数据",doctor);
|
1047
|
|
- this.eidtDoctorform = "";
|
1048
|
1240
|
this.getQueryDoCHead();
|
|
1241
|
+
|
1049
|
1242
|
}
|
1050
|
1243
|
})
|
1051
|
1244
|
}
|
|
@@ -1054,9 +1247,14 @@ export default {
|
1054
|
1247
|
saveDocInfo(formName){
|
1055
|
1248
|
this.$refs[formName].validate((valid)=>{
|
1056
|
1249
|
if(valid){
|
|
1250
|
+ var sorts = this.editdocfrom.doc_sort
|
|
1251
|
+ var sort = parseInt(sorts)
|
|
1252
|
+ this.editdocfrom.doc_sort = sort
|
|
1253
|
+ this.editdocfrom.docintroduction = this.$refs.neditor.content;
|
|
1254
|
+
|
1057
|
1255
|
saveDocInfo(this.editdocfrom.id,this.editdocfrom).then(response=>{
|
1058
|
1256
|
if(response.data.state == 1){
|
1059
|
|
- var doctor = response.data.data.doctor;
|
|
1257
|
+ var doctor = response.data.data.editdoctor;
|
1060
|
1258
|
console.log("返回数据",doctor);
|
1061
|
1259
|
this.editcenterDialogVisible = false;
|
1062
|
1260
|
this.$message.success("保存成功")
|
|
@@ -1076,8 +1274,6 @@ export default {
|
1076
|
1274
|
console.log("图片路径",file.url)
|
1077
|
1275
|
this.keform.keImages.push(this.qiniuDomain + res.url);
|
1078
|
1276
|
console.log("图片数组",this.keform.keImages)
|
1079
|
|
- // this.keform.images = this.qiniuDomain + res.url;
|
1080
|
|
- // console.log("图片url",this.keform.images)
|
1081
|
1277
|
},
|
1082
|
1278
|
beforekeUpload(file){
|
1083
|
1279
|
const isJPG = file.type === 'image/jpeg';
|
|
@@ -1126,11 +1322,44 @@ export default {
|
1126
|
1322
|
add(){
|
1127
|
1323
|
|
1128
|
1324
|
},
|
|
1325
|
+ selectGender(id){
|
|
1326
|
+ if(id == 1){
|
|
1327
|
+ this.define = true;
|
|
1328
|
+ }
|
|
1329
|
+ if(id == 2){
|
|
1330
|
+ this.define = false;
|
|
1331
|
+ }
|
|
1332
|
+ },
|
|
1333
|
+ selectItem(id){
|
|
1334
|
+ if(id == 1){
|
|
1335
|
+ this.definetwo = false;
|
|
1336
|
+ this.definethree = false;
|
|
1337
|
+ this.definefour = false;
|
|
1338
|
+ }
|
|
1339
|
+
|
|
1340
|
+ if(id==2){
|
|
1341
|
+ this.definetwo = true;
|
|
1342
|
+ this.definethree = false;
|
|
1343
|
+ this.definefour = false;
|
|
1344
|
+ }
|
|
1345
|
+
|
|
1346
|
+ if(id==3){
|
|
1347
|
+ this.definethree = true;
|
|
1348
|
+ this.definetwo = false;
|
|
1349
|
+ this.definefour = false;
|
|
1350
|
+ }
|
|
1351
|
+
|
|
1352
|
+ if(id==4){
|
|
1353
|
+ this.definefour = true;
|
|
1354
|
+ this.definetwo = false;
|
|
1355
|
+ this.definethree = false;
|
|
1356
|
+ }
|
|
1357
|
+ }
|
1129
|
1358
|
},
|
1130
|
1359
|
created(){
|
1131
|
1360
|
this.getQueryDocInfo();
|
1132
|
|
- this.getQueryDoCHead();
|
1133
|
|
- }
|
|
1361
|
+ this.getQueryDoCHead();
|
|
1362
|
+ },
|
1134
|
1363
|
};
|
1135
|
1364
|
</script>
|
1136
|
1365
|
|