gaoluyang
2025-04-21 cd410558db0d54fe1e21ec691fe886177d357ae5
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
<template>
  <div>
    <el-dialog title="产业链信息" :visible.sync="isShow" width="600px" @close="$parent.showInfoDialog = false">
      <div class="info" v-for="item in infoLIst" :key="item.fieldNameCn">
        <span class="title">{{item.fieldNameCn}}</span>:
        <span class="information">{{item.fieldNameValue}}</span>
      </div>
      <div class="info" v-if="infoLIst.length === 0">
        <span>暂无产业链数据</span>
      </div>
    </el-dialog>
  </div>
</template>
 
<script>
export default {
  name: "showInfo",
  // import 引入的组件需要注入到对象中才能使用
  components: {},
  props: {
    showInfoDialog: {
      type: Boolean,
      default: () => false
    },
  },
  data() {
    // 这里存放数据
    return {
      isShow: this.showInfoDialog,
      infoLIst: []
    }
  },
  // 方法集合
  methods: {
    getInfo (id) {
      console.log('id----', id)
    }
  },
}
</script>
 
<style scoped>
.info {
  margin: 6px 0;
}
.title {
  display: inline-block;
  width: 100px;
  text-align-last: justify;
  font-size: 16px;
  font-weight: 600;
}
.information {
  font-size: 16px;
}
</style>