From 0270a1c72a4496ee88c0778cbc5fe22b17d9993e Mon Sep 17 00:00:00 2001
From: linwei <872216696@qq.com>
Date: Thu, 04 Jan 2024 11:21:03 +0800
Subject: [PATCH] 公安安全
---
src/views/publicSecurity/keynotePlaceManage.vue | 127 +++++++++++++++++++++++-------------------
1 files changed, 69 insertions(+), 58 deletions(-)
diff --git a/src/views/publicSecurity/keynotePlaceManage.vue b/src/views/publicSecurity/keynotePlaceManage.vue
index 85802f5..900ab39 100644
--- a/src/views/publicSecurity/keynotePlaceManage.vue
+++ b/src/views/publicSecurity/keynotePlaceManage.vue
@@ -4,34 +4,22 @@
v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen"
@search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
- <!-- <template slot-scope="{row}" slot="confirmFlag">
- <el-tag size="small" :type="showConfirmFlag(row.confirmFlag).type">{{ showConfirmFlag(row.confirmFlag).text
- }}</el-tag>
- </template> -->
- <!-- <template slot="menuLeft">
- <el-button size="small" icon="el-icon-delete" plain v-if="permission.place_delete" @click="handleDelete">删 除
+ <template slot-scope="scope" slot="menu">
+ <el-button type="text" size="small" icon="el-icon-view" plain @click="lookDetail(scope.row)">查 看
</el-button>
- </template> -->
+ <el-button type="text" size="small" icon="el-icon-delete" plain @click="rowDel(scope.row)">删 除
+ </el-button>
+ </template>
- <!-- <template slot-scope="scope" slot="menu">
- <el-button type="text" :disabled="scope.row.confirmFlag == 2" icon="el-icon-s-check" size="small"
- v-if="permission.place_audit_cur && scope.row.confirmFlag != 4" @click="auditCur(scope.row)">审核
- </el-button>
-
- <el-button type="text" icon="el-icon-edit" size="small" v-if="permission.place_manage_tenants"
- @click="ManageTenants(scope.row)">场所维护
- </el-button>
- </template> -->
</avue-crud>
- <el-dialog class="place-info-box" title="场所维护" append-to-body :visible.sync="roleBox" center @close="roleBoxClose">
- <!-- <baseAllInfo></baseAllInfo> -->
- </el-dialog>
- <el-dialog class="place-info-box audit-info-box" title="审核" append-to-body :visible.sync="auditBasePopup"
- width="30%">
- <!-- <auditBase></auditBase> -->
+ <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>
</basic-container>
</template>
@@ -39,7 +27,7 @@
<script>
import {
getList,
- remove,
+ removeTask,
update,
add,
} from "@/api/task/task"
@@ -49,13 +37,14 @@
} from "vuex"
import website from '@/config/website'
-
- // import auditBase from './components/auditBase'
- // import baseAllInfo from './components/baseAllInfo'
+ import campusReporting from './components/campusReporting'
+ import hotelReporting from './components/hotelReporting'
+ import labelReporting from './components/labelReporting'
export default {
data() {
return {
+ taskType: 0,
curRow: {},
roleBox: false,
@@ -78,12 +67,13 @@
searchShow: true,
searchMenuSpan: 3,
menuWidth: 280,
- menu: false,
+ // menu: false,
border: true,
//stripe:true,
index: true,
- viewBtn: true,
+ // viewBtn: true,
editBtn: false,
+ delBtn: false,
selection: true,
dialogClickModal: false,
column: [{
@@ -175,10 +165,12 @@
}
},
- // components: {
- // auditBase,
- // baseAllInfo
- // },
+ components: {
+ campusReporting,
+ hotelReporting,
+ labelReporting
+
+ },
watch: {},
@@ -233,6 +225,31 @@
}
},
methods: {
+ lookDetail(row) {
+ this.auditBasePopup = true
+ var that = this
+ if (row.reportType == 6) {
+ this.taskType = 6
+ this.$nextTick(() => {
+ that.$refs.campusReporting.init(row)
+ })
+ }
+ if (row.reportType == 2) {
+ this.taskType = 2
+ this.$nextTick(() => {
+ that.$refs.hotelReporting.init(row)
+ })
+ }
+ if (row.reportType == 3 || row.reportType == 4 || row.reportType == 5) {
+ this.taskType = 3
+ this.$nextTick(() => {
+ that.$refs.labelReporting.init(row)
+ })
+ }
+
+
+
+ },
auditCur(row) {
this.curAuditRow = row
this.auditBasePopup = true
@@ -330,7 +347,8 @@
type: "warning",
})
.then(() => {
- return remove(row.id)
+ row.isDeleted = 1
+ return removeTask(row)
})
.then(() => {
this.onLoad(this.page)
@@ -385,31 +403,24 @@
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
- getPlace(this.form.id).then((res) => {
- this.form = res.data.data
-
- if (this.form.imageUrls.length) {
- this.form.imageUrls = this.form.imageUrls.split(",").filter(item => item != '').map(item => website
- .minioUrl + item).join(',')
- }
-
- if (this.form.placePoiLabelVOList.length) {
- let lebelTwo = this.form.placePoiLabelVOList.find(item => {
- return item.type == 2
- })
-
- if (lebelTwo) this.form.label = String(lebelTwo.poiCode)
-
- let lebelThree = this.form.placePoiLabelVOList.find(item => {
- return item.type == 3
- })
-
- if (lebelThree) this.form.smallLabel = String(lebelThree.poiCode)
- }
-
- done()
-
- })
+ // getPlace(this.form.id).then((res) => {
+ // this.form = res.data.data
+ // if (this.form.imageUrls.length) {
+ // this.form.imageUrls = this.form.imageUrls.split(",").filter(item => item != '').map(item => website
+ // .minioUrl + item).join(',')
+ // }
+ // if (this.form.placePoiLabelVOList.length) {
+ // let lebelTwo = this.form.placePoiLabelVOList.find(item => {
+ // return item.type == 2
+ // })
+ // if (lebelTwo) this.form.label = String(lebelTwo.poiCode)
+ // let lebelThree = this.form.placePoiLabelVOList.find(item => {
+ // return item.type == 3
+ // })
+ // if (lebelThree) this.form.smallLabel = String(lebelThree.poiCode)
+ // }
+ // done()
+ // })
} else {
done()
}
--
Gitblit v1.9.3