事件上报
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
@change="search.current = 1, getList()">
|
||||
</ai-select>
|
||||
<ai-download :instance="instance" url="/app/appclapeventinfo/listExport" :params="search" fileName="事件上报">
|
||||
<el-button type="primary" icon="iconfont iconExported" :disabled="!tableData.length">导出</el-button>
|
||||
<el-button type="primary" size="small" icon="iconfont iconExported" :disabled="!tableData.length">导出</el-button>
|
||||
</ai-download>
|
||||
</template>
|
||||
<template #right>
|
||||
@@ -31,7 +31,7 @@
|
||||
</el-input>
|
||||
</template>
|
||||
</ai-search-bar>
|
||||
<ai-table :tableData="tableData" :colConfigs="colConfigs" :total="total" :current.sync="search.current" :size.sync="search.size" @getList="getList">
|
||||
<ai-table style="margin-top: 8px;" :tableData="tableData" :colConfigs="colConfigs" :total="total" :current.sync="search.current" :size.sync="search.size" @getList="getList">
|
||||
<el-table-column slot="options" label="操作" fixed="right" width="120" align="center">
|
||||
<div class="table-options" slot-scope="{row}">
|
||||
<el-button type="text" title="详情" @click="toDetail(row.id)">详情</el-button>
|
||||
|
||||
@@ -77,9 +77,6 @@
|
||||
</div>
|
||||
<div v-show="currIndex === 1">
|
||||
<ai-card title="异常处理">
|
||||
<template #right>
|
||||
<el-button type="primary" v-if="info.status === '0'" @click="release">解除异常</el-button>
|
||||
</template>
|
||||
<template #content>
|
||||
<ai-wrapper
|
||||
label-width="120px">
|
||||
@@ -97,9 +94,6 @@
|
||||
</template>
|
||||
</ai-card>
|
||||
<ai-card title="异常情况记录">
|
||||
<template #right>
|
||||
<el-button type="primary" v-if="info.status === '0'" @click="isShow = true">添加记录</el-button>
|
||||
</template>
|
||||
<template #content>
|
||||
<ai-table
|
||||
:tableData="tableData"
|
||||
@@ -118,18 +112,6 @@
|
||||
</ai-table>
|
||||
</template>
|
||||
</ai-card>
|
||||
<ai-dialog
|
||||
:visible.sync="isShow"
|
||||
width="800px"
|
||||
@close="form.content = ''"
|
||||
title="添加异常记录"
|
||||
@onConfirm="onConfirm">
|
||||
<el-form class="ai-form" label-width="120px" :model="form" ref="form">
|
||||
<el-form-item label="异常记录" prop="content" style="width: 100%;" :rules="[{ required: true, message: '请输入异常记录' }]">
|
||||
<el-input type="textarea" :rows="5" :maxlength="500" v-model="form.content" clearable placeholder="请输入异常记录" show-word-limit></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</ai-dialog>
|
||||
</div>
|
||||
</template>
|
||||
</ai-detail>
|
||||
@@ -154,9 +136,6 @@
|
||||
current: 1,
|
||||
size: 10
|
||||
},
|
||||
form: {
|
||||
content: ''
|
||||
},
|
||||
isShow: false,
|
||||
currIndex: 0,
|
||||
tableData: [],
|
||||
@@ -200,20 +179,6 @@
|
||||
})
|
||||
},
|
||||
|
||||
release () {
|
||||
this.$confirm('确定解除异常?').then(() => {
|
||||
this.instance.post(`/app/appepidemicbackhomerecord/release?recordId=${this.params.id}`, {
|
||||
id: this.params.id
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success('解除异常成功!')
|
||||
this.currIndex = 0
|
||||
this.getInfo(this.params.id)
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
remove(id) {
|
||||
this.$confirm('确定删除该数据?').then(() => {
|
||||
this.instance.post(`/app/appepidemicunusuallog/delete?ids=${id}`).then(res => {
|
||||
@@ -225,23 +190,6 @@
|
||||
})
|
||||
},
|
||||
|
||||
onConfirm() {
|
||||
this.$refs.form.validate(v => {
|
||||
if (v) {
|
||||
this.instance.post('/app/appepidemicunusuallog/addOrUpdate', {
|
||||
...this.form,
|
||||
recordId: this.params.id
|
||||
}).then(res => {
|
||||
if (res?.code == 0) {
|
||||
this.isShow = false
|
||||
this.getList()
|
||||
this.$message.success('添加成功!')
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
getList () {
|
||||
this.instance.post(`/app/appepidemicunusuallog/list`, null, {
|
||||
params: {
|
||||
|
||||
@@ -1,6 +1,16 @@
|
||||
<template>
|
||||
<ai-list class="list">
|
||||
<ai-title slot="title" title="返乡登记" v-if="search.arriveAreaId" isShowBottomBorder :instance="instance" :disabledLevel="disabledLevel" isShowArea v-model="search.arriveAreaId" @change="changeArea"></ai-title>
|
||||
<ai-title
|
||||
slot="title"
|
||||
title="返乡登记"
|
||||
isShowBottomBorder
|
||||
:instance="instance"
|
||||
:disabledLevel="disabledLevel"
|
||||
isShowArea
|
||||
v-model="search.arriveAreaId"
|
||||
@change="changeArea"
|
||||
>
|
||||
</ai-title>
|
||||
<template slot="content">
|
||||
<div class="statistics-top">
|
||||
<div class="statistics-top__item">
|
||||
|
||||
Reference in New Issue
Block a user