89 lines
1.4 KiB
JavaScript
89 lines
1.4 KiB
JavaScript
cube(`ChatLogs`, {
|
|
sql: `SELECT * FROM rpt.pc_kfChatLog`,
|
|
|
|
measures: {
|
|
count: {
|
|
type: `count`,
|
|
title: `总记录数`
|
|
},
|
|
|
|
taggedCount: {
|
|
type: `count`,
|
|
filters: [
|
|
{ sql: `${CUBE}.state != 0` }
|
|
],
|
|
title: `已打标数量`
|
|
}
|
|
},
|
|
|
|
dimensions: {
|
|
id: {
|
|
sql: `id`,
|
|
type: `number`,
|
|
primaryKey: true
|
|
},
|
|
|
|
orderNo: {
|
|
sql: `orderNo`,
|
|
type: `string`,
|
|
title: `订单编号`
|
|
},
|
|
|
|
afsNo: {
|
|
sql: `afsNo`,
|
|
type: `string`,
|
|
title: `售后编号`
|
|
},
|
|
|
|
shopName: {
|
|
sql: `shopName`,
|
|
type: `string`,
|
|
title: `店铺名称`
|
|
},
|
|
|
|
content: {
|
|
sql: `content`,
|
|
type: `string`,
|
|
title: `聊天内容`
|
|
},
|
|
|
|
createdAt: {
|
|
sql: `createdAt`,
|
|
type: `time`,
|
|
title: `创建时间`
|
|
},
|
|
|
|
state: {
|
|
sql: `state`,
|
|
type: `number`,
|
|
title: `打标状态`
|
|
},
|
|
|
|
mainReason: {
|
|
sql: `mainReason`,
|
|
type: `string`,
|
|
title: `主要原因`
|
|
},
|
|
|
|
secondReason: {
|
|
sql: `secondReason`,
|
|
type: `string`,
|
|
title: `次要原因`
|
|
},
|
|
|
|
thirdReason: {
|
|
sql: `thirdReason`,
|
|
type: `string`,
|
|
title: `三级原因`
|
|
},
|
|
|
|
reasonContent: {
|
|
sql: `reasonContent`,
|
|
type: `string`,
|
|
title: `判断依据`
|
|
}
|
|
},
|
|
|
|
dataSource: `default`
|
|
});
|