From c69a03fa7f17e9b0f4c2836f3ad6695f35174b6b Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Sun, 22 Aug 2021 11:18:44 +0800
Subject: [PATCH] 保安员查询 跳转公司 公司详情加入 装备 车辆 枪支
---
src/views/securityUnitChild/index.vue | 77 ++++++++++++++++++++++++++------------
1 files changed, 52 insertions(+), 25 deletions(-)
diff --git a/src/views/securityUnitChild/index.vue b/src/views/securityUnitChild/index.vue
index c23e6c5..a21c28d 100644
--- a/src/views/securityUnitChild/index.vue
+++ b/src/views/securityUnitChild/index.vue
@@ -1,7 +1,7 @@
<template>
<div class="dispatch">
<avue-tabs :option="optionTABS" @change="handleChangeTABS"></avue-tabs>
- <span v-if="typeTABS.prop === 'tab1'">
+ <span v-if="typeTABS.prop === 'tab1'" class="tab">
<!-- <avue-crud
:option="option"
:data="data"
@@ -37,7 +37,7 @@
</avue-form>
</basic-container>
</span>
- <span v-else-if="typeTABS.prop === 'tab2'">
+ <span v-else-if="typeTABS.prop === 'tab2'" class="tab">
<!-- <span v-if="typeTABS.prop === 'tab2'"> -->
<basic-container>
<avue-crud
@@ -75,7 +75,7 @@
</avue-crud>
</basic-container>
</span>
- <span v-else-if="typeTABS.prop === 'tab3'">
+ <span v-else-if="typeTABS.prop === 'tab3'" class="tab">
<basic-container>
<avue-crud
:option="option2"
@@ -112,7 +112,18 @@
</avue-crud>
</basic-container>
</span>
-
+ <span v-else-if="typeTABS.prop === 'tab4'" class="tab">
+ <!-- 装备管理 -->
+ <equipments :fromDeptId="departmentid"></equipments>
+ </span>
+ <span v-else-if="typeTABS.prop === 'tab5'" class="tab">
+ <!-- 车辆管理 -->
+ <car :fromDeptId="departmentid"></car>
+ </span>
+ <span v-else-if="typeTABS.prop === 'tab6'" class="tab">
+ <!-- 枪支管理 -->
+ <gun :fromDeptId="departmentid"></gun>
+ </span>
<el-dialog
title="出资人导入"
append-to-body
@@ -172,8 +183,16 @@
update2,
remove2,
} from "@/api/securityUnit/securityUnit";
+import equipments from "../securityEquipment/equipments.vue";
+import car from "../securityEquipment/car.vue";
+import gun from "../securityEquipment/gun.vue";
export default {
+ components: {
+ equipments: equipments,
+ car: car,
+ gun: gun,
+ },
data() {
var DIC = {
VAILD: [
@@ -198,6 +217,8 @@
],
};
return {
+ departmentid: "",
+
excelBox: false, //出资人
excelForm: {},
excelOption: {
@@ -272,28 +293,23 @@
label: "主要管理人员信息",
prop: "tab3",
},
+ {
+ // icon: "el-icon-info",
+ label: "装备管理 ",
+ prop: "tab4",
+ },
+ {
+ // icon: "el-icon-info",
+ label: "车辆管理 ",
+ prop: "tab5",
+ },
+ {
+ // icon: "el-icon-info",
+ label: "枪支管理 ",
+ prop: "tab6",
+ },
],
},
-
- // loading: true, //保安单位基本信息
- // selectionList: [],
- // page: {
- // pageSize: 10,
- // currentPage: 1,
- // total: 0,
- // },
- // query: {},
- // data: [],
- // option: {
- // card: true,
- // searchSize: "mini",
- // searchMenuSpan: 6,
- // height: 547,
- // menuWidth: 160,
- // align: "center",
- // selection: true,
- // column: column,
- // },
//全局单位统一社会信用代码
creditcode: "",
@@ -717,6 +733,7 @@
row = JSON.parse(that.readLock("danweidata"));
// that.obj0.title = row.enterprisename;
// console.log(row, "row");
+ that.departmentid = row.departmentid;
for (var k in row) {
that.obj0[k] = row[k];
}
@@ -788,7 +805,7 @@
};
</script>
-<style lang="scss">
+<style lang="scss" scoped>
.dispatch {
width: 100%;
height: 100%;
@@ -807,4 +824,14 @@
.el-collapse-item {
padding-top: 15px !important;
}
+
+.tab {
+ position: relative;
+ // border: 1px solid red;
+ height: 92%;
+ display: inline-block;
+ width: 100%;
+ overflow: hidden;
+ top: -10px;
+}
</style>
\ No newline at end of file
--
Gitblit v1.9.3