Browse Source

[v5.0.231016.1] 更新MQTT數據

Louise lin 1 year ago
parent
commit
f805108126

+ 5 - 0
HiTeachCC/ClientApp/src/components/Chart/OptionView.vue

@@ -1446,6 +1446,9 @@ export default {
       }
       }
     },
     },
     triggerGPTByOpenBox() {
     triggerGPTByOpenBox() {
+      this.$store.state.mqtt.mqttIoTData.isGpt=1
+      this.$store.dispatch('mqtt/saveMqttIoTsessionStorage')
+
       let allText = "";
       let allText = "";
       
       
       this.student.forEach((stu) => {
       this.student.forEach((stu) => {
@@ -1539,6 +1542,8 @@ export default {
           //指定接受資料的對象,雖然可以用 * 全面開放,但不建議
           //指定接受資料的對象,雖然可以用 * 全面開放,但不建議
           that.hiteachccorigin + that.wordcloudDic
           that.hiteachccorigin + that.wordcloudDic
         );
         );
+        this.$store.state.mqtt.mqttIoTData.isWordCloud=1
+        this.$store.dispatch('mqtt/saveMqttIoTsessionStorage')
       }
       }
     },
     },
     showWordCloudTableSmartPickBtn(worditem, event) {
     showWordCloudTableSmartPickBtn(worditem, event) {

+ 1 - 1
HiTeachCC/ClientApp/src/store/index.js

@@ -201,7 +201,7 @@ export default new Vuex.Store({
     startTime: 0,
     startTime: 0,
     elapsedTime: 0,
     elapsedTime: 0,
     timeLineEvents: [],
     timeLineEvents: [],
-    version: 'v5.0.230908.1'
+    version: 'v5.0.231016.1'
   },
   },
   mutations: {},
   mutations: {},
   actions: {
   actions: {

+ 9 - 0
HiTeachCC/ClientApp/src/store/module/mqtt.js

@@ -48,6 +48,15 @@ export default {
             clientInteractionCount:0, //21:互動總次數
             clientInteractionCount:0, //21:互動總次數
             external_ip:'',//22.external_ip
             external_ip:'',//22.external_ip
             version:'',//23.version (ex. 5.0.21.0000 -> 500210000)
             version:'',//23.version (ex. 5.0.21.0000 -> 500210000)
+            isSok:'', // 24. 有送出小數據或SOK服務: 0/1
+            IRSType_Mutual:'', //25.互評
+            IRSType_CoworkNew:'',//26.協作
+            isWordCloud:0, //27.wordCloud
+            isClouDAS:'', //28.clouDAS
+            isGpt:0, //29.GPT
+            isExamIES5:'', //30. 課堂中有使用IES5測驗模式
+            isExamPaper:'', //31. 課堂中有使用紙本測驗模式
+            isExamExcel:'' //32. 課堂中有使用Excel測驗模式
         }
         }
     },
     },
     getters: {
     getters: {

+ 3 - 1
HiTeachCC/ClientApp/src/views/Board.vue

@@ -7122,7 +7122,7 @@ export default {
 
 
       this.$store.dispatch("mqtt/saveMqttIoTsessionStorage");
       this.$store.dispatch("mqtt/saveMqttIoTsessionStorage");
       this.$store.dispatch("mqtt/sendIoTReport");
       this.$store.dispatch("mqtt/sendIoTReport");
-      console.log(this.$store.state.mqtt.mqttIoTData);
+      console.log(this.$store.state.mqtt.mqttIoTData,"mqttIoTData");
       //儲存部分課堂初始化就知道的 mqttIoTData
       //儲存部分課堂初始化就知道的 mqttIoTData
     },
     },
     backToUse() {
     backToUse() {
@@ -7343,6 +7343,8 @@ export default {
     },
     },
     openGptBox(){
     openGptBox(){
       this.showGptBox =true
       this.showGptBox =true
+      this.$store.state.mqtt.mqttIoTData.isGpt=1
+      this.$store.dispatch('mqtt/saveMqttIoTsessionStorage')
       this.$refs.gptBox.currentText = this.currentObjMenuCopyText
       this.$refs.gptBox.currentText = this.currentObjMenuCopyText
       this.showObjMenu = false
       this.showObjMenu = false