houyaf 3 gadi atpakaļ
vecāks
revīzija
017322e363

+ 1 - 1
src/views/hos/components/AssessList.vue

@@ -12,7 +12,7 @@
       </el-col>
       <el-col :span="12" class="right flex-rt">
         <p class="current-score"> 当月分值: <span> {{ hosScore }} </span>分</p>
-        <el-button type="primary" icon="el-icon-document-copy" size="mini" @click="handleCopy">复制上月</el-button>
+        <el-button v-if="isPermitted" type="primary" icon="el-icon-document-copy" size="mini" @click="handleCopy">复制上月</el-button>
 
         <el-button type="primary" icon="el-icon-document" size="mini" @click="handleExport">导出</el-button>
 

+ 6 - 1
src/views/hos/components/ImprovingAdvice.vue

@@ -68,12 +68,17 @@ export default {
       },
       listLoading: false,
       conditions: {
-        storyId: this.storyId
+        storyId: this.storyId,
+        year: 0,
+        month: 0
       },
       pointList: []
     }
   },
   mounted() {
+    const now = new Date()
+    this.conditions.year = now.getFullYear()
+    this.conditions.month = now.getMonth() + 1
     this.getData()
   },
   methods: {