|
@@ -11,6 +11,7 @@ import AddChartToMyETA from './components/AddChartToMyETA.vue';
|
|
import TreeSelectPop from './components/TreeSelectPop.vue';
|
|
import TreeSelectPop from './components/TreeSelectPop.vue';
|
|
import apiChart from '@/api/chart';
|
|
import apiChart from '@/api/chart';
|
|
import {chartLibBtn,useAuthBtn} from '@/hooks/useAuthBtn'
|
|
import {chartLibBtn,useAuthBtn} from '@/hooks/useAuthBtn'
|
|
|
|
+import { useNoAuth } from '@/hooks/useNoAuth'
|
|
const {checkAuthBtn} = useAuthBtn()
|
|
const {checkAuthBtn} = useAuthBtn()
|
|
import {useCatalogList} from './hooks/useCatalogList';
|
|
import {useCatalogList} from './hooks/useCatalogList';
|
|
|
|
|
|
@@ -29,6 +30,8 @@ const {
|
|
|
|
|
|
//跳转至图表详情页
|
|
//跳转至图表详情页
|
|
const goChartDetail = (item)=>{
|
|
const goChartDetail = (item)=>{
|
|
|
|
+ if(!item.HaveOperaAuth) return showToast(useNoAuth().chart)
|
|
|
|
+
|
|
router.push({
|
|
router.push({
|
|
path:'/chartETA/chartdetail',
|
|
path:'/chartETA/chartdetail',
|
|
query:{
|
|
query:{
|
|
@@ -439,7 +442,7 @@ getChartList()
|
|
@click="goChartDetail(item)"
|
|
@click="goChartDetail(item)"
|
|
>
|
|
>
|
|
<div class="title">{{currentLang==='EN'?(item.ChartNameEn||item.ChartName):item.ChartName}}</div>
|
|
<div class="title">{{currentLang==='EN'?(item.ChartNameEn||item.ChartName):item.ChartName}}</div>
|
|
- <img class="img" :src="item.ChartImage" alt="">
|
|
|
|
|
|
+ <img class="img" :src="!item.HaveOperaAuth?useNoAuth().noAuthImg:item.ChartImage" alt="">
|
|
<div class="time">
|
|
<div class="time">
|
|
<span>{{item.CreateTime.slice(0,10)}}</span>
|
|
<span>{{item.CreateTime.slice(0,10)}}</span>
|
|
<span class="tool-icon" @click.stop="showFileOpt({node:item,optArr:optArrChart})" v-if="authOptArr(item,optArrChart).length">
|
|
<span class="tool-icon" @click.stop="showFileOpt({node:item,optArr:optArrChart})" v-if="authOptArr(item,optArrChart).length">
|