DetailDialog.js
656 Bytes
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
import FormDialog from '@/components/DetailDialog'
import consumerApi from '@/api/consumer'
const schema = [
{
key: 'userId',
label: '客户ID'
},
{
key: 'realName',
label: '客户名称'
},
{
key: 'userName',
label: '登录账号'
},
{
key: 'remark',
label: '备注'
}
]
export default {
async show(row) {
const list = [
{
name: '客户信息',
startIndex: 0,
endIndex: 5
}
]
FormDialog({
title: '客户详情',
schema,
list,
fetchData: async () => {
return (await consumerApi.detail(row.userid)).data
}
})
}
}