Browse Source

bug修改

xiaoming_global 5 years ago
parent
commit
30790362b6

+ 3 - 3
package-lock.json View File

13639
       }
13639
       }
13640
     },
13640
     },
13641
     "swiper": {
13641
     "swiper": {
13642
-      "version": "4.5.0",
13643
-      "resolved": "https://registry.npmjs.org/swiper/-/swiper-4.5.0.tgz",
13644
-      "integrity": "sha512-jRCd/CGet9kaHwthHdd/sL/YU8CI157PWLyItnIcn/o/jP4haVky3zTF6f9F3JDpmQIw7jdWihISiYx0/oTHsg==",
13642
+      "version": "4.5.1",
13643
+      "resolved": "https://registry.npmjs.org/swiper/-/swiper-4.5.1.tgz",
13644
+      "integrity": "sha512-se6I7PWWu950NAMXXT+ENtF/6SVb8mPyO+bTfNxbQBILSeLqsYp3Ndap+YOA0EczOIUlea274PKejT6gKZDseA==",
13645
       "requires": {
13645
       "requires": {
13646
         "dom7": "^2.1.3",
13646
         "dom7": "^2.1.3",
13647
         "ssr-window": "^1.0.1"
13647
         "ssr-window": "^1.0.1"

+ 1 - 1
package.json View File

67
     "simplemde": "1.11.2",
67
     "simplemde": "1.11.2",
68
     "sortablejs": "1.7.0",
68
     "sortablejs": "1.7.0",
69
     "spark-md5": "^3.0.0",
69
     "spark-md5": "^3.0.0",
70
-    "swiper": "^4.5.0",
70
+    "swiper": "^4.5.1",
71
     "vue": "2.5.16",
71
     "vue": "2.5.16",
72
     "vue-baidu-map": "^0.21.22",
72
     "vue-baidu-map": "^0.21.22",
73
     "vue-count-to": "1.0.13",
73
     "vue-count-to": "1.0.13",

+ 39 - 4
src/api/site/site.js View File

435
 }
435
 }
436
 
436
 
437
 export function kemore(id,data){
437
 export function kemore(id,data){
438
+    console.log('香港回归',id)
438
    return request({
439
    return request({
439
        url:"/api/site/kemore?id="+id,
440
        url:"/api/site/kemore?id="+id,
440
        method:'Get',
441
        method:'Get',
458
     })
459
     })
459
 }
460
 }
460
 
461
 
461
-export function addNavigation(data){
462
+export function addNavigation(id,data){
463
+    console.log("id是什么",id)
462
     return request({
464
     return request({
463
-        url:"/api/site/addnavigation",
465
+        url:"/api/site/addnavigation?id="+id,
464
         method:"Post",
466
         method:"Post",
465
         data:data,
467
         data:data,
466
     })
468
     })
542
 }
544
 }
543
 
545
 
544
 export function AddImageslink(id,data){
546
 export function AddImageslink(id,data){
545
-    console.log("id是多少呢法阿发",id)
546
    return request({
547
    return request({
547
        url:"/api/site/addimageslink?id="+id,
548
        url:"/api/site/addimageslink?id="+id,
548
        method:"Post",
549
        method:"Post",
1123
        method:"Get",
1124
        method:"Get",
1124
        params:params,
1125
        params:params,
1125
    })
1126
    })
1126
-}
1127
+}
1128
+
1129
+export function getCountImages(params){
1130
+    return request({
1131
+        url:"/api/site/getcountimages",
1132
+        method:"Get",
1133
+        params:params,
1134
+    })
1135
+}
1136
+
1137
+export function addNavigationlinkform(data){
1138
+    return request({
1139
+        url:"/api/site/addNavigationlinkform",
1140
+        method:"Post",
1141
+        data:data,
1142
+    })
1143
+}
1144
+
1145
+
1146
+export function getNavgitionlinkAddress(id,params){
1147
+   return request({
1148
+       url:"/api/site/getnavigationlinkaddress?id="+id,
1149
+       method:"Get",
1150
+       params:params
1151
+   })
1152
+}
1153
+
1154
+export function UpdateEditNavigationLinkform(id,data){
1155
+    return request({
1156
+        url:"/api/site/updateditnavigationlinkform?id="+id,
1157
+        method:"Post",
1158
+        data:data,
1159
+    })
1160
+}
1161
+

+ 2 - 2
src/main.js View File

22
 // import './mock' // simulation data
22
 // import './mock' // simulation data
23
 
23
 
24
 import * as filters from './filters' // global filters
24
 import * as filters from './filters' // global filters
25
-
25
+import 'swiper/dist/css/swiper.css'
26
+import 'swiper/dist/css/swiper.min.css';
26
 //引入mint-ui
27
 //引入mint-ui
27
 import Mint from 'mint-ui';
28
 import Mint from 'mint-ui';
28
 Vue.use(Mint);
29
 Vue.use(Mint);
30
 //引入无线滚条
31
 //引入无线滚条
31
 
32
 
32
 import { read } from 'fs';
33
 import { read } from 'fs';
33
-import 'swiper/dist/css/swiper.min.css'
34
 import BaiduMap from 'vue-baidu-map'
34
 import BaiduMap from 'vue-baidu-map'
35
 Vue.use(Element, {
35
 Vue.use(Element, {
36
   size: 'medium', // set element-ui default size
36
   size: 'medium', // set element-ui default size

+ 47 - 13
src/scrm_pages/site/components/add-contact.vue View File

46
         <el-input v-model="rotationform.title"></el-input>
46
         <el-input v-model="rotationform.title"></el-input>
47
       </el-form-item>
47
       </el-form-item>
48
       <el-form-item label="排序值:" required prop="sort">
48
       <el-form-item label="排序值:" required prop="sort">
49
-        <el-input v-model="rotationform.sort"></el-input>
49
+        <el-input v-model="rotationform.sort" type="number"></el-input>
50
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
50
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
51
       </el-form-item>
51
       </el-form-item>
52
      <el-form-item label="添加图片:">
52
      <el-form-item label="添加图片:">
65
                     </span>
65
                     </span>
66
                    </div>         
66
                    </div>         
67
                 </div>     
67
                 </div>     
68
-                <div class="addrot" @click="addVisible = true;showpic = false">
68
+                <div class="addrot" @click="addVisible = true;showpic = false" v-show="isNoEpity">
69
                  <div class="docone">
69
                  <div class="docone">
70
                   <li class="el-icon-plus"></li>  
70
                   <li class="el-icon-plus"></li>  
71
                    <div class="doctwo">
71
                    <div class="doctwo">
74
                   </div>  
74
                   </div>  
75
                 </div>
75
                 </div>
76
              </div>
76
              </div>
77
+            <p class="tips">图片已上传{{totalImages}}张,最多上传9张</p>
77
       </el-form-item>
78
       </el-form-item>
78
     </el-form>
79
     </el-form>
79
     <span slot="footer" class="dialog-footer">
80
     <span slot="footer" class="dialog-footer">
94
         <el-input v-model="hospitalform.title" ></el-input>
95
         <el-input v-model="hospitalform.title" ></el-input>
95
       </el-form-item>
96
       </el-form-item>
96
       <el-form-item label="排序值:" required prop="sort">
97
       <el-form-item label="排序值:" required prop="sort">
97
-        <el-input v-model="hospitalform.sort"></el-input>
98
+        <el-input v-model="hospitalform.sort" type="number"></el-input>
98
         <!-- <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p> -->
99
         <!-- <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p> -->
99
       </el-form-item>
100
       </el-form-item>
100
        <el-form-item label="医院地址:" required prop="address">
101
        <el-form-item label="医院地址:" required prop="address">
127
         <el-input v-model="contractform.title"></el-input>
128
         <el-input v-model="contractform.title"></el-input>
128
       </el-form-item>
129
       </el-form-item>
129
       <el-form-item label="排序值:" required prop="sort">
130
       <el-form-item label="排序值:" required prop="sort">
130
-        <el-input v-model="contractform.sort"></el-input>
131
+        <el-input v-model="contractform.sort" type="number"></el-input>
131
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
132
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
132
       </el-form-item>
133
       </el-form-item>
133
       <el-form-item label="联系方式:">
134
       <el-form-item label="联系方式:">
238
         <el-input v-model="woketimeform.title"></el-input>
239
         <el-input v-model="woketimeform.title"></el-input>
239
       </el-form-item>
240
       </el-form-item>
240
       <el-form-item label="排序值:" required prop="sort">
241
       <el-form-item label="排序值:" required prop="sort">
241
-        <el-input v-model="woketimeform.sort"></el-input>
242
+        <el-input v-model="woketimeform.sort" type="number"></el-input>
242
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
243
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
243
       </el-form-item>
244
       </el-form-item>
244
       <el-form-item label="工作时间:" required prop="worktime">
245
       <el-form-item label="工作时间:" required prop="worktime">
268
         <el-input v-model="rideform.title"></el-input>
269
         <el-input v-model="rideform.title"></el-input>
269
       </el-form-item>
270
       </el-form-item>
270
       <el-form-item label="排序值:" required prop="sort">
271
       <el-form-item label="排序值:" required prop="sort">
271
-        <el-input v-model="rideform.sort" ></el-input>
272
+        <el-input v-model="rideform.sort" type="number"></el-input>
272
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
273
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
273
       </el-form-item>
274
       </el-form-item>
274
       <el-form-item label="乘车方式:" required prop="content">
275
       <el-form-item label="乘车方式:" required prop="content">
298
      center>
299
      center>
299
   <el-form ref="picform" :model="picform" label-width="90px" :rules="rules">
300
   <el-form ref="picform" :model="picform" label-width="90px" :rules="rules">
300
     <el-form-item label="图片编辑:" required prop="Images">
301
     <el-form-item label="图片编辑:" required prop="Images">
301
-      <el-col :span="5">    
302
-          <div class="addrot" @click="addVisibletwo = true">
302
+      <el-col :span="5">  
303
+         <el-upload
304
+         :data="Data"   
305
+          class="avatar-uploader"
306
+          action="https://upload.qiniup.com/"
307
+          :show-file-list="false"
308
+          :on-success="RotationSuccess"
309
+          :before-upload="RotationUpload"
310
+          :limit="9">
311
+          <div class="addimage">
312
+            <img v-if="picform.Images" :src="picform.Images" class="avatar" style="width:100px;height:98px">
313
+            <i v-else class="el-icon-plus avatar-uploader-icon"></i>
314
+          </div>
315
+        </el-upload>  
316
+          <!-- <div class="addrot" @click="addVisibletwo = true">
303
              <div class="docone">
317
              <div class="docone">
304
                 <li class="el-icon-plus"></li>  
318
                 <li class="el-icon-plus"></li>  
305
                 <div class="doctwo">
319
                 <div class="doctwo">
306
                  <span>新增图片</span>
320
                  <span>新增图片</span>
307
                </div>
321
                </div>
308
             </div>  
322
             </div>  
309
-         </div>  
323
+         </div>   -->
310
       </el-col>
324
       </el-col>
311
       <el-col :span="19">
325
       <el-col :span="19">
312
           <div class="tpic" v-show="showpic"> 
326
           <div class="tpic" v-show="showpic"> 
316
     </el-form-item>
330
     </el-form-item>
317
     <el-form-item label="排序值:" required prop="sort">
331
     <el-form-item label="排序值:" required prop="sort">
318
        <el-col :span="24">
332
        <el-col :span="24">
319
-         <el-input v-model="picform.sort"></el-input>
333
+         <el-input v-model="picform.sort" type="number"></el-input>
320
        </el-col>   
334
        </el-col>   
321
     </el-form-item>
335
     </el-form-item>
322
     <el-form-item label="图片链接:">
336
     <el-form-item label="图片链接:">
570
        define:false,
584
        define:false,
571
        articeTypelist:[],
585
        articeTypelist:[],
572
        articeNamelist:[],
586
        articeNamelist:[],
587
+       isNoEpity:true,
588
+       totalImages:0,
573
     };
589
     };
574
   },
590
   },
575
   methods:{
591
   methods:{
878
             addrotationpic(this.picform).then(response=>{
894
             addrotationpic(this.picform).then(response=>{
879
                if(response.data.state ==1){
895
                if(response.data.state ==1){
880
                  var conrotation  = response.data.data.conrotation;
896
                  var conrotation  = response.data.data.conrotation;
897
+                 var total = response.data.data.total;
898
+                 this.totalImages = total;
899
+                 if(total >=9){
900
+                   this.isNoEpity = false;
901
+                 }
902
+                 this.picform.Images = "";
903
+                 this.picform.sort = "";
904
+                 this.picform.linkaddress = "";
881
                  this.GetRotationImages();
905
                  this.GetRotationImages();
882
                }
906
                }
883
             })
907
             })
911
                    var oldrotation  = response.data.data.oldrotation;
935
                    var oldrotation  = response.data.data.oldrotation;
912
                    this.slideshow = false;
936
                    this.slideshow = false;
913
                     this.$emit('getOrderModel');
937
                     this.$emit('getOrderModel');
938
+                    this.rotationform.title = "";
939
+                    this.rotationform.sort = "";
940
+                    this.rotationdata = [];
941
+                    this.rotationform.ids = [];
942
+                    this.totalImages = 0;
914
                  } 
943
                  } 
915
             })
944
             })
916
           }
945
           }
917
         })
946
         })
918
       },
947
       },
919
-      deleteImages(id,index){
948
+      deleteImages(id,imgshow,index){
920
         deleteImages(id).then(response=>{
949
         deleteImages(id).then(response=>{
921
            if(response.data.state == 1){
950
            if(response.data.state == 1){
922
-               this.rotationdata.splice(index,1)
951
+               this.rotationdata.splice(index,1);
952
+              var total =  response.data.data.total;
953
+              this.totalImages = total;
954
+               this.isNoEpity = true;
923
            }
955
            }
924
         })
956
         })
925
       },
957
       },
943
 </script>
975
 </script>
944
 
976
 
945
 <style rel="stylesheet/scss" lang="scss" scoped>
977
 <style rel="stylesheet/scss" lang="scss" scoped>
946
- 
978
+   .tpic{
979
+     margin-left: 50px;
980
+   }
947
    .map {
981
    .map {
948
         width: 100%;
982
         width: 100%;
949
         height: 400px;
983
         height: 400px;

+ 57 - 22
src/scrm_pages/site/components/new-feature.vue View File

57
   <el-dialog
57
   <el-dialog
58
     title="新增轮播图"
58
     title="新增轮播图"
59
     :visible.sync="dialogVisible"
59
     :visible.sync="dialogVisible"
60
-    width="35%"
60
+    width="36%"
61
     center>
61
     center>
62
     <el-form ref="rotationform" :model="rotationform" label-width="90px" :rules="rules" >
62
     <el-form ref="rotationform" :model="rotationform" label-width="90px" :rules="rules" >
63
       <el-form-item label="模块标题:" required prop="title">
63
       <el-form-item label="模块标题:" required prop="title">
64
         <el-input v-model="rotationform.title" @input="changeInput($event)"></el-input>
64
         <el-input v-model="rotationform.title" @input="changeInput($event)"></el-input>
65
       </el-form-item>
65
       </el-form-item>
66
       <el-form-item label="排序值:" required prop="sort">
66
       <el-form-item label="排序值:" required prop="sort">
67
-        <el-input v-model="rotationform.sort" @input="changeInput($event)"></el-input>
67
+        <el-input v-model="rotationform.sort" @input="changeInput($event)" type="number"></el-input>
68
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
68
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
69
       </el-form-item>
69
       </el-form-item>
70
         <el-form-item label="添加图片:">
70
         <el-form-item label="添加图片:">
92
                    </div>
92
                    </div>
93
                 </div>
93
                 </div>
94
              </div>
94
              </div>
95
+             <p class="tips">图片已上传{{totalImages}}张,最多上传9张</p>
95
       </el-form-item>
96
       </el-form-item>
96
-       <!-- <span class="uploadfont">图片已上传0张,最多上传9张图片</span> -->
97
     </el-form>
97
     </el-form>
98
     <span slot="footer" class="dialog-footer">
98
     <span slot="footer" class="dialog-footer">
99
       <el-button @click="dialogVisible = false">取 消</el-button>
99
       <el-button @click="dialogVisible = false">取 消</el-button>
103
 
103
 
104
    <!-- 编辑图片 -->
104
    <!-- 编辑图片 -->
105
    <el-dialog
105
    <el-dialog
106
-     title="编辑图片"
106
+     title="添加图片"
107
      :visible.sync="addpicVisible"
107
      :visible.sync="addpicVisible"
108
      width="35%"
108
      width="35%"
109
      center>
109
      center>
116
            action="https://upload.qiniup.com"
116
            action="https://upload.qiniup.com"
117
           :show-file-list="false"
117
           :show-file-list="false"
118
           :on-success="rotationSuccess"
118
           :on-success="rotationSuccess"
119
-          :before-upload="rotationUpload">
119
+          :before-upload="rotationUpload"
120
+          :limit="9">
120
           <img v-if="picform.imageUrl" :src="picform.imageUrl" class="avatar">
121
           <img v-if="picform.imageUrl" :src="picform.imageUrl" class="avatar">
121
           <i v-else class="el-icon-plus avatar-uploader-icon"></i>
122
           <i v-else class="el-icon-plus avatar-uploader-icon"></i>
122
         </el-upload> 
123
         </el-upload> 
137
     </el-form-item>
138
     </el-form-item>
138
     <el-form-item label="排序值:" required prop="sort">
139
     <el-form-item label="排序值:" required prop="sort">
139
        <el-col :span="24">
140
        <el-col :span="24">
140
-         <el-input v-model="picform.sort" style="width:410px"></el-input>
141
+         <el-input v-model="picform.sort" style="width:410px" type="number"></el-input>
141
        </el-col>   
142
        </el-col>   
142
     </el-form-item>
143
     </el-form-item>
143
     <el-form-item label="图片链接:">
144
     <el-form-item label="图片链接:">
144
         <el-radio-group v-model="picform.imagelink">
145
         <el-radio-group v-model="picform.imagelink">
145
-          <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderOptions" :key="index" @change="select(gender.id)">{{gender.name}}</el-radio>
146
+          <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderPicLink" :key="index" @change="select(gender.id)">{{gender.name}}</el-radio>
146
         </el-radio-group>
147
         </el-radio-group>
147
     </el-form-item>
148
     </el-form-item>
148
     <el-form-item label="链接地址:"  v-show="selectone">
149
     <el-form-item label="链接地址:"  v-show="selectone">
260
         <el-input v-model="hispitalform.title"></el-input>
261
         <el-input v-model="hispitalform.title"></el-input>
261
       </el-form-item>
262
       </el-form-item>
262
       <el-form-item label="排序值:" required prop="sort">
263
       <el-form-item label="排序值:" required prop="sort">
263
-        <el-input v-model="hispitalform.sort"></el-input>
264
+        <el-input v-model="hispitalform.sort" type="number"></el-input>
264
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
265
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
265
       </el-form-item>
266
       </el-form-item>
266
       <el-form-item label="医院介绍:" required prop="introduction">
267
       <el-form-item label="医院介绍:" required prop="introduction">
289
         <el-input v-model="administform.title"></el-input>
290
         <el-input v-model="administform.title"></el-input>
290
       </el-form-item>
291
       </el-form-item>
291
       <el-form-item label="排序值:" required prop="sort">
292
       <el-form-item label="排序值:" required prop="sort">
292
-        <el-input v-model="administform.sort" ></el-input>
293
+        <el-input v-model="administform.sort" type="number" ></el-input>
293
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
294
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
294
       </el-form-item>
295
       </el-form-item>
295
       <el-form-item label="科室介绍:" required prop="introduction">
296
       <el-form-item label="科室介绍:" required prop="introduction">
318
         <el-input v-model="doctorform.title"></el-input>
319
         <el-input v-model="doctorform.title"></el-input>
319
       </el-form-item>
320
       </el-form-item>
320
       <el-form-item label="排序值:" required prop="sort">
321
       <el-form-item label="排序值:" required prop="sort">
321
-        <el-input v-model="doctorform.sort"></el-input>
322
+        <el-input v-model="doctorform.sort" type="number"></el-input>
322
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
323
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
323
       </el-form-item>
324
       </el-form-item>
324
       <el-form-item label="新增名医:" v-model="doctorform.image">
325
       <el-form-item label="新增名医:" v-model="doctorform.image">
403
                    </el-col>
404
                    </el-col>
404
                    <el-col :span="16">
405
                    <el-col :span="16">
405
                     <el-form-item label="排序值:" required prop="sort">
406
                     <el-form-item label="排序值:" required prop="sort">
406
-                      <el-input v-model="eidtDoctorform.sort"></el-input>
407
+                      <el-input v-model="eidtDoctorform.sort" type="number"></el-input>
407
                     </el-form-item>
408
                     </el-form-item>
408
                   </el-col>
409
                   </el-col>
409
                </el-form-item>  
410
                </el-form-item>  
466
                    </el-col>
467
                    </el-col>
467
                    <el-col :span="12">
468
                    <el-col :span="12">
468
                     <el-form-item label="排序值:" required prop="doc_sort">
469
                     <el-form-item label="排序值:" required prop="doc_sort">
469
-                      <el-input v-model="editdocfrom.doc_sort"></el-input>
470
+                      <el-input v-model="editdocfrom.doc_sort" type="number"></el-input>
470
                     </el-form-item>
471
                     </el-form-item>
471
                   </el-col>
472
                   </el-col>
472
                </el-form-item>  
473
                </el-form-item>  
499
         <el-input v-model="keform.title"></el-input>
500
         <el-input v-model="keform.title"></el-input>
500
       </el-form-item>
501
       </el-form-item>
501
       <el-form-item label="排序值: " required prop="sort">
502
       <el-form-item label="排序值: " required prop="sort">
502
-        <el-input v-model="keform.sort"></el-input>
503
+        <el-input v-model="keform.sort" type="number"></el-input>
503
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
504
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
504
       </el-form-item>
505
       </el-form-item>
505
-      <el-form-item label="新增科室环境:" required prop="keImages" v-model="keform.keImages">
506
+      <el-form-item label="新增科室环境:"  v-model="keform.keImages" >
506
            <div class="flex-img">
507
            <div class="flex-img">
507
-              <div class="el-upload-list el-upload-list--picture-card">            
508
+              <div class="el-upload-list el-upload-list--picture-card" v-show="isEmpty">            
508
                   <div class="el-upload-list__item is-success"  v-for="(it,index) in this.rotationdata" :key="it.id">             
509
                   <div class="el-upload-list__item is-success"  v-for="(it,index) in this.rotationdata" :key="it.id">             
509
                     <img class="flex-img__image" :src="it.enviroimages">              
510
                     <img class="flex-img__image" :src="it.enviroimages">              
510
                     <label class="el-upload-list__item-status-label">
511
                     <label class="el-upload-list__item-status-label">
607
         <el-input v-model="articeform.title"></el-input>
608
         <el-input v-model="articeform.title"></el-input>
608
       </el-form-item>
609
       </el-form-item>
609
       <el-form-item label="排序值:" required prop="sort">
610
       <el-form-item label="排序值:" required prop="sort">
610
-        <el-input v-model="articeform.sort"></el-input>
611
+        <el-input v-model="articeform.sort" type="number"></el-input>
611
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
612
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
612
       </el-form-item>
613
       </el-form-item>
613
       <el-form-item label="文章分类: ">
614
       <el-form-item label="文章分类: ">
649
         <el-input v-model="activeform.title"></el-input>
650
         <el-input v-model="activeform.title"></el-input>
650
       </el-form-item>
651
       </el-form-item>
651
       <el-form-item label="排序值: " required prop="sort">
652
       <el-form-item label="排序值: " required prop="sort">
652
-        <el-input v-model="activeform.sort"></el-input>
653
+        <el-input v-model="activeform.sort" type="number"></el-input>
653
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
654
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
654
       </el-form-item>
655
       </el-form-item>
655
      
656
      
674
         <el-input v-model="marginform.title"></el-input>
675
         <el-input v-model="marginform.title"></el-input>
675
       </el-form-item>
676
       </el-form-item>
676
       <el-form-item label="排序值:" required prop="sort">
677
       <el-form-item label="排序值:" required prop="sort">
677
-        <el-input v-model="marginform.sort"></el-input>
678
+        <el-input v-model="marginform.sort" type="number"></el-input>
678
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
679
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
679
       </el-form-item>
680
       </el-form-item>
680
        <el-form-item label="添加图片:" v-model="marginform.marginImages" required prop="marginImages">
681
        <el-form-item label="添加图片:" v-model="marginform.marginImages" required prop="marginImages">
917
         </el-upload>
918
         </el-upload>
918
       </el-form-item>
919
       </el-form-item>
919
       <el-form-item label="排序值:" required prop="sort">
920
       <el-form-item label="排序值:" required prop="sort">
920
-          <el-input v-model="editrotationform.sort"></el-input> 
921
+          <el-input v-model="editrotationform.sort" type="number"></el-input> 
921
       </el-form-item>
922
       </el-form-item>
922
       <el-form-item label="图片链接:">
923
       <el-form-item label="图片链接:">
923
           <el-radio-group v-model="editrotationform.piclink">
924
           <el-radio-group v-model="editrotationform.piclink">
992
    getQueryDoCHead,editDoctor,saveDocInfo,deleteDoctor,AddImageslink,getEditImages,AddMagicNavi,getMagicImages,AddMarginChart,
993
    getQueryDoCHead,editDoctor,saveDocInfo,deleteDoctor,AddImageslink,getEditImages,AddMagicNavi,getMagicImages,AddMarginChart,
993
    deleteRotations,editRotationImages,updateRotionImages,addActiveform,deleteMargin,getEditImagesDetail,UpdateEditMacgin,getArticleType
994
    deleteRotations,editRotationImages,updateRotionImages,addActiveform,deleteMargin,getEditImagesDetail,UpdateEditMacgin,getArticleType
994
    ,AddArticeList,getEnImages,EditEnvirImages,AddtwoImages,deleteOfficeById,GetArticleById,GetAllActivity,AddLinkAddress,AddMagiclinkData,
995
    ,AddArticeList,getEnImages,EditEnvirImages,AddtwoImages,deleteOfficeById,GetArticleById,GetAllActivity,AddLinkAddress,AddMagiclinkData,
995
-   getMacLinkAddress} from '@/api/site/site'  
996
+   getMacLinkAddress,getCountImages} from '@/api/site/site'  
996
    import { getToken } from '@/api/qiniu'
997
    import { getToken } from '@/api/qiniu'
997
    import { getFileExtension} from '@/utils/tools'
998
    import { getFileExtension} from '@/utils/tools'
998
    import { isIP, isIPv4 } from 'net';
999
    import { isIP, isIPv4 } from 'net';
1028
        }
1029
        }
1029
      }     
1030
      }     
1030
     return {
1031
     return {
1032
+       genderPicLink:[
1033
+         {id:1,name:"无"},
1034
+         {id:2,name:"自定义"},
1035
+       ],
1031
       genderOptions:[
1036
       genderOptions:[
1032
         {id:1, name:'自定义'},
1037
         {id:1, name:'自定义'},
1033
         {id:2, name:'不跳转'},
1038
         {id:2, name:'不跳转'},
1269
       },
1274
       },
1270
       articeNamelist:[],
1275
       articeNamelist:[],
1271
       patientRotation:[],
1276
       patientRotation:[],
1277
+      totalImages:0,
1272
        rules: {
1278
        rules: {
1273
          title: [{required: true, message: "请填写模块标题",},],
1279
          title: [{required: true, message: "请填写模块标题",},],
1274
          sort: [{required: true,message:"请填写排序值"},{validator:checkNumberRule}],
1280
          sort: [{required: true,message:"请填写排序值"},{validator:checkNumberRule}],
1448
         handleRemove() {
1454
         handleRemove() {
1449
             this.file = '';
1455
             this.file = '';
1450
       },
1456
       },
1457
+     
1451
       define(){
1458
       define(){
1452
          alert("aa")
1459
          alert("aa")
1453
       },
1460
       },
1660
                     this.rotationform.title = "";
1667
                     this.rotationform.title = "";
1661
                     this.rotationform.sort = "";
1668
                     this.rotationform.sort = "";
1662
                     this.rotationform.rotationImages = [];  
1669
                     this.rotationform.rotationImages = [];  
1670
+                    this.rotationform.ids=[];
1663
                     this.isEmpty = false;
1671
                     this.isEmpty = false;
1672
+                    this.totalImages = 0;
1664
                   }
1673
                   }
1665
               })
1674
               })
1666
             }
1675
             }
1954
           if(valid){
1963
           if(valid){
1955
           AddImages(this.officeform).then(response=>{
1964
           AddImages(this.officeform).then(response=>{
1956
              this.getEnImages();
1965
              this.getEnImages();
1966
+             this.officeform.sort = "";
1967
+             this.officeform.enviroimages = "";
1968
+             this.isEmpty = true;
1957
            })
1969
            })
1958
           }
1970
           }
1959
         })
1971
         })
2005
                   if(response.data.state == 1){
2017
                   if(response.data.state == 1){
2006
                     var offenvironment = response.data.data.offenvironment;
2018
                     var offenvironment = response.data.data.offenvironment;
2007
                     this.five = false;
2019
                     this.five = false;
2020
+                    this.keform.sort = "";
2021
+                    this.keform.title = "";
2022
+                    this.keform.keImages = [];
2023
+                    this.keform.ids=[];
2024
+                    this.isEmpty = false;
2008
                     console.log("返回数据",offenvironment);
2025
                     console.log("返回数据",offenvironment);
2009
                      this.$emit('getHospitaldata')
2026
                      this.$emit('getHospitaldata')
2010
                   }
2027
                   }
2047
      },
2064
      },
2048
      select(id){
2065
      select(id){
2049
         if(id == 1){
2066
         if(id == 1){
2050
-          this.selectone = true;
2067
+          this.selectone = false;
2051
         }
2068
         }
2052
 
2069
 
2053
         if(id == 2){
2070
         if(id == 2){
2054
-          this.selectone = false;
2071
+          this.selectone = true;
2055
         }
2072
         }
2056
      },
2073
      },
2057
       selectItemtwo(id){
2074
       selectItemtwo(id){
2107
              AddImageslink(this.picform.id,this.picform).then(response=>{
2124
              AddImageslink(this.picform.id,this.picform).then(response=>{
2108
                 if(response.data.state ==1){
2125
                 if(response.data.state ==1){
2109
                   var editpiclink = response.data.data.editpiclink;
2126
                   var editpiclink = response.data.data.editpiclink;
2127
+                  var total = response.data.data.total;
2128
+                  this.totalImages = total;
2129
+                  if(total>=9){
2130
+                     this.isNoEmpty = false;
2131
+                  }
2110
                   console.log("数据返回",editpiclink)
2132
                   console.log("数据返回",editpiclink)
2111
                   this.picform.linkaddress = "",
2133
                   this.picform.linkaddress = "",
2112
                   this.getEditImages();
2134
                   this.getEditImages();
2201
        }).then(()=>{
2223
        }).then(()=>{
2202
          deleteRotations(id).then(response=>{
2224
          deleteRotations(id).then(response=>{
2203
              if(response.data.state == 1){
2225
              if(response.data.state == 1){
2226
+               var total = response.data.data.total;
2227
+               this.totalImages = total;
2204
                this.rotationdatatwo.splice(index,1)
2228
                this.rotationdatatwo.splice(index,1)
2229
+               this.isNoEmpty = true;
2205
              }
2230
              }
2206
          })
2231
          })
2207
        })
2232
        })
2402
              console.log("返回链接数据",magiclink)
2427
              console.log("返回链接数据",magiclink)
2403
           }
2428
           }
2404
        })
2429
        })
2430
+     },
2431
+     getCountImages(){
2432
+       getCountImages().then(response=>{
2433
+          if(response.data.state == 1){
2434
+           var total =  response.data.data.total;
2435
+           this.totalImages = total;
2436
+           console.log("total是什么",total)
2437
+          }
2438
+       })
2405
      } 
2439
      } 
2406
   },  
2440
   },  
2407
   
2441
   
2413
      this.getArticleType();
2447
      this.getArticleType();
2414
      this.getEnImages();
2448
      this.getEnImages();
2415
      this.getMacLinkAddress();
2449
      this.getMacLinkAddress();
2450
+    //  this.getCountImages();
2416
    },
2451
    },
2417
  
2452
  
2418
  };
2453
  };

File diff suppressed because it is too large
+ 880 - 648
src/scrm_pages/site/preview.vue