瀏覽代碼

添加数据消费入口

liling 2 月之前
父節點
當前提交
488df15971
共有 3 個文件被更改,包括 28 次插入20 次删除
  1. 14 4
      src/pages/components/Fac.vue
  2. 0 12
      src/pages/components/In02.vue
  3. 14 4
      src/pages/components/In03.vue

+ 14 - 4
src/pages/components/Fac.vue

@@ -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,
         }
     }
 }

+ 0 - 12
src/pages/components/In02.vue

@@ -13,11 +13,6 @@
             </template>
         </div>
         <div for="IN02"  id="top" class="top top02" style="padding: 32px 0 0px 0;" @click="switchIndex">
-            <!--
-            <div ref="func_menu_btn" id="func_menu_btn" title=""
-                @click.stop="showFuncMenuList"
-                style="cursor: pointer;position: absolute;right: 176px;top: 25px;height: 38px;width: 38px;"><img src="../../assets/image/menu1.png"></div>
-            -->
             <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>
@@ -29,13 +24,6 @@
                 <img v-if="AutoPlayer" src="../../assets/image/auto3d_start.png">
                 <img v-else src="../../assets/image/auto3d_stop.png">
             </div>
-            <!--
-            <div ref="imp_btn" id="imp_btn" title="导出数据" style="cursor: pointer;position: absolute;right: 65px;top: 25px;height: 38px;width: 38px;" @click.stop="showImpMenu">
-                <img  src="../../assets/image/imp_icon.png">
-            </div>
-            -->
-
-
         </div>
         <div v-if="isShowFuncMenuList" id="func_menulist">
             <div  id="maogao_btn" title="" style="cursor: pointer;" @click="OpenMaoGaoWin">毛高比重</div>

+ 14 - 4
src/pages/components/In03.vue

@@ -1,9 +1,14 @@
 <template>
     <!--这是印花模块的模块展示内容-->
-    <div for="IN03"  id="top" class="top top03"  @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="IN03"  id="top" class="top top03" 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="bg20"></div>
     <template v-if="showIndexData=='index'">
@@ -640,6 +645,10 @@ export default {
                 }, 2000);
             })();
         }
+        //切换到数据消费后台
+        function toAdmin(){
+            window.location.href= process.env.VUE_APP_SSO+'?role='+(showIndexData=='index'?"producer":"manager");
+        }
         onMounted(()=>{
             if(BODY_H_RATE>0.9) isFullScreen.value=true;
             else isFullScreen.value=false;
@@ -672,6 +681,7 @@ export default {
             LoadUsedLine,
             LoadSCLine,
             backMasterViewByFac,
+            toAdmin,
         }
     }
 }