zhengnaiwen_citu 5 달 전
부모
커밋
d8bdbeccd9

+ 3 - 0
src/views/humanResources/accumulatePoints/accumulatePointsApply/accumulatePointsApplyEdit.vue

@@ -158,6 +158,7 @@ export default {
           employeeScoreRuleItemId: key
         }
       })
+      this.loading = true
       try {
         await saveAccumulatePoint({
           month: this.month,
@@ -168,6 +169,8 @@ export default {
         this.$emit('refresh')
       } catch (error) {
         this.$message.error(error)
+      } finally {
+        this.loading = false
       }
     }
   }

+ 5 - 7
src/views/humanResources/accumulatePoints/accumulatePointsApply/index.vue

@@ -13,10 +13,6 @@
       <template #card-tools>
         <m-button type="orange" icon="el-icon-plus" @click="onAdd">申报</m-button>
       </template>
-      <template #actions="{ row }">
-        <m-button type="primary" text @click="onEdit(row)">编辑</m-button>
-        <m-button type="danger" text @click="onDelete(row)">删除</m-button>
-      </template>
     </m-table>
     <AccumulatePointsApplyEdit ref="accumulatePointsApplyEditRefs" @refresh="onInit"></AccumulatePointsApplyEdit>
   </div>
@@ -49,9 +45,11 @@ export default {
         name: null
       },
       headers: [
-        { label: '名称', prop: 'name' },
-        { label: '状态', prop: 'status' },
-        { label: '操作', prop: 'actions', fixed: 'right', width: 300 }
+        { label: '月份', prop: 'month' },
+        { label: '员工姓名', prop: 'employeeName' },
+        { label: '机构', prop: 'organizationName' },
+        { label: '总积分', prop: 'score' },
+        { label: '创建时间', prop: 'createDate' }
       ],
       items: [],
       total: 0,