From d1954622eee916e07532a79e2cc2dfce6788487f Mon Sep 17 00:00:00 2001
From: linwei <872216696@qq.com>
Date: Thu, 04 Jan 2024 18:31:12 +0800
Subject: [PATCH] 公安安全
---
src/views/publicSecurity/components/campusReporting.vue | 99 +++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 82 insertions(+), 17 deletions(-)
diff --git a/src/views/publicSecurity/components/campusReporting.vue b/src/views/publicSecurity/components/campusReporting.vue
index f852542..b53a234 100644
--- a/src/views/publicSecurity/components/campusReporting.vue
+++ b/src/views/publicSecurity/components/campusReporting.vue
@@ -1,32 +1,46 @@
<template>
- <avue-form :option="option" v-model="data"></avue-form>
+ <div class="cur-container-box">
+ <div v-if="applyType == 1">
+ <div class="content-box">
+ 审核当前项
+ </div>
+ <div class="footer-btn-box">
+ <el-button type="primary" size="small" @click="auditPass(2)">通 过</el-button>
+ <el-button size="small" @click="auditPass(3)">驳 回</el-button>
+ </div>
+ </div>
+
+ <avue-form v-else :option="option" v-model="form"></avue-form>
+ </div>
</template>
<script>
import {
- getDetail
+ getDetail,
+ update
} from "@/api/task/campusReporting"
export default {
data() {
return {
- data: {},
+ form: {},
+ applyType: '',
option: {
submitBtn: false,
emptyBtn: false,
column: [{
- label: '自查时间',
- prop: 'checkTime',
- disabled: true,
- }, {
- label: '自查人',
+ label: '申请人',
prop: 'checkUserName',
disabled: true,
}, {
- label: '自查人手机号',
+ label: '申请人手机',
prop: 'checkTelephone',
disabled: true,
}, {
- label: '自查位置',
+ label: '申请位置',
prop: 'location',
+ disabled: true,
+ }, {
+ label: '申请时间',
+ prop: 'checkTime',
disabled: true,
}, {
label: '安全通道',
@@ -40,6 +54,7 @@
listType: "picture-card",
dataType: "string",
disabled: true,
+ labelWidth: 120,
}, {
label: '未成年人入住登记本照片',
prop: 'uanImageUrls',
@@ -48,20 +63,21 @@
listType: "picture-card",
dataType: "string",
disabled: true,
+ labelWidth: 120,
}, {
- label: '确认时间',
+ label: '审核时间',
prop: 'confirmTime',
disabled: true,
}, {
- label: '确认用户',
+ label: '审核人',
prop: 'confirmUserName',
disabled: true,
}, {
- label: '确认意见',
+ label: '审核意见',
prop: 'confirmNotion',
disabled: true,
}, {
- label: '确认标记',
+ label: '审核状态',
prop: 'confirmFlag',
type: 'select',
dicData: [{
@@ -83,10 +99,12 @@
label: '消费器材数量',
prop: 'fireFacsNums',
disabled: true,
+ labelWidth: 120,
}, {
label: '消费器材状态',
prop: 'fireFacsStatus',
disabled: true,
+ labelWidth: 120,
}, {
label: '消费器材图片',
prop: 'fireFacsImageUrls',
@@ -95,18 +113,22 @@
listType: "picture-card",
dataType: "string",
disabled: true,
+ labelWidth: 120,
}, {
label: '消防器材种类',
prop: 'fireFacsType',
disabled: true,
+ labelWidth: 120,
}, {
label: '校园周边安全巡查照片',
prop: 'patrolImageUrls',
disabled: true,
+ labelWidth: 120,
}, {
label: '学校大门是否配备防撞装置',
prop: 'antiCollision',
disabled: true,
+ labelWidth: 120,
}, {
label: '校园防撞装置照片',
prop: 'antiCollisionImageUrls',
@@ -115,26 +137,32 @@
listType: "picture-card",
dataType: "string",
disabled: true,
+ labelWidth: 120,
}, {
label: '专职保安人数',
prop: 'fullSoNums',
+ labelWidth: 120,
disabled: true,
}, {
label: '兼职保安人数',
prop: 'partSoNums',
+ labelWidth: 120,
disabled: true,
}, {
label: '学校监控总数',
prop: 'monitorNums',
disabled: true,
+ labelWidth: 120,
}, {
label: '监控是否全覆盖',
prop: 'monitorOver',
disabled: true,
+ labelWidth: 120,
}, {
label: '高空抛物监控',
prop: 'highAltitudeMonitor',
disabled: true,
+ labelWidth: 120,
}, {
label: '高空抛物监控照片',
prop: 'haImageUrls',
@@ -143,12 +171,27 @@
listType: "picture-card",
dataType: "string",
disabled: true,
+ labelWidth: 120,
}, ]
}
}
},
methods: {
- init(data) {
+ auditPass(type) {
+ update({
+ status: type,
+ taskId: this.form.taskId,
+ id: this.form.id
+ }).then(() => {
+ this.$message({
+ type: "success",
+ message: "操作成功!",
+ })
+ this.$emit('colseDetail');
+ })
+ },
+ init(data, applyType) {
+ this.applyType = applyType
this.getTaskDetail(data.id)
},
@@ -156,7 +199,7 @@
getDetail({
taskId: taskId
}).then((res) => {
- this.data = res.data.data
+ this.form = res.data.data
})
}
@@ -164,5 +207,27 @@
}
</script>
-<style>
+<style lang="scss" scoped>
+ .cur-container-box {
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+
+ .content-box {
+ margin: 0 4px;
+ padding: 0 16px;
+ height: 0;
+ flex: 1;
+ overflow: hidden;
+ overflow-y: auto;
+ }
+
+ .footer-btn-box {
+ margin-top: 10px;
+ display: flex;
+ justify-content: center;
+ }
+ }
</style>
\ No newline at end of file
--
Gitblit v1.9.3