Browse Source

打包debugg 版本

plg 11 months ago
parent
commit
3c3918da89

+ 4 - 4
src/main/index.js

@@ -63,11 +63,11 @@ let jar_time = null;
 //设置访问路径
 //设置访问路径
 //打包访问的路径
 //打包访问的路径
 
 
-let serveUrl = "./resources/exe"
-let serveUrlJar = '\\resources\\exe'
+// let serveUrl = "./resources/exe"
+// let serveUrlJar = '\\resources\\exe'
 //本地访问的路径
 //本地访问的路径
-// let serveUrl = "./exe"
-// let serveUrlJar = '\\exe'
+let serveUrl = "./exe"
+let serveUrlJar = '\\exe'
 /**
 /**
  * Set `__static` path to static files in production
  * Set `__static` path to static files in production
  * https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-static-assets.html
  * https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-static-assets.html

+ 53 - 17
src/renderer/components/AnimationDes.vue

@@ -12,7 +12,7 @@
 
 
 
 
     <div class="main_sp">
     <div class="main_sp">
-      <div style="flex:1"></div>
+      <div style="flex:1">&nbsp;</div>
       <div class="main_second">
       <div class="main_second">
         <div class="select_class_animation">
         <div class="select_class_animation">
           <span class="desSty">选择设备</span>&nbsp;
           <span class="desSty">选择设备</span>&nbsp;
@@ -64,13 +64,13 @@
 
 
 
 
 
 
-        <div class="flood-plan-page" ref="animationFlow">
-          <iframe scrolling="no" :src="urlThreeP" ref="unityIframe" frameborder="0" :width="widthIframe"
+        <div class="flood-plan-page" ref="animationFlow" >
+          <iframe scrolling="yes" v-if='visibleFlag' :src="urlThreeP" ref="unityIframe" width="100px" frameborder="0" :width="widthIframe"
             :height="heightIframe">
             :height="heightIframe">
           </iframe>
           </iframe>
         </div>
         </div>
       </div>
       </div>
-      <div style="flex:1"></div>
+      <div style="flex:1">&nbsp;</div>
 
 
 
 
     </div>
     </div>
@@ -145,6 +145,7 @@ const RingBuffer = require("ringbufferjs");
 export default {
 export default {
   data() {
   data() {
     return {
     return {
+      visibleFlag:true,
       activeName: "first",
       activeName: "first",
       //echarts渲染标志
       //echarts渲染标志
       echartsVisible: false,
       echartsVisible: false,
@@ -358,11 +359,15 @@ export default {
     var flagAnimation = true;
     var flagAnimation = true;
     window.addEventListener("resize", function () {
     window.addEventListener("resize", function () {
       console.log('窗口')
       console.log('窗口')
-      // that.getSize();
       if (flagAnimation) {
       if (flagAnimation) {
         setTimeout(() => {
         setTimeout(() => {
           console.log("窗口变化了,需要调整");
           console.log("窗口变化了,需要调整");
           that.getSize();
           that.getSize();
+
+          // setTimeout(() => {
+          //   that.changeGame(parseInt(that.$route.query.gameType));
+          //   console.log(that.$route.query.gameType);
+          // }, 1000);
           //当前是脑电时,且打开的窗口是第一个用户时
           //当前是脑电时,且打开的窗口是第一个用户时
           if (that.equipment == "1") {
           if (that.equipment == "1") {
             if (that.echartsVisible) {
             if (that.echartsVisible) {
@@ -386,7 +391,6 @@ export default {
     }, 0);
     }, 0);
     setTimeout(() => {
     setTimeout(() => {
       that.changeGame(parseInt(that.$route.query.gameType));
       that.changeGame(parseInt(that.$route.query.gameType));
-      console.log(that.$route.query.gameType);
     }, 0);
     }, 0);
     that.singleFlag = that.$route.query.single;
     that.singleFlag = that.$route.query.single;
 
 
@@ -1207,7 +1211,7 @@ export default {
     },
     },
     equipmentFun(val) {
     equipmentFun(val) {
       //将发送的数据改为0
       //将发送的数据改为0
-      this.attentionAnimation=0;
+      this.attentionAnimation = 0;
       //先判断当选择的设备是否连接
       //先判断当选择的设备是否连接
       //如果已连接,则继续测试
       //如果已连接,则继续测试
       //如果未连接则提示连接设备
       //如果未连接则提示连接设备
@@ -1534,11 +1538,42 @@ export default {
     },
     },
     setUrl() { },
     setUrl() { },
     getSize() {
     getSize() {
-      let width = this.$refs.animationFlow.clientWidth;
-      let height = this.$refs.animationFlow.clientHeight - 40;
-      this.widthIframe = width;
-      this.heightIframe = height;
-      this.changeSize(width, height);
+      let that =this;
+      // this.changeSize(100, 100);
+      that.visibleFlag=false
+       setTimeout(() => {
+        that.visibleFlag=true
+         let width = that.$refs.animationFlow.clientWidth;
+      let height = that.$refs.animationFlow.clientHeight-40;
+      that.widthIframe = width;
+      that.heightIframe = height;
+      console.log(width, height)
+      that.changeSize(width, height);
+      
+       }, 0);
+      // let that =this;
+      // let width = that.$refs.animationFlow.clientWidth;
+      // let height = that.$refs.animationFlow.clientHeight-40;
+      // that.widthIframe = width;
+      // that.heightIframe = height;
+      // console.log(width, height)
+      // that.changeSize(width, height);
+
+      // setTimeout(() => {
+      //   that.changeGame1()
+      // },0 );
+      // setTimeout(() => {
+      //   that.changeGame(parseInt(that.$route.query.gameType))
+      // },20 );
+      // that.changeGame(parseInt(that.$route.query.gameType));
+      console.log(this.$refs.animationFlow)
+      // debugger;
+      // let width = this.$refs.animationFlow.clientWidth;
+      // let height = this.$refs.animationFlow.clientHeight;
+      // this.widthIframe = width;
+      // this.heightIframe = height;
+      // console.log(width, height)
+      // this.changeSize(width, height);
     },
     },
     changeSize(width, height) {
     changeSize(width, height) {
       this.$refs.unityIframe.contentWindow.changeSize(width, height);
       this.$refs.unityIframe.contentWindow.changeSize(width, height);
@@ -1553,9 +1588,10 @@ export default {
     // },
     // },
     delayTime() {
     delayTime() {
       let that = this;
       let that = this;
+      
       setTimeout(() => {
       setTimeout(() => {
         that.getSize();
         that.getSize();
-      }, 5000);
+      }, 0);
     },
     },
     changeGame(val) {
     changeGame(val) {
       console.log(val);
       console.log(val);
@@ -2269,7 +2305,7 @@ export default {
   height: 100vh !important;
   height: 100vh !important;
   display: flex !important;
   display: flex !important;
   flex-direction: column;
   flex-direction: column;
-  overflow-y: auto !important;
+  overflow: hidden;
   background: #ffffff;
   background: #ffffff;
 }
 }
 
 
@@ -2302,9 +2338,10 @@ canvas {
 }
 }
 
 
 .flood-plan-page {
 .flood-plan-page {
-  margin-top:20px;
+  margin-top: 20px;
   flex: 1;
   flex: 1;
   width: 100%;
   width: 100%;
+  overflow:visible;
 }
 }
 
 
 .selectSty {
 .selectSty {
@@ -2346,7 +2383,6 @@ canvas {
 .main_sp {
 .main_sp {
   display: flex;
   display: flex;
   flex: 1;
   flex: 1;
-
   flex-direction: row;
   flex-direction: row;
 
 
 }
 }
@@ -2360,6 +2396,6 @@ canvas {
 .main_second {
 .main_second {
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
-  flex:22;
+  flex: 22;
 }
 }
 </style>
 </style>

+ 207 - 74
src/renderer/components/AnimationDouble.vue

@@ -2,57 +2,120 @@
   <div class="main_right_height">
   <div class="main_right_height">
     <TopDes :flag="true" topDesFont="生物反馈记录"></TopDes>
     <TopDes :flag="true" topDesFont="生物反馈记录"></TopDes>
 
 
-    <div class='main_sp'>
-      <div style="flex:1"></div>
+    <div class="main_sp">
+      <div style="flex: 1"></div>
       <div class="main_second">
       <div class="main_second">
-
         <div class="select_class_animation">
         <div class="select_class_animation">
           <span class="desSty">选择设备</span>&nbsp;
           <span class="desSty">选择设备</span>&nbsp;
-          <el-select v-model="equipment" placeholder="请选择" class="selectSty" size="mini" @change="equipmentFun">
-            <el-option class="select_option" v-for="item in optionsEquipment" :key="item.value" :label="item.label"
-              :value="item.value">
+          <el-select
+            v-model="equipment"
+            placeholder="请选择"
+            class="selectSty"
+            size="mini"
+            @change="equipmentFun"
+          >
+            <el-option
+              class="select_option"
+              v-for="item in optionsEquipment"
+              :key="item.value"
+              :label="item.label"
+              :value="item.value"
+            >
             </el-option>
             </el-option>
           </el-select>
           </el-select>
           &nbsp;&nbsp;&nbsp;&nbsp;
           &nbsp;&nbsp;&nbsp;&nbsp;
           <span class="desSty">游戏难度</span>&nbsp;
           <span class="desSty">游戏难度</span>&nbsp;
-          <el-select v-model="gameDifficulty" placeholder="请选择" class="selectSty" size="mini" @change="gameDiffFun">
-            <el-option v-for="item in difficultyOptions" :key="item.value" :label="item.label" :value="item.value">
+          <el-select
+            v-model="gameDifficulty"
+            placeholder="请选择"
+            class="selectSty"
+            size="mini"
+            @change="gameDiffFun"
+          >
+            <el-option
+              v-for="item in difficultyOptions"
+              :key="item.value"
+              :label="item.label"
+              :value="item.value"
+            >
             </el-option>
             </el-option>
           </el-select>
           </el-select>
           &nbsp;&nbsp;&nbsp;&nbsp;
           &nbsp;&nbsp;&nbsp;&nbsp;
           <span class="desSty">游戏时间</span>&nbsp;
           <span class="desSty">游戏时间</span>&nbsp;
-          <el-select v-model="gameTime" placeholder="请选择" class="selectSty" size="mini" @change="gameTimeFun">
-            <el-option v-for="item in timeOptions" :key="item.value" :label="item.label" :value="item.value">
+          <el-select
+            v-model="gameTime"
+            placeholder="请选择"
+            class="selectSty"
+            size="mini"
+            @change="gameTimeFun"
+          >
+            <el-option
+              v-for="item in timeOptions"
+              :key="item.value"
+              :label="item.label"
+              :value="item.value"
+            >
             </el-option>
             </el-option>
           </el-select>
           </el-select>
 
 
           &nbsp;&nbsp;&nbsp;&nbsp;
           &nbsp;&nbsp;&nbsp;&nbsp;
-          <span style="font-size: 12px" v-show="equipment == '2' && pulseTimeNum < 180 && pulseTimeNum > 0">还剩{{
-      timeShow }}开始</span>
-          <span style="font-size: 12px" v-show="buttonFlag == '结束' && gameTimeTimerFlag">{{ timeShow }}</span>
+          <span
+            style="font-size: 12px"
+            v-show="equipment == '2' && pulseTimeNum < 180 && pulseTimeNum > 0"
+            >还剩{{ timeShow }}开始</span
+          >
+          <span
+            style="font-size: 12px"
+            v-show="buttonFlag == '结束' && gameTimeTimerFlag"
+            >{{ timeShow }}</span
+          >
           <div class="animation-middle-m">&nbsp;</div>
           <div class="animation-middle-m">&nbsp;</div>
-          <el-button @click="startTest" size="small" class="xl_animation_button"
-            style="float: right; font-size: 12px">{{ buttonFlag }}</el-button>
+          <el-button
+            @click="startTest"
+            size="small"
+            class="xl_animation_button"
+            style="float: right; font-size: 12px"
+            >{{ buttonFlag }}</el-button
+          >
         </div>
         </div>
         <div class="select_class_animation" style="margin-top: 10px">
         <div class="select_class_animation" style="margin-top: 10px">
           <div class="equipment_status">
           <div class="equipment_status">
             <div class="desSty">用户编号:</div>
             <div class="desSty">用户编号:</div>
-            <div class="desSty user_num" v-show="userLink.num != ''">{{ userLink.num }}</div>
+            <div class="desSty user_num" v-show="userLink.num != ''">
+              {{ userLink.num }}
+            </div>
             <!-- <div class="desSty user_num" v-show="true">{{ '111111111111111111111111' }}</div> -->
             <!-- <div class="desSty user_num" v-show="true">{{ '111111111111111111111111' }}</div> -->
             &nbsp;&nbsp;&nbsp;&nbsp;
             &nbsp;&nbsp;&nbsp;&nbsp;
             <!-- <span class="desSty" v-show="userLink.linkStatus"
             <!-- <span class="desSty" v-show="userLink.linkStatus"
               :style="{ color: userLink.linkStatus ? '#0FB577' : '#000000' }">设备已连接:</span>
               :style="{ color: userLink.linkStatus ? '#0FB577' : '#000000' }">设备已连接:</span>
             <span class="desSty" v-show="!userLink.linkStatus">设备未连接:</span> -->
             <span class="desSty" v-show="!userLink.linkStatus">设备未连接:</span> -->
-            <img v-show="!userLink.linkStatus" @click="openTableFun(1)"
-              style="width: 70px; height: 24px; color: #ffffff" src="../assets/newAnimation/lanya1.png" />
-            <img v-show="userLink.linkStatus" @click="openTableFun(1)" style="width: 70px; height: 24px; color: #ffffff"
-              src="../assets/newAnimation/lanyaActive1.png" />
+            <img
+              v-show="!userLink.linkStatus"
+              @click="openTableFun(1)"
+              style="width: 70px; height: 24px; color: #ffffff"
+              src="../assets/newAnimation/lanya1.png"
+            />
+            <img
+              v-show="userLink.linkStatus"
+              @click="openTableFun(1)"
+              style="width: 70px; height: 24px; color: #ffffff"
+              src="../assets/newAnimation/lanyaActive1.png"
+            />
           </div>
           </div>
           &nbsp;&nbsp;&nbsp;&nbsp;
           &nbsp;&nbsp;&nbsp;&nbsp;
-          <i class="el-icon-search" @click="viewEchartsFun(1)" style="margin-left:2px;font-size: 12px;"
-            :style="{ color: linkStatus ? '#1FD18E' : '#1FD18E' }"></i>&nbsp;
-          <span class="desSty" @click="viewEchartsFun(1)"
-            :style="{ color: userLink.linkStatus ? '#1FD18E' : '#1FD18E' }">查看波形图</span>
+          <i
+            class="el-icon-search"
+            @click="viewEchartsFun(1)"
+            style="margin-left: 2px; font-size: 12px"
+            :style="{ color: linkStatus ? '#1FD18E' : '#1FD18E' }"
+          ></i
+          >&nbsp;
+          <span
+            class="desSty"
+            @click="viewEchartsFun(1)"
+            :style="{ color: userLink.linkStatus ? '#1FD18E' : '#1FD18E' }"
+            >查看波形图</span
+          >
           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
           <div class="equipment_status">
           <div class="equipment_status">
             <div class="desSty">用户编号:</div>
             <div class="desSty">用户编号:</div>
@@ -61,38 +124,80 @@
             <!-- <span class="desSty" v-show="userTwoLink.linkStatus"
             <!-- <span class="desSty" v-show="userTwoLink.linkStatus"
               :style="{ color: userTwoLink.linkStatus ? '#0FB577' : '#000000' }">设备已连接:</span>
               :style="{ color: userTwoLink.linkStatus ? '#0FB577' : '#000000' }">设备已连接:</span>
             <span class="desSty" v-show="!userTwoLink.linkStatus">设备未连接:</span> -->
             <span class="desSty" v-show="!userTwoLink.linkStatus">设备未连接:</span> -->
-            <img v-show="!userTwoLink.linkStatus" @click="openTableFun(2)"
-              style="width: 70px; height: 24px; color: #ffffff" src="../assets/newAnimation/lanya1.png" />
-            <img v-show="userTwoLink.linkStatus" @click="openTableFun(2)"
-              style="width: 70px; height: 24px; color: #ffffff" src="../assets/newAnimation/lanyaActive1.png" />
+            <img
+              v-show="!userTwoLink.linkStatus"
+              @click="openTableFun(2)"
+              style="width: 70px; height: 24px; color: #ffffff"
+              src="../assets/newAnimation/lanya1.png"
+            />
+            <img
+              v-show="userTwoLink.linkStatus"
+              @click="openTableFun(2)"
+              style="width: 70px; height: 24px; color: #ffffff"
+              src="../assets/newAnimation/lanyaActive1.png"
+            />
           </div>
           </div>
           &nbsp;&nbsp;&nbsp;&nbsp;
           &nbsp;&nbsp;&nbsp;&nbsp;
-          <i class="el-icon-search" @click="viewEchartsFun(1)" style="margin-left:2px;font-size: 12px;"
-            :style="{ color: linkStatus ? '#1FD18E' : '#1FD18E' }"></i>&nbsp;
-          <span class="desSty" @click="viewEchartsFun(2)"
-            :style="{ color: userTwoLink.linkStatus ? '#1FD18E' : '#1FD18E' }">查看波形图</span>
+          <i
+            class="el-icon-search"
+            @click="viewEchartsFun(1)"
+            style="margin-left: 2px; font-size: 12px"
+            :style="{ color: linkStatus ? '#1FD18E' : '#1FD18E' }"
+          ></i
+          >&nbsp;
+          <span
+            class="desSty"
+            @click="viewEchartsFun(2)"
+            :style="{ color: userTwoLink.linkStatus ? '#1FD18E' : '#1FD18E' }"
+            >查看波形图</span
+          >
         </div>
         </div>
 
 
-
         <div class="flood-plan-page" ref="animationFlow">
         <div class="flood-plan-page" ref="animationFlow">
-          <iframe scrolling="no" :src="urlThreeP" ref="unityIframe" frameborder="0" :width="widthIframe"
-            :height="heightIframe">
+          <iframe
+            scrolling="no"
+            :src="urlThreeP"
+            v-if="visibleFlag"
+            ref="unityIframe"
+            frameborder="0"
+            :width="widthIframe"
+            :height="heightIframe"
+          >
           </iframe>
           </iframe>
         </div>
         </div>
-
       </div>
       </div>
-      <div style="flex:1"></div>
+      <div style="flex: 1"></div>
     </div>
     </div>
-    <el-dialog title="提示" :visible.sync="tableVisible" width="60%" center :before-close="closeScan">
+    <el-dialog
+      title="提示"
+      :visible.sync="tableVisible"
+      width="60%"
+      center
+      :before-close="closeScan"
+    >
       <span>
       <span>
-        <el-table :data="mergeData" style="width: 100%; max-height: 400px; overflow-y: auto" :header-cell-style="{
-      background: '#66B497',
-      color: '#FFFFFF',
-      'letter-spacing': '4px',
-    }">
-          <el-table-column prop="rssi" align="center" label="信号强度" :formatter="rssiFormatter">
+        <el-table
+          :data="mergeData"
+          style="width: 100%; max-height: 400px; overflow-y: auto"
+          :header-cell-style="{
+            background: '#66B497',
+            color: '#FFFFFF',
+            'letter-spacing': '4px',
+          }"
+        >
+          <el-table-column
+            prop="rssi"
+            align="center"
+            label="信号强度"
+            :formatter="rssiFormatter"
+          >
           </el-table-column>
           </el-table-column>
-          <el-table-column prop="deviceType" align="center" label="类型" :formatter="typeFormatter">
+          <el-table-column
+            prop="deviceType"
+            align="center"
+            label="类型"
+            :formatter="typeFormatter"
+          >
           </el-table-column>
           </el-table-column>
           <el-table-column prop="userNum" align="center" label="已绑用户">
           <el-table-column prop="userNum" align="center" label="已绑用户">
           </el-table-column>
           </el-table-column>
@@ -100,9 +205,16 @@
 
 
           <el-table-column label="操作" align="center">
           <el-table-column label="操作" align="center">
             <template slot-scope="scope">
             <template slot-scope="scope">
-              <el-button :disabled="buttonLinkFlag" class="xl_d_button" size="mini" slot="reference"
-                @click="linkJudge(scope.row, scope.row.connect)">
-                <span v-if="scope.row.connect">断开连接</span><span v-if="!scope.row.connect">连接</span></el-button>
+              <el-button
+                :disabled="buttonLinkFlag"
+                class="xl_d_button"
+                size="mini"
+                slot="reference"
+                @click="linkJudge(scope.row, scope.row.connect)"
+              >
+                <span v-if="scope.row.connect">断开连接</span
+                ><span v-if="!scope.row.connect">连接</span></el-button
+              >
             </template>
             </template>
           </el-table-column>
           </el-table-column>
         </el-table>
         </el-table>
@@ -115,17 +227,29 @@
     <!-- 用户选择框 -->
     <!-- 用户选择框 -->
     <el-dialog title="选择连接用户" :visible.sync="userVisible" width="50%" center>
     <el-dialog title="选择连接用户" :visible.sync="userVisible" width="50%" center>
       <span>
       <span>
-        <el-input style="width: 180px; margin-bottom: 10px" placeholder="请输入搜索内容" v-model="nameSearch"
-          prefix-icon="el-icon-search" @input="searchUser" size="small">
+        <el-input
+          style="width: 180px; margin-bottom: 10px"
+          placeholder="请输入搜索内容"
+          v-model="nameSearch"
+          prefix-icon="el-icon-search"
+          @input="searchUser"
+          size="small"
+        >
         </el-input>
         </el-input>
-        <el-table :data="userData" style="width: 100%; max-height: 300px; overflow-y: auto" :header-cell-style="{
-      background: '#66B497',
-      color: '#FFFFFF',
-      'letter-spacing': '4px',
-    }">
+        <el-table
+          :data="userData"
+          style="width: 100%; max-height: 300px; overflow-y: auto"
+          :header-cell-style="{
+            background: '#66B497',
+            color: '#FFFFFF',
+            'letter-spacing': '4px',
+          }"
+        >
           <el-table-column>
           <el-table-column>
             <template slot-scope="scope">
             <template slot-scope="scope">
-              <el-radio v-model="selectUserRadio" :label="scope.row.identifier">&nbsp;</el-radio>
+              <el-radio v-model="selectUserRadio" :label="scope.row.identifier"
+                >&nbsp;</el-radio
+              >
             </template>
             </template>
           </el-table-column>
           </el-table-column>
           <el-table-column prop="userName" align="center" label="姓名"> </el-table-column>
           <el-table-column prop="userName" align="center" label="姓名"> </el-table-column>
@@ -133,8 +257,14 @@
           </el-table-column>
           </el-table-column>
         </el-table>
         </el-table>
         <p align="center" style="margin-bottom: 40px">
         <p align="center" style="margin-bottom: 40px">
-          <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageNum"
-            :page-size="pageSize" layout="total,  prev, pager, next, jumper" :total="totolSize">
+          <el-pagination
+            @size-change="handleSizeChange"
+            @current-change="handleCurrentChange"
+            :current-page="pageNum"
+            :page-size="pageSize"
+            layout="total,  prev, pager, next, jumper"
+            :total="totolSize"
+          >
           </el-pagination>
           </el-pagination>
         </p>
         </p>
       </span>
       </span>
@@ -490,6 +620,7 @@ export default {
       HRV2: [{ name: "LF/HF", value: "-", unit: "个", section: "1.5~2.0" }],
       HRV2: [{ name: "LF/HF", value: "-", unit: "个", section: "1.5~2.0" }],
       //心电刷新频率控制器
       //心电刷新频率控制器
       ecgTimeFlag: null,
       ecgTimeFlag: null,
+      visibleFlag: true,
     };
     };
   },
   },
   mounted() {
   mounted() {
@@ -509,7 +640,6 @@ export default {
     var k = 1;
     var k = 1;
     var flagAnimation = true;
     var flagAnimation = true;
     window.addEventListener("resize", function () {
     window.addEventListener("resize", function () {
-      // that.getSize();
       if (flagAnimation) {
       if (flagAnimation) {
         setTimeout(() => {
         setTimeout(() => {
           that.getSize();
           that.getSize();
@@ -583,7 +713,7 @@ export default {
     ipcRenderer.removeListener("ecg_two_data", this.initTwoHRV);
     ipcRenderer.removeListener("ecg_two_data", this.initTwoHRV);
     this.disconnectDevice();
     this.disconnectDevice();
   },
   },
-  destroyed() { },
+  destroyed() {},
   methods: {
   methods: {
     initHRV(event, arg) {
     initHRV(event, arg) {
       let that = this;
       let that = this;
@@ -895,12 +1025,12 @@ export default {
     //开启扫描
     //开启扫描
     queryScan() {
     queryScan() {
       let that = this;
       let that = this;
-      that.$http.getTmp(`/v2/device/scan`, {}, (res) => { });
+      that.$http.getTmp(`/v2/device/scan`, {}, (res) => {});
     },
     },
     closeScan() {
     closeScan() {
       this.tableVisible = false;
       this.tableVisible = false;
       let that = this;
       let that = this;
-      that.$http.getTmp(`/v2/device/stop/scan`, {}, (res) => { });
+      that.$http.getTmp(`/v2/device/stop/scan`, {}, (res) => {});
     },
     },
     searchUser() {
     searchUser() {
       this.pageNum = 1;
       this.pageNum = 1;
@@ -1424,8 +1554,6 @@ export default {
           //判断当前的列表是否存在该用户已点击的列表
           //判断当前的列表是否存在该用户已点击的列表
         });
         });
       }
       }
-
-
     },
     },
     typeFormatter(val) {
     typeFormatter(val) {
       if (val.type == "1") {
       if (val.type == "1") {
@@ -2169,13 +2297,18 @@ export default {
       this.clearFirstDataFun();
       this.clearFirstDataFun();
       this.clearSecondDataFun();
       this.clearSecondDataFun();
     },
     },
-    setUrl() { },
+    setUrl() {},
     getSize() {
     getSize() {
-      let width = this.$refs.animationFlow.clientWidth;
-      let height = this.$refs.animationFlow.clientHeight - 40;
-      this.widthIframe = width;
-      this.heightIframe = height;
-      this.changeSize(width, height);
+      let that = this;
+      that.visibleFlag = false;
+      setTimeout(() => {
+        that.visibleFlag = true;
+        let width = this.$refs.animationFlow.clientWidth;
+        let height = this.$refs.animationFlow.clientHeight - 40;
+        that.widthIframe = width;
+        that.heightIframe = height;
+        that.changeSize(width, height);
+      }, 0);
     },
     },
     changeSize(width, height) {
     changeSize(width, height) {
       this.$refs.unityIframe.contentWindow.changeSize(width, height);
       this.$refs.unityIframe.contentWindow.changeSize(width, height);
@@ -2187,7 +2320,7 @@ export default {
       let that = this;
       let that = this;
       setTimeout(() => {
       setTimeout(() => {
         that.getSize();
         that.getSize();
-      }, 5000);
+      }, 0);
     },
     },
     changeGame(val) {
     changeGame(val) {
       console.log(val);
       console.log(val);
@@ -3633,7 +3766,8 @@ canvas {
   /* color: #0f0f0f; */
   /* color: #0f0f0f; */
 }
 }
 
 
-.animation_fk {}
+.animation_fk {
+}
 
 
 .select_option {
 .select_option {
   font-size: 10px;
   font-size: 10px;
@@ -3658,7 +3792,7 @@ canvas {
 }
 }
 
 
 .user_num {
 .user_num {
-  background-color: #F5F5F5;
+  background-color: #f5f5f5;
   padding: 4px;
   padding: 4px;
 }
 }
 
 
@@ -3667,6 +3801,5 @@ canvas {
   flex: 1;
   flex: 1;
 
 
   flex-direction: row;
   flex-direction: row;
-
 }
 }
 </style>
 </style>

+ 4 - 0
static/loong_3/index.html

@@ -98,6 +98,10 @@
           alert(message);
           alert(message);
         });
         });
       };
       };
+      function changeSize(width, height) {
+            canvas.style.width = width + 'px';
+            canvas.style.height = height + 'px';
+        }
       function Bloomsize(val){
       function Bloomsize(val){
         this.gameInstance.SendMessage("Main Camera","Fireworklocity",val);
         this.gameInstance.SendMessage("Main Camera","Fireworklocity",val);
       }
       }

+ 4 - 0
static/mabenpao/index.html

@@ -98,6 +98,10 @@
           alert(message);
           alert(message);
         });
         });
       };
       };
+      function changeSize(width, height) {
+            canvas.style.width = width + 'px';
+            canvas.style.height = height + 'px';
+        }
       function Bloomsize(val){
       function Bloomsize(val){
         this.gameInstance.SendMessage("horse","Fireworklocity",val);
         this.gameInstance.SendMessage("horse","Fireworklocity",val);
       }
       }

+ 4 - 0
static/run/index.html

@@ -98,6 +98,10 @@
           alert(message);
           alert(message);
         });
         });
       };
       };
+      function changeSize(width, height) {
+            canvas.style.width = width + 'px';
+            canvas.style.height = height + 'px';
+        }
       function Bloomsize(val){
       function Bloomsize(val){
         this.gameInstance.SendMessage("Runvelocity","Firstvelocity",val);
         this.gameInstance.SendMessage("Runvelocity","Firstvelocity",val);
       }
       }

+ 4 - 0
static/saiche/index.html

@@ -98,6 +98,10 @@
           alert(message);
           alert(message);
         });
         });
       };
       };
+      function changeSize(width, height) {
+            canvas.style.width = width + 'px';
+            canvas.style.height = height + 'px';
+        }
       function Bloomsize(val){
       function Bloomsize(val){
         this.gameInstance.SendMessage("car","Fireworklocity",val);
         this.gameInstance.SendMessage("car","Fireworklocity",val);
       }
       }

+ 4 - 0
static/tianping/index.html

@@ -98,6 +98,10 @@
           alert(message);
           alert(message);
         });
         });
       };
       };
+      function changeSize(width, height) {
+            canvas.style.width = width + 'px';
+            canvas.style.height = height + 'px';
+        }
       function Bloomsize(val){
       function Bloomsize(val){
         this.gameInstance.SendMessage("Tianping","Balance",val);
         this.gameInstance.SendMessage("Tianping","Balance",val);
       }
       }

+ 4 - 0
static/tianqi/index.html

@@ -98,6 +98,10 @@
           alert(message);
           alert(message);
         });
         });
       };
       };
+      function changeSize(width, height) {
+            canvas.style.width = width + 'px';
+            canvas.style.height = height + 'px';
+        }
       function Bloomsize(val){
       function Bloomsize(val){
           this.gameInstance.SendMessage("Tianping","Balance",val);
           this.gameInstance.SendMessage("Tianping","Balance",val);
       }
       }

+ 4 - 0
static/yanhua/index.html

@@ -98,6 +98,10 @@
           alert(message);
           alert(message);
         });
         });
       };
       };
+      function changeSize(width, height) {
+            canvas.style.width = width + 'px';
+            canvas.style.height = height + 'px';
+        }
       function Bloomsize(val){
       function Bloomsize(val){
         this.gameInstance.SendMessage("Fireworks","Fireworklocity",val);
         this.gameInstance.SendMessage("Fireworks","Fireworklocity",val);
       }
       }