事件上报
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
<ai-info-item label="联系方式">{{ detail.phone }}</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="事件描述" isLine>{{ detail.content }}</ai-info-item>
|
||||
<ai-info-item label="现场照片" isLine>
|
||||
<ai-uploader :instance="instance" disabled v-model="detail.files"></ai-uploader>
|
||||
|
||||
@@ -78,6 +78,7 @@ export default {
|
||||
return [
|
||||
{prop: 'content', label: '内容描述', width: '300px'},
|
||||
{prop: 'groupName', label: '事件来源', align: 'center'},
|
||||
{prop: 'groupName', label: '事件类型', align: 'center'},
|
||||
{prop: 'girdName', label: '所属网格', align: 'center'},
|
||||
{prop: 'createTime', label: '上报时间', align: 'center'},
|
||||
{prop: 'name', label: '上报居民', align: 'center'},
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<ai-list class="notice">
|
||||
<template slot="title">
|
||||
<ai-title isShowBack isShowBottomBorder title="事件来源" @onBackClick="cancel(false)"></ai-title>
|
||||
<ai-title isShowBack isShowBottomBorder title="事件类型" @onBackClick="cancel(false)"></ai-title>
|
||||
</template>
|
||||
<template slot="content">
|
||||
<ai-search-bar class="search-bar">
|
||||
<template #left>
|
||||
<el-button size="small" type="primary" icon="iconfont iconAdd" @click="isShowAdd = true">添加事件来源</el-button>
|
||||
<el-button size="small" type="primary" icon="iconfont iconAdd" @click="isShowAdd = true">添加事件类型</el-button>
|
||||
</template>
|
||||
<template slot="right">
|
||||
<el-input
|
||||
@@ -14,7 +14,7 @@
|
||||
class="search-input"
|
||||
size="small"
|
||||
v-throttle="() => {search.current = 1, getList()}"
|
||||
placeholder="请输入事件来源名称"
|
||||
placeholder="请输入事件类型名称"
|
||||
clearable
|
||||
@change="getList"
|
||||
@clear="search.current = 1, search.groupName = '', getList()"
|
||||
@@ -48,12 +48,12 @@
|
||||
:visible.sync="isShowAdd"
|
||||
width="780px"
|
||||
height="580px"
|
||||
:title="id ? '编辑事件来源' : '添加事件来源'"
|
||||
:title="id ? '编辑事件类型' : '添加事件类型'"
|
||||
@close="onClose"
|
||||
@onConfirm="onConfirm">
|
||||
<el-form ref="form" class="ai-form" :model="form" label-width="110px" label-position="right">
|
||||
<el-form-item label="事件来源" prop="groupName" style="width: 100%;" :rules="[{ required: true, message: '请输入事件来源名称', trigger: 'blur' }]">
|
||||
<el-input size="small" :maxlength="10" show-word-limit placeholder="请输入事件来源名称" v-model="form.groupName"></el-input>
|
||||
<el-form-item label="事件类型" prop="groupName" style="width: 100%;" :rules="[{ required: true, message: '请输入事件类型名称', trigger: 'blur' }]">
|
||||
<el-input size="small" :maxlength="10" show-word-limit placeholder="请输入事件类型名称" v-model="form.groupName"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="排序" prop="showIndex" style="width: 100%;" :rules="[{ required: true, message: '请输入排序', trigger: 'blur' }]">
|
||||
<el-input-number size="small" v-model="form.showIndex" :min="1" :max="100" label="请输入排序"></el-input-number>
|
||||
@@ -89,7 +89,7 @@
|
||||
isShowAdd: false,
|
||||
total: 0,
|
||||
colConfigs: [
|
||||
{prop: 'groupName', label: '事件来源', align: 'left'},
|
||||
{prop: 'groupName', label: '事件类型', align: 'left'},
|
||||
{prop: 'showIndex', label: '排序', align: 'center'},
|
||||
{slot: 'options', label: '操作'}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user