|
@@ -121,14 +121,6 @@
|
121
|
121
|
<img v-if="picform.imageUrl" :src="picform.imageUrl" class="avatar">
|
122
|
122
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
123
|
123
|
</el-upload>
|
124
|
|
- <!-- <div class="addrot" @click="addpicdialogVisible = true">
|
125
|
|
- <div class="addrotone">
|
126
|
|
- <i class="el-icon-plus"></i>
|
127
|
|
- </div>
|
128
|
|
- <div class="addrotwo">
|
129
|
|
- <span>新增图片</span>
|
130
|
|
- </div>
|
131
|
|
- </div> -->
|
132
|
124
|
</el-col>
|
133
|
125
|
<el-col :span="19" v-show="isImages">
|
134
|
126
|
<div class="tpic">
|
|
@@ -148,7 +140,7 @@
|
148
|
140
|
</el-form-item>
|
149
|
141
|
<el-form-item label="链接地址:" v-show="selectone">
|
150
|
142
|
<el-col :span="15">
|
151
|
|
- <el-input v-model="picform.linkaddress" style="width:300px"></el-input>
|
|
143
|
+ <el-input v-model="picform.linkaddress" style="width:300px" :disabled="true"></el-input>
|
152
|
144
|
</el-col>
|
153
|
145
|
<el-col :span="4">
|
154
|
146
|
<el-button size="medium" @click="linkVisible = true">设置链接</el-button>
|
|
@@ -193,57 +185,15 @@
|
193
|
185
|
:visible.sync="linkVisible"
|
194
|
186
|
width="30%"
|
195
|
187
|
center>
|
196
|
|
- <el-form label-width="90px" :model="linkform" ref="linkform">
|
197
|
|
- <el-form-item label="连接类型">
|
198
|
|
- <el-radio-group v-model="linkform.connectType">
|
199
|
|
- <el-radio :label="item.id" :value="item.id" v-for="(item,index) in defineOptionsTwo" :key="index" @change="selectItem(item.id)">{{item.name}}</el-radio>
|
200
|
|
- </el-radio-group>
|
201
|
|
- </el-form-item>
|
202
|
|
- <el-form-item label="链接类型:" v-show="definetwo">
|
203
|
|
- <el-col :span="8">
|
204
|
|
- <el-select v-model="linkform.linkType" placeholder="请选择"
|
205
|
|
- @change="changeType">
|
206
|
|
- <el-option
|
207
|
|
- v-for="item in options"
|
208
|
|
- :key="item.id"
|
209
|
|
- :label="item.name"
|
210
|
|
- :value="item.id" >
|
211
|
|
- </el-option>
|
212
|
|
- </el-select>
|
213
|
|
- </el-col>
|
214
|
|
- <el-col :span="8" v-show="addTypeShow">
|
215
|
|
- <el-select v-model="linkform.addtype" placeholder="请选择"
|
216
|
|
- @change="GetArticleById">
|
217
|
|
- <el-option
|
218
|
|
- v-for="item in articeTypelist"
|
219
|
|
- :key="item.id"
|
220
|
|
- :label="item.name"
|
221
|
|
- :value="item.id">
|
222
|
|
- </el-option>
|
223
|
|
- </el-select>
|
224
|
|
- </el-col>
|
225
|
|
-
|
226
|
|
- </el-form-item>
|
227
|
|
- <el-form-item label="站内链接:" v-show="definetwo">
|
228
|
|
- <el-select v-model="linkform.contenttype" placeholder="请选择">
|
229
|
|
- <el-option
|
230
|
|
- v-for="item in articeNamelist"
|
231
|
|
- :key="item.id"
|
232
|
|
- :label="item.title"
|
233
|
|
- :value="item.id" >
|
234
|
|
- </el-option>
|
235
|
|
- </el-select>
|
236
|
|
- </el-form-item>
|
237
|
|
- <el-form-item label="自定义地址:" v-show="definethree">
|
238
|
|
- <el-input v-model="linkform.defineAddress"></el-input>
|
239
|
|
- </el-form-item>
|
240
|
|
- <el-form-item label="站外链接:" v-show="definefour">
|
241
|
|
- <el-input></el-input>
|
|
188
|
+ <el-form label-width="90px" :model="linkformtwo" ref="linkformtwo">
|
|
189
|
+ <el-form-item label="站外链接:">
|
|
190
|
+ <el-input v-model="linkformtwo.address"></el-input>
|
242
|
191
|
</el-form-item>
|
243
|
192
|
</el-form>
|
|
193
|
+
|
244
|
194
|
<span slot="footer" class="dialog-footer">
|
245
|
195
|
<el-button @click="linkVisible = false">取 消</el-button>
|
246
|
|
- <el-button type="primary" @click="AddLinkAddress('linkform');linkVisible = false">确 定</el-button>
|
|
196
|
+ <el-button type="primary" @click="AddLinkAddress('linkformtwo');">确 定</el-button>
|
247
|
197
|
</span>
|
248
|
198
|
</el-dialog>
|
249
|
199
|
|
|
@@ -351,7 +301,7 @@
|
351
|
301
|
</el-form>
|
352
|
302
|
<span slot="footer" class="dialog-footer">
|
353
|
303
|
<el-button @click="four = false">取 消</el-button>
|
354
|
|
- <el-button type="primary" @click="AddDoctor('doctorform');editDoctorInfo('doctorform')">确 定</el-button>
|
|
304
|
+ <el-button type="primary" @click="AddDoctor('doctorform');">确 定</el-button>
|
355
|
305
|
</span>
|
356
|
306
|
</el-dialog>
|
357
|
307
|
|
|
@@ -364,7 +314,7 @@
|
364
|
314
|
<el-form label-width="90px" class="clearfix" :model="eidtDoctorform" ref="eidtDoctorform" :rules="rules">
|
365
|
315
|
<el-row :span=20>
|
366
|
316
|
<el-col :span="12">
|
367
|
|
- <el-form-item label="医生姓名:">
|
|
317
|
+ <el-form-item label="医生姓名:" required prop="name">
|
368
|
318
|
<el-select placeholder="请选择" v-model="eidtDoctorform.name" @change="change(eidtDoctorform.name)">
|
369
|
319
|
<el-option
|
370
|
320
|
v-for="item in docnames"
|
|
@@ -740,10 +690,10 @@
|
740
|
690
|
</el-form-item>
|
741
|
691
|
<el-form-item>
|
742
|
692
|
<el-col :span="18">
|
743
|
|
- <el-input style="width:300px" v-model="editmacform.marginaddress" v-show="define"></el-input>
|
|
693
|
+ <el-input style="width:300px" v-model="editmacform.marginaddress" v-show="define" :disabled="true"></el-input>
|
744
|
694
|
</el-col>
|
745
|
695
|
<el-col :span="4">
|
746
|
|
- <el-button size="medium" @click="magicVisibleOne = true" v-show="define">设置链接</el-button>
|
|
696
|
+ <el-button size="medium" @click="magicVisibleOne = true;GetMagicLinkAddressByID(editmacform.linkid)" v-show="define" >设置链接</el-button>
|
747
|
697
|
</el-col>
|
748
|
698
|
</el-form-item>
|
749
|
699
|
</el-form>
|
|
@@ -767,20 +717,10 @@
|
767
|
717
|
<el-form-item label="链接类型:" v-show="definetwo">
|
768
|
718
|
<el-select v-model="value" placeholder="请选择">
|
769
|
719
|
<el-option
|
770
|
|
- v-for="item in options"
|
771
|
|
- :key="item.value"
|
772
|
|
- :label="item.label"
|
773
|
|
- :value="item.value">
|
774
|
|
- </el-option>
|
775
|
|
- </el-select>
|
776
|
|
- </el-form-item>
|
777
|
|
- <el-form-item label="文章分类" v-show="definetwo">
|
778
|
|
- <el-select v-model="value" placeholder="请选择">
|
779
|
|
- <el-option
|
780
|
|
- v-for="item in options"
|
781
|
|
- :key="item.value"
|
782
|
|
- :label="item.label"
|
783
|
|
- :value="item.value">
|
|
720
|
+ v-for="item in modelTtile"
|
|
721
|
+ :key="item.id"
|
|
722
|
+ :label="item.title"
|
|
723
|
+ :value="item.id">
|
784
|
724
|
</el-option>
|
785
|
725
|
</el-select>
|
786
|
726
|
</el-form-item>
|
|
@@ -799,7 +739,7 @@
|
799
|
739
|
|
800
|
740
|
<!-- 编辑魔法导航 -->
|
801
|
741
|
<el-dialog
|
802
|
|
- title="编辑魔方导航3"
|
|
742
|
+ title="编辑魔方导航"
|
803
|
743
|
:visible.sync="MagicNavigation"
|
804
|
744
|
width="35%"
|
805
|
745
|
center>
|
|
@@ -851,40 +791,15 @@
|
851
|
791
|
</el-radio-group>
|
852
|
792
|
</el-form-item>
|
853
|
793
|
<el-form-item label="链接类型:" v-show="definetwo">
|
854
|
|
- <el-select v-model="maclinkform.instationlink" placeholder="请选择" clearable
|
855
|
|
- @change="changeArticeType">
|
|
794
|
+ <el-select v-model="maclinkform.instationlink" placeholder="请选择" clearable>
|
856
|
795
|
<el-option
|
857
|
|
- v-for="item in options"
|
|
796
|
+ v-for="item in modelTtile"
|
858
|
797
|
:key="item.id"
|
859
|
|
- :label="item.name"
|
|
798
|
+ :label="item.title"
|
860
|
799
|
:value="item.id">
|
861
|
800
|
</el-option>
|
862
|
801
|
</el-select>
|
863
|
802
|
</el-form-item>
|
864
|
|
- <el-form-item label="文章分类" v-show="definetwo">
|
865
|
|
- <el-col :span="8">
|
866
|
|
- <el-select v-model="maclinkform.articeType" placeholder="请选择" clearable
|
867
|
|
- @change="GetArticleById">
|
868
|
|
- <el-option
|
869
|
|
- v-for="item in articeTypelist"
|
870
|
|
- :key="item.id"
|
871
|
|
- :label="item.name"
|
872
|
|
- :value="item.id">
|
873
|
|
- </el-option>
|
874
|
|
- </el-select>
|
875
|
|
- </el-col>
|
876
|
|
- <el-col :span="8">
|
877
|
|
- <el-select v-model="maclinkform.title" placeholder="请选择" clearable>
|
878
|
|
- <el-option
|
879
|
|
- v-for="item in articeNamelist"
|
880
|
|
- :key="item.id"
|
881
|
|
- :label="item.title"
|
882
|
|
- :value="item.id">
|
883
|
|
- </el-option>
|
884
|
|
- </el-select>
|
885
|
|
- </el-col>
|
886
|
|
-
|
887
|
|
- </el-form-item>
|
888
|
803
|
<el-form-item label="电话号码:" v-show="definethree">
|
889
|
804
|
<el-input v-model="maclinkform.phone"></el-input>
|
890
|
805
|
</el-form-item>
|
|
@@ -993,7 +908,7 @@
|
993
|
908
|
getQueryDoCHead,editDoctor,saveDocInfo,deleteDoctor,AddImageslink,getEditImages,AddMagicNavi,getMagicImages,AddMarginChart,
|
994
|
909
|
deleteRotations,editRotationImages,updateRotionImages,addActiveform,deleteMargin,getEditImagesDetail,UpdateEditMacgin,getArticleType
|
995
|
910
|
,AddArticeList,getEnImages,EditEnvirImages,AddtwoImages,deleteOfficeById,GetArticleById,GetAllActivity,AddLinkAddress,AddMagiclinkData,
|
996
|
|
- getMacLinkAddress,getCountImages} from '@/api/site/site'
|
|
911
|
+ getMacLinkAddress,getCountImages,getAllModelTitle, GetMagicLinkAddressByID} from '@/api/site/site'
|
997
|
912
|
import { getToken } from '@/api/qiniu'
|
998
|
913
|
import { getFileExtension} from '@/utils/tools'
|
999
|
914
|
import { isIP, isIPv4 } from 'net';
|
|
@@ -1052,6 +967,9 @@ export default {
|
1052
|
967
|
{id:2,name:'站内链接'},
|
1053
|
968
|
{id:3,name:'站外链接'}
|
1054
|
969
|
],
|
|
970
|
+ defineOptionsThree:[
|
|
971
|
+ {id:1,name:'站外链接'}
|
|
972
|
+ ],
|
1055
|
973
|
options: [
|
1056
|
974
|
{id:1,name:"文章"},
|
1057
|
975
|
{id:2,name:"活动"},
|
|
@@ -1060,7 +978,9 @@ export default {
|
1060
|
978
|
{id:5,name:"肾科科普"},
|
1061
|
979
|
{id:6,name:"生活"},
|
1062
|
980
|
{id:7,name:"肾友故事"},
|
1063
|
|
- ],
|
|
981
|
+ ],
|
|
982
|
+
|
|
983
|
+ modelTtile:[],
|
1064
|
984
|
id:0,
|
1065
|
985
|
articeType:[
|
1066
|
986
|
{id:1,name:"SCRM"},
|
|
@@ -1224,6 +1144,7 @@ export default {
|
1224
|
1144
|
margImage:"",
|
1225
|
1145
|
marginaddress:"",
|
1226
|
1146
|
jumpset:"",
|
|
1147
|
+ linkid:"",
|
1227
|
1148
|
},
|
1228
|
1149
|
keform:{
|
1229
|
1150
|
title:"",
|
|
@@ -1275,6 +1196,9 @@ export default {
|
1275
|
1196
|
articeNamelist:[],
|
1276
|
1197
|
patientRotation:[],
|
1277
|
1198
|
totalImages:0,
|
|
1199
|
+ linkformtwo:{
|
|
1200
|
+ address:"",
|
|
1201
|
+ },
|
1278
|
1202
|
rules: {
|
1279
|
1203
|
title: [{required: true, message: "请填写模块标题",},],
|
1280
|
1204
|
sort: [{required: true,message:"请填写排序值"},{validator:checkNumberRule}],
|
|
@@ -1300,6 +1224,7 @@ export default {
|
1300
|
1224
|
marginImages:[{required:true,message:"请添加图片"}],
|
1301
|
1225
|
jumpset:[{required:true,message:"请选择跳转设置"}],
|
1302
|
1226
|
margImage:[{required:true,message:"请上传导航图标"}],
|
|
1227
|
+ name:[{required:true,message:"请选择医生姓名"}],
|
1303
|
1228
|
},
|
1304
|
1229
|
};
|
1305
|
1230
|
},
|
|
@@ -1332,36 +1257,16 @@ export default {
|
1332
|
1257
|
})
|
1333
|
1258
|
},
|
1334
|
1259
|
AddLinkAddress(formName){
|
1335
|
|
- if(this.linkform.connectType == 1){
|
1336
|
|
- this.linkform.linkaddress = "/articles/createArticle/?id="+this.linkform.contenttype;
|
1337
|
|
- }
|
1338
|
|
- if(this.linkform.connectType == 2){
|
1339
|
|
- this.linkform.linkaddress = "/activity/?id="+this.linkform.contenttype;
|
1340
|
|
- }
|
1341
|
|
-
|
1342
|
|
- var addtype = this.linkform.addtype
|
1343
|
|
- if(addtype == ""){
|
1344
|
|
- this.linkform.addtype = 1;
|
1345
|
|
- }
|
1346
|
|
- var contenttype = this.linkform.contenttype
|
1347
|
|
- if(contenttype == ""){
|
1348
|
|
- this.linkform.contenttype = 1;
|
1349
|
|
- }
|
1350
|
|
-
|
1351
|
|
- var linktype = this.linkform.linkType
|
1352
|
|
- if(linktype == ""){
|
1353
|
|
- this.linkform.linkType = 1;
|
1354
|
|
- }
|
1355
|
1260
|
this.$refs[formName].validate((valid)=>{
|
1356
|
1261
|
if(valid){
|
1357
|
|
- AddLinkAddress(this.linkform).then(response=>{
|
|
1262
|
+ AddLinkAddress(this.linkformtwo.address).then(response=>{
|
1358
|
1263
|
if(response.data.state == 1){
|
1359
|
|
- var patientLinkaddress = response.data.data.patientLinkaddress;
|
1360
|
|
- var address = response.data.data.address;
|
1361
|
|
- this.picform.linkaddress = address.linkaddress;
|
1362
|
|
- this.picform.id = address.id;
|
1363
|
|
- console.log("返回地址是多少",address)
|
1364
|
|
- console.log("数据返回",patientLinkaddress)
|
|
1264
|
+ this.linkVisible = false;
|
|
1265
|
+ var linkaddress = response.data.data.patientLinkaddress;
|
|
1266
|
+ this.picform.linkaddress = linkaddress.defineaddress;
|
|
1267
|
+ this.picform.id = linkaddress.id;
|
|
1268
|
+ this.linkformtwo.address = "";
|
|
1269
|
+ console.log("数据返回",linkaddress)
|
1365
|
1270
|
}
|
1366
|
1271
|
})
|
1367
|
1272
|
}
|
|
@@ -1401,6 +1306,7 @@ export default {
|
1401
|
1306
|
const _self = this
|
1402
|
1307
|
return new Promise((resolve, reject) => {
|
1403
|
1308
|
getToken().then(response => {
|
|
1309
|
+
|
1404
|
1310
|
const tokentree = response.data.data.uptoken
|
1405
|
1311
|
console.log("token是什么?",tokentree)
|
1406
|
1312
|
_self._data.doctorData.token = tokentree;
|
|
@@ -1423,6 +1329,8 @@ export default {
|
1423
|
1329
|
var fileType = file.type
|
1424
|
1330
|
const isJPG = fileType.indexOf("image") > -1;
|
1425
|
1331
|
const isLt2M = file.size / 1024 / 1024 < 2;
|
|
1332
|
+ console.log("我爱你中国我爱你中奴工")
|
|
1333
|
+ console.log(fileType,isJPG,isLt2M)
|
1426
|
1334
|
if (!isJPG) {
|
1427
|
1335
|
this.$message.error("只能上传图片");
|
1428
|
1336
|
return false;
|
|
@@ -1432,24 +1340,24 @@ export default {
|
1432
|
1340
|
return false;
|
1433
|
1341
|
}
|
1434
|
1342
|
var date = new Date()
|
|
1343
|
+ console.log("date是",date)
|
1435
|
1344
|
var ext = getFileExtension(file.name)
|
1436
|
|
- var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
|
1437
|
|
- this.uploading = true;
|
1438
|
|
- this.loadingText = '封面图片上传中'
|
1439
|
|
-
|
|
1345
|
+ console.log("ext",ext)
|
|
1346
|
+ var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() +'_o_' + file.uid + '.' + ext;
|
|
1347
|
+ console.log("key",key)
|
1440
|
1348
|
const _self = this
|
1441
|
1349
|
return new Promise((resolve, reject) => {
|
1442
|
1350
|
getToken().then(response => {
|
1443
|
|
- const tokentree = response.data.data.uptoken
|
|
1351
|
+ console.log("我爱你中国")
|
|
1352
|
+ const tokentree = response.data.data.uptoken;
|
1444
|
1353
|
console.log("图片编辑token是什么?",tokentree)
|
1445
|
1354
|
_self._data.imageData.token = tokentree;
|
1446
|
1355
|
_self._data.imageData.key = key;
|
1447
|
1356
|
resolve(true)
|
1448
|
1357
|
}).catch(err => {
|
1449
|
1358
|
reject(false)
|
1450
|
|
- this.uploading = false;
|
1451
|
1359
|
})
|
1452
|
|
- })
|
|
1360
|
+ })
|
1453
|
1361
|
},
|
1454
|
1362
|
handleRemove() {
|
1455
|
1363
|
this.file = '';
|
|
@@ -1782,14 +1690,21 @@ export default {
|
1782
|
1690
|
}
|
1783
|
1691
|
});
|
1784
|
1692
|
},
|
|
1693
|
+
|
1785
|
1694
|
deleteDoctor(id,index){
|
1786
|
|
- deleteDoctor(id,index).then(response=>{
|
1787
|
|
- if(response.data.state == 1){
|
1788
|
|
- this.docform.splice(index,1);
|
1789
|
|
- }
|
1790
|
|
- })
|
|
1695
|
+ this.$confirm('确认要删除吗?删除后信息将无法恢复','删除提示!',{
|
|
1696
|
+ dangerouslyUseHTMLString:true,
|
|
1697
|
+ confirmButtonText: '确定',
|
|
1698
|
+ cancelButtonText: '取消',
|
|
1699
|
+ type: 'warning'
|
|
1700
|
+ }).then(()=>{
|
|
1701
|
+ deleteDoctor(id,index).then(response=>{
|
|
1702
|
+ if(response.data.state == 1){
|
|
1703
|
+ this.docform.splice(index,1)
|
|
1704
|
+ }
|
|
1705
|
+ }).catch(e=>{});
|
|
1706
|
+ }).catch(e=>{});
|
1791
|
1707
|
},
|
1792
|
|
-
|
1793
|
1708
|
//编辑医生介绍
|
1794
|
1709
|
AddDoctorInfo(formName){
|
1795
|
1710
|
this.$refs[formName].validate((valid)=>{
|
|
@@ -1798,9 +1713,10 @@ export default {
|
1798
|
1713
|
if(response.data.state==1){
|
1799
|
1714
|
var doctor = response.data.data.doctor;
|
1800
|
1715
|
this.centerDialogVisible = false;
|
1801
|
|
- // console.log("返回数据",doctor);
|
|
1716
|
+ this.eidtDoctorform.dochead = "";
|
|
1717
|
+ this.eidtDoctorform.sort = "";
|
|
1718
|
+ this.eidtDoctorform.content = "";
|
1802
|
1719
|
this.getQueryDoCHead();
|
1803
|
|
-
|
1804
|
1720
|
}
|
1805
|
1721
|
})
|
1806
|
1722
|
}
|
|
@@ -2062,6 +1978,10 @@ export default {
|
2062
|
1978
|
this.definethree = false;
|
2063
|
1979
|
}
|
2064
|
1980
|
},
|
|
1981
|
+ selectItemTwo(id){
|
|
1982
|
+ this.definethree = true;
|
|
1983
|
+ },
|
|
1984
|
+
|
2065
|
1985
|
select(id){
|
2066
|
1986
|
if(id == 1){
|
2067
|
1987
|
this.selectone = false;
|
|
@@ -2157,7 +2077,7 @@ export default {
|
2157
|
2077
|
AddMagicNavi(formName){
|
2158
|
2078
|
this.$refs[formName].validate((valid)=>{
|
2159
|
2079
|
if(valid){
|
2160
|
|
- AddMagicNavi(this.editmarginform.id,this.editmarginform).then(response=>{
|
|
2080
|
+ AddMagicNavi(this.editmarginform).then(response=>{
|
2161
|
2081
|
if(response.data.state == 1){
|
2162
|
2082
|
this.editmarginform.marginaddress = "";
|
2163
|
2083
|
this.getMagicImages();
|
|
@@ -2333,7 +2253,6 @@ export default {
|
2333
|
2253
|
var articlelist = response.data.data.articlelist;
|
2334
|
2254
|
console.log("文章列表",articlelist);
|
2335
|
2255
|
this.$emit('getHospitaldata');
|
2336
|
|
- this.getLinkAddress();
|
2337
|
2256
|
}
|
2338
|
2257
|
})
|
2339
|
2258
|
})
|
|
@@ -2346,7 +2265,6 @@ export default {
|
2346
|
2265
|
}
|
2347
|
2266
|
})
|
2348
|
2267
|
},
|
2349
|
|
-
|
2350
|
2268
|
changeArticeType(id){
|
2351
|
2269
|
if(id == 1 ){
|
2352
|
2270
|
this.getArticleType();
|
|
@@ -2378,15 +2296,13 @@ export default {
|
2378
|
2296
|
},
|
2379
|
2297
|
|
2380
|
2298
|
AddMagiclinkData(formName){
|
|
2299
|
+
|
2381
|
2300
|
if(this.maclinkform.instationlink == ""){
|
2382
|
2301
|
this.maclinkform.instationlink = 0;
|
2383
|
2302
|
}
|
2384
|
2303
|
var instationlink = this.maclinkform.instationlink;
|
2385
|
2304
|
var instationlinks = parseInt(instationlink);
|
2386
|
2305
|
this.maclinkform.instationlink = instationlinks;
|
2387
|
|
- if(this.maclinkform.articeType == ""){
|
2388
|
|
- this.maclinkform.articeType = 0;
|
2389
|
|
- }
|
2390
|
2306
|
var articeType = this.maclinkform.articeType;
|
2391
|
2307
|
var articeTypes = parseInt(articeType);
|
2392
|
2308
|
this.maclinkform.articeType = articeTypes;
|
|
@@ -2394,26 +2310,23 @@ export default {
|
2394
|
2310
|
if(this.maclinkform.title == ""){
|
2395
|
2311
|
this.maclinkform.title = 0;
|
2396
|
2312
|
}
|
2397
|
|
- var articeTitle = this.maclinkform.title;
|
2398
|
|
- var articeTitle = parseInt(articeTitle);
|
2399
|
|
- this.maclinkform.title = articeTitle;
|
2400
|
|
-
|
2401
|
|
- this.maclinkform.linkaddress = "/articles/createArticle/?id="+this.maclinkform.title;
|
|
2313
|
+
|
|
2314
|
+ this.maclinkform.linkaddress = this.maclinkform.instationlink ;
|
2402
|
2315
|
this.$refs[formName].validate((valid)=>{
|
2403
|
2316
|
if(valid){
|
2404
|
2317
|
AddMagiclinkData(this.maclinkform).then(response=>{
|
2405
|
2318
|
if(response.data.state == 1){
|
2406
|
2319
|
var magiclink = response.data.data.magiclink;
|
2407
|
2320
|
var patientMagiclink = response.data.data.patientMagiclink;
|
2408
|
|
- this.editmarginform.marginaddress = patientMagiclink.linkaddress;
|
2409
|
|
- this.editmarginform.id = patientMagiclink.id
|
|
2321
|
+ this.editmarginform.marginaddress = magiclink.linkaddress;
|
|
2322
|
+ this.editmarginform.linkid = magiclink.id
|
2410
|
2323
|
this.magicVisible = false;
|
2411
|
2324
|
console.log("链接返回数据",magiclink)
|
2412
|
|
- this.maclinkform.articeType = "";
|
|
2325
|
+ // this.maclinkform.articeType = "";
|
2413
|
2326
|
this.maclinkform.instationlink = "";
|
2414
|
2327
|
this.maclinkform.phone = "";
|
2415
|
2328
|
this.maclinkform.outstationlink = "";
|
2416
|
|
- this.maclinkform.title = "";
|
|
2329
|
+ // this.maclinkform.title = "";
|
2417
|
2330
|
}
|
2418
|
2331
|
})
|
2419
|
2332
|
}
|
|
@@ -2436,7 +2349,25 @@ export default {
|
2436
|
2349
|
console.log("total是什么",total)
|
2437
|
2350
|
}
|
2438
|
2351
|
})
|
2439
|
|
- }
|
|
2352
|
+ },
|
|
2353
|
+ getAllModelTitle(){
|
|
2354
|
+ getAllModelTitle().then(response=>{
|
|
2355
|
+ if(response.data.state == 1){
|
|
2356
|
+ var patientModels = response.data.data.patientModels;
|
|
2357
|
+ this.modelTtile = patientModels;
|
|
2358
|
+ console.log("模块标题是什么",patientModels)
|
|
2359
|
+ }
|
|
2360
|
+ })
|
|
2361
|
+ },
|
|
2362
|
+ GetMagicLinkAddressByID(id){
|
|
2363
|
+ GetMagicLinkAddressByID(id).then(response=>{
|
|
2364
|
+ if(response.data.state == 1){
|
|
2365
|
+ var magiclink = response.data.data.magiclink;
|
|
2366
|
+ console.log("magiclink",magiclink)
|
|
2367
|
+ this.modelTtile.id = magiclink.linkaddress;
|
|
2368
|
+ }
|
|
2369
|
+ })
|
|
2370
|
+ }
|
2440
|
2371
|
},
|
2441
|
2372
|
|
2442
|
2373
|
created(){
|
|
@@ -2447,7 +2378,8 @@ export default {
|
2447
|
2378
|
this.getArticleType();
|
2448
|
2379
|
this.getEnImages();
|
2449
|
2380
|
this.getMacLinkAddress();
|
2450
|
|
- // this.getCountImages();
|
|
2381
|
+ this.getCountImages();
|
|
2382
|
+ this.getAllModelTitle();
|
2451
|
2383
|
},
|
2452
|
2384
|
|
2453
|
2385
|
};
|