Commit e728fa5b by 李伟康

提交

1 parent 2f5e6ae1
Showing 50 changed files with 1877 additions and 99 deletions
......@@ -1859,7 +1859,6 @@
"thread-loader": "^2.1.3",
"url-loader": "^2.2.0",
"vue-loader": "^15.9.2",
"vue-loader-v16": "npm:vue-loader@^16.1.0",
"vue-style-loader": "^4.1.2",
"webpack": "^4.0.0",
"webpack-bundle-analyzer": "^3.8.0",
......@@ -13201,75 +13200,6 @@
}
}
},
"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-style-loader": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz",
......
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-07 16:54:06
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-26 10:26:30
* @FilePath: \scrm-micro-journey\src\api\modules\journeyConfig.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { http_sop, http_merchant } from '@/main'
//查询模板实例客户分页列表
const getCustomersList = params => {
return http_sop({
url: `http://gateway.platform.dev.glsx.com.cn/process/sop/api/sopInsts/customers`,
method: 'get',
data: params,
sign: false
})
}
//查询模板实例客户详细信息
const getCustomersDetail = params => {
return http_sop({
url: `http://gateway.platform.dev.glsx.com.cn/process/sop/api/sopInsts/customers/detail`,
method: 'get',
data: params,
sign: false
})
}
//查询模板实例客户详细信息
const stageUpdate = params => {
return http_sop({
url: `http://gateway.platform.dev.glsx.com.cn//process/sop/api/sopInsts/customers/stageUpdate`,
method: 'post',
data: params,
noSessionId: true,
sign: false
})
}
//查询模板实例客户详细信息
const exportExcel = params => {
return http_sop({
url: `http://gateway.platform.dev.glsx.com.cn/process/sop/api/sopInsts/customers/export`,
method: 'get',
data: params,
sign: false
})
}
/**
* 状态刷新
*/
const refreshInst = params => {
return http_sop({
url: `http://gateway.platform.dev.glsx.com.cn/process/sop/inst/refresh`,
method: 'get',
data: params,
sign: false
})
}
/**获取跟进员工 */
const getFindMerchantStaffList = (params) => {
params.method = 'merchants.api.open.findMerchantStaffList'
return http_merchant({
url: '/rop-merchants/router',
data: params
})
}
export default { getCustomersList, getCustomersDetail, stageUpdate, exportExcel, refreshInst, getFindMerchantStaffList }
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-07 16:54:06
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-26 10:26:03
* @FilePath: \scrm-micro-journey\src\api\modules\journeyConfig.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { http, http_sop } from '@/main'
//活动列表
const activityPage = params => {
params.method = `scrm.api.shopmall.bulge.activity.page`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//活动详情
const getActivityDetailApi = params => {
params.method = `scrm.api.shopmall.activity.detail`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
//活动任务详情
const findMarketingTask = params => {
params.method = `marketing.api.supermarket.findMarketingTask`
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
//活动列表
const byGroupIdSop = params => {
return http_sop({
url: 'http://gateway.platform.dev.glsx.com.cn/process/sop/api/sopInsts/byGroupId',
method: 'get',
data: params,
sign: false
})
}
//活动列表
const getInstIdDetail = params => {
return http_sop({
url: 'http://gateway.platform.dev.glsx.com.cn/process/sop/api/sopInsts/' + params.instId,
method: 'get',
// data: params,
sign: false
})
}
//更新SOP门店模板实例状态
const setSopInsts = params => {
return http_sop({
url: `http://gateway.platform.dev.glsx.com.cn/process/sop/api/sopInsts/${params.instId}/status`,
method: 'post',
data: params.status,
noSessionId: true,
sign: false
})
}
//更新SOP门店模板实例初始参数里的门店自定义参数(关联活动)
const concatActivity = params => {
return http_sop({
url: `http://gateway.platform.dev.glsx.com.cn//process/sop/api/sopInsts/${params.instId}/instParam/customData`,
method: 'post',
data: params.data,
noSessionId: true,
sign: false
})
}
const activityRelInfo = params => {
params.method = `marketing.api.supermarket.activityRelInfo`
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
export default { activityPage, byGroupIdSop, getInstIdDetail, setSopInsts, concatActivity, findMarketingTask, getActivityDetailApi, activityRelInfo }
......@@ -5,7 +5,7 @@ html {
margin: 0;
padding: 0;
overflow: hidden;
background-color: #F4F5FA;
background-color: #f4f5fa;
}
.live-room .container {
......@@ -20,37 +20,133 @@ html {
.live-room.p-t-20 {
padding-top: 20px;
}
.live-room .table-circle {
display: inline-block;
width: 6px;
height: 6px;
border-radius: 4px;
}
img {
width: 100%;
height: 100%;
vertical-align: middle;
}
.live-room .back-orange {
background-color: #fdb757;
.bg-fff {
background: #ffffff;
}
.live-room .back-blue {
background-color: #5850ff;
.p10 {
padding: 10px;
}
.live-room .back-grey {
background-color: #999999;
.p20 {
padding: 20px;
}
.live-room .back-green {
background-color: #2cca74;
.pl10 {
padding-left: 10px;
}
.live-room .back-red {
background-color: #eb4e4e;
.pl20 {
padding-left: 20px;
}
.live-room .m-r-8 {
margin-right: 8px;
}
.message-Z-zinde,
.live-room .message-Z-zinde {
z-index: 9999 !important;
}
.pb10 {
padding-bottom: 10px;
}
.pb20 {
padding-bottom: 20px;
}
.flex {
display: flex;
}
.flex-center {
display: flex;
justify-content: center;
align-items: center;
}
.flex-row-center {
display: flex;
justify-content: center;
}
.flex-column-center {
display: flex;
align-items: center;
}
.flex-space-between {
display: flex;
justify-content: space-between;
align-items: center;
}
.border-title {
height: 56px;
background: #ffffff;
padding: 20px;
box-sizing: border-box;
font-weight: 600;
font-size: 16px;
color: #333333;
border-bottom: 1px solid #e5e5e5;
}
.journey {
.el-tabs__item {
height: 20px !important;
line-height: 10px !important;
}
.el-tabs__item {
box-sizing: border-box;
width: 120px;
height: 48px !important;
line-height: 48px !important;
font-size: 14px;
text-align: center;
border: 0 !important;
color: #666666;
background: #fafafa;
border-radius: 4px 4px 0px 0px;
border: 1px solid #eeedff;
padding: 0;
margin-right: 1px;
}
.el-tabs__active-bar {
display: none;
}
.el-tabs__header {
margin: 0 !important;
}
.el-tabs__item.is-active {
color: #5850ff;
background: #ffffff !important;
border-radius: 4px 4px 0px 0px;
}
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
......@@ -148,7 +148,42 @@ const stateList = [{
confName: '已下架'
},
]
function getExplorer () {
var ua = navigator.userAgent.toLocaleLowerCase()
var browserType = null
if (ua.match(/msie/) != null || ua.match(/trident/) != null) {
browserType = 'IE'
} else if (ua.match(/firefox/) != null) {
browserType = '火狐'
} else if (ua.match(/ubrowser/) != null) {
browserType = 'UC'
} else if (ua.match(/opera/) != null) {
browserType = '欧朋'
} else if (ua.match(/bidubrowser/) != null) {
browserType = '百度'
} else if (ua.match(/metasr/) != null) {
browserType = '搜狗'
} else if (ua.match(/tencenttraveler/) != null || ua.match(/qqbrowse/) != null) {
browserType = 'QQ'
} else if (ua.match(/maxthon/) != null) {
browserType = '遨游'
} else {
browserType = '谷歌'
}
return browserType
}
function exportFn (url) {
let browserType = getExplorer()
if (browserType == 'QQ') {
window.open(url)
return
}
let iframe = document.createElement('iframe')
iframe.style.display = 'none'
iframe.src = url
document.body.appendChild(iframe)
}
export {
limitPrice,
orderManageStatusList,
......@@ -159,5 +194,7 @@ export {
memberTypeList,
stateList,
orderTypesList,
orderStatusList
orderStatusList,
exportFn,
getExplorer
}
\ No newline at end of file
......@@ -12,7 +12,7 @@ let cfg = require('./conf.js')
import { Http } from 'glsx-common'
let timeout = 30000 //超时时间
export const fetchConfig = function(common) {
let params = { moduleName: 'peregrination', mockUrl: 'https://oss-config.glsx.com.cn/mock/63c12a2e28a427953783403b/link/config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
let params = { moduleName: 'journey', mockUrl: 'https://oss-config.glsx.com.cn/mock/63c12a2e28a427953783403b/link/config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
return common.utils.getConfig(params)
}
export const config = {
......
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-23 17:20:32
* @LastEditTime: 2023-09-22 20:06:55
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
import Vue from 'vue'
......@@ -21,3 +21,4 @@ start()
export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params)
export const http_common = params => Vue.prototype.$http_common(params)
export const http_sop = params => Vue.prototype.$http_sop(params)
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-23 11:06:49
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-05 16:08:47
* @LastEditTime: 2023-09-25 09:59:38
* @FilePath: \live\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -20,7 +20,7 @@ let instance = null
Vue.use(ElementUI)
Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState }) {
const { response, request, sign, secret, sign_common, request_common } = await fetchConfig(common)
const { response, request, sign, secret, sign_common, request_common, response_sop, request_merchant } = await fetchConfig(common)
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
......@@ -28,7 +28,9 @@ 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_sop = new common.Http({ response: response_sop, request, sign, secret, alert: message.error, headers: { token: globalState.session.token, 'Content-Type': 'application/json' } })
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_merchant = new common.Http({ response:request_merchant, request, sign, secret, alert: message.error, headers: { token: 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: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:23:03
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-05 17:23:24
* @FilePath: \scrm-micro-journey\src\views\journey\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div>
555
<div class="journey">
<div class="container">
<div class="sticky">
<GLCombiForm
ref="showSearch"
:rowNumber="2"
:formObj="searchForm"
:formData="searchFormData"
:searchSelectObj="searchSelectObj"
@handleOk="handleSearch"
@handleRest="handleReset"
:key="FormKey"
></GLCombiForm>
<div :class="['sticky-btns', { hiddenExport: viewType == 1 }]">
<div class="btns">
<el-button
type="default"
@click="refreshInst"
plain
>状态刷新</el-button>
<el-button
type="default"
@click="changeViewType"
>切换为看板视图</el-button>
<el-button
type="default"
@click="handleExport"
>导出</el-button>
</div>
</div>
</div>
<template v-if="viewType == 1">
<div class="journey-data-view">
<data-view
:params="tableSearchForm"
ref="dataView"
:stageList="stageList"
></data-view>
</div>
</template>
<template v-else>
<template v-if="stageList && stageList.length">
<div class="flex">
<div class="flex-default tabs">
<template v-for="(i,index) in stageList">
<template>
<div
:class="['tab',{'active':searchForm.sopJourneyStage == i.value}]"
:key="index"
@click="changeTab(i.value)"
>
{{ i.label }}
</div>
</template>
</template>
</div>
</div>
</template>
<div class="journey-table">
<journey-table
ref="table"
:params="tableSearchForm"
:stageList="stageList"
></journey-table>
</div>
</template>
</div>
</div>
</template>
<script type="text/ecmascript-6">
import { combiFormConfig } from './index/config'
import journeyTable from './index/table.vue'
import dataView from './index/dataView.vue'
import { exportFn } from '@/common/constant'
import dayjs from 'dayjs'
export default {
mixins: [combiFormConfig],
components: {
journeyTable,
dataView
},
name: '',
data () {
return {
viewType: 1,
journeyList: [],
FormKey: Date.now()
}
},
mounted () {
this.getList()
this.getFindMerchantStaffList()
},
methods: {
getFindMerchantStaffList () {
const { merchantId } = this.$globalState.session
this.$apis.journey.getFindMerchantStaffList({
merchantNo: merchantId,
staffLabelFlag: true
}).then(res => {
console.log(res)
let optionList = []
res && res.length && res.map(e => optionList.push({
confId: e.staffPhone,
confName: e.staffName
}))
this.searchFormData.find(e => e.name == 'sopFollowUpPersonPhone').optionList = optionList
})
},
getList () {
this.$apis.journeyConfig.byGroupIdSop({ groupId: 'M153312087', pageNumber: 1 }).then(res => {
this.journeyList = res.list || []
this.journeyList.forEach(item => {
const stages = JSON.parse(item.instParam).stages
item.journeyItem = []
item.journeyItem = [{
label: '全部',
value: ''
}]
for (let k in stages) {
item.journeyItem.push({
label: stages[k].value,
value: k,
})
}
})
this.searchFormData[0].optionList = this.journeyList
this.searchForm.sopJourneyId = this.journeyList[0].instId
this.getStage(this.searchForm.sopJourneyId)
this.handleSearch()
})
},
changeTab (val) {
this.searchForm.sopJourneyStage = val
this.handleSearch()
},
handleSearch () {
const { viewType, $refs } = this,
el = viewType == 1 ? $refs.dataView : $refs.table,
tempParams = this.getSelectInputParams(),
searchForm = JSON.parse(JSON.stringify(this.searchForm))
if (searchForm.time) {
searchForm.sopJourneyEnterTimeBegin = dayjs(searchForm.time[0]).format('YYYY-MM-DD')
searchForm.sopJourneyEnterTimeEnd = dayjs(searchForm.time[1]).format('YYYY-MM-DD')
}
delete searchForm.time
this.tableSearchForm = {
...searchForm,
...tempParams
}
this.$nextTick(() => {
el.refreshTable()
})
},
handleReset () {
const { journeyList } = this
this.searchForm = {
sopJourneyStage: '',
sopJourneyId: journeyList[0].instId
}
this.searchSelectObj = this.$options.data.call(this).searchSelectObj
// this.searchFormData = this.$options.data.call(this).searchFormData
this.FormKey = Date.now()
this.handleSearch()
},
handleExport () {
this.$apis.journey.exportExcel({ ...this.searchForm, pageSize: 10000, pageNumber: 1 }).then(res => {
if (res.url) exportFn(res.url)
})
},
changeViewType () {
this.viewType = this.viewType == 1 ? 0 : 1
},
/**状态刷新 */
async refreshInst () {
const { sopJourneyId } = this.tableSearchForm,
{ refreshTime } = this
if (refreshTime && Date.now() - refreshTime < 1e4) return this.$message('数据正在刷新中,请勿频繁提交')
const res = await this.$apis.journey.refreshInst({
instId: sopJourneyId
})
this.refreshTime = Date.now()
this.handleSearch()
}
}
}
</script>
<style scoped lang="scss">
.journey {
padding: 20px;
background-color: #fff;
.flex-default.tabs {
border-bottom: none;
display: flex;
gap: 2px;
.tab {
background: #fafafa;
border: 1px solid #e5e5e5 !important;
border-radius: 4px 4px 0 0;
border-bottom: 0;
height: 40px !important;
line-height: 40px !important;
width: fit-content;
min-width: 86px;
padding: 0 20px !important;
text-align: center;
cursor: pointer;
}
.active,
.tab:hover {
background-color: #fff;
color: #5850ff;
}
}
&-table-box {
padding: 20px;
border: 1px solid #e5e5e5;
}
&-data-view {
height: calc(100vh - 224px);
}
.sticky {
position: relative;
z-index: 2;
&-btns {
position: absolute;
right: 0;
bottom: -33px;
overflow: hidden;
.el-button + .el-button {
margin-left: 8px;
}
.btns {
transition: all 0.25s;
.el-button {
padding: 8px 15px;
min-width: 60px;
}
}
}
.hiddenExport {
.btns {
transform: translateX(68px);
}
}
}
}
</style>
let _this = null
const defaultFormData = {
sopJourneyStage: ''
}
import * as dayjs from 'dayjs'
export default {
created () {
_this = this
},
data () {
return {
refreshTime: '',
searchForm: {
...defaultFormData
},
searchSelectObj: {
keyword: {
attr: 'customerPhone',
value: ''
}
},
searchFormData: [
{
label: '旅程',
name: 'sopJourneyId',
type: 'select',
labelWidth: 56,
optionList: [],
optionId: 'instId',
optionLabel: 'instName',
changeAttr: e => {
this.getStage(e)
}
},
{
label: '旅程阶段',
name: 'sopJourneyStage',
type: 'select',
labelWidth: 56,
optionList: [],
optionId: 'value',
optionLabel: 'label'
},
{
type: 'selectInput',
selectName: 'keyword',
isClear: true,
inputWidth: '320px',
selectWidth: '110px',
selectOption: [
{
label: '客户电话',
name: 'customerPhone'
},
{
label: '客户姓名',
name: 'customerName'
},
{
label: '微信昵称',
name: 'wechatNickname'
}
],
handleSelectChange (value) {
_this.searchSelectObj.keyword.value = ''
}
},
{
label: '跟进人',
name: 'sopFollowUpPersonPhone',
type: 'select',
labelWidth: 56,
optionList: [],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '进入旅程时间',
name: 'time',
type: 'datePicker',
labelWidth: 72,
isClear: true,
customPickerOptions: {
disabledDate (val) {
let disabled = true,
startTime = dayjs().subtract(1, 'year'),
endTime = dayjs(),
date = dayjs(val)
if (startTime < date && dayjs(date) < endTime) disabled = false
return disabled
}
}
}
],
stageList: [],
tableSearchForm: {
...defaultFormData
}
}
},
watch: {
// watchJourney: {
// immediate: true,
// handler (newval) {
// //清空旅程阶段并调用旅程阶段接口
// console.log(newval)
// }
// },
'searchForm.a' (newval) {
//清空旅程阶段并调用旅程阶段接口
console.log(newval, 'a')
}
},
// computed: {
// watchJourney () {
// return this.searchForm.a
// }
// },
methods: {
getStage (e) {
const step = _this.searchFormData.find(i => i.name === 'sopJourneyStage')
let optionList = _this.journeyList.find(i => i.instId == e).journeyItem
step.optionList = optionList
this.stageList = step.optionList
},
getSelectInputParams () {
const list = Object.keys(this.searchSelectObj)
var params = {}
list.forEach(i => {
const item = this.searchSelectObj[i]
item.value && (params[item.attr] = item.value)
})
return params
}
}
}
import combiFormConfig from './combiFormConfig'
export {
combiFormConfig
}
\ No newline at end of file
<template>
<div class="data-view">
<div class="title">旅程看板</div>
<div class="carousel-box">
<el-carousel
ref="carousel"
:autoplay="false"
:loop="false"
indicator-position="none"
height="100%"
arrow="never"
class="carousel"
@change="viewIndex = $event"
>
<template v-for="(i, index) in viewList">
<template>
<el-carousel-item
:key="index"
class="carousel-item"
>
<template v-for="(c, cindex) in i">
<template>
<div
:key="cindex"
class="group"
>
<div class="title">
<div class="text flex">
<div class="icon">
<img :src="`https://img01.glsx.com.cn/weapp/resource/saas/scrm/data-view-sop-${cindex}.png`">
</div>
{{ c.title }}
</div>
<div class="line-box">
<div
class="line"
:style="[{ width: (100 * (cindex + 1)) / i.length + '%' }]"
></div>
</div>
</div>
<el-scrollbar class="content">
<template v-if="c.list.length">
<template v-for="(item, ind) in c.list">
<template>
<div
:key="ind"
class="item"
>
<div class="top flex">
<div class="icon">
<template v-if="item.wechatAvatarUrl">
<img :src="item.wechatAvatarUrl" />
</template>
<template v-else>
<img src="@/assets/icon/default-avatar.png" />
</template>
</div>
<div class="text">
<div class="name">{{ item.wechatNickname}}</div>
{{ item.customerPhone }}
</div>
</div>
<div class="bottom flex">
<div class="left text-hide">进入该阶段:第{{ item.day }}天</div>
<div class="right text-hide">跟进人:{{ item.sopFollowUpPersonName }}</div>
</div>
</div>
</template>
</template>
</template>
<template v-else>
<div class="nothing">
<img src="@/assets/icon/nodata.png" />
</div>
</template>
</el-scrollbar>
</div>
</template>
</template>
</el-carousel-item>
</template>
</template>
</el-carousel>
<div
class="arrow left"
@click="$refs.carousel.prev()"
>
<img :src="viewIndex == 0 ? leftIcon : leftActiveIcon" />
</div>
<div
class="arrow right"
@click="$refs.carousel.next()"
>
<img :src="viewIndex < viewList.length - 1 ? rightActiveIcon : rightIcon" />
</div>
</div>
</div>
</template>
<script type="text/ecmascript-6">
import * as dayjs from 'dayjs'
export default {
name: '',
props: {
params: {
type: Object,
default: () => { }
},
stageList: {
type: Array,
default: () => { }
},
},
data () {
return {
dataViewLoading: true,
viewList: [],
viewIndex: 0,
leftIcon: require('@/assets/icon/left.png'),
leftActiveIcon: require('@/assets/icon/left-active.png'),
rightIcon: require('@/assets/icon/right.png'),
rightActiveIcon: require('@/assets/icon/right-active.png'),
pageNumber: 1
}
},
mounted () {
this.refreshTable()
},
methods: {
async refreshTable () {
console.log(dayjs)
function splitArrayIntoChunks (arr, chunkSize) {
const weight = 1 / arr.length
return arr.reduce((result, item, index) => {
const chunkIndex = Math.floor(index / chunkSize)
item.width = `${(weight * index + weight) * 100}%`
result[chunkIndex] = result[chunkIndex] || []
result[chunkIndex].push(item)
return result
}, [])
}
const params = {
...JSON.parse(JSON.stringify(this.params)),
pageSize: 9999,
pageNumber: this.pageNumber
}
const stageList = this.stageList,
arr = []
for (let k of stageList) {
if (k.value) {
params.sopJourneyStage = k.value
const { list } = await this.$apis.journey.getCustomersList(params)
list.length && list.map(e => e.day = dayjs().diff(dayjs(e.sopJourneyStageEnterTime), 'day'))
arr.push({
title: k.label,
list
})
}
}
this.viewList = splitArrayIntoChunks(arr, 4)
this.dataViewLoading = false
},
}
}
</script>
<style scoped lang="scss">
.flex {
display: flex;
align-items: center;
}
.data-view {
height: 100%;
.title {
font-weight: 500;
font-size: 16px;
color: #333333;
padding: 8px 0 16px;
}
.carousel-box {
height: calc(100% - 40px);
position: relative;
.carousel {
height: 100%;
&-item {
display: flex;
gap: 8px;
.group {
width: 25%;
height: 100%;
background: #f9f9fe;
border-radius: 4px;
.title {
height: 60px;
background: #f0efff;
border-radius: 4px 4px 0 0;
box-sizing: border-box;
padding: 10px 16px;
.text {
font-weight: 500;
font-size: 16px;
color: #5850ff;
.icon {
width: 30px;
height: 30px;
margin-right: 8px;
}
}
.line-box {
height: 2px;
background: #d6d4f8;
border-radius: 1px;
margin-top: 8px;
.line {
height: 100%;
background-color: #5850ff;
border-radius: 1px;
transition: all 0.25s;
}
}
}
.content {
height: calc(100% - 60px);
overflow-y: scroll;
box-sizing: border-box;
padding: 16px 16px 8px;
position: relative;
/deep/.el-scrollbar__wrap {
&::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}
}
&::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}
.item {
height: 91px;
background: #ffffff;
border-radius: 4px;
margin-bottom: 8px;
.top {
border-bottom: 1px solid #f0efff;
padding: 8px;
.icon {
width: 40px;
height: 40px;
margin-right: 8px;
overflow: hidden;
border-radius: 100%;
}
.text {
font-size: 12px;
color: #666666;
.name {
font-weight: 500;
font-size: 14px;
color: #333333;
margin-bottom: 4px;
}
}
}
.bottom {
height: 33px;
justify-content: space-between;
padding: 0 8px;
font-size: 12px;
color: #666666;
.text-hide {
flex: 1;
}
.right {
text-align: right;
}
}
}
.nothing {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 270px;
height: 112px;
}
}
}
}
}
&:hover {
.arrow {
display: block;
}
}
.arrow {
display: none;
position: absolute;
width: 36px;
height: 36px;
top: 50%;
transform: translateY(-50%) scale(1.15);
z-index: 2;
cursor: pointer;
opacity: 0;
animation: show-arrow 0.25s forwards;
}
.left {
left: -12px;
}
.right {
right: -12px;
}
@keyframes show-arrow {
to {
opacity: 1;
transform: translateY(-50%) scale(1);
}
}
}
}
</style>
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-08 11:02:19
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-08 11:13:18
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\components\empDetail.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<GLDialog title="查看详情" @onOk="handleSure" :before-close="handleClose" @onCancel="handleClose" :visible.sync="empVisible">
<div class="dialog-body">
<div class="task-wrap">
<div class="task-item" v-for="(item, index) in taskInfo" :key="index">
<span>{{ item.label }}</span>
</div>
</div>
</div>
</GLDialog>
</template>
<script>
export default {
props: {
empVisible: Boolean
},
data() {
return {
taskInfo: [
{
label: '需执行客户数量'
},
{
label: '已下达任务数量'
},
{
label: '需执行任务员工数'
}
]
}
},
methods: {
//获取活动信息
getActivity() {
console.log(this.addForm.activityId)
},
init() {
this.empVisible = true
this.getActivityList()
},
//关联活动
handleSure() {
this.$refs.addForm.validate(valid => {
if (valid) {
this.handleClose()
this.$emit('setProcess')
}
})
},
handleClose() {
this.empVisible = false
}
}
}
</script>
<style lang="scss" scoped>
.dialog-body {
padding: 16px;
}
</style>
<template>
<GLDialog title="关联营销活动" class="gl-form-page gl-form-min" @onOk="handleSure" :before-close="handleClose" @onCancel="handleClose" :visible.sync="dialogVisible">
<el-form v-loading="loading" ref="addForm" :model="addForm" class="code-body-form" label-width="154px" :rules="addRules">
<el-form-item label="客户旅行:" size="small">
<el-input v-model="addForm.name" :disabled="true"></el-input>
</el-form-item>
<el-form-item label="活动链接:" size="small" prop="activityId">
<div class="flex-column-center">
<el-select filterable v-model="addForm.activityId" placeholder="请选择" @change="getActivity" :disabled="journeyStatus == 3">
<el-option v-for="item in activityList" :key="item.id" :label="item.activityName" :value="item.id"></el-option>
</el-select>
<div class="add-btn-a" @click="jumpActivity">创建活动</div>
</div>
</el-form-item>
</el-form>
<div class="activity-detail-border">
<div class="activity-detail-title flex-column-center">
<img src="@/assets/config/a-icon.png" />
<span>营销活动详情</span>
</div>
<div class="activity-detail-info">
<div class="activity-detail-item">
<label>客户数量:</label>
<span>{{ activityInfo.customerNum }}人</span>
</div>
<div class="activity-detail-item">
<label>关联员工:</label>
<div class="emp-wrap">
<div class="emp-item" v-for="(val, i) in activityInfo.staffList" :key="i">
<i class="el-icon-user-solid"></i>
<span>{{ val.staffName }}</span>
</div>
</div>
</div>
<div class="activity-detail-item">
<label>AI话术:</label>
<span>{{ activityInfo.talkNameList[0] }}人</span>
</div>
<div class="activity-detail-item">
<label>营销短信:</label>
<span>{{ activityInfo.messageList[0] }}人</span>
</div>
</div>
</div>
</GLDialog>
</template>
<script>
export default {
props: {
journeyStatus: Number
},
data() {
return {
dialogVisible: false,
addForm: {
name: this.$route.query.title
},
activityInfo: {
talkNameList: [],
messageList: [],
staffList: []
},
activityList: [],
addRules: {
activityId: [{ required: true, message: '请选择活动链接', trigger: 'change' }]
}
}
},
methods: {
//获取活动信息
getActivity() {
this.$apis.journeyConfig.activityRelInfo({ id: this.addForm.activityId }).then(res => {
if (res) this.activityInfo = res
})
},
init(info) {
this.dialogVisible = true
this.getActivityList()
if (info.activityId) {
this.addForm.activityId = info.activityId
this.getActivity()
}
},
//创建活动
jumpActivity() {
this.$history.push(`/link/activityLink/marketingActivity?addOrEdit=add&subscribe=5&$title=新建活动`)
},
//活动列表
getActivityList() {
this.$apis.journeyConfig.activityPage({ pageSize: 10000, currentPage: 1, activityStatus: 2 }).then(res => {
this.activityList = res.list || []
})
},
//关联活动
handleSure() {
this.$refs.addForm.validate(valid => {
if (valid) {
this.handleClose()
const { talkNameList } = this.activityInfo
this.$emit('setProcess', {
activityId: 10596, // 活动id
activityName: '活动名称',
activityUrl: '活动访问地址',
aiSpeech: '默认AI营销话术',
textMessage: '默认短信'
})
}
})
},
handleClose() {
this.dialogVisible = false
}
}
}
</script>
<style lang="scss" scoped>
.add-btn-a {
cursor: pointer;
color: #5850ff;
}
.activity-detail-border {
width: 580px;
background: #f9f9fe;
margin: 20px auto;
.activity-detail-title {
height: 40px;
border-bottom: 1px solid #e5e5e5;
padding-left: 20px;
img {
width: 20px;
height: 20px;
}
span {
font-size: 16px;
color: #333333;
}
}
.activity-detail-info {
padding: 20px;
.activity-detail-item {
font-size: 14px;
margin-bottom: 10px;
display: flex;
align-items: center;
.emp-wrap {
display: flex;
flex-wrap: wrap;
gap: 8px;
.emp-item {
border: 1px solid #e8e8ea;
border-radius: 4px;
padding: 4px;
font-size: 12px;
i {
color: #75acff;
}
}
}
label {
color: #666666;
display: inline-block;
width: 80px;
text-align: right;
margin-right: 5px;
}
span {
color: #333333;
}
}
}
}
</style>
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-25 19:37:31
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="journey-main">
<div class="bg-fff pb20 journey-config">
<template v-for="(item, index) in statusList">
<div class="journey-step-config" v-if="journeyStatus == item.status" :key="index">
<i :class="`${item.icon}`"></i>
<span>{{ item.describe }}</span>
<el-button :type="item.isDisabled ? 'info' : 'primary'" :size="size" @click="item.clickFun" :disabled="item.isDisabled">{{ item.btnName }}</el-button>
</div>
</template>
</div>
<div class="journey-step bg-fff pb20">
<div class="journey-step-title border-title">
客户旅程阶段
</div>
<div class="journey-step-body">
<div class="journey-step-info" v-for="(val, k) in configList" :key="k">
<collapse-item :stepItem="val" :activityInfo="activityInfo"></collapse-item>
</div>
</div>
</div>
<related-activity ref="activityForm" @setProcess="setProcess" :journeyStatus="journeyStatus"></related-activity>
</div>
</template>
<script>
import CollapseItem from './components/CollapseItem'
import relatedActivity from './components/relatedActivity'
export default {
components: { CollapseItem, relatedActivity },
data() {
return {
journeyStatus: 1,
activityInfo: {},
statusList: [
{
describe: '步骤一:关联营销活动',
icon: 'el-icon-warning',
isDisabled: false,
status: 1,
btnName: '去关联',
clickFun: () => {
this.handleConcat()
}
},
{
describe: '步骤二:启用客户旅程',
icon: 'el-icon-warning',
isDisabled: true,
status: 1,
btnName: '去开启',
clickFun: () => {
this.haneldOpen()
}
},
{
describe: '步骤一:已关联营销活动',
icon: 'el-icon-success',
isDisabled: false,
status: 2,
btnName: '去查看',
clickFun: () => {
this.concatActivity()
}
},
{
describe: '步骤二:启用客户旅程',
icon: 'el-icon-warning',
isDisabled: false,
status: 2,
btnName: '去开启',
clickFun: () => {
this.haneldOpen()
}
},
{
describe: '步骤一:已关联营销活动',
icon: 'el-icon-success',
isDisabled: false,
status: 3,
btnName: '去查看',
clickFun: () => {
this.concatActivity()
}
},
{
describe: '步骤二:已启用客户旅程',
icon: 'el-icon-success',
isDisabled: false,
status: 3,
btnName: '去停用',
clickFun: () => {
this.handleClose(-1)
}
},
{
describe: '步骤一:已关联营销活动',
icon: 'el-icon-success',
isDisabled: false,
status: 4,
btnName: '去查看',
clickFun: () => {
this.concatActivity()
}
},
{
describe: '步骤二:已停用客户旅程',
icon: 'el-icon-success',
isDisabled: true,
status: 4,
btnName: '已停用'
}
],
configList: [],
configList2: [
{
label: '可报价',
isExpaned: false,
taskList: [
{
status: [1, 2],
name: '进入条件',
desc: '描述用户触发何种条件后,将自动变更为该旅程阶',
progressList: [
{
name: '33'
},
{
name: '33'
},
{
name: '33'
}
]
}
]
},
{
label: '有意向',
isExpaned: false,
taskList: [
{
status: [1, 2],
name: '进入条件',
desc: '描述用户触发何种条件后,将自动变更为该旅程阶',
progressList: [
{
name: '33'
}
],
sopList: [
{
day: '第一天',
times: [
{
time: '7:00',
process: 1
},
{
time: '8:00',
process: 2
},
{
time: '9:00',
process: 3
}
]
},
{
day: '第二天',
times: [
{
time: '7:00',
process: 1
},
{
time: '8:00',
process: 2
}
]
},
{
day: '第三天'
},
{
day: '第四天'
},
{
day: '第五天'
}
]
}
]
}
]
}
},
mounted() {
const query = this.$route.query
this.query = query
this.getDetail()
},
methods: {
getDetail() {
this.$apis.journeyConfig.getInstIdDetail({ instId: this.query.instId }).then(res => {
const instParam = JSON.parse(res.instParam)
const stages = instParam.stages
const instStatus = res.instStatus
this.activityInfo = instParam.customData
const activityId = this.activityInfo.activityId
if (instStatus == 0 && !activityId) {
this.journeyStatus = 1
}
if (instStatus == 0 && activityId) {
this.journeyStatus = 2
}
if (instStatus == 1 && activityId) {
this.journeyStatus = 3
}
if (instStatus == -1 && activityId) {
this.journeyStatus = 4
}
const nodes = res.nodes
const configList = []
for (let k in stages) {
let list = []
for (let v of nodes) {
if (v.nodeParam && JSON.parse(v.nodeParam).stage == stages[k].value) {
list.push(JSON.parse(v.nodeParam))
}
}
list = list.filter(item => item.day)
list.sort((a, b) => {
return a.day - b.day
})
const sopList = this.groupBy(list, 'day')
configList.push({
label: stages[k].value,
isExpaned: false,
conditionsList: stages[k].conditions || [],
sopList
})
}
this.configList = configList
})
},
groupBy(list, name) {
const m = new Map()
list.map(item => {
m.set(item[name], [...(m.get(item[name]) || ''), item])
})
return [...m.values()]
},
//关闭
handleClose() {
this.handleConfirm('关闭提示', '确定关闭', '旅程关闭后将禁用无法重新开启', '', () => {
this.setSopInsts(-1)
})
},
setSopInsts(status) {
this.$apis.journeyConfig.setSopInsts({ instId: this.query.instId, status }).then(res => {
this.getDetail()
})
},
//关联活动成功
setProcess(data) {
this.$apis.journeyConfig.concatActivity({ instId: this.query.instId, data }).then(res => {
this.getDetail()
})
},
handleConfirm(title, btnName, content, customClass, callback) {
this.$confirm(content, title, {
confirmButtonText: btnName,
cancelButtonText: '取消',
customClass,
type: 'warning'
})
.then(() => {
callback()
})
.catch(() => {})
},
//开启
haneldOpen() {
this.handleConfirm('开启提示', '确定开启', '旅程开启后将无法修改关联的活动链接', '', () => {
this.setSopInsts(1)
})
},
//关联活动
handleConcat() {
this.handleConfirm('关联提示', '前往关联', '当前旅程尚未关联活动链接,请关联后再尝试开启', 'concat-color', this.concatActivity)
},
//打开活动
concatActivity() {
this.$refs.activityForm.init(this.activityInfo)
}
}
}
</script>
<style lang="scss" scoped>
.concat-color {
/deep/ .el-icon-warning {
color: #5850ff;
}
}
.journey-main {
.journey-config {
margin-bottom: 16px;
padding: 20px;
}
.journey-step-config {
&:first-child {
margin-bottom: 20px;
}
i {
font-size: 14px;
&.el-icon-warning {
color: #fdb757;
}
&.el-icon-success {
color: #2cca74;
}
}
span {
font-size: 14px;
color: #666666;
margin-left: 5px;
display: inline-block;
width: 166px;
}
}
.journey-step-body {
border: 1px solid #e5e5e5;
margin: 32px 20px;
}
}
</style>
<style lang="scss">
.concat-color {
.el-icon-warning {
color: #5850ff;
}
}
</style>
......@@ -2,12 +2,271 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-05 17:24:18
* @LastEditTime: 2023-09-27 09:54:05
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div>
6666
<div class="journey-main">
<div class="bg-fff p20">
<GLCombiForm ref="formSearch" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="journey-body">
<div class="journey-item" v-for="item in journeyList" :key="item.id">
<div class="journey-item-head flex-column-center ">
<img src="@/assets/config/icon-1.png" />
<span>{{ item.instName }}</span>
<a @click="handleEdit(item)">编辑</a>
<div :class="{ 'journey-item-status flex-center': true, 'is-disable': item.instStatus == -1 || item.instStatus == 0 }">
<i :class="`${getStatusValue(item, 'icon')}`"></i>
<span>{{ getStatusValue(item, 'label') }}</span>
</div>
</div>
<div class="journey-item-body">
<div class="journey-process">
<div class="journey-process-item" v-for="(p, index) in item.journeyItem" :key="index">
<img src="@/assets/config/icon-next.png" class="journey-status" v-if="index != item.journeyItem.length - 1" />
<img src="@/assets/config/icon-end.png" class="journey-status" v-else />
<div class="journey-step__main">
<div :class="['journey-step-icon', `step-icon-${p.process}`]"></div>
<div class="journey-step-desc">{{ p.label }}</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
const STATUS = [
{ label: '已启用', value: 1, icon: 'el-icon-check' },
{ label: '未启用', value: 0, icon: 'el-icon-close' },
{ label: '已禁用', value: -1, icon: 'el-icon-remove-outline' }
]
export default {
data() {
return {
searchForm: {},
journeyAllList: [],
searchFormData: [
{
label: '旅程',
name: 'instName',
type: 'select',
optionList: [],
optionId: 'instName',
optionLabel: 'instName'
},
{
label: '状态',
name: 'instStatus',
type: 'select',
optionList: STATUS,
optionId: 'value',
optionLabel: 'label',
multiple: true
}
],
journeyList: []
// journeyList: [
// {
// id: 1,
// title: '续保客户旅程1',
// status: 1,
// journeyItem: [
// {
// label: '待跟进',
// process: 1
// },
// {
// label: '有意向',
// process: 2
// },
// {
// label: '可报价',
// process: 3
// },
// {
// label: '已成交',
// process: 4
// },
// {
// label: '战败',
// process: 5
// }
// ]
// },
// {
// id: 2,
// title: '续保客户旅程2',
// status: 2,
// journeyItem: []
// },
// {
// id: 2,
// title: '续保客户旅程3',
// status: 3,
// journeyItem: []
// }
// ]
}
},
mounted() {
this.byGroupIdSop()
},
methods: {
byGroupIdSop() {
//this.$globalState.session.merchantId
this.$apis.journeyConfig.byGroupIdSop({ groupId: 'M153312087', pageNumber: 1 }).then(res => {
this.journeyAllList = res.list || []
this.journeyAllList.forEach(item => {
const stages = JSON.parse(item.instParam).stages
item.journeyItem = []
let process = 0
for (let k in stages) {
process++
item.journeyItem.push({
label: stages[k].value,
process
})
}
})
console.log(this.journeyAllList)
this.searchFormData[0].optionList = this.journeyAllList
this.handleSearch()
})
},
//状态值映射
getStatusValue(val, prop) {
console.log(val)
return STATUS.find(item => item.value == val.instStatus)[prop]
},
handleEdit(item) {
this.$router.push({
path: '/journeyConfig/config',
query: {
title: item.instName,
instId: item.instId
}
})
},
handleSearch() {
const { instStatus, instName } = this.searchForm
this.journeyList = this.journeyAllList
console.log(instStatus, instName)
if (instName) {
this.journeyList = this.journeyList.filter(item => item.instName == instName)
}
if (instStatus && instStatus.length) {
this.journeyList = this.journeyList.filter(item => instStatus.includes(item.instStatus))
}
},
handleReset() {
this.searchForm = {}
this.handleSearch()
}
}
}
</script>
<style lang="scss" scoped>
.journey-item {
border: 1px solid #f0f0fb;
border-radius: 4px;
&-head {
height: 50px;
padding-left: 16px;
border-bottom: 1px solid #f0f0fb;
img {
width: 30px;
height: 30px;
}
> span {
font-size: 16px;
color: #333333;
margin: 0px 10px;
}
a {
font-size: 14px;
color: #5850ff;
cursor: pointer;
}
.journey-item-status {
margin-left: auto;
width: 84px;
height: 28px;
background-image: linear-gradient(108deg, #2cca74 0%, #16ced2 100%);
border-radius: 2px 0 0 2px;
color: #ffffff;
font-size: 14px;
&.is-disable {
background-image: linear-gradient(108deg, #acacca 0%, #c9bcd0 100%);
}
i {
margin-right: 4px;
&.el-icon-remove-outline {
transform: rotate(180deg);
}
}
}
}
&-body {
padding: 32px;
display: flex;
justify-content: center;
.journey-process {
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
&-item {
position: relative;
flex: 0 0 195px;
width: 195px;
height: 88px;
&:last-child {
flex: 0 0 88px;
width: 88px;
}
.journey-status {
position: absolute;
height: 88px;
width: auto;
}
.journey-step__main {
position: absolute;
width: 88px;
text-align: center;
top: 15px;
margin: auto;
.journey-step-icon {
margin: 5px auto;
}
.journey-step-desc {
font-size: 14px;
color: #333333;
}
}
}
}
}
}
.journey-step-icon {
width: 25px;
height: 24px;
}
.step-icon-2 {
background: url('../../assets/config/icon-sprites.png') -10px -10px;
}
.step-icon-3 {
background: url('../../assets/config/icon-sprites.png') -55px -10px;
}
.step-icon-4 {
background: url('../../assets/config/icon-sprites.png') -10px -54px;
}
.step-icon-5 {
background: url('../../assets/config/icon-sprites.png') -55px -54px;
}
.step-icon-1 {
background: url('../../assets/config/icon-sprites.png') -54px -142px;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!