|
@@ -1,5 +1,12 @@
|
|
|
<template>
|
|
|
<div class="pa-3 white">
|
|
|
+ <m-card class="mb-3">
|
|
|
+ <div class="d-flex">
|
|
|
+ <div>
|
|
|
+ 总积分:<el-tag>{{ itemData.entity?.score }}</el-tag>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </m-card>
|
|
|
<m-table
|
|
|
v-loading="loading"
|
|
|
:items="items"
|
|
@@ -10,8 +17,6 @@
|
|
|
<el-tag type="success">{{ row.score }}</el-tag>
|
|
|
</template>
|
|
|
<template #card-tools>
|
|
|
- <!-- 当前总积分:
|
|
|
- <el-tag>985</el-tag> -->
|
|
|
<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>
|
|
@@ -53,7 +58,8 @@ export default {
|
|
|
],
|
|
|
items: [],
|
|
|
loading: false,
|
|
|
- previewUrl: []
|
|
|
+ previewUrl: [],
|
|
|
+ itemData: {}
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
@@ -64,6 +70,7 @@ export default {
|
|
|
this.loading = true
|
|
|
try {
|
|
|
const { data } = await getAccumulatePoint({})
|
|
|
+ this.itemData = data
|
|
|
this.items = data.itemInfos
|
|
|
} catch (error) {
|
|
|
this.$message.error(error)
|