Commit 3b8005c8 by 前端

Merge branch 'v3.11.0' into 'master'

V3.11.0

See merge request !6
2 parents e54783c7 f247ec09
......@@ -15,6 +15,11 @@
"js-message": "1.0.7"
}
},
"@amap/amap-jsapi-loader": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@amap/amap-jsapi-loader/-/amap-jsapi-loader-1.0.1.tgz",
"integrity": "sha512-nPyLKt7Ow/ThHLkSvn2etQlUzqxmTVgK7bIgwdBRTg2HK5668oN7xVxkaiRe3YZEzGzfV2XgH5Jmu2T73ljejw=="
},
"@ampproject/remapping": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz",
......@@ -1839,75 +1844,6 @@
"webpack-chain": "^6.4.0",
"webpack-dev-server": "^3.11.0",
"webpack-merge": "^4.2.2"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
}
}
},
"@vue/cli-shared-utils": {
......@@ -6347,14 +6283,16 @@
}
},
"glsx-components": {
"version": "1.5.2",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.2.tgz",
"integrity": "sha512-5/LaPu0B1uT7Kzl6oyIqyFT/NXIz2w7HNstiRtHaUQN1waSrPPPtzRRwywJg6CSSL+p994NaqPRnX696NAYzKg==",
"version": "1.5.7",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.7.tgz",
"integrity": "sha512-WEWt1Ev7uf8VgILrEr15ZHxOreqWEVEY2WRP5EmZKzYKTVF/7dQU/oI84+Xo4vSmlz7ltblaATyrwm1U1LDnHg==",
"requires": {
"@amap/amap-jsapi-loader": "^1.0.1",
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
"glsx-common": "^1.4.9",
"vue": "^2.6.11",
"vue-amap": "^0.5.10",
"vuedraggable": "^2.24.3"
}
},
......@@ -12433,6 +12371,21 @@
"integrity": "sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==",
"dev": true
},
"uppercamelcase": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/uppercamelcase/-/uppercamelcase-1.1.0.tgz",
"integrity": "sha512-C7YEMvhgrvTEKEEVqA7LXNID/1TvvIwYZqNIKLquS6y/MGSkRQAav9LnTTILlC1RqUM8eTVBOe1U/fnB652PRA==",
"requires": {
"camelcase": "^1.2.1"
},
"dependencies": {
"camelcase": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz",
"integrity": "sha512-wzLkDa4K/mzI1OSITC+DUyjgIl/ETNHE9QvYgy6J6Jvqyyz4C0Xfd+lQhb19sX2jMpZV4IssUn0VDVmglV+s4g=="
}
}
},
"uri-js": {
"version": "4.4.1",
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
......@@ -12622,6 +12575,14 @@
"csstype": "^3.1.0"
}
},
"vue-amap": {
"version": "0.5.10",
"resolved": "https://registry.npmjs.org/vue-amap/-/vue-amap-0.5.10.tgz",
"integrity": "sha512-9ViNCev1vx32+zZ5RvF/TmUZNbwL9QrdA2/OnD2GlXMfQBkJy7D08Vb7379t6guqnopDPtWJ8K6gg72h9+4GUg==",
"requires": {
"uppercamelcase": "^1.1.0"
}
},
"vue-cli-plugin-element": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/vue-cli-plugin-element/-/vue-cli-plugin-element-1.0.1.tgz",
......@@ -12708,6 +12669,75 @@
}
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": {
"version": "3.5.4",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.4.tgz",
......
......@@ -14,7 +14,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.5.2",
"glsx-components": "^1.5.7",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
"vuex": "^3.1.2",
......
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-10 16:49:31
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-05-12 11:03:04
* @FilePath: \outbound\src\api\modules\calendar.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { http } from '@/main'
const url = '/rop-scrm-marketing/router'
const calendarList = params => {
params.method = 'marketing.api.calendar.page'
return http({
url,
method: 'GET',
data: params,
sign: true
})
}
const calendarDetail = params => {
params.method = 'marketing.api.calendar.detail'
return http({
url,
method: 'GET',
data: params,
sign: true
})
}
const calendarUpdate = params => {
params.method = 'marketing.api.calendar.update'
return http({
url,
method: 'GET',
data: params,
sign: true
})
}
const getEquityListApi = params => {
params.method = 'scrm.api.coupon.equity.list.merchant'
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
const brandList = params => {
params.method = 'scrm.api.equity.goods.brand.list.all'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const couponTemplate = params => {
params.method = 'scrm.api.coupon.template.page'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true
})
}
const couponTemplateDetails = params => {
params.method = 'scrm.api.coupon.template.details.page'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true
})
}
export default { calendarList, calendarDetail, calendarUpdate, getEquityListApi, brandList, couponTemplate, couponTemplateDetails }
......@@ -91,11 +91,11 @@ html {
.el-tooltip__popper {
max-width: 380px;
}
.el-tooltip__popper[x-placement^='top'] .popper__arrow {
.el-tooltip__popper[x-placement^="top"] .popper__arrow {
border-top-color: #ffffff !important;
}
.el-tooltip__popper[x-placement^='top'] .popper__arrow:after {
.el-tooltip__popper[x-placement^="top"] .popper__arrow:after {
border-top-color: #ffffff !important;
}
.preview {
......@@ -106,3 +106,7 @@ html {
.pd20 {
padding: 20px;
}
.task_icon {
width: auto !important;
height: auto !important;
}
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-10 16:40:01
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-22 16:25:00
* @FilePath: \outbound\src\components\glsx-combi-form\common.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
/**
* 时间控件-限制月份
*/
......@@ -22,3 +30,20 @@ export const rangetimePickerOptions = {
return false
}
}
export const beforeRangePickerOptions = {
disabledDate(date) {
if (date > new Date()) {
return true
}
return false
}
}
export const afterRangePickerOptions = {
disabledDate(date) {
const yesterday = new Date(new Date().setDate(new Date().getDate() - 1))
if (date < yesterday) {
return true
}
return false
}
}
......@@ -3,23 +3,22 @@
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: limin
* @LastEditTime: 2021-09-07 14:38:52
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-31 16:27:05
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
let cfg = require('./conf.js')
import { Http } from 'glsx-common'
let timeout = 30000 //超时时间
export const fetchConfig = function (isEnv = true) {
export const fetchConfig = function(isEnv = true) {
// if (isEnv) {
// let { request } = cfg
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/62ecda0909756a6f4f85cf9a/outbound/config')
// return new Http({ request: { timeout: 100000 } }).get('https://oss-config.test.glsx.com.cn/mock/62fe2a36abac6ff6ac239d3c/outbound/config')
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/62ecda0909756a6f4f85cf9a/outbound/config')
return new Http({ request: { timeout: 100000 } }).get('https://oss-config.test.glsx.com.cn/mock/62fe2a36abac6ff6ac239d3c/outbound/config')
}
export const config = {
install(vue, cfg) {
......
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-10 16:40:01
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-22 15:05:09
* @FilePath: \outbound\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import Vue from 'vue'
import { message, messageBox } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
......@@ -20,7 +28,7 @@ export async function bootstrap({ history, common, messenger, globalState }) {
Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const routesData = common.utils.deepClone(globalState.routers)
......
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-31 17:18:14
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\MarketingRight.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="review-body">
<img src="@/assets/phone.png" class="review-phone" />
<div class="review-title_top">{{ detail.title }}</div>
<div class="review-content">
<div class="review-main">
<div class="main-title" :style="{ top: item.y + 'px', 'font-size': item.fontSize + 'px', color: item.color }" v-for="(item, index) in textList" :key="index">{{ item.text }}</div>
<div class="review-bg-img">
<img :src="detail.backgroundImg" v-if="detail.backgroundImg" />
</div>
<div class="review-main-img">
<img :src="detail.captionImg" v-if="detail.captionImg" />
</div>
</div>
<div class="review-package">
<div class="review-goods" v-if="selectedGoodsList && selectedGoodsList.length">
<div class="goods-item" v-for="(item, index) in selectedGoodsList" :key="index">
<div class="service-desc">
<div class="title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="content">x{{ item.couponAmount }} 抵扣券</div>
</div>
<div class="service-price">
{{ (item.denomination / 100).toFixed(2) }}
<span>元</span>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
detail: {},
cavansObj: {
1: {
titleStyle: {
x: 82,
y: 224,
fontSize: 52,
color: '#AD604C'
},
subTitleStyle: {
x: 66,
y: 292,
fontSize: 28,
color: '#AD604C'
}
},
2: {
titleStyle: {
x: 10,
y: 168,
fontSize: 36,
color: '#185D5E'
},
subTitleStyle: {
x: 10,
y: 212,
fontSize: 16,
color: '#185D5E'
}
}
},
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
}
}
},
props: {
editForm: {
type: Object,
default: () => {}
},
selectedGoodsList: {
type: Object,
default: () => {}
}
},
watch: {
editForm: {
handler(val) {
const mainTitle = this.cavansObj[val.id],
{ title, subTitle } = val,
textList = []
if (mainTitle) {
title.split(' ').forEach((item, index) => {
textList.push({
x: mainTitle.titleStyle.x * 0.7,
y: (mainTitle.titleStyle.y + index * mainTitle.titleStyle.fontSize * 1.1) * 0.7,
fontSize: mainTitle.titleStyle.fontSize * 0.7,
color: mainTitle.titleStyle.color,
text: item
})
})
new Array(subTitle).forEach((item, index) => {
textList.push({
x: mainTitle.subTitleStyle.x * 0.7,
y: (mainTitle.subTitleStyle.y + mainTitle.titleStyle.fontSize * 1.1 * (textList.length - 1)) * 0.7,
fontSize: mainTitle.subTitleStyle.fontSize * 0.7,
color: mainTitle.subTitleStyle.color,
text: item
})
})
}
this.textList = textList
this.detail = val
},
deep: true,
immediate: true
}
}
}
</script>
<style lang="scss" scoped>
.review-body {
margin: 10px auto;
width: 305px;
height: 645px;
position: relative;
.review-phone {
width: 100%;
}
.review-title_top {
position: absolute;
top: 38px;
left: 0px;
width: 100%;
text-align: center;
line-height: 40px;
}
.review-footer {
position: absolute;
bottom: 52px;
left: 109px;
color: #f13c3d;
font-size: 22px;
label {
font-size: 12px;
}
}
.review-content {
position: absolute;
width: calc(100% - 20px);
height: 504px;
overflow-y: auto;
top: 77px;
left: 13px;
.review-main {
position: relative;
.main-title {
width: 100%;
position: absolute;
text-align: center;
}
img {
width: 275px;
}
}
.review-package {
background: #ddd8c0;
padding: 16px;
.review-equity,
.review-service,
.review-goods {
background: #ffffff;
border-radius: 12px;
padding: 10px;
margin-bottom: 10px;
}
.service-item {
height: 48px;
background-image: linear-gradient(117deg, #ffead3 3%, #f0ca90 92%);
border-radius: 4px;
display: flex;
align-items: center;
padding: 4px;
margin-top: 5px;
&:first-child {
margin-top: 0px;
}
.service-title {
width: 74%;
height: 40px;
background: #ffffff;
border-radius: 6px;
font-size: 14px;
color: #333333;
line-height: 40px;
padding-left: 12px;
}
.service-time {
color: #8e5310;
text-align: center;
flex: 1;
font-size: 12px;
line-height: 48px;
}
}
.coupon-item {
height: 48px;
background: #fff5f3;
border-radius: 4px;
display: flex;
align-items: center;
padding: 4px;
margin-top: 5px;
&:first-child {
margin-top: 0px;
}
.service-title {
width: 64%;
height: 40px;
background: #ffffff;
border-radius: 6px;
font-size: 14px;
color: #333333;
line-height: 40px;
padding: 0px 12px;
display: flex;
justify-content: space-between;
span {
font-size: 14px;
color: #333333;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
&:last-child {
font-size: 11px;
color: #9b9b9b;
}
}
}
.service-time {
color: #fc5b32;
text-align: center;
flex: 1;
font-size: 12px;
line-height: 48px;
}
}
.goods-item {
display: flex;
border-bottom: 1px solid #f8f7f2;
padding: 5px;
&:last-child {
border-bottom: none;
}
.service-logo {
width: 32px;
height: 32px;
margin-right: 10px;
}
.service-desc {
width: 55%;
.title {
font-size: 12px;
color: #111111;
}
.content {
font-size: 11px;
color: #9b9b9b;
}
}
.service-price {
margin-left: auto;
color: #fc5b32;
font-size: 14px;
span {
font-size: 12px;
}
}
}
.review-address {
.title {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
height: 32px;
background: rgba(255, 255, 255, 0.8);
border-radius: 8px 8px 0 0;
padding: 0px 10px;
box-sizing: border-box;
}
.title-l {
font-size: 15px;
color: #333333;
}
.title-r {
font-size: 10px;
color: #9b9b9b;
letter-spacing: 2px;
span {
margin-right: 5px;
}
}
.address {
display: flex;
padding: 10px;
background: #ffffff;
.store {
font-weight: 500;
font-size: 14px;
color: #2c2c2c;
line-height: 20px;
}
.detail {
font-weight: 400;
font-size: 12px;
color: #656566;
margin: 2px 0 8px 0;
}
}
}
.review-line {
color: #999999;
font-size: 12px;
font-weight: 400;
background: #ffffff;
border-radius: 4px;
padding: 14px 10px;
margin: 10px 0px;
box-sizing: border-box;
display: flex;
align-items: center;
img {
width: 36px;
margin-right: 10px;
}
i {
margin-left: auto;
color: #fc643e;
}
}
}
}
}
</style>
<template>
<div class="calendar">
<!-- <div class="flex head">
<el-button type="primary" size="small" icon="el-icon-plus" @click="handleAdd">新增营销</el-button>
<div class="head-info flex">
<p>结合门店营销活动,指定客户创建智能营销,提高活动转化率</p>
<el-popover placement="top" width="560" trigger="hover" content="通过导入的客户,门店可通过智能外呼及智能短信,结合营销活动的需要向离店用户进行智能营销,可实现标准、高效的营销同时实现用户线上化。">
<img src="@/images/question.png" slot="reference" class="count-item-question" />
</el-popover>
</div>
</div> -->
<div class="container">
<GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<!-- 表格区域 开始 -->
<GLTable ref="calendarRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<template slot="imStatus" slot-scope="scope">
<div :class="['task_icon', scope.scope.imStatus == 1 ? 'task_icon1' : 'task_icon2']"></div>
{{ scope.scope.imStatus == 1 ? '待处理' : scope.scope.imStatus == 2 ? '已完成' : '删除' }}
</template>
<template slot="time" slot-scope="scope">{{ scope.scope.startTime }}-{{ scope.scope.endTime }}</template>
<template slot="status" slot-scope="scope">
<div :class="['task_icon', scope.scope.status == 0 ? 'task_icon1' : 'task_icon2']">{{ scope.scope.status == 0 ? '待发布' : scope.scope.status == 1 ? '已发布' : '已失效' }}</div>
</template>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleAdd(scope.scope)">修改</el-button>
</div>
</GLTable>
</div>
</div>
</template>
<script>
import url from '@/assets/empty.png'
export default {
data() {
return {
url: url,
tableSearchForm: {
imName: '',
imStatus: '',
createDate: []
},
searchForm: {},
// 搜索
searchFormData: [
{
label: '营销状态',
name: 'status',
type: 'select',
optionList: [
{ text: '全部', id: '' },
{ text: '待发布', id: 0 },
{ text: '已发布', id: 1 }
],
optionId: 'id',
optionLabel: 'text'
},
{
label: '营销主题',
name: 'title',
type: 'input'
}
],
getListApi: this.$apis.calendar.calendarList,
tableParams: {
listName: 'data',
tableOption: true,
tableColumns: [
{
label: '营销类型',
prop: 'marketingTypeStr',
line: 1,
width: 100
},
{
label: '营销主题',
prop: 'title',
width: 200
},
{
label: '营销副标题',
prop: 'subTitle'
},
{
label: '活动时间',
prop: 'startTime',
addHtml: 'time',
width: 200
},
{
label: '平台福利合计/元',
prop: 'platformBenefits',
width: 200,
formatter(val) {
return val.platformBenefits / 100
}
},
{
label: '状态',
prop: 'status',
addHtml: 'status',
width: 100
// formatter(val) {
// return val.status == 0 ? '待发布' : val.status == 1 ? '已发布' : '已失效'
// }
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' }
}
},
methods: {
handleAdd(row) {
this.$router.push({
path: '/calendar/add?id=' + row.id
})
},
getParams() {
var params = JSON.parse(JSON.stringify(this.tableSearchForm))
if (this.tableSearchForm.createDate.length) {
params.startTime = new Date(this.tableSearchForm.createDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.endTime = new Date(this.tableSearchForm.createDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
params.taskStatus = this.currentIndex
return params
},
beforeSearchFn() {
return new Promise(resolve => {
this.searchForm = this.getParams()
delete this.searchForm.createDate
resolve()
})
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.calendarRef.data.length ? (this.$refs.calendarRef.tableHeightValues = '') : this.$refs.calendarRef.setTableHeightFun()
},
handleSearch() {
this.$refs.calendarRef.refreshTable()
},
handleReset() {
this.tableSearchForm = {
imName: '',
imStatus: '',
createDate: []
}
this.searchForm = {
imName: '',
imStatus: '',
startTime: '',
endTime: ''
}
this.handleSearch()
}
}
}
</script>
<style lang="scss" scoped>
.calendar {
.head {
margin-bottom: 16px;
}
.head-info {
font-weight: 400;
font-size: 14px;
color: #666666;
p {
margin: 0 4px 0 12px;
line-height: 16px;
}
.count-item-question {
width: 14px;
height: 14px;
display: inline-block;
}
}
.task_icon {
position: relative;
width: auto;
height: auto;
&::after {
content: '';
position: absolute;
top: 4px;
left: -10px;
width: 6px;
height: 6px;
border-radius: 4px;
}
&.task_icon1 {
&::after {
background: #fdb757;
}
}
&.task_icon2 {
&::after {
background: #2cca74;
}
}
}
}
</style>
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-10 16:40:01
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-23 16:07:41
* @FilePath: \outbound\vue.config.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const path = require('path')
const packageName = require('./package.json').name
const node_env = process.env.NODE_ENV === 'production'
const publicPath = node_env ? `/child/${packageName}/` : '/'
const resolve = dir => path.join(__dirname, dir)
const CDN_DOMAIN = 'https://cdn.bootcdn.net/'
const CDN_DOMAIN = 'https://img02.glsx.com.cn/'
const cdn = {
css: [`${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/theme-chalk/index.css`],
js: [`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`, `${CDN_DOMAIN}ajax/libs/vue-router/3.2.0/vue-router.min.js`, `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/index.js`, `${CDN_DOMAIN}ajax/libs/vuex/3.6.2/vuex.min.js`, `${CDN_DOMAIN}ajax/libs/echarts/5.1.2/echarts.min.js`]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!