|
@@ -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() {
|