党员积分

This commit is contained in:
shijingjing
2022-06-30 18:39:39 +08:00
parent bb7406c7c9
commit 5d2c1279d8
2 changed files with 27 additions and 11 deletions

View File

@@ -2,25 +2,30 @@
<section class="psDetail"> <section class="psDetail">
<ai-detail> <ai-detail>
<ai-title slot="title" title="积分详情" isShowBottomBorder isShowBack @onBackClick="back"/> <ai-title slot="title" title="积分详情" isShowBottomBorder isShowBack @onBackClick="back"/>
<template #right>
<ai-download :instance="instance" url="/app/apppartyintegralinfo/exportListByOrg" :params="search" fileName="党员积分" :disabled="tableData.length == 0">
<el-button icon="iconfont iconExported" :disabled="tableData.length == 0">导出</el-button>
</ai-download>
</template>
<template #content> <template #content>
<el-row type="flex"> <el-row type="flex">
<ai-card hideTitle class="staCard fill"> <ai-card hideTitle class="staCard fill">
<template #content> <template #content>
<div class="color-999" v-text="`姓名`"/> <div class="color-999" v-text="`姓名`"/>
<b v-text="detail.name"/> <b v-text="name"/>
</template> </template>
</ai-card> </ai-card>
<ai-card hideTitle class="staCard fill"> <ai-card hideTitle class="staCard fill">
<template slot="content"> <template slot="content">
<div class="color-999" v-text="`党员积分`"/> <div class="color-999" v-text="`党员积分`"/>
<b class="color-26f" v-text="detail.integral||0"/> <b class="color-26f" v-text="nowIntegral || 0"/>
</template> </template>
</ai-card> </ai-card>
</el-row> </el-row>
<ai-card title="余额变动明细"> <ai-card title="余额变动明细">
<template #content> <template #content>
<ai-table :tableData="detail.integralInfoList" :isShowPagination="false" :col-configs="colConfigs" <ai-table :tableData="detail.integralInfoList" isShowPagination :total="page.total" :current.sync="page.current"
:dict="dict"/> :size.sync="page.size" :col-configs="colConfigs" :dict="dict"/>
</template> </template>
</ai-card> </ai-card>
</template> </template>
@@ -62,17 +67,26 @@ export default {
{required: true, message: "请输入学习强国积分"}, {required: true, message: "请输入学习强国积分"},
{pattern: /^\d+$/g, message: "请输入正整数"} {pattern: /^\d+$/g, message: "请输入正整数"}
] ]
} },
name: '',
nowIntegral: '',
page: {current: 1, size: 10, total: 0},
} }
}, },
methods: { methods: {
getDetail() { getDetail() {
let {id} = this.$route.query let { id, name, nowIntegral } = this.$route.query
this.instance.post("/app/appparty/getPartyIntegralDetail", null, { this.instance.post("/app/apppartyintegralinfo/list", null, {
params: {id} params: {
partyId: id,
...this.page
}
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
this.detail = res.data this.detail = res.data
this.page.total = res.data.total
this.name = name
this.nowIntegral = nowIntegral
} }
}) })
}, },

View File

@@ -8,6 +8,7 @@
<ai-party-tree <ai-party-tree
:filter-node-method="filterNode" :filter-node-method="filterNode"
ref="tree" ref="tree"
default-first-option
:instance="instance" :instance="instance"
:root="user.info.organizationId" :root="user.info.organizationId"
:current-node-key="user.info.id" :current-node-key="user.info.id"
@@ -33,7 +34,7 @@
@getList="getTableData" :col-configs="colConfigs" :dict="dict"> @getList="getTableData" :col-configs="colConfigs" :dict="dict">
<el-table-column slot="options" label="操作" fixed="right" align="center"> <el-table-column slot="options" label="操作" fixed="right" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="text" @click="showDetail(row.partyId)">详情</el-button> <el-button type="text" @click="showDetail(row)">详情</el-button>
</template> </template>
</el-table-column> </el-table-column>
</ai-table> </ai-table>
@@ -133,8 +134,9 @@ export default {
return data.name.indexOf(value) !== -1 return data.name.indexOf(value) !== -1
}, },
showDetail(id) { showDetail(row) {
this.$router.push({query: {id}}) console.log(row);
this.$router.push({query: { id: row.partyId, name: row.name, nowIntegral: row.nowIntegral}})
}, },
}, },
created() { created() {