Commit 9914e5b1 authored by danfuman's avatar danfuman

修改

parent 77e284af
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
<div v-else v-html="scope.row.projectName || '--'"></div> <div v-else v-html="scope.row.projectName || '--'"></div>
</template> </template>
<template v-else> <template v-else>
<span @click="linkTo1(scope.row.sourceId)" v-if="scope.row.projectName" style="color: #0081FF;cursor: pointer;" v-html="scope.row.projectName">{{scope.row.projectName}}</span> <span @click="linkTo1(scope.row.sourceId)" v-if="scope.row.projectName && scope.row.sourceId" style="color: #0081FF;cursor: pointer;" v-html="scope.row.projectName">{{scope.row.projectName}}</span>
<span v-else-if="scope.row.projectName" v-html="scope.row.projectName">{{scope.row.projectName}}</span>
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</template> </template>
...@@ -367,12 +368,14 @@ export default { ...@@ -367,12 +368,14 @@ export default {
}, },
linkTo1(id){ linkTo1(id){
let url = "" let url = ""
skyProjectDetail({sourceId:id}).then(res=>{ if(id){
if(res.data&&res.data.sourceUrl){ skyProjectDetail({sourceId:id}).then(res=>{
url = res.data.sourceUrl if(res.data&&res.data.sourceUrl){
window.open(url, "_blank") url = res.data.sourceUrl
} window.open(url, "_blank")
}) }
})
}
} }
}, },
} }
......
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
<div v-else v-html="scope.row.projectName || '--'"></div> <div v-else v-html="scope.row.projectName || '--'"></div>
</template> </template>
<template v-else> <template v-else>
<span @click="linkTo1(scope.row.sourceId)" v-if="scope.row.projectName" style="color: #0081FF;cursor: pointer;" v-html="scope.row.projectName">{{scope.row.projectName}}</span> <span @click="linkTo1(scope.row.sourceId)" v-if="scope.row.projectName && scope.row.sourceId" style="color: #0081FF;cursor: pointer;" v-html="scope.row.projectName">{{scope.row.projectName}}</span>
<span v-else-if="scope.row.projectName" v-html="scope.row.projectName">{{scope.row.projectName}}</span>
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</template> </template>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment