Browse Source

fix:修复

chenlei 5 months ago
parent
commit
c718a28ea0

+ 1 - 1
.env.development

@@ -1,5 +1,5 @@
 # 接口地址http://8.136.199.33:8610/v1   http://8.136.199.33:7778/adminapi
-VITE_APP_API_URL="http://8.136.199.33:8610/v1"
+VITE_APP_API_URL="http://192.168.77.4:8610/v1"
 # 路由根地址
 VITE_APP_BASE_URL="/"
 # 打包输入文件名

+ 0 - 5
src/views/sheetList/Index.vue

@@ -122,9 +122,4 @@ function goPage(item){
         }
     }
 }
-@media screen and (min-width:$media-width){
-    .tabbar-box{
-        display: none;
-    }
-}
 </style>

+ 4 - 2
src/views/sheetList/balanceList.vue

@@ -5,6 +5,8 @@ import { useRouter } from "vue-router";
 import useLocaleStore from "@/store/modules/i18n";
 import CatalogTree from './components/CatalogTree.vue';
 import CatalogItem from './components/CatalogItem.vue';
+import { showToast } from "vant";
+import { useNoAuth } from '@/hooks/useNoAuth'
 //激活的目录路径
 const catalogMenu = ref('')
 const router = useRouter()
@@ -100,7 +102,6 @@ async function getCatalogList(){
         IsShowMe: IsShowMe
     })
     if(res.Ret!==200) return 
-    console.log(res);
     dataNodes.value = res.Data?res.Data.AllNodes:[]||[]
     catalogNodes.value = dataNodes.value.map(node=>{
         if(node.Children){
@@ -124,6 +125,7 @@ function showFileOpt(item){
 }
 //跳转至图表详情页
 const goSheetDetail = (item)=>{
+    if(!item.HaveOperaAuth) return showToast(useNoAuth().sheet)
     router.push({
         path:'/balance/detail',
         query:{
@@ -180,7 +182,7 @@ function goSheetSearch(){
                   @click="goSheetDetail(item)"
               >
                   <div class="title">{{item.ExcelName}}</div>
-                  <img class="img" :src="item.ExcelImage" alt="">   
+                  <img class="img" :src="!item.HaveOperaAuth?useNoAuth().noAuthImg:item.ExcelImage" alt="">  
                   <div class="time">
                       <span>{{item.CreateTime.slice(0,10)}}</span>
                   </div>

+ 4 - 0
src/views/sheetList/components/CatalogItem.vue

@@ -1,5 +1,6 @@
 <script setup>
 import {ref} from 'vue'
+import { useNoAuth } from '@/hooks/useNoAuth'
 const props = defineProps({
     showFileImg:{
         type:Boolean,
@@ -14,6 +15,8 @@ const props = defineProps({
         default:0
     }
 })
+console.log(props.node);
+
 
 const emits=defineEmits(['showFileOptClick','showPopup'])
 function showPopup(){
@@ -23,6 +26,7 @@ function showPopup(){
 
 <template>
     <div class="catalog-item" :class="{'leaf-padding':!showFileImg}">
+        <img :src="useNoAuth().noAuthIco" width="18" height="18" v-if="!props.node.HaveOperaAuth">
         <span class="van-ellipsis" :class="{'leaf-padding':!showFileImg,'choosed':activeId===node.ExcelClassifyId}">{{node.ExcelClassifyName||''}}</span>
         <!-- <div @click.stop="showPopup">
             <div class="menu-icon"  v-if="node.HaveOperaAuth">

+ 3 - 0
src/views/sheetList/components/CatalogTree.vue

@@ -39,6 +39,9 @@ function handleCatalogItemClick(item,type,node){
                     :node="node" 
                     @showPopup="showFileOpt"/>
             </template>
+            <template #right-icon v-if="!node.Children">
+                <div></div>
+            </template>
             <div 
                 class="list-item"
                 v-for="item in node.Children" 

+ 4 - 1
src/views/sheetList/mixedList.vue

@@ -5,6 +5,8 @@ import { useRouter } from "vue-router";
 import useLocaleStore from "@/store/modules/i18n";
 import CatalogTree from './components/CatalogTree.vue';
 import CatalogItem from './components/CatalogItem.vue';
+import { showToast } from "vant";
+import { useNoAuth } from '@/hooks/useNoAuth'
 //激活的目录路径
 const catalogMenu = ref('')
 const router = useRouter()
@@ -124,6 +126,7 @@ function showFileOpt(item){
 }
 //跳转至图表详情页
 const goSheetDetail = (item)=>{
+    if(!item.HaveOperaAuth) return showToast(useNoAuth().sheet)
     router.push({
         path:'/shared/detail',
         query:{
@@ -180,7 +183,7 @@ function goSheetSearch(){
                   @click="goSheetDetail(item)"
               >
                   <div class="title">{{item.ExcelName}}</div>
-                  <img class="img" :src="item.ExcelImage" alt="">   
+                  <img class="img" :src="!item.HaveOperaAuth?useNoAuth().noAuthImg:item.ExcelImage" alt="">
                   <div class="time">
                       <span>{{item.CreateTime.slice(0,10)}}</span>
                   </div>

+ 3 - 2
src/views/sheetList/sharedDetail.vue

@@ -26,7 +26,7 @@ const sheetActions = computed(() => {
     else if (Source === 2) authList = [ etaTablePermission.etaTable_customize_data_refresh, etaTablePermission.etaTable_customize_data_download, etaTablePermission.etaTable_customize_data_del]
     else authList = [ etaTablePermission.etaTable_customize_mix_refresh, etaTablePermission.etaTable_excel_download, etaTablePermission.etaTable_excel_del]
     return [
-        { label: globalProperties.$t('shared_table.refresh'), types:'flushed', src: getStaticImg('table/flushed.png'), isAuth: Source === 2 ? true : checkAuthBtn(authList[0]) }, /* 因为pc端时间序列表格没有刷新这个权限,所以暂时直接给true */
+        // { label: globalProperties.$t('shared_table.refresh'), types:'flushed', src: getStaticImg('table/flushed.png'), isAuth: Source === 2 ? true : checkAuthBtn(authList[0]) }, /* 因为pc端时间序列表格没有刷新这个权限,所以暂时直接给true */
         { label: globalProperties.$t('shared_table.download'), types:'download', src: getStaticImg('table/download.png'), isAuth: checkAuthBtn(authList[1])},
         { label: globalProperties.$t('shared_table.delete'), types:'delete', src: getStaticImg('table/delete.png'), isAuth: checkAuthBtn(authList[2])},
     ]
@@ -210,7 +210,7 @@ function Base64() {
             </div>
         </div>
         <div class="sheet-box" v-if="queryData.UniqueCode">
-            <iframe :src="link + '/sheetshow?code=' + queryData.UniqueCode" frameborder="0" width="100%" height="100%"></iframe>
+            <iframe v-if="link" :src="link + '/sheetshow?code=' + queryData.UniqueCode" frameborder="0" width="100%" height="100%"></iframe>
         </div>
         <div class="bottom">
             <div v-for="item in sheetActions" :key="item.types">
@@ -300,6 +300,7 @@ function Base64() {
         }
     }
     .bottom {
+        margin-top: 10px;
         display: flex;
         justify-content: space-around;
         .bottom-item {

+ 4 - 1
src/views/sheetList/sharedList.vue

@@ -5,6 +5,8 @@ import { useRouter } from "vue-router";
 import useLocaleStore from "@/store/modules/i18n";
 import CatalogTree from './components/CatalogTree.vue';
 import CatalogItem from './components/CatalogItem.vue';
+import { useNoAuth } from '@/hooks/useNoAuth'
+import { showToast } from "vant";
 //激活的目录路径
 const catalogMenu = ref('')
 const router = useRouter()
@@ -124,6 +126,7 @@ function showFileOpt(item){
 }
 //跳转至详情页
 const goSheetDetail = (item)=>{
+    if(!item.HaveOperaAuth) return showToast(useNoAuth().sheet)
     router.push({
         path:'/shared/detail',
         query:{
@@ -181,7 +184,7 @@ function goSheetSearch(){
                   @click="goSheetDetail(item)"
               >
                   <div class="title">{{item.ExcelName}}</div>
-                  <img class="img" :src="item.ExcelImage" alt="">   
+                  <img class="img" :src="!item.HaveOperaAuth?useNoAuth().noAuthImg:item.ExcelImage" alt="">
                   <div class="time">
                       <span>{{item.CreateTime.slice(0,10)}}</span>
                   </div>

+ 2 - 1
src/views/sheetList/sharedSearch.vue

@@ -53,6 +53,7 @@ function handleSearch(){
 }
 
 function goDetail(item){
+    if(!item.HaveOperaAuth) return showToast(useNoAuth().sheet)
     let path = '/shared/detail'
     if(item.Source === 5) path = '/balance/detail'
     router.push({
@@ -86,7 +87,7 @@ function goDetail(item){
             <ul class="list-wrap">
                 <li class="item" v-for="item in listState.list" :key="item.ChartInfoId" @click="goDetail(item)">
                     <div class="van-ellipsis name">{{item.ExcelName}}</div>
-                    <img class="img" :src="item.ExcelImage" alt="">
+                    <img class="img" :src="!item.HaveOperaAuth?useNoAuth().noAuthImg:item.ExcelImage" alt="">
                     <div class="time">
                         <span>{{moment(item.CreateTime).format('YYYY-MM-DD')}}</span>
                         <span>{{item.SysUserRealName}}</span>

+ 4 - 1
src/views/sheetList/timelineList.vue

@@ -5,6 +5,8 @@ import { useRouter } from "vue-router";
 import useLocaleStore from "@/store/modules/i18n";
 import CatalogTree from './components/CatalogTree.vue';
 import CatalogItem from './components/CatalogItem.vue';
+import { useNoAuth } from '@/hooks/useNoAuth'
+import { showToast } from "vant";
 //激活的目录路径
 const catalogMenu = ref('')
 const router = useRouter()
@@ -124,6 +126,7 @@ function showFileOpt(item){
 }
 //跳转至图表详情页
 const goSheetDetail = (item)=>{
+    if(!item.HaveOperaAuth) return showToast(useNoAuth().sheet)
     router.push({
         path:'/shared/detail',
         query:{
@@ -180,7 +183,7 @@ function goSheetSearch(){
                   @click="goSheetDetail(item)"
               >
                   <div class="title">{{item.ExcelName}}</div>
-                  <img class="img" :src="item.ExcelImage" alt="">   
+                  <img class="img" :src="!item.HaveOperaAuth?useNoAuth().noAuthImg:item.ExcelImage" alt="">
                   <div class="time">
                       <span>{{item.CreateTime.slice(0,10)}}</span>
                   </div>