文件名称
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<template #content>
|
<template #content>
|
||||||
<ai-search-bar>
|
<ai-search-bar>
|
||||||
<template #left>
|
<template #left>
|
||||||
<el-button type="primary" size="small" icon="iconfont iconAdd" @click="dialog = true">批量调整积分</el-button>
|
<el-button type="primary" size="small" icon="iconfont iconAdd" @click="changeIntegral('',0)">批量调整积分</el-button>
|
||||||
<el-cascader ref="cascader1" clearable v-model="search.girdId" :options="girdOptions" placeholder="所属网格" size="small"
|
<el-cascader ref="cascader1" clearable v-model="search.girdId" :options="girdOptions" placeholder="所属网格" size="small"
|
||||||
:props="defaultProps" :show-all-levels="false" @change="gridChange"></el-cascader>
|
:props="defaultProps" :show-all-levels="false" @change="gridChange"></el-cascader>
|
||||||
</template>
|
</template>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column slot="options" label="操作" align="center">
|
<el-table-column slot="options" label="操作" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<el-button type="text" @click="dialog = true">调整积分</el-button>
|
<el-button type="text" @click="changeIntegral(row,1)">调整积分</el-button>
|
||||||
<el-button type="text" @click="toDetail(row.id)">详情</el-button>
|
<el-button type="text" @click="toDetail(row.id)">详情</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -45,15 +45,15 @@
|
|||||||
</template>
|
</template>
|
||||||
</ai-list>
|
</ai-list>
|
||||||
<ai-dialog
|
<ai-dialog
|
||||||
title="添加积分调整"
|
title="调整积分"
|
||||||
:visible.sync="dialog"
|
:visible.sync="dialog"
|
||||||
:destroyOnClose="true"
|
:destroyOnClose="true"
|
||||||
width="720px"
|
width="720px"
|
||||||
@onConfirm="onConfirm"
|
@onConfirm="onConfirm"
|
||||||
@closed="form={}">
|
@closed="form={},chooseUserList=[]">
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||||
<el-form-item label="选择人员" prop="residentId">
|
<el-form-item label="选择人员" prop="residentId">
|
||||||
<ai-person-select :instance="instance" :customClicker="true"
|
<ai-person-select :instance="instance" :customClicker="true" :chooseUserList="chooseUserList"
|
||||||
:url="'/app/appgirdmemberinfo/list?size=10'"
|
:url="'/app/appgirdmemberinfo/list?size=10'"
|
||||||
:isMultiple="true" dialogTitle="选择" @selectPerson="selectPerson">
|
:isMultiple="true" dialogTitle="选择" @selectPerson="selectPerson">
|
||||||
<template name="option" v-slot:option="{ item }">
|
<template name="option" v-slot:option="{ item }">
|
||||||
@@ -119,6 +119,7 @@ export default {
|
|||||||
value: 'id',
|
value: 'id',
|
||||||
checkStrictly: true,
|
checkStrictly: true,
|
||||||
},
|
},
|
||||||
|
chooseUserList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -167,6 +168,7 @@ export default {
|
|||||||
selectPerson(val) {
|
selectPerson(val) {
|
||||||
this.personList = val
|
this.personList = val
|
||||||
this.form.ids = this.personList.map(e => e.id)
|
this.form.ids = this.personList.map(e => e.id)
|
||||||
|
// .concat(this.chooseUserList.map(v=>v.id))
|
||||||
// if (val) {
|
// if (val) {
|
||||||
// this.form.residentId = val.id
|
// this.form.residentId = val.id
|
||||||
// this.personList = [{...val}]
|
// this.personList = [{...val}]
|
||||||
@@ -175,6 +177,19 @@ export default {
|
|||||||
// this.personList = []
|
// this.personList = []
|
||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
|
changeIntegral(row,type) {
|
||||||
|
console.log(row);
|
||||||
|
if(type==0) {
|
||||||
|
this.dialog = true
|
||||||
|
} else if(type ==1) {
|
||||||
|
this.chooseUserList = [{
|
||||||
|
id: row.id,
|
||||||
|
name: row.userName
|
||||||
|
}]
|
||||||
|
// this.personList = this.chooseUserList.map(e => e.id)
|
||||||
|
this.dialog = true
|
||||||
|
}
|
||||||
|
},
|
||||||
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) {
|
||||||
@@ -211,7 +226,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
changeTableSort(col) {
|
changeTableSort(col) {
|
||||||
// console.log(col);
|
console.log(col);
|
||||||
if(col.prop === 'integral') { // 剩余积分
|
if(col.prop === 'integral') { // 剩余积分
|
||||||
// col.order === 'ascending' &&
|
// col.order === 'ascending' &&
|
||||||
// col.order === 'descending' &&
|
// col.order === 'descending' &&
|
||||||
|
|||||||
@@ -431,13 +431,13 @@ export default {
|
|||||||
.post(`/app/appgirdinfo/listAll3`, null, null)
|
.post(`/app/appgirdinfo/listAll3`, null, null)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
res.data.forEach((item)=>{
|
// res.data.forEach((item)=>{
|
||||||
const isChecked = this.girdInfoList.find((checkedId)=>{
|
// const isChecked = this.girdInfoList.find((checkedId)=>{
|
||||||
return item.id === checkedId
|
// return item.id === checkedId
|
||||||
})
|
// })
|
||||||
if(isChecked) item.checkType = true
|
// if(isChecked) item.checkType = true
|
||||||
})
|
// })
|
||||||
console.log(res.data)
|
// console.log(res.data)
|
||||||
|
|
||||||
this.treeObj.treeList = this.girdToTree(res.data);
|
this.treeObj.treeList = this.girdToTree(res.data);
|
||||||
this.girdInfoList.map((e) => {
|
this.girdInfoList.map((e) => {
|
||||||
|
|||||||
@@ -97,7 +97,7 @@
|
|||||||
<ai-info-item label="积分变动">{{ details.integralCalcType==0? '-' : '+' }}{{ details.changeIntegral }}</ai-info-item>
|
<ai-info-item label="积分变动">{{ details.integralCalcType==0? '-' : '+' }}{{ details.changeIntegral }}</ai-info-item>
|
||||||
<ai-info-item label="积分余额" :value="details.nowIntegral"/>
|
<ai-info-item label="积分余额" :value="details.nowIntegral"/>
|
||||||
<ai-info-item label="凭证" isLine v-if="fileDownLoad.length">
|
<ai-info-item label="凭证" isLine v-if="fileDownLoad.length">
|
||||||
<ai-file-list :fileList="fileDownLoad" style="width: 200px;" :fileOps="fileOps"></ai-file-list>
|
<ai-file-list :fileList="fileDownLoad" style="width: 200px;" :fileOps="{name: 'name'}"></ai-file-list>
|
||||||
</ai-info-item>
|
</ai-info-item>
|
||||||
</ai-wrapper>
|
</ai-wrapper>
|
||||||
</template>
|
</template>
|
||||||
@@ -168,9 +168,6 @@ export default {
|
|||||||
userSortListY: [],
|
userSortListY: [],
|
||||||
girdSortListX: [],
|
girdSortListX: [],
|
||||||
girdSortListY: [],
|
girdSortListY: [],
|
||||||
fileOps: {
|
|
||||||
name: ''
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -450,9 +447,11 @@ export default {
|
|||||||
if(res?.data) {
|
if(res?.data) {
|
||||||
this.details = res.data
|
this.details = res.data
|
||||||
if(res.data.enclosure) {
|
if(res.data.enclosure) {
|
||||||
this.fileDownLoad = [{ url:res.data.enclosure }]
|
|
||||||
let str = res.data.enclosure.split('/')
|
let str = res.data.enclosure.split('/')
|
||||||
this.fileOps.name = str?.[str.length - 1]
|
this.fileDownLoad = [{
|
||||||
|
url:res.data.enclosure,
|
||||||
|
name: str?.[str.length - 1]
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user