|
@@ -60,24 +60,24 @@
|
|
|
<el-button type="primary">导出</el-button>
|
|
|
</div>
|
|
|
<div class="flex-1 w-full overflow-hidden">
|
|
|
- <el-table ref="clueTableRef" :data="customerTable" border :loading="allLoading.customerTableLading"
|
|
|
+ <el-table ref="clueTableRef" :data="customerTable" border v-loading="allLoading.customerTableLading"
|
|
|
style="width: 100%;height: 100%;">
|
|
|
<el-table-column type="selection" width="55" />
|
|
|
- <el-table-column prop="clueName" label="客户名称" width="180">
|
|
|
+ <el-table-column prop="customName" label="客户名称" width="180">
|
|
|
<template #default="scope">
|
|
|
<el-button link type="primary" size="large" @click.prevent="toCustomerTableDetail(scope.row)">{{
|
|
|
- scope.row.clueName
|
|
|
+ scope.row.customName
|
|
|
}}</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="clueSourceId" label="客户来源" width="180"></el-table-column>
|
|
|
- <el-table-column prop="phone" label="公司电话" width="180"></el-table-column>
|
|
|
- <el-table-column prop="email" label="邮箱" width="180"></el-table-column>
|
|
|
- <el-table-column prop="customerIndustryId" label="客户行业" width="180"></el-table-column>
|
|
|
- <el-table-column prop="customerLevelId" label="客户级别" width="180"></el-table-column>
|
|
|
- <el-table-column prop="inchargerId" label="负责人" width="190"></el-table-column>
|
|
|
- <el-table-column prop="createName" label="创建人" width="180"></el-table-column>
|
|
|
- <el-table-column prop="createTime" label="创建时间" width="180"></el-table-column>
|
|
|
+ <el-table-column prop="customSourceValue" label="客户来源" width="180"></el-table-column>
|
|
|
+ <el-table-column prop="companyPhone" label="公司电话" width="180"></el-table-column>
|
|
|
+ <el-table-column prop="email" label="邮箱" width="200"></el-table-column>
|
|
|
+ <el-table-column prop="customerIndustryValue" label="客户行业" width="180"></el-table-column>
|
|
|
+ <el-table-column prop="customerLevelValue" label="客户级别" width="180"></el-table-column>
|
|
|
+ <el-table-column prop="inchargerName" label="负责人" width="190"></el-table-column>
|
|
|
+ <el-table-column prop="creatorName" label="创建人" width="180"></el-table-column>
|
|
|
+ <el-table-column prop="newCreateTime" label="创建时间" width="180"></el-table-column>
|
|
|
<el-table-column label="操作" fixed="right" width="200">
|
|
|
<template #default="scope">
|
|
|
<el-button link type="primary" size="large">编辑</el-button>
|
|
@@ -245,7 +245,12 @@ function getCustomerTable() {
|
|
|
allLoading.customerTableLading = true
|
|
|
post(URL_TABLELIST, { ...valueForm }).then((res) => {
|
|
|
const { data, total } = res.data
|
|
|
- customerTable.value = data
|
|
|
+ customerTable.value = (data || []).map((item: any) => {
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ newCreateTime: formatDate(new Date(item.createTime)),
|
|
|
+ }
|
|
|
+ })
|
|
|
customerTotalTable.value = total
|
|
|
}).finally(() => {
|
|
|
allLoading.customerTableLading = false
|