|
@@ -208,6 +208,7 @@ const chartItemStyleArr = ref([
|
|
{ label: '散点图', key: 5 ,value: 'scatter'}
|
|
{ label: '散点图', key: 5 ,value: 'scatter'}
|
|
])//组合图配置时可选类型
|
|
])//组合图配置时可选类型
|
|
|
|
|
|
|
|
+let nodata=ref(false)
|
|
let noauth=ref(false)
|
|
let noauth=ref(false)
|
|
let noAuthData=ref(null)
|
|
let noAuthData=ref(null)
|
|
// 如果type:init 则是初始化获取数据
|
|
// 如果type:init 则是初始化获取数据
|
|
@@ -286,6 +287,8 @@ const getChartInfo=async (type)=>{
|
|
}else if(res.code==403){
|
|
}else if(res.code==403){
|
|
noauth.value=true
|
|
noauth.value=true
|
|
noAuthData.value=res.data
|
|
noAuthData.value=res.data
|
|
|
|
+ }else if(res.code===4003){//图表不存在
|
|
|
|
+ nodata.value=true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
getChartInfo('init')
|
|
getChartInfo('init')
|
|
@@ -1509,7 +1512,7 @@ const posterParams=computed(()=>{
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<template>
|
|
<template>
|
|
- <div class="chart-detail" v-if="!loading&&!noauth">
|
|
|
|
|
|
+ <div class="chart-detail" v-if="!loading&&!noauth&&!nodata">
|
|
<div class="chart-title">{{resData.ChartInfo.ChartName}}</div>
|
|
<div class="chart-title">{{resData.ChartInfo.ChartName}}</div>
|
|
<div class="top-box" v-if="$route.query.source!=='ybxcx_my_chart'">
|
|
<div class="top-box" v-if="$route.query.source!=='ybxcx_my_chart'">
|
|
<div class="flex calendar-box" style="float:left" @click="handleShowDate" v-if="resData.ChartInfo.ChartType !== 7">
|
|
<div class="flex calendar-box" style="float:left" @click="handleShowDate" v-if="resData.ChartInfo.ChartType !== 7">
|
|
@@ -1662,8 +1665,16 @@ const posterParams=computed(()=>{
|
|
</Popup>
|
|
</Popup>
|
|
</div>
|
|
</div>
|
|
<!-- 无权限 -->
|
|
<!-- 无权限 -->
|
|
- <noAuth v-if="noauth" :data="noAuthData"></noAuth>
|
|
|
|
-
|
|
|
|
|
|
+ <noAuth v-if="noauth&&!nodata" :data="noAuthData"></noAuth>
|
|
|
|
+ <!-- 图表不存在 -->
|
|
|
|
+ <div class="chart-nodata" v-if="nodata">
|
|
|
|
+ <p style="text-align:center;padding-top:200px;font-size:16px">该图表已被删除!</p>
|
|
|
|
+ <collectBox
|
|
|
|
+ v-if="$route.query.source=='ybxcx_my_chart'"
|
|
|
|
+ :code="$route.query.chartCode"
|
|
|
|
+ :isNodata="true"
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|