导出
This commit is contained in:
@@ -34,22 +34,22 @@
|
|||||||
<template #content>
|
<template #content>
|
||||||
<ai-search-bar>
|
<ai-search-bar>
|
||||||
<template #left>
|
<template #left>
|
||||||
<ai-select v-model="search.type" placeholder="请选择类型" @change="page.current=1,getIntegralChange()"
|
<ai-select v-model="search.type" placeholder="请选择类型" @change="search.current=1,getIntegralChange()"
|
||||||
:selectList="dict.getDict('integralDetailType')"/>
|
:selectList="dict.getDict('integralType')"/>
|
||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<ai-download :instance="instance" url="" :params="search" fileName="网格员积分"
|
<ai-download :instance="instance" :url="`/app/appintegraluser/changeIntegralExport?id=${$route.query.id}`" :params="search" fileName="网格员余额变动明细"
|
||||||
:disabled="tableData.length == 0">
|
:disabled="tableData.length == 0">
|
||||||
<el-button size="small">导出</el-button>
|
<el-button size="small">导出</el-button>
|
||||||
</ai-download>
|
</ai-download>
|
||||||
</template>
|
</template>
|
||||||
</ai-search-bar>
|
</ai-search-bar>
|
||||||
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
|
<ai-table :tableData="tableData" :total="search.total" :current.sync="search.current" :size.sync="search.size"
|
||||||
@getList="getTableData" :col-configs="colConfigs" :dict="dict">
|
@getList="getTableData" :col-configs="colConfigs" :dict="dict">
|
||||||
|
|
||||||
<el-table-column slot="eventDesc" label="事件" align="center">
|
<el-table-column slot="eventDesc" label="事件" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<span>{{ row.integralType == 3 ? row.integralRuleName : row.integralType == 0? row.eventDesc : '' }}</span>
|
<span>{{ row.integralType == 3 ? row.integralRuleNamesearch : row.integralType == 0? row.eventDesc : '' }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</ai-table>
|
</ai-table>
|
||||||
@@ -70,8 +70,6 @@ export default {
|
|||||||
name: '',
|
name: '',
|
||||||
girdId: '',
|
girdId: '',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
|
||||||
page: {
|
|
||||||
current: 1,
|
current: 1,
|
||||||
size: 10,
|
size: 10,
|
||||||
total: 0
|
total: 0
|
||||||
@@ -93,7 +91,7 @@ export default {
|
|||||||
colConfigs() {
|
colConfigs() {
|
||||||
return [
|
return [
|
||||||
{ prop: "doTime", label: '时间', align: "left", width: "200px" },
|
{ prop: "doTime", label: '时间', align: "left", width: "200px" },
|
||||||
{ prop: "integralType", label: '类型', align: "center", width: "240px", dict:"integralDetailType"},
|
{ prop: "integralType", label: '类型', align: "center", width: "240px", dict:"integralType"},
|
||||||
{ prop: "changeIntegral", label: '变动积分', align: "center",width: "200px",render: (h, { row }) => {
|
{ prop: "changeIntegral", label: '变动积分', align: "center",width: "200px",render: (h, { row }) => {
|
||||||
return h('span', {}, `${row.integralCalcType == 1 ? '+' : '-'}${row.changeIntegral}`)
|
return h('span', {}, `${row.integralCalcType == 1 ? '+' : '-'}${row.changeIntegral}`)
|
||||||
}},
|
}},
|
||||||
@@ -103,7 +101,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$dict.load('integralDetailType')
|
this.$dict.load('integralType')
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
this.getIntegralChange()
|
this.getIntegralChange()
|
||||||
},
|
},
|
||||||
@@ -128,8 +126,7 @@ export default {
|
|||||||
getIntegralChange() {
|
getIntegralChange() {
|
||||||
this.instance.post(`/app/appintegraluser/getChangeDetail`, null, {
|
this.instance.post(`/app/appintegraluser/getChangeDetail`, null, {
|
||||||
params: {
|
params: {
|
||||||
...this.page,
|
...this.search, //积分类型
|
||||||
type: this.search.type, //积分类型
|
|
||||||
id: this.$route.query.id,
|
id: this.$route.query.id,
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
@@ -205,10 +202,6 @@ export default {
|
|||||||
this.myChart.resize()
|
this.myChart.resize()
|
||||||
},
|
},
|
||||||
|
|
||||||
getTableData() {},
|
|
||||||
|
|
||||||
getListInit() {},
|
|
||||||
|
|
||||||
cancel(isRefresh) {
|
cancel(isRefresh) {
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
type: 'gridScoreManage',
|
type: 'gridScoreManage',
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<el-input size="small" placeholder="请输入居民名称或真实姓名" v-model="search.userName" clearable
|
<el-input size="small" placeholder="请输入居民名称或真实姓名" v-model="search.userName" clearable
|
||||||
@clear="page.current = 1, search.userName = '', getTableData()" suffix-icon="iconfont iconSearch"
|
@clear="page.current = 1, search.userName = '', getTableData()" suffix-icon="iconfont iconSearch"
|
||||||
v-throttle="() => {(page.current = 1), getTableData();}"/>
|
v-throttle="() => {(page.current = 1), getTableData();}"/>
|
||||||
<ai-download :instance="instance" url="" :params="search" fileName="网格员积分"
|
<ai-download :instance="instance" url="`/app/appintegraluser/girdIntegralExport" :params="search" fileName="网格员积分"
|
||||||
:disabled="tableData.length == 0">
|
:disabled="tableData.length == 0">
|
||||||
<el-button size="small">导出</el-button>
|
<el-button size="small">导出</el-button>
|
||||||
</ai-download>
|
</ai-download>
|
||||||
@@ -96,6 +96,8 @@ export default {
|
|||||||
search: {
|
search: {
|
||||||
userName: '',
|
userName: '',
|
||||||
girdId: '',
|
girdId: '',
|
||||||
|
current: 1,
|
||||||
|
size: 10,
|
||||||
},
|
},
|
||||||
tableData: [],
|
tableData: [],
|
||||||
page: {current: 1, size: 10, total: 0},
|
page: {current: 1, size: 10, total: 0},
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
<el-cascader ref="cascader2" v-model="search.girdId" :options="girdOptions" placeholder="所属网格" size="small"
|
<el-cascader ref="cascader2" v-model="search.girdId" :options="girdOptions" placeholder="所属网格" size="small"
|
||||||
:props="defaultProps" :show-all-levels="false" clearable @change="gridChangeOpt"></el-cascader>
|
:props="defaultProps" :show-all-levels="false" clearable @change="gridChangeOpt"></el-cascader>
|
||||||
<ai-select v-model="search.integralType" placeholder="请选择类型" @change="page.current=1, getTableData()"
|
<ai-select v-model="search.integralType" placeholder="请选择类型" @change="page.current=1, getTableData()"
|
||||||
:selectList="dict.getDict('integralDetailType')"/>
|
:selectList="dict.getDict('integralType')"/>
|
||||||
<el-date-picker v-model="time" size="small" type="daterange" value-format="yyyy-MM-dd"
|
<el-date-picker v-model="time" size="small" type="daterange" value-format="yyyy-MM-dd"
|
||||||
range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="onChange">
|
range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="onChange">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
@@ -173,7 +173,7 @@ export default {
|
|||||||
{ prop: "integralUserName", label: '姓名', align: "left", width: "200px" },
|
{ prop: "integralUserName", label: '姓名', align: "left", width: "200px" },
|
||||||
{ prop: "girdName", label: '所属网格', align: "center", width: "180px" },
|
{ prop: "girdName", label: '所属网格', align: "center", width: "180px" },
|
||||||
{ prop: "eventDesc", label: '事件', align: "center",width: "200px" },
|
{ prop: "eventDesc", label: '事件', align: "center",width: "200px" },
|
||||||
{ prop: "integralType", label: '类型', align: "center",width: "200px", dict:"integralDetailType" },
|
{ prop: "integralType", label: '类型', align: "center",width: "200px", dict:"integralType" },
|
||||||
// render: (h, {row}) => {
|
// render: (h, {row}) => {
|
||||||
// return h('span', {
|
// return h('span', {
|
||||||
// style: {
|
// style: {
|
||||||
@@ -189,7 +189,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$dict.load('epidemicDangerousAreaLevel').then(() => {
|
this.$dict.load('epidemicDangerousAreaLevel','integralType').then(() => {
|
||||||
this.getStatistics()
|
this.getStatistics()
|
||||||
this.getGridList()
|
this.getGridList()
|
||||||
this.getRanking()
|
this.getRanking()
|
||||||
@@ -379,7 +379,7 @@ export default {
|
|||||||
this.getStatistics()
|
this.getStatistics()
|
||||||
this.getRanking()
|
this.getRanking()
|
||||||
},
|
},
|
||||||
|
// 所有网格
|
||||||
getGridList() {
|
getGridList() {
|
||||||
this.instance.post(`/app/appgirdinfo/listAll3`).then((res) => {
|
this.instance.post(`/app/appgirdinfo/listAll3`).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
@@ -468,7 +468,6 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.gridScoreStatistics {
|
.gridScoreStatistics {
|
||||||
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
|
|||||||
Reference in New Issue
Block a user