|
@@ -85,7 +85,7 @@
|
|
|
|
|
|
<!-- 操作动作 -->
|
|
<!-- 操作动作 -->
|
|
<template #action="{ record }">
|
|
<template #action="{ record }">
|
|
- <div style="padding: 5px 8px; display: flex; justify-content: space-around">
|
|
|
|
|
|
+ <div style="padding: 5px 8px; display: flex; justify-content: left">
|
|
<a-tag v-if="isForwardSite" color="blue" @click="forwardDetail(record)" style="cursor: pointer"> 转发 </a-tag>
|
|
<a-tag v-if="isForwardSite" color="blue" @click="forwardDetail(record)" style="cursor: pointer"> 转发 </a-tag>
|
|
<a-tag color="purple" @click="showEnquiryDetail(record)" style="cursor: pointer"> 详情 </a-tag>
|
|
<a-tag color="purple" @click="showEnquiryDetail(record)" style="cursor: pointer"> 详情 </a-tag>
|
|
<a-popconfirm
|
|
<a-popconfirm
|
|
@@ -102,7 +102,7 @@
|
|
color="blue"
|
|
color="blue"
|
|
v-if="record.visitId !== null && record.visitId !== '' && record.visitId !== undefined"
|
|
v-if="record.visitId !== null && record.visitId !== '' && record.visitId !== undefined"
|
|
style="cursor: pointer"
|
|
style="cursor: pointer"
|
|
- @click="enquiryTrack(record)"
|
|
|
|
|
|
+ @click="showEnquiryTrack(record)"
|
|
>
|
|
>
|
|
访问记录
|
|
访问记录
|
|
</a-tag>
|
|
</a-tag>
|
|
@@ -200,6 +200,9 @@
|
|
|
|
|
|
<!--跟踪记录-->
|
|
<!--跟踪记录-->
|
|
<enquiry-track-record ref="enquiryTrackRecordRef" />
|
|
<enquiry-track-record ref="enquiryTrackRecordRef" />
|
|
|
|
+
|
|
|
|
+ <!--站点访问记录-->
|
|
|
|
+ <enquiry-track ref="enquiryTrackRef" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -208,8 +211,8 @@
|
|
import { nextTick, onBeforeMount, onMounted, reactive, ref } from 'vue';
|
|
import { nextTick, onBeforeMount, onMounted, reactive, ref } from 'vue';
|
|
import { BasicTable } from '/@/components/Table';
|
|
import { BasicTable } from '/@/components/Table';
|
|
import { useListPage } from '/@/hooks/system/useListPage';
|
|
import { useListPage } from '/@/hooks/system/useListPage';
|
|
- import { wasteColumns, superQuerySchema } from './AdwebEnquiry.data';
|
|
|
|
- import { batchDelete, deleteOne, getExportUrl, getImportUrl, list } from './AdwebEnquiry.api';
|
|
|
|
|
|
+ import { wasteColumns } from './AdwebEnquiry.data';
|
|
|
|
+ import { batchDelete, getExportUrl, getImportUrl, list } from './AdwebEnquiry.api';
|
|
import AdwebEnquiryModal from './components/AdwebEnquiryModal.vue';
|
|
import AdwebEnquiryModal from './components/AdwebEnquiryModal.vue';
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
import { getAction, postAction } from '@/api/manage/manage';
|
|
import { getAction, postAction } from '@/api/manage/manage';
|
|
@@ -218,33 +221,36 @@
|
|
|
|
|
|
// 过滤日期范围
|
|
// 过滤日期范围
|
|
import dayjs, { Dayjs } from 'dayjs';
|
|
import dayjs, { Dayjs } from 'dayjs';
|
|
- const dateFormat = 'YYYY-MM-DD';
|
|
|
|
- type RangeValue = [Dayjs, Dayjs];
|
|
|
|
- // 过滤日期范围
|
|
|
|
- let rangeDate = ref<RangeValue>();
|
|
|
|
-
|
|
|
|
import { filterOption } from 'ant-design-vue/es/vc-mentions/src/util';
|
|
import { filterOption } from 'ant-design-vue/es/vc-mentions/src/util';
|
|
import enquiryDetail from '@/views/adweb/enquiry/modules/enquiryDetail.vue';
|
|
import enquiryDetail from '@/views/adweb/enquiry/modules/enquiryDetail.vue';
|
|
import XpRecycleBinModal from '@/views/adweb/system/modules/XpRecycleBinModal.vue';
|
|
import XpRecycleBinModal from '@/views/adweb/system/modules/XpRecycleBinModal.vue';
|
|
import blackList from '@/views/adweb/enquiry/modules/blackList.vue';
|
|
import blackList from '@/views/adweb/enquiry/modules/blackList.vue';
|
|
import enquiryTrackRecord from '@/views/adweb/enquiry/modules/enquiryTrackRecord.vue';
|
|
import enquiryTrackRecord from '@/views/adweb/enquiry/modules/enquiryTrackRecord.vue';
|
|
|
|
+ import EnquiryTrack from '@/views/adweb/enquiry/modules/enquiryTrack.vue';
|
|
|
|
+
|
|
|
|
+ const dateFormat = 'YYYY-MM-DD';
|
|
|
|
+ type RangeValue = [Dayjs, Dayjs];
|
|
|
|
+ // 过滤日期范围
|
|
|
|
+ let rangeDate = ref<RangeValue>();
|
|
|
|
|
|
const formRef = ref();
|
|
const formRef = ref();
|
|
const queryParam = reactive<any>({});
|
|
const queryParam = reactive<any>({});
|
|
- const toggleSearchStatus = ref<boolean>(false);
|
|
|
|
|
|
+
|
|
const registerModal = ref();
|
|
const registerModal = ref();
|
|
const selectSiteRef = ref(null);
|
|
const selectSiteRef = ref(null);
|
|
const { createMessage } = useMessage();
|
|
const { createMessage } = useMessage();
|
|
//注册table数据
|
|
//注册table数据
|
|
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
|
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
|
tableProps: {
|
|
tableProps: {
|
|
- title: '询盘信息存储表单',
|
|
|
|
|
|
+ title: '垃圾询盘信息',
|
|
api: list,
|
|
api: list,
|
|
columns: wasteColumns,
|
|
columns: wasteColumns,
|
|
canResize: false,
|
|
canResize: false,
|
|
useSearchForm: false,
|
|
useSearchForm: false,
|
|
actionColumn: {
|
|
actionColumn: {
|
|
width: 180,
|
|
width: 180,
|
|
|
|
+ maxWidth: 220,
|
|
|
|
+ minWidth: 180,
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
},
|
|
},
|
|
striped: true,
|
|
striped: true,
|
|
@@ -341,6 +347,10 @@
|
|
|
|
|
|
// 跟踪记录
|
|
// 跟踪记录
|
|
const enquiryTrackRecordRef = ref();
|
|
const enquiryTrackRecordRef = ref();
|
|
|
|
+
|
|
|
|
+ // 访问记录
|
|
|
|
+ const enquiryTrackRef = ref();
|
|
|
|
+
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
|
|
|
|
onBeforeMount(() => {
|
|
onBeforeMount(() => {
|
|
@@ -681,48 +691,12 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- // 高级查询配置
|
|
|
|
- const superQueryConfig = reactive(superQuerySchema);
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 高级查询事件
|
|
|
|
- */
|
|
|
|
- function handleSuperQuery(params) {
|
|
|
|
- Object.keys(params).map((k) => {
|
|
|
|
- queryParam[k] = params[k];
|
|
|
|
- });
|
|
|
|
- searchQuery();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 新增事件
|
|
|
|
- */
|
|
|
|
- function handleAdd() {
|
|
|
|
- registerModal.value.disableSubmit = false;
|
|
|
|
- registerModal.value.add();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 编辑事件
|
|
|
|
- */
|
|
|
|
- function handleEdit(record: Recordable) {
|
|
|
|
- registerModal.value.disableSubmit = false;
|
|
|
|
- registerModal.value.edit(record);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 详情
|
|
|
|
- */
|
|
|
|
- function handleDetail(record: Recordable) {
|
|
|
|
- registerModal.value.disableSubmit = true;
|
|
|
|
- registerModal.value.edit(record);
|
|
|
|
- }
|
|
|
|
|
|
+ async function showEnquiryTrack(record) {
|
|
|
|
+ await nextTick();
|
|
|
|
|
|
- /**
|
|
|
|
- * 删除事件
|
|
|
|
- */
|
|
|
|
- async function handleDelete(record) {
|
|
|
|
- await deleteOne({ id: record.id }, handleSuccess);
|
|
|
|
|
|
+ if (enquiryTrackRef.value && enquiryTrackRef.value.init) {
|
|
|
|
+ enquiryTrackRef.value.init(record);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -740,38 +714,6 @@
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 操作栏
|
|
|
|
- */
|
|
|
|
- function getTableAction(record) {
|
|
|
|
- return [
|
|
|
|
- {
|
|
|
|
- label: '编辑',
|
|
|
|
- onClick: handleEdit.bind(null, record),
|
|
|
|
- },
|
|
|
|
- ];
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 下拉操作栏
|
|
|
|
- */
|
|
|
|
- function getDropDownAction(record) {
|
|
|
|
- return [
|
|
|
|
- {
|
|
|
|
- label: '详情',
|
|
|
|
- onClick: handleDetail.bind(null, record),
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: '删除',
|
|
|
|
- popConfirm: {
|
|
|
|
- title: '是否确认删除',
|
|
|
|
- confirm: handleDelete.bind(null, record),
|
|
|
|
- placement: 'topLeft',
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- ];
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
* 查询
|
|
* 查询
|
|
*/
|
|
*/
|
|
function searchQuery() {
|
|
function searchQuery() {
|