|
@@ -6,8 +6,10 @@
|
|
|
<el-button :type="currentType(0) ? 'primary' : 'default'" @click="handleSelect(0)">地图</el-button>
|
|
|
<el-button :type="currentType(1) ? 'primary' : 'default'" @click="handleSelect(1)">卡片</el-button>
|
|
|
</el-button-group>
|
|
|
-
|
|
|
</div>
|
|
|
+ <el-form-item label="所属架构:" class="filter">
|
|
|
+ <com-company v-model="state.deptId" />
|
|
|
+ </el-form-item>
|
|
|
</div>
|
|
|
<div ref="mapEl" class="map-container" v-show="currentType(0)"></div>
|
|
|
<div class="card-container" v-show="currentType(1)">
|
|
@@ -34,10 +36,14 @@ import { onMounted, ref, computed } from "vue";
|
|
|
import AMapLoader from "@amap/amap-jsapi-loader";
|
|
|
import axios from 'axios';
|
|
|
import { getFuseCodeLink } from "../../view/case/help";
|
|
|
-import comCompany from "@/components/company-select/index.vue";
|
|
|
+import comCompany from "./company-select/index.vue";
|
|
|
+import { reactive } from "vue";
|
|
|
|
|
|
const current = ref(0);
|
|
|
const list = ref<any>([])
|
|
|
+const state = reactive({
|
|
|
+ deptId: ''
|
|
|
+})
|
|
|
|
|
|
const currentType = computed(() => (type: number) => current.value === type)
|
|
|
const handleSelect = (type: number) => {
|
|
@@ -179,6 +185,8 @@ body {
|
|
|
.tabbar .nav {
|
|
|
display: flex;
|
|
|
background: white;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
}
|
|
|
|
|
|
.tabbar .nav .nav_item {
|
|
@@ -209,4 +217,9 @@ body {
|
|
|
cursor: pointer;
|
|
|
gap: 10px;
|
|
|
}
|
|
|
+
|
|
|
+.filter {
|
|
|
+ margin: 0;
|
|
|
+ margin-left: 20px;
|
|
|
+}
|
|
|
</style>
|