chenlei 7 mesi fa
parent
commit
d396aaf9c1

+ 19 - 3
src/components/lzTable.vue

@@ -22,11 +22,19 @@
 									: frequencyMap.get(data[item])
 								: data[item] 
 							}}
-							<span v-if="item==='Opt' && operateRouteList.includes($route.path) && data['IndexCode'] ">
+							<!-- 有几个地方要用到这个组件,因为有些在测试、有些在开发、有些在正式所以暂时这样封装一下如果合代码的时候有冲突记得加getPermissionKey里的路由(因为每个页面的权限都不一样所以用了路由),下面原代码没有删除如果有问题可以参考 -->
+							<span v-if="item === 'Opt' && operateRouteList.includes($route.path) && data['IndexCode'] && !data.EdbInfoId">
+								<el-button type="text" @click.stop="$emit('addToLib', data)"
+									v-if="!data.EdbInfoId && permissionBtn.isShowBtn('dataSourcePermission', getPermissionKey($route.path))">
+									{{ $t('ManualEdbListPage.add_tobase_btn') }}
+								</el-button>
+							</span>
+
+							<!-- <span v-if="item==='Opt' && operateRouteList.includes($route.path) && data['IndexCode'] ">
 								<el-button type="text" @click.stop="$emit('addToLib',data)"
 									v-if="!data.EdbInfoId&&permissionBtn.isShowBtn('dataSourcePermission','mysteelData_addEdb')"
 								>{{$t('ManualEdbListPage.add_tobase_btn')}}</el-button>
-							</span>
+							</span> -->
 						</template>
 					</template>
 					<!-- 百川盈孚数据源 频度和单位需要可编辑 -->
@@ -254,7 +262,15 @@ export default {
 		},
     editTarget(data){
       this.$emit('editTarget',data)
-    }
+    },
+		getPermissionKey(routePath) {
+			const map = {
+				'/steelChemical': 'mysteelData_addEdb',
+				'/fwmtData': 'fwData_opera_addBase',
+				// '/steobase': 'eiaData_opera_add'
+			};
+			return map[routePath] || '';
+		}
 	},
 	created() {},
 	updated() {

+ 5 - 0
src/utils/buttonConfig.js

@@ -278,6 +278,11 @@ export const dataSourcePermission = {
     dataSource_account_enable:'dataSourceAccount:enable',//禁用/启用
     /*--------涌益咨询---- */
     yyzxData_export:'yyzx:exportData',
+    /*--------汾渭数据---- */
+    fwData_export:'fwsj:exportData', // 导出
+    fwData_view: 'fwsj:showData',//查看
+    fwData_batch_addBase: 'fwsj:batch:addBase',//批量添加到指标库
+    fwData_opera_addBase: 'fwsj:opera:addBase',//指标入库
     /*--------煤炭江湖---- */
     coalWordData_view:'coalWord:view', // 查看
     coalWordData_export:'coalWord:export', // 导出

+ 5 - 6
src/views/dataEntry_manage/thirdBase/FwmtData.vue

@@ -16,12 +16,12 @@
             <i :class="{'el-icon-d-arrow-left':isLeftWrapShow,'el-icon-d-arrow-right':!isLeftWrapShow}"></i>
         </span>
       <div class="left-top">
-        <el-button style="margin-left: 0;margin-bottom: 10px;" v-permission="permissionBtn.dataSourcePermission.mysteelData_batchAddEdb"
+        <el-button style="margin-left: 0;margin-bottom: 10px;" v-permission="permissionBtn.dataSourcePermission.fwData_batch_addBase"
           type="primary" size="medium" @click="isBatchAddIndicsDiaShow = true"
             ><!-- 批量加入指标库 -->{{$t('SteelChemicalPage.batch_add_edb_btn')}}</el-button
           >
         <el-button
-          v-permission="permissionBtn.dataSourcePermission.yyzxData_export"
+          v-permission="permissionBtn.dataSourcePermission.fwData_export"
           type="primary"
           plain
           size="medium"
@@ -582,7 +582,7 @@ export default {
     width: 5px !important;
   } */
   .left-cont {
-    min-width: 300px;
+    min-width: 320px;
     width: 300px;
     margin-right: 20px;
     padding: 30px 0;
@@ -697,13 +697,12 @@ export default {
       display: flex;
       align-items: center;
       .frequency {
-        background: rgba(51, 51, 51, 1);
+        color: #0052D9;
         line-height: 40px;
         text-align: center;
-        background: rgba(244, 248, 254, 1);
+        background: #99baf0;
         width: 120px;
         height: 40px;
-        opacity: 0px;
         border-radius: 4px;
         margin-right: 10px;
       }