Bladeren bron

图库、我的图库上传素材库按钮权限控制

yujinwen 1 maand geleden
bovenliggende
commit
fe0e350317
3 gewijzigde bestanden met toevoegingen van 5 en 2 verwijderingen
  1. 3 0
      src/hooks/useAuthBtn.js
  2. 1 1
      src/views/chartETA/ChartDetail.vue
  3. 1 1
      src/views/myETA/ChartDetail.vue

+ 3 - 0
src/hooks/useAuthBtn.js

@@ -119,6 +119,7 @@ export const chartLibBtn={
     chartLib_isOnlyMine:'chartLib:isOnlyMine',//只看我的
     chartLib_classifyOpt_add:'chartLib:classifyOpt:add',//新增/编辑分类
 	chartLib_classifyOpt_delete:'chartLib:classifyOpt:delete',//删除分类
+    chartLib_saveToMaterial:'chartLib:saveToMaterial',//保存为素材
 }
 
 /*
@@ -146,6 +147,8 @@ export const myETABtn={
     myChart_classifyOpt_edit:'myChart:classifyOpt:edit',//添加我的分类
     myChart_classifyOpt_rename:'myChart:classifyOpt:rename',//重命名
     myChart_classifyOpt_delete:'myChart:classifyOpt:delete',//删除
+
+    myChart_saveToMaterial:'myChart:saveToMaterial',//保存素材
 }
 
 /*

+ 1 - 1
src/views/chartETA/ChartDetail.vue

@@ -304,7 +304,7 @@ function getChartActions(chartInfo){
             type:'saveToMaterial',
             label:'保存为素材',
             show:true,
-            btnCode:chartLibBtn.chartLib_enNameSetting
+            btnCode:chartLibBtn.chartLib_saveToMaterial
         },
         {
             type:'setEnName',

+ 1 - 1
src/views/myETA/ChartDetail.vue

@@ -1084,7 +1084,7 @@ const showSaveToMaterial=ref(false)
             <div class="item" @click.stop="handleChartSavePicture" v-if="!chartInfo.Disabled&&checkAuthBtn(myETABtn.myChart_copyWechat)&&checkAuthBtn(myETABtn.myChart_copyOffice)">
                 保存至相册
             </div>
-            <div class="item" @click.stop="showSaveToMaterial=true" v-if="!chartInfo.Disabled&&checkAuthBtn(myETABtn.myChart_copyWechat)&&checkAuthBtn(myETABtn.myChart_copyOffice)">
+            <div class="item" @click.stop="showSaveToMaterial=true" v-if="checkAuthBtn(myETABtn.myChart_saveToMaterial)">
                 保存为素材
             </div>
             <div class="item" @click.stop="handleShowEditEnName" v-permission="myETABtn.myChart_enNameSetting" v-if="chartInfo.Source!==11">