|
@@ -22,14 +22,15 @@ const pageRef = ref(null);
|
|
|
|
|
|
|
|
const pageConfig = reactive({
|
|
const pageConfig = reactive({
|
|
|
fileName: '搜索记录',
|
|
fileName: '搜索记录',
|
|
|
- cacheKey: 'searchLogTable'
|
|
|
|
|
|
|
+ cacheKey: 'searchLogTable',
|
|
|
|
|
+ pageUrl: '/shop/shopSearch/searchLog'
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
watch(
|
|
watch(
|
|
|
() => props.row,
|
|
() => props.row,
|
|
|
(row) => {
|
|
(row) => {
|
|
|
if (!row || (row && !row.id)) return;
|
|
if (!row || (row && !row.id)) return;
|
|
|
- pageConfig.pageUrl = `/user/userSearchLog/getUserSearchLogList/${row.id}`;
|
|
|
|
|
|
|
+ pageConfig.pageUrl = `/shop/shopSearch/searchLog?userId=${row.id}`;
|
|
|
pageRef.value?.reload();
|
|
pageRef.value?.reload();
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -41,11 +42,21 @@ watch(
|
|
|
/** 表格列配置 */
|
|
/** 表格列配置 */
|
|
|
const columns = ref([
|
|
const columns = ref([
|
|
|
{ label: '序号', type: 'index', align: 'center', width: 60 },
|
|
{ label: '序号', type: 'index', align: 'center', width: 60 },
|
|
|
- { label: '搜索词', prop: 'keyword', align: 'center' },
|
|
|
|
|
- { label: '点击商品', prop: 'bookName', align: 'center' },
|
|
|
|
|
|
|
+ { label: '搜索词', prop: 'searchWord', align: 'center' },
|
|
|
|
|
+ { label: '点击商品', prop: 'clientBookName', align: 'center' },
|
|
|
{ label: '搜索时间', prop: 'createTime', align: 'center' },
|
|
{ label: '搜索时间', prop: 'createTime', align: 'center' },
|
|
|
- { label: '是否加购', prop: 'isAddCart', align: 'center' },
|
|
|
|
|
- { label: '是否下单', prop: 'isOrdered', align: 'center' }
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '是否加购',
|
|
|
|
|
+ prop: 'addCard',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ formatter: (row) => row.addCard === 1 ? '是' : '否'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '是否下单',
|
|
|
|
|
+ prop: 'addOrder',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ formatter: (row) => row.addOrder === 1 ? '是' : '否'
|
|
|
|
|
+ }
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
//刷新表格
|
|
//刷新表格
|