Commit 5dc4cd77 by 前端

fixed

1 parent 269c6fb5
......@@ -60,6 +60,16 @@ const getSharedListApi = params => {
sign: true
})
}
const getPurposeListApi = params => {
params.method = 'scrm.api.shopmall.gh.customer.purpose.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
// 分页浏览-导出
const exportBrowseApi = (params, TYPE = 1) => {
//TYPE 1 浏览 2 访客 3 分享
......@@ -239,6 +249,16 @@ const liveroomDetailexport = params => {
sign: true
})
}
const purposeExport = params => {
params.method = 'scrm.api.shopmall.gh.customer.purpose.page.export'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
/**活动直播间数据统计-分页详情 */
const liveroomDetailpage = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.detailpage'
......@@ -259,4 +279,4 @@ const liveroomOverview = params => {
sign: true
})
}
export default { getPayMerchatListApi, getPayListApi, liveroomDetailexport, liveroomDetailpage, liveroomOverview, getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi, getDailyOrderQuantityStatistics, exportDailyOrderQuantityStatistics }
export default { purposeExport, getPayMerchatListApi, getPayListApi, liveroomDetailexport, liveroomDetailpage, liveroomOverview, getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi, getPurposeListApi, getDailyOrderQuantityStatistics, exportDailyOrderQuantityStatistics }
......@@ -86,7 +86,7 @@
<slot :name="item.suffixSlot" :scope="item"></slot>
</template>
<!-- 图文编辑器 -->
<textBox v-else-if="item.type === 'textBox'" :ref="item.name + 'TextBox'" :excludeMenus="item.excludeMenus || ['code']" @change="e => handleTextBoxChange(e, item)" @focus="handleTextBoxFocus(item)" :boxHeight="item.boxHeight"></textBox>
<textBox v-else-if="item.type === 'textBox'" ref="textBox" :excludeMenus="item.excludeMenus || ['code']" @change="e => handleTextBoxChange(e, item)" @focus="handleTextBoxFocus(item)" :boxHeight="item.boxHeight"></textBox>
<!-- 地图 -->
<div v-else-if="item.type === 'map'" class="flex">
<Province ref="provinceForm" :subdistrict="subdistrict" :isDisabled="item.isDisabled" @selectProvince="e => handleSelectProvince(e, item)" @selectCity="e => handleSelectCity(e, item)" :provinceView="item.provinceView"></Province>
......@@ -272,7 +272,9 @@ export default {
},
// 禁用富文本
forbidEdit() {
this.$refs.textBox.forbidEdit()
setTimeout(() => {
this.$refs.textBox.forbidEdit()
}, 2000)
},
// 地图
handleSelectMap(targetItem) {
......
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-03-24 14:35:10
* @LastEditTime: 2023-04-07 15:55:49
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
......@@ -21,8 +21,8 @@ export const fetchConfig = function(isEnv = true) {
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/6351298f6a118b4ff787ef2b/live/config')
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/63a541ae2019ec5113826ea3/link/config')
return new Http().get('https://oss-config.glsx.com.cn/mock/63c12a2e28a427953783403b/link/config')
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/63a541ae2019ec5113826ea3/link/config')
// return new Http().get('https://oss-config.glsx.com.cn/mock/63c12a2e28a427953783403b/link/config')
}
export const config = {
install(vue, cfg) {
......
......@@ -133,8 +133,7 @@ export default {
},
created() {
const { type } = this.browseObj
console.log(type)
const lastTableColumns = [
let lastTableColumns = [
{
label: '浏览时长',
prop: 'browserTime'
......@@ -159,51 +158,71 @@ export default {
{
1: 'getBrowseListApi',
2: 'getVisitorListApi',
3: 'getSharedListApi'
3: 'getPurposeListApi'
}[type]
]
this.$nextTick(() => {
this.handleSearch()
})
// // listName:
// //1 浏览 2 访客 3 分享
if (type != 2) {
this.searchFormData.push({
label: '订单状态',
name: 'isBuy',
type: 'select',
width: '215px',
optionList: [
switch (type) {
case 1:
this.searchFormData.push({
label: '订单状态',
name: 'isBuy',
type: 'select',
width: '215px',
optionList: [
{
confId: '',
confName: '全部'
},
{
confId: 'Y',
confName: '已付款'
},
{
confId: 'N',
confName: '未付款'
}
],
optionId: 'confId',
optionLabel: 'confName'
})
break
case 2:
lastTableColumns = [
{
label: '浏览次数',
prop: 'browseCount'
},
{
label: '最后浏览时间',
prop: 'lastBrowseDate'
}
]
break
case 3:
lastTableColumns = [
{
label: '用户名',
prop: 'customerName'
},
{
confId: '',
confName: '全部'
label: '车牌',
prop: 'customerPlateNo'
},
{
confId: 'Y',
confName: '已付款'
label: '浏览次数',
prop: 'browseCount'
},
{
confId: 'N',
confName: '未付款'
label: '最后浏览时间',
prop: 'lastBrowseDate'
}
],
optionId: 'confId',
optionLabel: 'confName'
})
this.tableParams.tableColumns = [...this.tableParams.tableColumns, ...lastTableColumns]
} else
this.tableParams.tableColumns = [
...this.tableParams.tableColumns,
{
label: '浏览次数',
prop: 'browseCount'
},
{
label: '最后浏览时间',
prop: 'lastBrowseDate'
}
]
]
break
}
this.tableParams.tableColumns = [...this.tableParams.tableColumns, ...lastTableColumns]
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
......@@ -214,16 +233,25 @@ export default {
return new Promise(resolve => {
console.log(this.$parent)
this.searchForm.activityId = this.$route.query.activityId
if (this.browseObj.timeType) this.searchForm.recordDateStr = dayjs(this.statDate).format('YYYY-MM-DD')
if (this.browseObj.timeType) {
this.searchForm.recordDateStr = dayjs(this.statDate).format('YYYY-MM-DD')
}
if (this.browseObj.type == 3) {
this.searchForm.statDimensionDate = dayjs(this.statDate).format('YYYY-MM-DD')
}
this.searchForm.customerWeChatName = this.searchForm.customerName
this.searchForm.customerPhone = this.searchForm.mobile
resolve()
})
},
handleExport() {
var params = this.$common.utils.deepClone(this.searchForm)
let { type } = this.browseObj
let exportUrl = 'exportBrowseApi'
if (type == 3) exportUrl = 'purposeExport'
params.pageNum = 1
params.pageSize = 999999
this.$apis.seckillActivity.exportBrowseApi(params, type).then(res => {
this.$apis.seckillActivity[exportUrl](params, type).then(res => {
exportFn(res)
})
},
......
......@@ -63,7 +63,7 @@ const dataList = [
{ name: '新增浏览量', type: 1, timeType: 1, key: 'browseCount', tips: '统计时间内,新增页面被浏览的次数(一人多次访问计为多次)', half: 'browseRingRatio' },
{ name: '新增访客数', type: 2, timeType: 1, key: 'fansCount', tips: '统计时间内访问页面的人数(一人多次访问计为一次)', half: 'fansRingRatio' },
{ name: '新增订单数', type: 1, timeType: 1, key: 'orderCount', tips: '统计时间内,新增订单数(只记录已付款的订单)', half: 'orderRingRatio' },
{ name: '意向客户数', type: 2, desc: '位意向客户', key: 'totalBrowseCount', tips: '意向客户数(只记录提交意向的客户)' },
{ name: '意向客户数', type: 3, timeType: 1, desc: '位意向客户', key: 'totalPurposeCustomerCount', tips: '意向客户数(只记录提交意向的客户)' },
{ name: '累计浏览量', type: 1, key: 'totalBrowseCount', tips: '页面被浏览的总次数(一人多次访问计为多次)' },
{ name: '累计访客数', type: 2, key: 'totalFansCount', tips: '访问页面的总人数(一人多次访问计为一次)' },
{ name: '累计订单数', type: 2, key: 'totalOrderCount', tips: '累计订单总数(只记录已付款的订单)' }
......
......@@ -35,7 +35,7 @@
<div class="container edit-container" style="min-height: 520px !important" v-show="step == 2">
<p class="edit-title" id="product">定产品</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="projuctEditFormData" :formRules="editRule">
<div slot="selectGiftBtn">
<div slot="selectGiftBtn" v-if="!isDisabledGH">
<el-button type="default" class="el-icon-plus" @click="handleGiftAdd">选择服务</el-button>
<el-popover placement="top-start" width="500" trigger="hover">
<img src="@/assets/coupon/coupon-view.png" alt="" />
......@@ -75,11 +75,11 @@
<div slot="selectGoodsBtn">
<div class="play-panel">
<div class="card-panel">
<el-tabs type="card" v-model="editForm.couponTemplateId" @tab-click="changeCouponTemplate">
<el-tabs type="card" v-model="editForm.couponTemplateId" @tab-click="changeCouponTemplate" v-if="!isDisabledGH">
<el-tab-pane :label="item.name" :name="item.id" v-for="item in couponTemplateList" :key="item.id"></el-tab-pane>
</el-tabs>
<div class="chose-panel" v-loading="goodsLoading">
<el-button type="default" class="el-icon-plus select-btn" @click="handleGoodsAdd">选择福利券</el-button>
<el-button type="default" v-if="!isDisabledGH" class="el-icon-plus select-btn" @click="handleGoodsAdd">选择福利券</el-button>
<div style="width: 852px" v-if="selectedGoodsList && selectedGoodsList.length">
<div class="goods-panel">
<el-table :data="selectedGoodsList" border style="width: 100%">
......@@ -449,6 +449,7 @@ export default {
}
return {
step: 1,
isDisabledGH: true,
activityModelImg: '',
size: 'small',
editChildRef: 'editChildRef',
......@@ -533,7 +534,7 @@ export default {
limitPurchaseFlag: 1,
limitPurchaseNumber: '',
subscribe: 1,
ghExclusiveFlag: 2,
// 活动配置
customerServiceFlag: 3,
customerServiceName: '',
......@@ -625,6 +626,7 @@ export default {
goodsStock: [{ required: true, message: '请输入库存', trigger: 'blur' }],
couponList: [{ required: true, message: '请选择优惠券', trigger: 'change' }],
subscribe: [{ required: true, message: '请选择关联产品类目项', trigger: ['change', 'blur'] }],
ghExclusiveFlag: [{ required: true, message: '请选择广汇专属', trigger: 'change' }],
limitPurchaseFlag: [{ required: true, message: '请选择是否限购', trigger: 'change' }],
limitPurchaseNumber: [
{ required: false, message: '请输入限购次数', trigger: 'blur' },
......@@ -727,15 +729,16 @@ export default {
},
{
label: '广汇专属',
name: 'subscribe',
name: 'ghExclusiveFlag',
type: 'radio',
isHide: !this.loginpath,
optionList: [
{
optionId: 1,
optionId: 2,
optionLabel: '广汇续保权益套餐(仅限广汇门店选中)'
},
{
optionId: 2,
optionId: 1,
optionLabel: '非广汇续保权益套餐'
}
],
......@@ -1242,6 +1245,24 @@ export default {
// },
// deep: true
// },
// 'editForm.ghExclusiveFlag'(val) {
// const disableObj = ['configEditFormData']
// const disableValue = ['活动大图']
// let disabledStatus = false
// if (val == 2) {
// disabledStatus = true
// } else {
// disabledStatus = false
// }
// disableObj.forEach(attr => {
// this.changeFormAttr(attr, 'isDisabled', disableValue, disabledStatus)
// })
// this.$nextTick(() => {
// document.querySelector('.w-e-text').setAttribute('contenteditable', !disabledStatus)
// })
// this.isDisabledGH = disabledStatus
// },
'editForm.merchantId'() {
if (this.loading) {
return
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!