|
@@ -1,9 +1,14 @@
|
|
|
<template>
|
|
|
<!--这是全厂模块的模块展示内容-->
|
|
|
- <div for="FAC" id="top" class="top topfac" @click="switchIndex">
|
|
|
- <div title="返回主视图"
|
|
|
- style="cursor: pointer;position: absolute;right: 40px;top: 32px;height: 38px;width: 38px;text-align: center;"
|
|
|
- @click.stop="backMasterViewByFac"><img src="../../assets/image/view.png"></div>
|
|
|
+ <div for="FAC" id="top" class="top topfac" style="padding: 32px 0 0px 0;" @click="switchIndex">
|
|
|
+ <div title="返回数据消费"
|
|
|
+ style="cursor: pointer;height: 38px;width: 38px;text-align: center;float: right;margin: 0px 49px 0px 10px;"
|
|
|
+ @click.stop="toAdmin"><img src="../../assets/image/toAdmin.png">
|
|
|
+ </div>
|
|
|
+ <div title="返回主视图"
|
|
|
+ style="cursor: pointer;height: 38px;width: 38px;text-align: center;float: right;margin: 0 10px;"
|
|
|
+ @click.stop="backMasterViewByFac"><img src="../../assets/image/view.png">
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="bg1"></div>
|
|
|
<div class="abs tools" v-if="showIndexData=='dataindex'">
|
|
@@ -1080,6 +1085,10 @@ export default {
|
|
|
if(v>10000) return (v/10000).toFixed(2);
|
|
|
return v;
|
|
|
}
|
|
|
+ //切换到数据消费后台
|
|
|
+ function toAdmin(){
|
|
|
+ window.location.href= process.env.VUE_APP_SSO+'?role='+(showIndexData=='index'?"producer":"manager");
|
|
|
+ }
|
|
|
function switchIndex(){
|
|
|
if(showIndexData.value=='index'){
|
|
|
router.push('/datamain');
|
|
@@ -1142,6 +1151,7 @@ export default {
|
|
|
buttonCode1,
|
|
|
buttonCode2,
|
|
|
switchIndex,
|
|
|
+ toAdmin,
|
|
|
}
|
|
|
}
|
|
|
}
|