Merge branch 'build' of http://git.sinoecare.com/sinoecare/digital_village_v2/dvcp_v2_webapp into build
This commit is contained in:
@@ -161,7 +161,6 @@ export default {
|
|||||||
},
|
},
|
||||||
areaRootId: '',
|
areaRootId: '',
|
||||||
mediaList: [],
|
mediaList: [],
|
||||||
equipmentList: [],
|
|
||||||
detailDialog: false,
|
detailDialog: false,
|
||||||
isAll: false,
|
isAll: false,
|
||||||
input3: '',
|
input3: '',
|
||||||
@@ -198,15 +197,12 @@ export default {
|
|||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.dict.load('dlbMessageUrgency', 'dlbBroadTaskType', 'dlbDyclingType')
|
this.dict.load('dlbMessageUrgency', 'dlbBroadTaskType', 'dlbDyclingType')
|
||||||
Promise.all([this.getEquipmentList(), this.getMediaList()]).then(() => {
|
Promise.all([this.getMediaList()]).then(() => {
|
||||||
this.formData.mediaId = this.params.id
|
this.formData.mediaId = this.params.id
|
||||||
this.userAreaId = this.user.info.areaId
|
this.userAreaId = this.user.info.areaId
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 选择设备
|
|
||||||
getSelect() {
|
|
||||||
},
|
|
||||||
getMediaList() {
|
getMediaList() {
|
||||||
return this.instance.post(`/app/appdlbresource/list?current=1&size=10000`).then((res) => {
|
return this.instance.post(`/app/appdlbresource/list?current=1&size=10000`).then((res) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
@@ -217,16 +213,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getEquipmentList() {
|
|
||||||
return this.instance.post(`/app/appdlbquipment/getDlbDeviceList?current=1&size=10000&devStatus=5`).then((res) => {
|
|
||||||
if (res?.data) {
|
|
||||||
this.equipmentList = res.data.records?.map((item) => ({
|
|
||||||
dictName: item.deviceName,
|
|
||||||
dictValue: item.serialNo
|
|
||||||
})) || []
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 地区选择
|
// 地区选择
|
||||||
handleAreaSelect(v) {
|
handleAreaSelect(v) {
|
||||||
this.areaName = v?.[0]?.label
|
this.areaName = v?.[0]?.label
|
||||||
|
|||||||
@@ -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>
|
||||||
@@ -123,16 +123,16 @@
|
|||||||
<ai-dialog
|
<ai-dialog
|
||||||
:visible.sync="isShowUser"
|
:visible.sync="isShowUser"
|
||||||
width="800px"
|
width="800px"
|
||||||
title="选择网格或网格员"
|
title="选择网格员"
|
||||||
@onConfirm="onConfirm">
|
@onConfirm="onConfirm">
|
||||||
<div class="grid-wrapper">
|
<div class="grid-wrapper">
|
||||||
<el-input
|
<!-- <el-input
|
||||||
style="margin-bottom: 10px;"
|
style="margin-bottom: 10px;"
|
||||||
size="small"
|
size="small"
|
||||||
placeholder="请输入网格名称/网格员姓名/网格员电话"
|
placeholder="请输入网格名称/网格员姓名/网格员电话"
|
||||||
v-model="name" @change="$refs.tree.filter(name)"
|
v-model="name" @change="$refs.tree.filter(name)"
|
||||||
suffix-icon="iconfont iconSearch">
|
suffix-icon="iconfont iconSearch">
|
||||||
</el-input>
|
</el-input> -->
|
||||||
<el-tree
|
<el-tree
|
||||||
:filter-node-method="filterNode"
|
:filter-node-method="filterNode"
|
||||||
ref="tree"
|
ref="tree"
|
||||||
@@ -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) {
|
||||||
@@ -236,9 +236,15 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getGirdList() {
|
getGirdList() {
|
||||||
return this.instance.post(`/app/appgirdinfo/listAllByTop`).then(res => {
|
return this.instance.post(`/app/appresidentreportinfo/listGirdInfoByTransfer?id=${this.$route.query.id}`).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
return this.tree = this.formatList([res.data])
|
// return this.tree = this.formatList([res.data])
|
||||||
|
this.tree = res.data
|
||||||
|
this.tree.map((item) => {
|
||||||
|
item.children = [item.girdMemberList?.map(e => ({
|
||||||
|
...e, isUser: true, girdName: item.girdName
|
||||||
|
})) || []].flat()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -283,7 +289,7 @@ export default {
|
|||||||
onForwardConfirm() {
|
onForwardConfirm() {
|
||||||
this.$refs.forwardForm.validate(v => {
|
this.$refs.forwardForm.validate(v => {
|
||||||
if (v) {
|
if (v) {
|
||||||
this.instance.post('/app/appclapeventinfo/transferByManager', {
|
this.instance.post('/app/appresidentreportinfo/transfer', {
|
||||||
...this.forwardForm,
|
...this.forwardForm,
|
||||||
id: this.$route.query.id
|
id: this.$route.query.id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
@@ -298,20 +304,29 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onConfirm() {
|
onConfirm() {
|
||||||
if (this.gridInfo.userId) {
|
// if (this.gridInfo.userId) {
|
||||||
this.forwardForm.girdId = this.gridInfo.girdId
|
// this.forwardForm.girdId = this.gridInfo.girdId
|
||||||
this.forwardForm.girdName = this.gridInfo.girdName
|
// this.forwardForm.girdName = this.gridInfo.girdName
|
||||||
this.forwardForm.girdMemberId = this.gridInfo.id
|
// this.forwardForm.girdMemberId = this.gridInfo.id
|
||||||
this.forwardForm.girdMemberName = this.gridInfo.name
|
// this.forwardForm.girdMemberName = this.gridInfo.name
|
||||||
} else {
|
// } else {
|
||||||
this.forwardForm.girdId = this.gridInfo.id
|
// this.forwardForm.girdId = this.gridInfo.id
|
||||||
}
|
// }
|
||||||
|
// this.forwardForm.girdName = this.gridInfo.girdName
|
||||||
|
// this.forwardForm.name = `${this.gridInfo.girdName}${this.gridInfo.name ? '-' + this.gridInfo.name : ''}`
|
||||||
|
// this.isShowUser = false
|
||||||
|
if(!this.gridInfo.userId) {
|
||||||
|
return this.$message.error('请选择网格员!')
|
||||||
|
}
|
||||||
|
this.forwardForm.girdId = this.gridInfo.girdId
|
||||||
this.forwardForm.girdName = this.gridInfo.girdName
|
this.forwardForm.girdName = this.gridInfo.girdName
|
||||||
|
this.forwardForm.girdMemberId = this.gridInfo.id
|
||||||
|
this.forwardForm.girdMemberName = this.gridInfo.name
|
||||||
this.forwardForm.name = `${this.gridInfo.girdName}${this.gridInfo.name ? '-' + this.gridInfo.name : ''}`
|
this.forwardForm.name = `${this.gridInfo.girdName}${this.gridInfo.name ? '-' + this.gridInfo.name : ''}`
|
||||||
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 {
|
||||||
@@ -325,7 +340,7 @@ export default {
|
|||||||
|
|
||||||
close() {
|
close() {
|
||||||
this.$confirm('确定关闭该事件?').then(() => {
|
this.$confirm('确定关闭该事件?').then(() => {
|
||||||
this.instance.post(`/app/appmininotice/delete?ids=${this.$route.query.id}`).then(res => {
|
this.instance.post(`/app/appresidentreportinfo/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()
|
||||||
@@ -372,7 +387,7 @@ export default {
|
|||||||
handleEvent() {
|
handleEvent() {
|
||||||
this.$refs.form.validate(v => {
|
this.$refs.form.validate(v => {
|
||||||
if (v) {
|
if (v) {
|
||||||
this.instance.post('/app/appclapeventinfo/finishByManager', {
|
this.instance.post('/app/appresidentreportinfo/finishByGirdMember', {
|
||||||
...this.form,
|
...this.form,
|
||||||
groupName: this.dictList.filter(v => v.dictValue === this.form.groupId)[0].dictName,
|
groupName: this.dictList.filter(v => v.dictValue === this.form.groupId)[0].dictName,
|
||||||
id: this.$route.query.id
|
id: this.$route.query.id
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user