事件上报

This commit is contained in:
liuye
2023-05-08 14:22:01 +08:00
parent 44e2c25f5b
commit 6741eb17d4
3 changed files with 12 additions and 12 deletions

View File

@@ -20,8 +20,8 @@
<ai-info-item label="当前状态" :value="dict.getLabel('clapEventStatus', detail.eventStatus)"></ai-info-item> <ai-info-item label="当前状态" :value="dict.getLabel('clapEventStatus', detail.eventStatus)"></ai-info-item>
<ai-info-item label="联系方式">{{ detail.phone }}</ai-info-item> <ai-info-item label="联系方式">{{ detail.phone }}</ai-info-item>
<ai-info-item label="上报时间">{{ detail.createTime }}</ai-info-item> <ai-info-item label="上报时间">{{ detail.createTime }}</ai-info-item>
<ai-info-item label="事件来源">{{ detail.groupName }}</ai-info-item> <ai-info-item label="事件来源">{{ dict.getLabel('residentEventSource', detail.eventSource) }}</ai-info-item>
<ai-info-item label="事件类型">{{ detail.groupName }} </ai-info-item> <ai-info-item label="事件类型">{{ detail.groupName }}</ai-info-item>
<ai-info-item label="事件描述" isLine>{{ detail.content }}</ai-info-item> <ai-info-item label="事件描述" isLine>{{ detail.content }}</ai-info-item>
<ai-info-item label="现场照片" isLine> <ai-info-item label="现场照片" isLine>
<ai-uploader :instance="instance" disabled v-model="detail.files"></ai-uploader> <ai-uploader :instance="instance" disabled v-model="detail.files"></ai-uploader>
@@ -210,14 +210,14 @@ export default {
created() { created() {
this.getDict() this.getDict()
this.dict.load('clapEventStatus').then(() => { this.dict.load('clapEventStatus', 'residentEventSource').then(() => {
this.getDetail() this.getDetail()
}) })
}, },
methods: { methods: {
getDetail() { getDetail() {
this.instance.post('/app/appclapeventinfo/queryDetailById', null, { this.instance.post('/app/appresidentreportinfo/queryDetailById', null, {
params: {id: this.$route.query.id} params: {id: this.$route.query.id}
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
@@ -311,7 +311,7 @@ export default {
this.isShowUser = false this.isShowUser = false
}, },
getDict() { getDict() {
this.instance.post(`/app/appclapeventgroup/list?current=1&size=100000`).then(res => { this.instance.post(`/app/appresidentreportgroup/list?current=1&size=100000`).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.dictList = res.data.records.map(v => { this.dictList = res.data.records.map(v => {
return { return {

View File

@@ -77,7 +77,7 @@ export default {
colConfigs() { colConfigs() {
return [ return [
{prop: 'content', label: '内容描述', width: '300px'}, {prop: 'content', label: '内容描述', width: '300px'},
{prop: 'groupName', label: '事件来源', align: 'center'}, {prop: 'eventSource', label: '事件来源', align: 'center', dict: 'residentEventSource'},
{prop: 'groupName', label: '事件类型', align: 'center'}, {prop: 'groupName', label: '事件类型', align: 'center'},
{prop: 'girdName', label: '所属网格', align: 'center'}, {prop: 'girdName', label: '所属网格', align: 'center'},
{prop: 'createTime', label: '上报时间', align: 'center'}, {prop: 'createTime', label: '上报时间', align: 'center'},
@@ -95,14 +95,14 @@ export default {
}, },
created() { created() {
this.dict.load('clapEventStatus').then(() => { this.dict.load('clapEventStatus', 'residentEventSource').then(() => {
this.getList() this.getList()
}) })
}, },
methods: { methods: {
getList() { getList() {
this.instance.post(`/app/appclapeventinfo/list`, null, { this.instance.post(`/app/appresidentreportinfo/list`, null, {
params: { params: {
...this.search ...this.search
} }
@@ -133,7 +133,7 @@ export default {
}, },
handleDelete(ids) { handleDelete(ids) {
this.$confirm("是否要进行删除?").then(() => { this.$confirm("是否要进行删除?").then(() => {
this.instance.post("/app/appclapeventinfo/delete", null, { this.instance.post("/app/appresidentreportinfo/delete", null, {
params: {ids} params: {ids}
}).then(res => { }).then(res => {
if (res?.code == 0) { if (res?.code == 0) {

View File

@@ -107,7 +107,7 @@
methods: { methods: {
getList() { getList() {
this.instance.post(`/app/appclapeventgroup/list`, null, { this.instance.post(`/app/appresidentreportgroup/list`, null, {
params: { params: {
...this.search ...this.search
} }
@@ -138,7 +138,7 @@
onConfirm () { onConfirm () {
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
this.instance.post(`/app/appclapeventgroup/addOrUpdate`, { this.instance.post(`/app/appresidentreportgroup/addOrUpdate`, {
...this.form, ...this.form,
id: this.id || null id: this.id || null
}).then(res => { }).then(res => {
@@ -162,7 +162,7 @@
remove(id) { remove(id) {
this.$confirm('确定删除该数据?').then(() => { this.$confirm('确定删除该数据?').then(() => {
this.instance.post(`/app/appclapeventgroup/delete?ids=${id}`).then(res => { this.instance.post(`/app/appresidentreportgroup/delete?ids=${id}`).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.$message.success('删除成功!') this.$message.success('删除成功!')
this.getList() this.getList()