xiaoming_global 5 yıl önce
ebeveyn
işleme
30790362b6

+ 3 - 3
package-lock.json Dosyayı Görüntüle

@@ -13639,9 +13639,9 @@
13639 13639
       }
13640 13640
     },
13641 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 13645
       "requires": {
13646 13646
         "dom7": "^2.1.3",
13647 13647
         "ssr-window": "^1.0.1"

+ 1 - 1
package.json Dosyayı Görüntüle

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

+ 39 - 4
src/api/site/site.js Dosyayı Görüntüle

@@ -435,6 +435,7 @@ export function docmore(id,data){
435 435
 }
436 436
 
437 437
 export function kemore(id,data){
438
+    console.log('香港回归',id)
438 439
    return request({
439 440
        url:"/api/site/kemore?id="+id,
440 441
        method:'Get',
@@ -458,9 +459,10 @@ export function Activitiesmore(id,data){
458 459
     })
459 460
 }
460 461
 
461
-export function addNavigation(data){
462
+export function addNavigation(id,data){
463
+    console.log("id是什么",id)
462 464
     return request({
463
-        url:"/api/site/addnavigation",
465
+        url:"/api/site/addnavigation?id="+id,
464 466
         method:"Post",
465 467
         data:data,
466 468
     })
@@ -542,7 +544,6 @@ export function addrotationImage(data){
542 544
 }
543 545
 
544 546
 export function AddImageslink(id,data){
545
-    console.log("id是多少呢法阿发",id)
546 547
    return request({
547 548
        url:"/api/site/addimageslink?id="+id,
548 549
        method:"Post",
@@ -1123,4 +1124,38 @@ export function GetLinkAddress(id,params){
1123 1124
        method:"Get",
1124 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 Dosyayı Görüntüle

@@ -22,7 +22,8 @@ import './xt_permission'
22 22
 // import './mock' // simulation data
23 23
 
24 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 27
 //引入mint-ui
27 28
 import Mint from 'mint-ui';
28 29
 Vue.use(Mint);
@@ -30,7 +31,6 @@ Vue.use(Mint);
30 31
 //引入无线滚条
31 32
 
32 33
 import { read } from 'fs';
33
-import 'swiper/dist/css/swiper.min.css'
34 34
 import BaiduMap from 'vue-baidu-map'
35 35
 Vue.use(Element, {
36 36
   size: 'medium', // set element-ui default size

+ 47 - 13
src/scrm_pages/site/components/add-contact.vue Dosyayı Görüntüle

@@ -46,7 +46,7 @@
46 46
         <el-input v-model="rotationform.title"></el-input>
47 47
       </el-form-item>
48 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 50
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
51 51
       </el-form-item>
52 52
      <el-form-item label="添加图片:">
@@ -65,7 +65,7 @@
65 65
                     </span>
66 66
                    </div>         
67 67
                 </div>     
68
-                <div class="addrot" @click="addVisible = true;showpic = false">
68
+                <div class="addrot" @click="addVisible = true;showpic = false" v-show="isNoEpity">
69 69
                  <div class="docone">
70 70
                   <li class="el-icon-plus"></li>  
71 71
                    <div class="doctwo">
@@ -74,6 +74,7 @@
74 74
                   </div>  
75 75
                 </div>
76 76
              </div>
77
+            <p class="tips">图片已上传{{totalImages}}张,最多上传9张</p>
77 78
       </el-form-item>
78 79
     </el-form>
79 80
     <span slot="footer" class="dialog-footer">
@@ -94,7 +95,7 @@
94 95
         <el-input v-model="hospitalform.title" ></el-input>
95 96
       </el-form-item>
96 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 99
         <!-- <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p> -->
99 100
       </el-form-item>
100 101
        <el-form-item label="医院地址:" required prop="address">
@@ -127,7 +128,7 @@
127 128
         <el-input v-model="contractform.title"></el-input>
128 129
       </el-form-item>
129 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 132
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
132 133
       </el-form-item>
133 134
       <el-form-item label="联系方式:">
@@ -238,7 +239,7 @@
238 239
         <el-input v-model="woketimeform.title"></el-input>
239 240
       </el-form-item>
240 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 243
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
243 244
       </el-form-item>
244 245
       <el-form-item label="工作时间:" required prop="worktime">
@@ -268,7 +269,7 @@
268 269
         <el-input v-model="rideform.title"></el-input>
269 270
       </el-form-item>
270 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 273
         <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
273 274
       </el-form-item>
274 275
       <el-form-item label="乘车方式:" required prop="content">
@@ -298,15 +299,28 @@
298 299
      center>
299 300
   <el-form ref="picform" :model="picform" label-width="90px" :rules="rules">
300 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 317
              <div class="docone">
304 318
                 <li class="el-icon-plus"></li>  
305 319
                 <div class="doctwo">
306 320
                  <span>新增图片</span>
307 321
                </div>
308 322
             </div>  
309
-         </div>  
323
+         </div>   -->
310 324
       </el-col>
311 325
       <el-col :span="19">
312 326
           <div class="tpic" v-show="showpic"> 
@@ -316,7 +330,7 @@
316 330
     </el-form-item>
317 331
     <el-form-item label="排序值:" required prop="sort">
318 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 334
        </el-col>   
321 335
     </el-form-item>
322 336
     <el-form-item label="图片链接:">
@@ -570,6 +584,8 @@ export default {
570 584
        define:false,
571 585
        articeTypelist:[],
572 586
        articeNamelist:[],
587
+       isNoEpity:true,
588
+       totalImages:0,
573 589
     };
574 590
   },
575 591
   methods:{
@@ -878,6 +894,14 @@ export default {
878 894
             addrotationpic(this.picform).then(response=>{
879 895
                if(response.data.state ==1){
880 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 905
                  this.GetRotationImages();
882 906
                }
883 907
             })
@@ -911,15 +935,23 @@ export default {
911 935
                    var oldrotation  = response.data.data.oldrotation;
912 936
                    this.slideshow = false;
913 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 949
         deleteImages(id).then(response=>{
921 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,7 +975,9 @@ export default {
943 975
 </script>
944 976
 
945 977
 <style rel="stylesheet/scss" lang="scss" scoped>
946
- 
978
+   .tpic{
979
+     margin-left: 50px;
980
+   }
947 981
    .map {
948 982
         width: 100%;
949 983
         height: 400px;

+ 57 - 22
src/scrm_pages/site/components/new-feature.vue Dosyayı Görüntüle

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

Dosya farkı çok büyük olduğundan ihmal edildi
+ 880 - 648
src/scrm_pages/site/preview.vue