Parcourir la source

偵測本頁如有作品任務需新增一頁 (本頁新建頁數切換仍有問題)

Louise Lin il y a 3 ans
Parent
commit
c6256fde3d

+ 1 - 0
HiTeachCC/ClientApp/src/components/ToolBox.vue

@@ -318,6 +318,7 @@ export default {
         this.$parent.workStatus = true
         this.$store.state.irsModel='irsGather'
         this.$parent.singnalRMessage(msgInitiative, '8888', '', 'irsGather')
+        this.$parent.irshint = false
       }
     },
     // 工具切换

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

@@ -158,7 +158,7 @@
     <!--作品收集-->
     <div class="q-pa-md row items-start q-gutter-md workCollect" v-if="workStatus">
       <div class="workheader">
-        <div class="workname">名称:作品收集1</div>
+        <div class="workname">名称:作品收集{{workNum-1}}</div>
         <div class="workbtn-group">
           <div class="workbtn" @click="worksData = []">清除</div>
           <div class="workbtn" @click="stopwork">{{ workinfo.text }}</div>
@@ -2452,7 +2452,8 @@ export default {
           }
           console.log(payloadContent, '作品收集')
           this.irsModel = 'irsGather'
-          this.workNum = this.workNum + 1
+          this.workNum = parseInt(this.workNum) + 1
+          console.log(payloadContent.pageID)
         }
         messageText = {
           action: 'State',