|
@@ -0,0 +1,173 @@
|
|
|
+<template>
|
|
|
+ <div class="menu-content">
|
|
|
+ <div class="container">
|
|
|
+ <div class="gradient-text title">救援队伍</div>
|
|
|
+ <div class="box-left">
|
|
|
+ <el-input v-model="queryParams.query.keyword" class="custom-input" placeholder="搜索" @input="initData">
|
|
|
+ <template #prefix>
|
|
|
+ <el-icon class="el-input__icon"><search /></el-icon>
|
|
|
+ </template>
|
|
|
+ </el-input>
|
|
|
+ <div class="btn" @click="handleCancel">取消</div>
|
|
|
+ </div>
|
|
|
+ <div class="custom-table">
|
|
|
+ <div class="th">
|
|
|
+ <div class="td">救援人员单位</div>
|
|
|
+ <div class="td">名称</div>
|
|
|
+ <div class="td" style="width: 280px; flex: unset">操作</div>
|
|
|
+ </div>
|
|
|
+ <div class="table-content">
|
|
|
+ <div v-for="(item, index) in listData" :key="index" class="tr">
|
|
|
+ <div class="td">{{ item.name }}</div>
|
|
|
+ <div class="td">{{ item.team_type }}</div>
|
|
|
+ <div class="td" style="width: 280px; flex: unset">
|
|
|
+ <div class="btn-text" @click="handleShowDetail(item)">详情</div>
|
|
|
+ <div class="line">|</div>
|
|
|
+ <div class="btn-text" @click="handleShowPeople(item)">人员</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <EmergencyCrew v-if="showDialog" :id="id" v-model="showDialog" />
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script lang="ts" setup>
|
|
|
+import { Search } from '@element-plus/icons-vue';
|
|
|
+import EmergencyCrew from '@/views/globalMap/RightMenu/EmergencyCrew.vue';
|
|
|
+import { getRescueTeamsList } from '@/api/globalMap/rescueTeam';
|
|
|
+
|
|
|
+const queryParams = reactive({
|
|
|
+ query: {
|
|
|
+ keyword: ''
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
+const showDetail = inject('showDetail');
|
|
|
+const listData = ref([]);
|
|
|
+let id = ref('');
|
|
|
+
|
|
|
+let showDialog = ref(false);
|
|
|
+const handleShowPeople = (item) => {
|
|
|
+ id.value = item.id;
|
|
|
+ showDialog.value = true;
|
|
|
+};
|
|
|
+const handleShowDetail = (item) => {
|
|
|
+ showDetail(
|
|
|
+ {
|
|
|
+ id: item.id,
|
|
|
+ lat: item.latitude,
|
|
|
+ lng: item.longitude
|
|
|
+ },
|
|
|
+ 41
|
|
|
+ );
|
|
|
+};
|
|
|
+const initData = () => {
|
|
|
+ getRescueTeamsList(queryParams).then((res) => {
|
|
|
+ listData.value = res.rows;
|
|
|
+ });
|
|
|
+};
|
|
|
+const handleCancel = () => {
|
|
|
+ queryParams.query.keyword = '';
|
|
|
+ initData();
|
|
|
+};
|
|
|
+initData();
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.menu-content {
|
|
|
+ width: 1579px;
|
|
|
+ height: 1394px;
|
|
|
+ background: url('@/assets/images/map/rightMenu/content.png') no-repeat;
|
|
|
+ padding: 130px 20px 20px 20px;
|
|
|
+ font-size: 36px;
|
|
|
+ position: relative;
|
|
|
+ color: #ffffff;
|
|
|
+}
|
|
|
+.title {
|
|
|
+ font-size: 60px;
|
|
|
+ position: absolute;
|
|
|
+ top: 30px;
|
|
|
+ left: 160px;
|
|
|
+}
|
|
|
+.custom-table {
|
|
|
+ width: 100%;
|
|
|
+ .table-content {
|
|
|
+ height: 880px;
|
|
|
+ overflow-y: auto;
|
|
|
+ overflow-x: hidden;
|
|
|
+ }
|
|
|
+ .th {
|
|
|
+ width: 100%;
|
|
|
+ height: 151px;
|
|
|
+ background: url('@/assets/images/map/rightMenu/th.png') no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
+ .tr {
|
|
|
+ height: 139px;
|
|
|
+ background: url('@/assets/images/map/rightMenu/td.png') no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ //margin-left: -23px;
|
|
|
+ display: flex;
|
|
|
+ padding-right: 20px;
|
|
|
+ &:hover {
|
|
|
+ background: url('@/assets/images/map/rightMenu/td_checked.png') no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .td {
|
|
|
+ flex: 1;
|
|
|
+ color: #edfaff;
|
|
|
+ font-size: 38px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .td-text {
|
|
|
+ /* 设置字体透明 */
|
|
|
+ color: transparent;
|
|
|
+ /* 使用 -webkit-background-clip 属性将背景剪裁至文本形状 */
|
|
|
+ -webkit-background-clip: text;
|
|
|
+ /* 非Webkit内核浏览器需要使用标准前缀 */
|
|
|
+ background-clip: text;
|
|
|
+ font-family: 'YouSheBiaoTiHei';
|
|
|
+ /* 设置线性渐变,从红色渐变到蓝色 */
|
|
|
+ background-image: linear-gradient(to bottom, #ffffff 50%, #3075d3 100%);
|
|
|
+ font-size: 48px;
|
|
|
+ }
|
|
|
+ .text-green {
|
|
|
+ background-image: linear-gradient(to bottom, #ffffff 50%, #40c75f 100%);
|
|
|
+ }
|
|
|
+ .text-danger {
|
|
|
+ background-image: linear-gradient(to bottom, #ffffff 50%, #ff2f3c 100%);
|
|
|
+ }
|
|
|
+}
|
|
|
+.box-left {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-top: 20px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ .btn {
|
|
|
+ width: 140px;
|
|
|
+ min-width: 140px;
|
|
|
+ height: 56px;
|
|
|
+ background: url('@/assets/images/map/rightMenu/potentialFloodHazard/btn.png') no-repeat;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ cursor: pointer;
|
|
|
+ margin-left: 20px;
|
|
|
+ }
|
|
|
+}
|
|
|
+.btn-text {
|
|
|
+ color: #5983df;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
+.line {
|
|
|
+ color: #5983df;
|
|
|
+ margin: 0 20px;
|
|
|
+}
|
|
|
+</style>
|