|
@@ -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
|
};
|