clll
2023-12-15 68e28b5e14ba2de103921aa1ab10f6df7b445ae9
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
<script setup>
 
let orderList = $ref([
  {
    '0':'1',
    '1':'太仓卓高玻璃制品有限公司',
    '2':'A',
    '3':'100000',
    '4':'江苏太仓xxxx街道',
    '5':'张三',
    '6':'139xxxxxxxx',
 
  },
  {
    '0':'1',
    '1':'山西某某公司',
    '2':'A',
    '3':'100000',
    '4':'江苏太仓xxxx街道',
    '5':'张三',
    '6':'139xxxxxxxx',
 
  }
])
 
let titleList = $ref([
  '客户编码',
  '名称',
  '客户等级',
  '信用额度',
  '地址',
  '联系人',
  '联系电话'
])
</script>
 
<template>
  <div class="main-div-customer">
    <el-table
        :data="orderList"
        :header-cell-style="{ 'text-align': 'center' }"
        :cell-style="{ 'text-align': 'center' }"
        lazy
        border
    >
      <el-table-column type="expand" fixed>
        <template #default="props" >
          <div m="4">
 
            <p m="t-0 b-2">客户相关信息</p>
          </div>
        </template>
      </el-table-column>
      <el-table-column label="操作" fixed width="110"  >
        <el-button link type="primary" size="small">编辑</el-button>
        <el-button link type="primary" size="small">删除</el-button>
      </el-table-column>
      <el-table-column
          :prop="index.toString()"
          :show-overflow-tooltip='true'
           v-for="(item,index) in titleList"
          :label="item" >
      </el-table-column>
    </el-table>
  </div>
</template>
 
<style scoped>
.main-div-customer{
  width: 99%;
  height: 100%;
}
</style>