zhengnaiwen_citu 5 月之前
父节点
当前提交
4bbd06a116

+ 10 - 23
src/views/accumulatePoints/accumulatePointsApply/index.vue

@@ -4,9 +4,6 @@
       v-loading="loading"
       :items="items"
       :headers="headers"
-      :page-size="pageInfo.size"
-      :page-current="pageInfo.current"
-      :total="total"
       @page-change="onPageChange"
     >
       <template #score="{ row }">
@@ -18,9 +15,9 @@
         <m-button type="orange" icon="el-icon-refresh" :loading="loading" @click="onInit">刷新</m-button>
         <m-button type="orange" icon="el-icon-plus" @click="onAdd">申报</m-button>
       </template>
-      <template #actions="{ row }">
+      <!-- <template #actions="{ row }">
         <m-button text type="primary" @click="onDetails(row)">查看明细</m-button>
-      </template>
+      </template> -->
     </m-table>
     <AccumulatePointsApplyEdit ref="accumulatePointsApplyEditRefs" @refresh="onInit"></AccumulatePointsApplyEdit>
     <AccumulatePointsApplyDetails ref="accumulatePointsApplyDetailsRefs"></AccumulatePointsApplyDetails>
@@ -29,7 +26,7 @@
 
 <script>
 import {
-  getAccumulatePointList
+  getAccumulatePoint
 } from '@/api/accumulatePoint'
 import AccumulatePointsApplyDetails from '../components/accumulatePointsApplyDetails.vue'
 import AccumulatePointsApplyEdit from './accumulatePointsApplyEdit.vue'
@@ -42,18 +39,13 @@ export default {
   data () {
     return {
       headers: [
-        { label: '员工姓名', prop: 'employeeName' },
-        { label: '机构', prop: 'organizationName' },
-        { label: '申报积分', prop: 'score', align: 'center' },
-        { label: '创建时间', prop: 'createDate' },
-        { label: '操作', prop: 'actions' }
+        { label: '分类', prop: 'category' },
+        { label: '积分类型', prop: 'title' },
+        { label: '积分', prop: 'score', align: 'center' },
+        { label: '描述', prop: 'desc' }
+        // { label: '操作', prop: 'actions' }
       ],
       items: [],
-      total: 0,
-      pageInfo: {
-        current: 1,
-        size: 10
-      },
       loading: false
     }
   },
@@ -64,13 +56,8 @@ export default {
     async onInit () {
       this.loading = true
       try {
-        const { data } = await getAccumulatePointList({
-          page: {
-            ...this.pageInfo
-          }
-        })
-        this.items = data.records
-        this.total = data.total
+        const { data } = await getAccumulatePoint({})
+        this.items = data.itemInfos
       } catch (error) {
         this.$message.error(error)
       } finally {

+ 1 - 1
src/views/accumulatePoints/components/accumulatePointsApplyDetails.vue

@@ -46,7 +46,7 @@ export default {
       this.$refs.dialog.open()
       try {
         const { data } = await getAccumulatePoint({
-          employeeScoreId: item.employeeScoreId,
+          // employeeScoreId: item.employeeScoreId,
           ...query
         })
         this.items = data.itemInfos