qujing
This commit is contained in:
@@ -19,11 +19,11 @@
|
|||||||
<template #content>
|
<template #content>
|
||||||
<ai-wrapper>
|
<ai-wrapper>
|
||||||
<ai-info-item label="上报人员" :value="detail.name"></ai-info-item>
|
<ai-info-item label="上报人员" :value="detail.name"></ai-info-item>
|
||||||
<ai-info-item label="当前状态" :value="dict.getLabel('weiyangEventStatus', detail.eventStatus)"></ai-info-item>
|
<ai-info-item label="当前状态" :value="dict.getLabel('qujingEventStatus', 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="事件类型">{{ detail.groupName }}</ai-info-item>
|
||||||
<ai-info-item label="事件来源" :value="dict.getLabel('weiyangEventType', detail.type)"></ai-info-item>
|
<ai-info-item label="事件来源" :value="dict.getLabel('qujingEventType', detail.type)"></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>
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
<ai-info-item label="家庭住址" isLine>{{ detail.judgeAddress }}</ai-info-item>
|
<ai-info-item label="家庭住址" isLine>{{ detail.judgeAddress }}</ai-info-item>
|
||||||
<ai-info-item label="排查内容" isLine>
|
<ai-info-item label="排查内容" isLine>
|
||||||
<span v-for="(item, index) in detail.judgeRiskList" :key="index">
|
<span v-for="(item, index) in detail.judgeRiskList" :key="index">
|
||||||
<span v-if="index > 0">,</span>{{dict.getLabel('weiyangRisk', item)}}
|
<span v-if="index > 0">,</span>{{dict.getLabel('qujingRisk', item)}}
|
||||||
</span>
|
</span>
|
||||||
</ai-info-item>
|
</ai-info-item>
|
||||||
</ai-wrapper>
|
</ai-wrapper>
|
||||||
@@ -329,14 +329,14 @@ export default {
|
|||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.getDict()
|
this.getDict()
|
||||||
this.dict.load('weiyangEventStatus', 'sex', 'weiyangRisk', 'weiyangEventType').then(() => {
|
this.dict.load('qujingEventStatus', 'sex', 'qujingRisk', 'qujingEventType').then(() => {
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
getDetail() {
|
getDetail() {
|
||||||
this.instance.post('/app/appclapeventinfoweiyang/queryDetailById', null, {
|
this.instance.post('/app/appclapeventinfoqujing/queryDetailById', null, {
|
||||||
params: {id: this.$route.query.id}
|
params: {id: this.$route.query.id}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
@@ -440,7 +440,7 @@ export default {
|
|||||||
onForwardConfirm() {
|
onForwardConfirm() {
|
||||||
this.$refs.forwardForm.validate(v => {
|
this.$refs.forwardForm.validate(v => {
|
||||||
if (v) {
|
if (v) {
|
||||||
this.instance.post('/app/appclapeventinfoweiyang/transfer', {
|
this.instance.post('/app/appclapeventinfoqujing/transfer', {
|
||||||
...this.forwardForm,
|
...this.forwardForm,
|
||||||
id: this.$route.query.id
|
id: this.$route.query.id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
@@ -468,7 +468,7 @@ export default {
|
|||||||
this.isShowUser = false
|
this.isShowUser = false
|
||||||
},
|
},
|
||||||
getDict() {
|
getDict() {
|
||||||
this.instance.post(`/app/appclapeventgroupweiyang/list?current=1&size=100000`).then(res => {
|
this.instance.post(`/app/appclapeventgroupqujing/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 {
|
||||||
@@ -482,7 +482,7 @@ export default {
|
|||||||
|
|
||||||
close() {
|
close() {
|
||||||
this.$confirm('确定关闭该事件?').then(() => {
|
this.$confirm('确定关闭该事件?').then(() => {
|
||||||
this.instance.post(`/app/appclapeventinfoweiyang/delete?ids=${this.$route.query.id}`).then(res => {
|
this.instance.post(`/app/appclapeventinfoqujing/delete?ids=${this.$route.query.id}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$message.success('删除成功!')
|
this.$message.success('删除成功!')
|
||||||
this.getList()
|
this.getList()
|
||||||
@@ -530,7 +530,7 @@ export default {
|
|||||||
this.$refs[refName].validate(v => {
|
this.$refs[refName].validate(v => {
|
||||||
if (v) {
|
if (v) {
|
||||||
var form = {}
|
var form = {}
|
||||||
var url = `/app/appclapeventinfoweiyang/finish`
|
var url = `/app/appclapeventinfoqujing/finish`
|
||||||
if(this.detail.rightType == 0) {
|
if(this.detail.rightType == 0) {
|
||||||
form = {...this.form}
|
form = {...this.form}
|
||||||
form.groupName = this.dictList.filter(v => v.dictValue === this.form.groupId)[0].dictName
|
form.groupName = this.dictList.filter(v => v.dictValue === this.form.groupId)[0].dictName
|
||||||
@@ -538,7 +538,7 @@ export default {
|
|||||||
if(this.detail.rightType == 1) {
|
if(this.detail.rightType == 1) {
|
||||||
form = {...this.talkForm}
|
form = {...this.talkForm}
|
||||||
form.judgeRisk = this.talkForm.judgeRiskList.join(',')
|
form.judgeRisk = this.talkForm.judgeRiskList.join(',')
|
||||||
url = `/app/appclapeventinfoweiyang/judge`
|
url = `/app/appclapeventinfoqujing/judge`
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.detail.rightType == 2) {
|
if(this.detail.rightType == 2) {
|
||||||
@@ -77,13 +77,13 @@ export default {
|
|||||||
colConfigs() {
|
colConfigs() {
|
||||||
return [
|
return [
|
||||||
{prop: 'content', label: '内容描述', width: '300px'},
|
{prop: 'content', label: '内容描述', width: '300px'},
|
||||||
{prop: 'type', label: '事件来源', align: 'center', dict: 'weiyangEventType'},
|
{prop: 'type', label: '事件来源', align: 'center', dict: 'qujingEventType'},
|
||||||
{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'},
|
||||||
{prop: 'name', label: '上报居民', align: 'center'},
|
{prop: 'name', label: '上报居民', align: 'center'},
|
||||||
{prop: 'phone', label: '联系方式', align: 'center'},
|
{prop: 'phone', label: '联系方式', align: 'center'},
|
||||||
{prop: 'eventStatus', label: '处理状态', align: 'center', format: v => this.dict.getLabel('weiyangEventStatus', v)},
|
{prop: 'eventStatus', label: '处理状态', align: 'center', format: v => this.dict.getLabel('qujingEventStatus', v)},
|
||||||
{prop: 'processTime', label: '处理时长', align: 'center'},
|
{prop: 'processTime', label: '处理时长', align: 'center'},
|
||||||
{slot: 'options'}
|
{slot: 'options'}
|
||||||
]
|
]
|
||||||
@@ -95,14 +95,14 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.dict.load('weiyangEventStatus', 'weiyangEventType').then(() => {
|
this.dict.load('qujingEventStatus', 'qujingEventType').then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
getList() {
|
getList() {
|
||||||
this.instance.post(`/app/appclapeventinfoweiyang/list`, null, {
|
this.instance.post(`/app/appclapeventinfoqujing/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/appclapeventinfoweiyang/delete", null, {
|
this.instance.post("/app/appclapeventinfoqujing/delete", null, {
|
||||||
params: {ids}
|
params: {ids}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
@@ -107,7 +107,7 @@
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
getList() {
|
getList() {
|
||||||
this.instance.post(`/app/appclapeventgroupweiyang/list`, null, {
|
this.instance.post(`/app/appclapeventgroupqujing/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/appclapeventgroupweiyang/addOrUpdate`, {
|
this.instance.post(`/app/appclapeventgroupqujing/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/appclapeventgroupweiyang/delete?ids=${id}`).then(res => {
|
this.instance.post(`/app/appclapeventgroupqujing/delete?ids=${id}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$message.success('删除成功!')
|
this.$message.success('删除成功!')
|
||||||
this.getList()
|
this.getList()
|
||||||
Reference in New Issue
Block a user