智慧园区前端大屏
shuishen
2024-12-17 a07f79573d52f61ba6ec97766e9abc12309eadee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!--
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2023-03-13 14:54:26
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-11-27 15:40:42
 * @FilePath: \bigScreen\src\views\companyInfo\components\box\fireSource.vue
 * @Description: 
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
-->
 
<template>
  <div class="data-content w100 h100">
 
    <div class="clearfix">
      <div class="content-firmIntro">
        <el-image :src="data.companyInfo.imageUrls" :zoom-rate="1.2" :max-scale="7" :min-scale="0.2"
          :preview-src-list="[data.companyInfo.imageUrls]" :initial-index="4" fit="cover">
          <template #error>
            <div class="image-slot">
              <el-icon><Picture /></el-icon>
            </div>
          </template>
        </el-image>
        <span> {{ data.companyInfo.firmIntro }} </span>
      </div>
    </div>
 
    <div class="company-info">
      <div class="" style="text-align: center;margin-top: 10px;">基本信息</div>
      <div class="company-info-item" v-for="item in companyInfoList" :key="item.id">
        <el-row>
          <el-col :span="6">
            <div class="company-info-title">{{ item.title }}</div>
          </el-col>
          <el-col :span="18">
            <div class="company-info-content">{{ item.content }}</div>
          </el-col>
        </el-row>
      </div>
    </div>
 
    <div class="company-info">
      <div class="" style="text-align: center;margin-top: 10px;">救援队伍</div>
      <div class="company-info-item" v-for="item in rescueTeamList" :key="item.id">
        <el-row>
          <el-col :span="6">
            <div class="company-info-title">{{ item.title }}</div>
          </el-col>
          <el-col :span="18">
            <div class="company-info-content">{{ item.content }}</div>
          </el-col>
        </el-row>
      </div>
    </div>
 
    <!-- <div class="company-info-image">
      <div class="" style="text-align: center;margin-top: 10px;">企业图片</div>      
    </div> -->
 
 
  </div>
</template>
 
<script setup>
import { Picture } from '@element-plus/icons-vue'
 
import publicContent from './publicContent.vue'
import { getAssetsFile } from 'utils/utils'
import { getfirmInfoDetail } from '@/api/indParkInfo'
 
let data = reactive({
  companyInfo: {}
})
 
let companyInfoList = ref([
  {
    id: 1,
    name: 'address',
    title: '单位所在地',
    content: '',
  },
  {
    id: 2,
    name: 'lng',
    title: '中心经度',
    content: '',
 
  },
  {
    id: 3,
    name: 'lat',
    title: '中心纬度',
    content: '',
  },
  {
    id: 4,
    name: 'name',
    title: '行业体制',
    content: '',
  },
  {
    id: 5,
    name: 'personInCha',
    title: '负责人',
    content: '',
  },
  {
    id: 6,
    name: 'personInChaPhone',
    title: '联系电话',
    content: '',
  }
])
 
let rescueTeamList = ref([
  {
    id: 5,
    name: 'rescuePerName',
    title: '姓名',
    content: '',
  },
  {
    id: 6,
    name: 'rescuePerPhone',
    title: '联系电话',
    content: '',
  }
])
 
 
onMounted(() => {
  data.companyInfo = JSON.parse(localStorage.getItem('companyInfo'))
  getDetail()
})
 
function getDetail() {
  getfirmInfoDetail({
    id: data.companyInfo.id
  }).then(res => {
    data.companyInfo = res.data.data
    companyInfoList.value.forEach(item => {
      data.companyInfo[item.name] && (item.content = data.companyInfo[item.name])
    })
    rescueTeamList.value.forEach(item => {
      data.companyInfo[item.name] && (item.content = data.companyInfo[item.name])
    })
  }).catch(err => {
  })
}
 
 
</script>
 
 
 
<style lang="scss" scoped>
.data-content {
  padding: 10px;
  color: #fff;
}
 
.clearfix::after {
  content: '';
  display: block;
  clear: both;
}
 
.content-firmIntro {
  height: 300px;
  overflow-x: hidden;
  // 隐藏滚动条
  scrollbar-width: none;
}
 
.content-firmIntro .el-image {
  float: left;
  margin-right: 10px;
  margin-top: 5px;
  width: 90px;
  height: 90px;
}
 
.content-firmIntro span {
  line-height: 25px;
  letter-spacing: 1px;
}
 
.company-info {
  margin-top: 10px;
  border-top: #dfdcdc 2px solid;
}
 
.company-info-item {
  // margin-top: 13px;
}
 
.company-info-title {
  // font-weight: bold;
  margin: 4px 0;
}
 
.company-info-content {
  // font-size: 13px;
  margin: 4px 0;
 
}
 
.company-info-jydw {
  margin-top: 10px;
  border-top: #dfdcdc 2px solid;
}
 
.company-info-jydw div {
  text-align: center;
  margin-top: 10px;
}
</style>