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/keynotePlaceManage.vue | 90 +++++++++++++++++++++-----------------------
1 files changed, 43 insertions(+), 47 deletions(-)
diff --git a/src/views/publicSecurity/keynotePlaceManage.vue b/src/views/publicSecurity/keynotePlaceManage.vue
index 900ab39..f88ee5e 100644
--- a/src/views/publicSecurity/keynotePlaceManage.vue
+++ b/src/views/publicSecurity/keynotePlaceManage.vue
@@ -6,7 +6,10 @@
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
<template slot-scope="scope" slot="menu">
- <el-button type="text" size="small" icon="el-icon-view" plain @click="lookDetail(scope.row)">查 看
+ <el-button type="text" size="small" icon="el-icon-view" plain @click="lookDetail(scope.row,0)">查 看
+ </el-button>
+ <el-button type="text" size="small" icon="el-icon-s-check" v-if="scope.row.status == 1" plain
+ @click="lookDetail(scope.row,1)">审 核
</el-button>
<el-button type="text" size="small" icon="el-icon-delete" plain @click="rowDel(scope.row)">删 除
</el-button>
@@ -15,11 +18,10 @@
</avue-crud>
- <el-dialog class="place-info-box audit-info-box" title="查看详情" append-to-body :visible.sync="auditBasePopup"
- width="80%">
- <campusReporting v-if="taskType == 6" ref="campusReporting"></campusReporting>
- <hotelReporting v-if="taskType == 2" ref="hotelReporting"></hotelReporting>
- <labelReporting v-if="taskType == 3" ref="labelReporting"></labelReporting>
+ <el-dialog title="" append-to-body :visible.sync="auditBasePopup" width="60%">
+ <campusReporting @colseDetail="colseDetail" v-if="taskType == 6" ref="campusReporting"></campusReporting>
+ <hotelReporting @colseDetail="colseDetail" v-if="taskType == 2" ref="hotelReporting"></hotelReporting>
+ <labelReporting @colseDetail="colseDetail" v-if="taskType == 3" ref="labelReporting"></labelReporting>
</el-dialog>
</basic-container>
</template>
@@ -168,8 +170,7 @@
components: {
campusReporting,
hotelReporting,
- labelReporting
-
+ labelReporting,
},
watch: {},
@@ -192,63 +193,35 @@
return ids.join(",")
},
- showConfirmFlag() {
- return (data) => {
- let tags = {
- text: '',
- type: ''
- }
- if (data == 1) {
- tags = {
- text: '待审核',
- type: 'warning'
- }
- } else if (data == 2) {
- tags = {
- text: '已审核',
- type: 'success'
- }
- } else if (data == 3) {
- tags = {
- text: '未通过',
- type: 'danger'
- }
- } else if (data == 4) {
- tags = {
- text: '待完善',
- type: 'info'
- }
- }
-
- return tags
- }
- }
},
methods: {
- lookDetail(row) {
+
+ colseDetail() {
+ this.auditBasePopup = false
+ this.onLoad(this.page)
+ },
+
+ lookDetail(row, applyType) {
this.auditBasePopup = true
var that = this
if (row.reportType == 6) {
this.taskType = 6
this.$nextTick(() => {
- that.$refs.campusReporting.init(row)
+ that.$refs.campusReporting.init(row, applyType)
})
}
if (row.reportType == 2) {
this.taskType = 2
this.$nextTick(() => {
- that.$refs.hotelReporting.init(row)
+ that.$refs.hotelReporting.init(row, applyType)
})
}
if (row.reportType == 3 || row.reportType == 4 || row.reportType == 5) {
this.taskType = 3
this.$nextTick(() => {
- that.$refs.labelReporting.init(row)
+ that.$refs.labelReporting.init(row, applyType)
})
}
-
-
-
},
auditCur(row) {
this.curAuditRow = row
@@ -475,8 +448,31 @@
}
</script>
-<style>
+<style lang="scss" scoped>
.avue-upload__icon {
line-height: 6;
}
+
+ .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