This commit is contained in:
zhaofang
2022-06-23 15:07:48 +08:00
parent 24e64722b4
commit e46d0df6eb
2 changed files with 6 additions and 10 deletions

View File

@@ -181,10 +181,9 @@ export default {
this.isFavorite = newVal; this.isFavorite = newVal;
}, },
data(newVal,oldVal){ data(newVal,oldVal){
// console.log(newVal,'newVal'); if(newVal && newVal.id!=''){
// if(newVal && newVal.id!=''){ this.checkHas();
// this.checkHas(); }
// }
} }
}, },
created(){ created(){

View File

@@ -40,7 +40,7 @@
<div class="case-summary"><span>{{ caseDetail.summary }}</span></div> <div class="case-summary"><span>{{ caseDetail.summary }}</span></div>
<div class="label" style="margin-top:10px"> <div class="label" style="margin-top:10px">
<!-- <span style="margin-left:0px;" v-if="caseDetail.sysCreateTime">{{ caseDetail.sysCreateTime.substring(0,10) }}</span> --> <!-- <span style="margin-left:0px;" v-if="caseDetail.sysCreateTime">{{ caseDetail.sysCreateTime.substring(0,10) }}</span> -->
<interactBar :data="caseDetail" :type="3" :comments="false" :shares="true" :unicom="true"></interactBar> <interactBar :data="caseDetail" :type="3" :readonly="Internet != 1" :comments="false" :shares="true" :unicom="true"></interactBar>
</div> </div>
</el-card> </el-card>
<el-card v-if="Internet == 1" :body-style="{ padding: '0px' }" class="jianjie" id="pdfPreview"> <el-card v-if="Internet == 1" :body-style="{ padding: '0px' }" class="jianjie" id="pdfPreview">
@@ -67,7 +67,7 @@
</div> </div>
<div> <div>
<div style="display:inline-block;"> <div style="display:inline-block;">
<interactBar :data="caseDetail" :type="3" :comments="false" :shares="true" :unicom="true"></interactBar> <interactBar :data="caseDetail" :type="3" :readonly="Internet != 1" :comments="false" :shares="true" :unicom="true"></interactBar>
</div> </div>
<div style="display:inline-block;margin: 0 20px;"> <div style="display:inline-block;margin: 0 20px;">
<el-button type="primary" @click="goTop()">返回顶部</el-button> <el-button type="primary" @click="goTop()">返回顶部</el-button>
@@ -220,13 +220,10 @@ export default {
timedOut = true; timedOut = true;
xmlhttp.abort(); xmlhttp.abort();
}, 5000); }, 5000);
xmlhttp.open("HEAD", "http://uapi.boe.com.cn",true); xmlhttp.open("HEAD", "http://uapi.boe.com.cn",true);
// xmlhttp.open("HEAD", "https://u-pre.boe.com/web",true);
xmlhttp.send(); xmlhttp.send();
xmlhttp.onreadystatechange=function() { xmlhttp.onreadystatechange=function() {
// console.log(xmlhttp.readyState,"xmlhttp.readyState");
if (xmlhttp.readyState==4) { if (xmlhttp.readyState==4) {
console.log(xmlhttp.status,"xmlhttp.status");
if (xmlhttp.status==200){ if (xmlhttp.status==200){
clearTimeout(timer); clearTimeout(timer);
$this.Internet = 1; $this.Internet = 1;