BUG 30376
This commit is contained in:
@@ -9,24 +9,24 @@
|
|||||||
<ai-search-bar>
|
<ai-search-bar>
|
||||||
<template #left>
|
<template #left>
|
||||||
<ai-select
|
<ai-select
|
||||||
v-model="search.eventStatus"
|
v-model="search.eventStatus"
|
||||||
clearable
|
clearable
|
||||||
placeholder="处理状态"
|
placeholder="处理状态"
|
||||||
:selectList="dict.getDict('clapEventStatus')"
|
:selectList="dict.getDict('clapEventStatus')"
|
||||||
@change="search.current = 1, getList()">
|
@change="search.current = 1, getList()">
|
||||||
</ai-select>
|
</ai-select>
|
||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="search.content"
|
v-model="search.content"
|
||||||
class="search-input"
|
class="search-input"
|
||||||
size="small"
|
size="small"
|
||||||
v-throttle="() => {search.current = 1, getList()}"
|
v-throttle="() => {search.current = 1, getList()}"
|
||||||
placeholder="请输入内容描述/上报居民/联系方式"
|
placeholder="请输入内容描述/上报居民/联系方式"
|
||||||
clearable
|
clearable
|
||||||
@change="getList"
|
@change="getList"
|
||||||
@clear="search.current = 1, search.content = '', getList()"
|
@clear="search.current = 1, search.content = '', getList()"
|
||||||
suffix-icon="iconfont iconSearch">
|
suffix-icon="iconfont iconSearch">
|
||||||
</el-input>
|
</el-input>
|
||||||
</template>
|
</template>
|
||||||
</ai-search-bar>
|
</ai-search-bar>
|
||||||
@@ -34,6 +34,7 @@
|
|||||||
<el-table-column slot="options" label="操作" fixed="right" width="120" align="center">
|
<el-table-column slot="options" label="操作" fixed="right" width="120" align="center">
|
||||||
<div class="table-options" slot-scope="{row}">
|
<div class="table-options" slot-scope="{row}">
|
||||||
<el-button type="text" title="详情" @click="toDetail(row.id)">详情</el-button>
|
<el-button type="text" title="详情" @click="toDetail(row.id)">详情</el-button>
|
||||||
|
<el-button type="text" title="删除" @click="handleDelete(row.id)">删除</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</ai-table>
|
</ai-table>
|
||||||
@@ -42,94 +43,108 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'List',
|
name: 'List',
|
||||||
label: "随手拍",
|
label: "随手拍",
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
instance: Function,
|
instance: Function,
|
||||||
dict: Object
|
dict: Object
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
userList: [],
|
userList: [],
|
||||||
search: {
|
search: {
|
||||||
current: 1,
|
current: 1,
|
||||||
size: 10,
|
size: 10,
|
||||||
eventStatus: '',
|
eventStatus: '',
|
||||||
content: ''
|
content: ''
|
||||||
},
|
|
||||||
total: 0,
|
|
||||||
tableData: [],
|
|
||||||
content: '',
|
|
||||||
id: ''
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
computed: {
|
|
||||||
...mapState(['user']),
|
|
||||||
|
|
||||||
colConfigs() {
|
|
||||||
return [
|
|
||||||
{ prop: 'content', label: '内容描述', width: '300px' },
|
|
||||||
{ prop: 'groupName', label: '事件类型', align: 'center' },
|
|
||||||
{ prop: 'girdName', label: '所属网格', align: 'center' },
|
|
||||||
{ prop: 'createTime', label: '上报时间', align: 'center' },
|
|
||||||
{ prop: 'name', label: '上报居民', align: 'center' },
|
|
||||||
{ prop: 'phone', label: '联系方式', align: 'center' },
|
|
||||||
{ prop: 'eventStatus', label: '处理状态', align: 'center', formart: v => this.dict.getLabel('clapEventStatus', v) },
|
|
||||||
{ prop: 'processTime', label: '处理时长', align: 'center' },
|
|
||||||
{ slot: 'options' }
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
|
total: 0,
|
||||||
|
tableData: [],
|
||||||
|
content: '',
|
||||||
|
id: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
handleStatusOps() {
|
computed: {
|
||||||
return this.dict.getDict("reportAtWillHandleStatus").map(e => ({label: e.dictName, value: e.dictValue}))
|
...mapState(['user']),
|
||||||
}
|
|
||||||
|
colConfigs() {
|
||||||
|
return [
|
||||||
|
{prop: 'content', label: '内容描述', width: '300px'},
|
||||||
|
{prop: 'groupName', label: '事件类型', align: 'center'},
|
||||||
|
{prop: 'girdName', label: '所属网格', align: 'center'},
|
||||||
|
{prop: 'createTime', label: '上报时间', align: 'center'},
|
||||||
|
{prop: 'name', label: '上报居民', align: 'center'},
|
||||||
|
{prop: 'phone', label: '联系方式', align: 'center'},
|
||||||
|
{prop: 'eventStatus', label: '处理状态', align: 'center', formart: v => this.dict.getLabel('clapEventStatus', v)},
|
||||||
|
{prop: 'processTime', label: '处理时长', align: 'center'},
|
||||||
|
{slot: 'options'}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
handleStatusOps() {
|
||||||
this.dict.load('clapEventStatus').then(() => {
|
return this.dict.getDict("reportAtWillHandleStatus").map(e => ({label: e.dictName, value: e.dictValue}))
|
||||||
this.getList()
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
created() {
|
||||||
|
this.dict.load('clapEventStatus').then(() => {
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
getList() {
|
||||||
|
this.instance.post(`/app/appclapeventinfo/list`, null, {
|
||||||
|
params: {
|
||||||
|
...this.search
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.tableData = res.data.records
|
||||||
|
this.total = res.data.total
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
toDetail(id) {
|
||||||
getList () {
|
this.$emit('change', {
|
||||||
this.instance.post(`/app/appclapeventinfo/list`, null, {
|
type: 'Detail',
|
||||||
params: {
|
params: {
|
||||||
...this.search
|
id: id || ''
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
toSetting() {
|
||||||
|
this.$emit('change', {
|
||||||
|
type: 'Setting',
|
||||||
|
params: {
|
||||||
|
id: ''
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleDelete(ids) {
|
||||||
|
this.$confirm("是否要进行删除?").then(() => {
|
||||||
|
this.$instance.post("/app/appclapeventinfo/delete", null, {
|
||||||
|
params: {ids}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res?.code == 0) {
|
||||||
this.tableData = res.data.records
|
this.$u.toast("删除成功!")
|
||||||
this.total = res.data.total
|
this.current = 1
|
||||||
|
this.isMore = false
|
||||||
|
this.getList()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
}).catch(() => 0)
|
||||||
|
|
||||||
toDetail (id) {
|
|
||||||
this.$emit('change', {
|
|
||||||
type: 'Detail',
|
|
||||||
params: {
|
|
||||||
id: id || ''
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
toSetting () {
|
|
||||||
this.$emit('change', {
|
|
||||||
type: 'Setting',
|
|
||||||
params: {
|
|
||||||
id: ''
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user