|
@@ -761,15 +761,15 @@
|
761
|
761
|
</el-form-item>
|
762
|
762
|
<el-form-item label="跳转设置" required prop="jumpset">
|
763
|
763
|
<el-radio-group v-model="editmarginform.jumpset">
|
764
|
|
- <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderOptions" :key="index" @change="selectGender(gender.id)">{{gender.name}}</el-radio>
|
|
764
|
+ <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderOptions" :key="index" @change="rotationGender(gender.id)">{{gender.name}}</el-radio>
|
765
|
765
|
</el-radio-group>
|
766
|
766
|
</el-form-item>
|
767
|
767
|
<el-form-item>
|
768
|
768
|
<el-col :span="15">
|
769
|
|
- <el-input style="width:300px" v-model="editmarginform.marginaddress" v-show="define"></el-input>
|
|
769
|
+ <el-input style="width:300px" v-model="editmarginform.marginaddress" v-show="definefive" :disabled="true"></el-input>
|
770
|
770
|
</el-col>
|
771
|
771
|
<el-col :span="4">
|
772
|
|
- <el-button size="medium" @click="magicVisible=true" v-show="define">设置链接</el-button>
|
|
772
|
+ <el-button size="medium" @click="magicVisible=true" v-show="definefive">设置链接</el-button>
|
773
|
773
|
</el-col>
|
774
|
774
|
</el-form-item>
|
775
|
775
|
</el-form>
|
|
@@ -780,7 +780,7 @@
|
780
|
780
|
</el-dialog>
|
781
|
781
|
|
782
|
782
|
<el-dialog
|
783
|
|
- title="设置链接地址"
|
|
783
|
+ title="设置链接地址6"
|
784
|
784
|
:visible.sync="magicVisible"
|
785
|
785
|
width="30%"
|
786
|
786
|
center>
|
|
@@ -809,7 +809,7 @@
|
809
|
809
|
</el-form>
|
810
|
810
|
<span slot="footer" class="dialog-footer">
|
811
|
811
|
<el-button @click="magicVisible = false">取 消</el-button>
|
812
|
|
- <el-button type="primary" @click="AddMagiclinkData('maclinkform');">确 定</el-button>
|
|
812
|
+ <el-button type="primary" @click="AddMagiclinkDataTwo('maclinkform');">确 定</el-button>
|
813
|
813
|
</span>
|
814
|
814
|
</el-dialog>
|
815
|
815
|
|
|
@@ -837,7 +837,7 @@
|
837
|
837
|
</el-form-item>
|
838
|
838
|
<el-form-item label="图片链接:">
|
839
|
839
|
<el-radio-group v-model="editrotationform.piclink">
|
840
|
|
- <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderOptions" :key="index" @change="select(gender.id)">{{gender.name}}</el-radio>
|
|
840
|
+ <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in genderPicLink" :key="index" @change="select(gender.id)">{{gender.name}}</el-radio>
|
841
|
841
|
</el-radio-group>
|
842
|
842
|
</el-form-item>
|
843
|
843
|
<el-form-item label="链接地址:" v-show="selectone">
|
|
@@ -869,7 +869,7 @@
|
869
|
869
|
</el-form>
|
870
|
870
|
<span slot="footer" class="dialog-footer">
|
871
|
871
|
<el-button @click="rotationVisible = false">取 消</el-button>
|
872
|
|
- <el-button type="primary" @click="AddRotationVisibleForm('rotationvisibleform');rotationVisible = false">确 定</el-button>
|
|
872
|
+ <el-button type="primary" @click="AddRotationVisibleForm('rotationvisibleform');">确 定</el-button>
|
873
|
873
|
</span>
|
874
|
874
|
</el-dialog>
|
875
|
875
|
</div>
|
|
@@ -880,7 +880,7 @@
|
880
|
880
|
getQueryDoCHead,editDoctor,saveDocInfo,deleteDoctor,AddImageslink,getEditImages,AddMagicNavi,getMagicImages,AddMarginChart,
|
881
|
881
|
deleteRotations,editRotationImages,updateRotionImages,addActiveform,deleteMargin,getEditImagesDetail,UpdateEditMacgin,getArticleType
|
882
|
882
|
,AddArticeList,getEnImages,EditEnvirImages,AddtwoImages,deleteOfficeById,GetArticleById,GetAllActivity,AddLinkAddress,AddMagiclinkData,
|
883
|
|
- getMacLinkAddress,getCountImages,getAllModelTitle, GetMagicLinkAddressByID,GetRotationVisibleByLinkId,AddRotationVisibleForm} from '@/api/site/site'
|
|
883
|
+ getMacLinkAddress,getCountImages,getAllModelTitle, GetMagicLinkAddressByID,GetRotationVisibleByLinkId,AddRotationVisibleForm,AddMagiclinkDataTwo} from '@/api/site/site'
|
884
|
884
|
import { getToken } from '@/api/qiniu'
|
885
|
885
|
import { getFileExtension} from '@/utils/tools'
|
886
|
886
|
import { isIP, isIPv4 } from 'net';
|
|
@@ -974,11 +974,8 @@ export default {
|
974
|
974
|
maclinkform:{
|
975
|
975
|
linkType:'',
|
976
|
976
|
instationlink:'',
|
977
|
|
- articeType:'',
|
978
|
|
- title:'',
|
979
|
977
|
phone:'',
|
980
|
978
|
outstationlink:'',
|
981
|
|
- linkaddress:'',
|
982
|
979
|
},
|
983
|
980
|
articeTypelist:[],
|
984
|
981
|
acticeNamelist:[],
|
|
@@ -987,6 +984,7 @@ export default {
|
987
|
984
|
definetwo:false,
|
988
|
985
|
definethree:false,
|
989
|
986
|
definefour:false,
|
|
987
|
+ definefive:true,
|
990
|
988
|
selectone:false,
|
991
|
989
|
rotationVisible:false,
|
992
|
990
|
officeVisible:false,
|
|
@@ -1017,14 +1015,14 @@ export default {
|
1017
|
1015
|
gender:"",
|
1018
|
1016
|
},
|
1019
|
1017
|
value: '',
|
1020
|
|
- new1: require("../../../assets/preview/u481.png"),
|
1021
|
|
- new2: require("../../../assets/preview/u493.png"),
|
1022
|
|
- new3: require("../../../assets/preview/u496.png"),
|
1023
|
|
- new4: require("../../../assets/preview/u488.png"),
|
1024
|
|
- new5: require("../../../assets/preview/u500.png"),
|
1025
|
|
- new6: require("../../../assets/preview/u504.png"),
|
1026
|
|
- new7: require("../../../assets/preview/u508.png"),
|
1027
|
|
- new8: require("../../../assets/preview/u512.png"),
|
|
1018
|
+ new1: require("../../../assets/preview/轮播图.png"),
|
|
1019
|
+ new2: require("../../../assets/preview/医院介绍.png"),
|
|
1020
|
+ new3: require("../../../assets/preview/科室介绍.png"),
|
|
1021
|
+ new4: require("../../../assets/preview/名医介绍.png"),
|
|
1022
|
+ new5: require("../../../assets/preview/科室环境.png"),
|
|
1023
|
+ new6: require("../../../assets/preview/文章列表.png"),
|
|
1024
|
+ new7: require("../../../assets/preview/活动列表.png"),
|
|
1025
|
+ new8: require("../../../assets/preview/魔方导航.png"),
|
1028
|
1026
|
dialogVisible: false,
|
1029
|
1027
|
dialogRotationVisible: false,
|
1030
|
1028
|
editcenterDialogVisible: false,
|
|
@@ -1119,7 +1117,7 @@ export default {
|
1119
|
1117
|
margtitle:"",
|
1120
|
1118
|
margImage:"",
|
1121
|
1119
|
marginaddress:"",
|
1122
|
|
- jumpset:"",
|
|
1120
|
+ jumpset:1,
|
1123
|
1121
|
linkid:"",
|
1124
|
1122
|
},
|
1125
|
1123
|
keform:{
|
|
@@ -1132,7 +1130,7 @@ export default {
|
1132
|
1130
|
id:"",
|
1133
|
1131
|
imageUrl:"",
|
1134
|
1132
|
sort:"",
|
1135
|
|
- imagelink:"",
|
|
1133
|
+ imagelink:1,
|
1136
|
1134
|
linkaddress:"",
|
1137
|
1135
|
},
|
1138
|
1136
|
|
|
@@ -1339,10 +1337,6 @@ export default {
|
1339
|
1337
|
this.file = '';
|
1340
|
1338
|
},
|
1341
|
1339
|
|
1342
|
|
- define(){
|
1343
|
|
- alert("aa")
|
1344
|
|
- },
|
1345
|
|
-
|
1346
|
1340
|
handleAvatarSuccess(res, file) {
|
1347
|
1341
|
this.eidtDoctorform.dochead = this.qiniuDomain + res.url;
|
1348
|
1342
|
},
|
|
@@ -1929,6 +1923,14 @@ export default {
|
1929
|
1923
|
this.define = false;
|
1930
|
1924
|
}
|
1931
|
1925
|
},
|
|
1926
|
+ rotationGender(id){
|
|
1927
|
+ if(id == 1){
|
|
1928
|
+ this.definefive = true;
|
|
1929
|
+ }
|
|
1930
|
+ if(id == 2){
|
|
1931
|
+ this.definefive = false;
|
|
1932
|
+ }
|
|
1933
|
+ },
|
1932
|
1934
|
selectItem(id){
|
1933
|
1935
|
if(id == 1){
|
1934
|
1936
|
this.definetwo = false;
|
|
@@ -1973,8 +1975,6 @@ export default {
|
1973
|
1975
|
this.definethree = false;
|
1974
|
1976
|
this.definefour = false;
|
1975
|
1977
|
this.maclinkform.instationlink = '';
|
1976
|
|
- this.maclinkform.articeType = '';
|
1977
|
|
-
|
1978
|
1978
|
this.maclinkform.phone = '';
|
1979
|
1979
|
this.maclinkform.outstationlink = '';
|
1980
|
1980
|
|
|
@@ -1984,26 +1984,24 @@ export default {
|
1984
|
1984
|
this.definetwo = true;
|
1985
|
1985
|
this.definethree = false;
|
1986
|
1986
|
this.definefour = false;
|
1987
|
|
- this.maclinkform.phone = '';
|
1988
|
|
- this.maclinkform.outstationlink = '';
|
|
1987
|
+ this.maclinkform.phone = "";
|
|
1988
|
+ this.maclinkform.outstationlink = "";
|
1989
|
1989
|
}
|
1990
|
1990
|
|
1991
|
1991
|
if(id==3){
|
1992
|
1992
|
this.definethree = true;
|
1993
|
1993
|
this.definetwo = false;
|
1994
|
1994
|
this.definefour = false;
|
1995
|
|
- this.maclinkform.instationlink = '';
|
1996
|
|
- this.maclinkform.articeType = '';
|
1997
|
|
- this.maclinkform.outstationlink = '';
|
|
1995
|
+ this.maclinkform.instationlink = ""
|
|
1996
|
+ this.maclinkform.outstationlink = "";
|
1998
|
1997
|
}
|
1999
|
1998
|
|
2000
|
1999
|
if(id==4){
|
2001
|
2000
|
this.definefour = true;
|
2002
|
2001
|
this.definetwo = false;
|
2003
|
2002
|
this.definethree = false;
|
2004
|
|
- this.maclinkform.instationlink = '';
|
2005
|
|
- this.maclinkform.articeType = '' ;
|
2006
|
|
- this.maclinkform.phone = '';
|
|
2003
|
+ this.maclinkform.instationlink = "";
|
|
2004
|
+ this.maclinkform.phone = "";
|
2007
|
2005
|
}
|
2008
|
2006
|
},
|
2009
|
2007
|
|
|
@@ -2051,13 +2049,16 @@ export default {
|
2051
|
2049
|
},
|
2052
|
2050
|
|
2053
|
2051
|
AddMagicNavi(formName){
|
|
2052
|
+ if(this.editmarginform.linkid == ""){
|
|
2053
|
+ this.editmarginform.linkid = 0;
|
|
2054
|
+ }
|
2054
|
2055
|
this.$refs[formName].validate((valid)=>{
|
2055
|
2056
|
if(valid){
|
2056
|
2057
|
AddMagicNavi(this.editmarginform).then(response=>{
|
2057
|
2058
|
if(response.data.state == 1){
|
2058
|
|
- this.editmarginform.marginaddress = "";
|
2059
|
|
- this.getMagicImages();
|
2060
|
|
- var editmargin = response.data.data.editmargin;
|
|
2059
|
+ this.editmarginform.marginaddress = "";
|
|
2060
|
+ this.getMagicImages();
|
|
2061
|
+ var editmargin = response.data.data.editmargin;
|
2061
|
2062
|
this.isEmpty = true;
|
2062
|
2063
|
this.editmarginform.margtitle = "";
|
2063
|
2064
|
this.editmarginform.margImage = "";
|
|
@@ -2186,8 +2187,15 @@ export default {
|
2186
|
2187
|
editImages(id){
|
2187
|
2188
|
getEditImagesDetail(id,this.editmacform).then(response=>{
|
2188
|
2189
|
if(response.data.state == 1){
|
2189
|
|
- this.editmacform = response.data.data.editmargin;
|
|
2190
|
+
|
2190
|
2191
|
var editmargin = response.data.data.editmargin;
|
|
2192
|
+ if(editmargin.jumpset == 1){
|
|
2193
|
+ this.define = true;
|
|
2194
|
+ }
|
|
2195
|
+ if(editmargin.jumpset == 2){
|
|
2196
|
+ this.define = false;
|
|
2197
|
+ }
|
|
2198
|
+ this.editmacform = editmargin;
|
2191
|
2199
|
console.log("返回导航数据",editmargin)
|
2192
|
2200
|
}
|
2193
|
2201
|
})
|
|
@@ -2270,44 +2278,71 @@ export default {
|
2270
|
2278
|
|
2271
|
2279
|
}
|
2272
|
2280
|
},
|
2273
|
|
-
|
2274
|
|
- AddMagiclinkData(formName){
|
2275
|
|
-
|
|
2281
|
+ AddMagiclinkDataTwo(formName){
|
2276
|
2282
|
if(this.maclinkform.instationlink == ""){
|
2277
|
|
- this.maclinkform.instationlink = 0;
|
|
2283
|
+ this.maclinkform.instationlink = 0;
|
2278
|
2284
|
}
|
2279
|
|
- var instationlink = this.maclinkform.instationlink;
|
2280
|
|
- var instationlinks = parseInt(instationlink);
|
2281
|
|
- this.maclinkform.instationlink = instationlinks;
|
2282
|
|
- var articeType = this.maclinkform.articeType;
|
2283
|
|
- var articeTypes = parseInt(articeType);
|
2284
|
|
- this.maclinkform.articeType = articeTypes;
|
2285
|
|
-
|
2286
|
|
- if(this.maclinkform.title == ""){
|
2287
|
|
- this.maclinkform.title = 0;
|
2288
|
|
- }
|
2289
|
|
-
|
2290
|
|
- this.maclinkform.linkaddress = this.maclinkform.instationlink ;
|
2291
|
2285
|
this.$refs[formName].validate((valid)=>{
|
2292
|
2286
|
if(valid){
|
2293
|
|
- AddMagiclinkData(this.maclinkform).then(response=>{
|
2294
|
|
- if(response.data.state == 1){
|
2295
|
|
- var magiclink = response.data.data.magiclink;
|
2296
|
|
- var patientMagiclink = response.data.data.patientMagiclink;
|
2297
|
|
- this.editmarginform.marginaddress = magiclink.linkaddress;
|
2298
|
|
- this.editmarginform.linkid = magiclink.id
|
2299
|
|
- this.magicVisible = false;
|
2300
|
|
- console.log("链接返回数据",magiclink)
|
2301
|
|
- // this.maclinkform.articeType = "";
|
2302
|
|
- this.maclinkform.instationlink = "";
|
2303
|
|
- this.maclinkform.phone = "";
|
2304
|
|
- this.maclinkform.outstationlink = "";
|
2305
|
|
- // this.maclinkform.title = "";
|
2306
|
|
- }
|
|
2287
|
+ AddMagiclinkDataTwo(this.maclinkform).then(response=>{
|
|
2288
|
+ if(response.data.state == 1){
|
|
2289
|
+ console.log("hhehheehehehheh")
|
|
2290
|
+ this.magicVisible = false;
|
|
2291
|
+ }
|
2307
|
2292
|
})
|
2308
|
2293
|
}
|
2309
|
2294
|
})
|
2310
|
2295
|
},
|
|
2296
|
+
|
|
2297
|
+ // AddMagiclinkData(formName){
|
|
2298
|
+ // this.$refs[formName].validate((valid)=>{
|
|
2299
|
+ // if(valid){
|
|
2300
|
+ // if(this.maclinkform.instationlink == ""){
|
|
2301
|
+ // this.maclinkform.instationlink = 0;
|
|
2302
|
+ // }
|
|
2303
|
+ // var instationlink = this.maclinkform.instationlink;
|
|
2304
|
+ // var instationlinks = parseInt(instationlink);
|
|
2305
|
+ // this.maclinkform.instationlink = instationlinks;
|
|
2306
|
+ // AddMagiclinkData(this.maclinkform).then(response=>{
|
|
2307
|
+ // if(response.data.state == 1){
|
|
2308
|
+ // this.magicVisible = false;
|
|
2309
|
+ // var magiclink = response.data.data.magiclink;
|
|
2310
|
+ // console.log("链接返回数据",magiclink)
|
|
2311
|
+ // var model = response.data.data.model;
|
|
2312
|
+ // console.log("model是什么",model)
|
|
2313
|
+ // if(model.mode_type == 1){
|
|
2314
|
+ // this.editmacform.marginaddress = "javascript:;";
|
|
2315
|
+ // }
|
|
2316
|
+ // if(model.mode_type == 2){
|
|
2317
|
+ // this.editmarginform.marginaddress = "http://microweb.kuyicloud.com/#/hospitalIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
|
|
2318
|
+ // }
|
|
2319
|
+ // if(model.mode_type == 3){
|
|
2320
|
+ // this.editmarginform.marginaddress = "http://microweb.kuyicloud.com/#/officeIntroduction?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
|
|
2321
|
+ // }
|
|
2322
|
+ // if(model.mode_type == 4){
|
|
2323
|
+ // this.editmarginform.marginaddress = "http://microweb.kuyicloud.com/#/medicalTeam?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
|
|
2324
|
+ // }
|
|
2325
|
+ // if(model.mode_type == 5){
|
|
2326
|
+ // this.editmacform.marginaddress = "javascript:;";
|
|
2327
|
+ // }
|
|
2328
|
+ // if(model.mode_type == 6){
|
|
2329
|
+ // this.editmarginform.marginaddress = "http://microweb.kuyicloud.com/#/news?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
|
|
2330
|
+ // }
|
|
2331
|
+ // if(model.mode_type == 7){
|
|
2332
|
+ // this.editmarginform.marginaddress = "http://microweb.kuyicloud.com/#/activity?id="+model.id+"&orgid="+this.$store.getters.xt_user.org_id;
|
|
2333
|
+ // }
|
|
2334
|
+ // if(model.mode_type == 8){
|
|
2335
|
+ // this.editmacform.marginaddress = "javascript:;";
|
|
2336
|
+ // }
|
|
2337
|
+ // this.editmarginform.linkid = magiclink.id
|
|
2338
|
+ // this.maclinkform.instationlink = "";
|
|
2339
|
+ // this.maclinkform.phone = "";
|
|
2340
|
+ // this.maclinkform.outstationlink = "";
|
|
2341
|
+ // }
|
|
2342
|
+ // })
|
|
2343
|
+ // }
|
|
2344
|
+ // })
|
|
2345
|
+ // },
|
2311
|
2346
|
getMacLinkAddress(){
|
2312
|
2347
|
getMacLinkAddress().then(response=>{
|
2313
|
2348
|
if(response.data.state ==1){
|
|
@@ -2317,15 +2352,15 @@ export default {
|
2317
|
2352
|
}
|
2318
|
2353
|
})
|
2319
|
2354
|
},
|
2320
|
|
- getCountImages(){
|
2321
|
|
- getCountImages().then(response=>{
|
2322
|
|
- if(response.data.state == 1){
|
2323
|
|
- var total = response.data.data.total;
|
2324
|
|
- this.totalImages = total;
|
2325
|
|
- console.log("total是什么",total)
|
2326
|
|
- }
|
2327
|
|
- })
|
2328
|
|
- },
|
|
2355
|
+ // getCountImages(){
|
|
2356
|
+ // getCountImages().then(response=>{
|
|
2357
|
+ // if(response.data.state == 1){
|
|
2358
|
+ // var total = response.data.data.total;
|
|
2359
|
+ // this.totalImages = total;
|
|
2360
|
+ // console.log("total是什么",total)
|
|
2361
|
+ // }
|
|
2362
|
+ // })
|
|
2363
|
+ // },
|
2329
|
2364
|
getAllModelTitle(){
|
2330
|
2365
|
getAllModelTitle().then(response=>{
|
2331
|
2366
|
if(response.data.state == 1){
|
|
@@ -2359,6 +2394,7 @@ export default {
|
2359
|
2394
|
if(valid){
|
2360
|
2395
|
AddRotationVisibleForm(this.rotationvisibleform.id,this.rotationvisibleform).then(response=>{
|
2361
|
2396
|
if(response.data.state == 1){
|
|
2397
|
+ this.rotationVisible = false;
|
2362
|
2398
|
var linkaddress = response.data.data.linkaddress;
|
2363
|
2399
|
console.log("linkaddress",linkaddress);
|
2364
|
2400
|
this.editrotationform.linkaddress = linkaddress.defineaddress;
|
|
@@ -2377,7 +2413,7 @@ export default {
|
2377
|
2413
|
this.getArticleType();
|
2378
|
2414
|
this.getEnImages();
|
2379
|
2415
|
this.getMacLinkAddress();
|
2380
|
|
- this.getCountImages();
|
|
2416
|
+ // this.getCountImages();
|
2381
|
2417
|
this.getAllModelTitle();
|
2382
|
2418
|
},
|
2383
|
2419
|
|