|
|
@ -12,27 +12,15 @@ |
|
|
|
<img :src="lists.row.image" width="70" height="70" alt=""> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="name" |
|
|
|
label="名称"> |
|
|
|
<el-table-column prop="name" label="名称"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="locationName" |
|
|
|
label="场地地址"> |
|
|
|
<el-table-column prop="locationName" label="场地地址"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="users" |
|
|
|
label="分润人数"> |
|
|
|
<el-table-column prop="users" label="分润人数"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="stateText" |
|
|
|
label="状态"> |
|
|
|
<el-table-column prop="stateText" label="状态"> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
fixed="right" |
|
|
|
label="操作" |
|
|
|
> |
|
|
|
<el-table-column fixed="right" label="操作"> |
|
|
|
<template slot-scope="lists"> |
|
|
|
<span |
|
|
|
type="text" |
|
|
@ -69,7 +57,8 @@ |
|
|
|
<el-dialog |
|
|
|
width="400px" |
|
|
|
:show-close="false" |
|
|
|
:visible.sync="isEdit"> |
|
|
|
:visible.sync="isEdit" |
|
|
|
> |
|
|
|
<details-of-distribution ref="distribution" :currId="id" v-if="isEdit"></details-of-distribution> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="isEdit = false">取消</el-button> |
|
|
@ -83,13 +72,7 @@ |
|
|
|
<script> |
|
|
|
const FormContainer = () => import('./form.vue'); |
|
|
|
const DetailsOfDistribution = () => import('./detailsOfDistribution.vue'); |
|
|
|
import { |
|
|
|
GET_FIELD_LIST, |
|
|
|
POST_FIELD_LIST, |
|
|
|
ENABLE_FIELD_LIST, |
|
|
|
DISABLE_FIELD_LIST, |
|
|
|
COUNT_FIELD_LIST |
|
|
|
} from '@/api/distribution' |
|
|
|
import { GET_LIST } from '@/api/otherPage'; |
|
|
|
import Alert from "@/utils/alert"; |
|
|
|
import {pageSize} from '../../config'; |
|
|
|
|
|
|
@ -120,6 +103,7 @@ |
|
|
|
this.params = { |
|
|
|
...this.params, |
|
|
|
locationId: res.locationId, |
|
|
|
description: res.description, |
|
|
|
}; |
|
|
|
this.getList() |
|
|
|
}, |
|
|
@ -132,18 +116,15 @@ |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
getList() { |
|
|
|
GET_FIELD_LIST(this.params).then(res => { |
|
|
|
res.map((item) => { |
|
|
|
item.stateText = item.enabled ? '生效中' : '失效中'; |
|
|
|
item.locationName = item.province + item.city + item.district + item.name; |
|
|
|
return item |
|
|
|
GET_LIST(this.params).then(res => { |
|
|
|
console.log('res: ', res); |
|
|
|
// res.map((item) => { |
|
|
|
// item.stateText = item.enabled ? '生效中' : '失效中'; |
|
|
|
// item.locationName = item.province + item.city + item.district + item.name; |
|
|
|
// return item |
|
|
|
// }); |
|
|
|
// this.lists = res |
|
|
|
}); |
|
|
|
this.lists = res |
|
|
|
}); |
|
|
|
|
|
|
|
COUNT_FIELD_LIST(this.params).then(res => { |
|
|
|
this.count = res |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|