Commit 8e8679ca by 杨明

fixed

1 parent 73271294
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
"glsx-components": "^1.3.7", "glsx-components": "^1.3.7",
"glsx-table": "^1.0.9", "glsx-table": "^1.0.9",
"vue-draggable-resizable": "^2.3.0", "vue-draggable-resizable": "^2.3.0",
"vuedraggable": "^2.24.3" "vuedraggable": "^2.24.3",
"xlsx": "^0.18.5"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0", "@vue/cli-plugin-babel": "^4.1.0",
......
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
} }
#app { #app {
background: #f4f5fa; background: #f4f5fa;
padding: 0px 20px 20px 40px; padding: 0px 20px 20px 20px;
position: absolute; position: absolute;
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
......
...@@ -28,8 +28,30 @@ const downloadModel = params => { ...@@ -28,8 +28,30 @@ const downloadModel = params => {
sign: true sign: true
}) })
} }
const merchantConfig = params => {
params.method = 'entmicro.api.datacube.merchant.config'
params.sessionId = session
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
const datacubeUpload = params => {
params.method = 'entmicro.api.datacube.upload'
params.sessionId = session
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
const importsRecord = params => { const importsRecord = params => {
params.method = 'entmicro.api.imports.record.page' params.method = 'entmicro.api.datacube.log.page'
params.sessionId = session params.sessionId = session
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
...@@ -73,5 +95,7 @@ export default { ...@@ -73,5 +95,7 @@ export default {
importsRecord, importsRecord,
importsCount, importsCount,
importsKey, importsKey,
findLoginCount findLoginCount,
datacubeUpload,
merchantConfig
} }

644 Bytes | W: | H:

527 Bytes | W: | H:

src/assets/img/question.png
src/assets/img/question.png
src/assets/img/question.png
src/assets/img/question.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -151,7 +151,7 @@ export default { ...@@ -151,7 +151,7 @@ export default {
// IE < 9 // IE < 9
document.selection.createRange().pasteHTML(html) document.selection.createRange().pasteHTML(html)
} }
this.currentText = document.querySelector('.w-textarea_input').innerHTML.replaceAll('<wise id="1">@昵称</wise>', '@昵称').replaceAll('<br>', '\n') this.currentText = document.querySelector('.w-textarea_input').innerHTML
this.$emit('updateText', this.currentText) this.$emit('updateText', this.currentText)
}, },
addTag(text) { addTag(text) {
......
...@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true) { ...@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true) {
Object.assign(request, { timeout }) Object.assign(request, { timeout })
return Promise.resolve(cfg) return Promise.resolve(cfg)
} }
return new Http({ request: { timeout: 100000 } }).get('https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config') return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
// return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config') // return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
} }
export const config = { export const config = {
......
...@@ -11,10 +11,15 @@ import Vue from 'vue' ...@@ -11,10 +11,15 @@ import Vue from 'vue'
import apis from './api' import apis from './api'
import './public-path' import './public-path'
import './components' import './components'
import filters from './utils/filters'
// import 'glsx-components/dist/glsx-components.css' // import 'glsx-components/dist/glsx-components.css'
import { start } from '@/setup' import { start } from '@/setup'
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.prototype.$apis = apis Vue.prototype.$apis = apis
//过滤器统一处理预加载
Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key])
})
start() start()
export { bootstrap, mount, unmount } from '@/setup' export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
......
...@@ -24,7 +24,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt ...@@ -24,7 +24,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: 'scrm-base-dae97168-46da-4484-8386-f33fb5844878-rop' } })
Vue.prototype.$http_tag = new common.Http({ response, request: request_tag, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http_tag = new common.Http({ response, request: request_tag, sign, secret, alert: ElementUI.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 } })
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
......
export default { export default {
namespaced: true, namespaced: true,
state: { state: {
importData: { importData: {},
uploadInfo: null
}
}, },
mutations: { mutations: {
SET_IMPORT(state, data) { SET_IMPORT(state, data) {
state.importData = data state.importData = data
}, },
SET_UPLOAD_INFO(state, data) {
state.uploadInfo = data
}
}, },
actions: { actions: {
setImport({ commit }, data) { setImport({ commit }, data) {
commit('SET_IMPORT', data) commit('SET_IMPORT', data)
}, },
setUploadInfo({ commit }, data) {
commit('SET_UPLOAD_INFO', data)
}
} }
} }
//过滤器
/* eslint-disable */
const overThousandFilter = val => {
if (typeof val != 'number') {
return 0
}
if (val < 1000) return val
let a = val + ''
let b = a.split('')
b.splice(-3, 0, ',')
return b.join('')
}
export default {
overThousandFilter
}
...@@ -79,6 +79,18 @@ util.openUrl = function(url) { ...@@ -79,6 +79,18 @@ util.openUrl = function(url) {
link.rel = 'opener' link.rel = 'opener'
link.click() link.click()
} }
util.downloadUrl = function(url) {
const link = document.createElement('a')
link.href = url
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
}
util.getArrayIsSubset = (arr1, arr2) => {
return arr1.every(item => {
return arr2.includes(item)
})
}
util.downloadIamge = function(imgsrc, name = new Date().getTime()) { util.downloadIamge = function(imgsrc, name = new Date().getTime()) {
//下载图片地址和图片名 //下载图片地址和图片名
var image = new Image() var image = new Image()
......
<template> <template>
<div> <div>
<div class="form-header"> <div class="form-header">
{{aaaa}}
<GLButton type="primary" size="small" icon="el-icon-add" @click="handleAddCode" fn="新增活码">新建渠道活码</GLButton> <GLButton type="primary" size="small" icon="el-icon-add" @click="handleAddCode" fn="新增活码">新建渠道活码</GLButton>
</div> </div>
<div class="form-panel scrm-box-f"> <div class="form-panel scrm-box-f">
......
...@@ -192,7 +192,7 @@ export default { ...@@ -192,7 +192,7 @@ export default {
}, },
methods: { methods: {
jumpUrl() { jumpUrl() {
this.$history.push('/settings/followUp/index') this.$history.push('/home/followUp/index')
}, },
getFollower() { getFollower() {
var params = { var params = {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<div class="drainage-config-wrap"> <div class="drainage-config-wrap">
<div class="drainage-item-label" v-if="configType">平台将识别尚未补充联系方式的企微客户,并自动发送消息提醒对应员工跟进。</div> <div class="drainage-item-label" v-if="configType">平台将识别尚未补充联系方式的企微客户,并自动发送消息提醒对应员工跟进。</div>
<div class="drainage-item-label" v-else>通过企微魔方导入客户数据后,平台将识别尚未添加企微的客户,并自动发送消息提醒对应员工跟进。</div> <div class="drainage-item-label" v-else>通过数据魔方导入客户数据后,平台将识别尚未添加企微的客户,并自动发送消息提醒对应员工跟进。</div>
<div class="drainage-item-switch"> <div class="drainage-item-switch">
<el-switch v-model="addValue" @change="handleAddSwitch" active-color="#5850FF" inactive-color="#999999"></el-switch> <el-switch v-model="addValue" @change="handleAddSwitch" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div> </div>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="overview-main"> <div class="overview-main">
<div class="overview-header"> <div class="overview-header">
<span>引流获客概览</span> <span>引流获客概览</span>
<el-popover placement="top" width="400" trigger="hover" content="引流获客通过整合活码营销、企微魔方,可分别针对到店用户及离店用户提供企微线上化方案。帮助门店迅速的形成企微客户池,为后续营销活动搭建起稳定高频的触达通道。"> <el-popover placement="top" width="400" trigger="hover" content="引流获客通过整合活码营销、数据魔方,可分别针对到店用户及离店用户提供企微线上化方案。帮助门店迅速的形成企微客户池,为后续营销活动搭建起稳定高频的触达通道。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" /> <img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover> </el-popover>
</div> </div>
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<div class="store-item"> <div class="store-item">
<div class="store-item-s"> <div class="store-item-s">
<div class="store-item-title">离店用户线上化</div> <div class="store-item-title">离店用户线上化</div>
<el-button type="primary" size="small" @click="jumpSquare">企微魔方</el-button> <el-button type="primary" size="small" @click="jumpSquare">数据魔方</el-button>
</div> </div>
<div class="store-item-s"> <div class="store-item-s">
<div class="store-item-icon"> <div class="store-item-icon">
...@@ -124,9 +124,9 @@ export default { ...@@ -124,9 +124,9 @@ export default {
this.$router.push('/square/import') this.$router.push('/square/import')
}, },
viewChart() { viewChart() {
this.loading = true; this.loading = true
this.$apis.overview.viewChart({}).then(res => { this.$apis.overview.viewChart({}).then(res => {
this.loading = false; this.loading = false
this.entMicroCount = res.entMicroCount this.entMicroCount = res.entMicroCount
this.totalCount = res.totalCount this.totalCount = res.totalCount
this.$refs.customerForm.getChart(res.trendItemList) this.$refs.customerForm.getChart(res.trendItemList)
......
<template>
<div class="import-main">
<div class="upload-process">
<div class="upload-process-item" v-for="item in process" :key="item">
<div class="process-item-label">
<label>*</label>
{{ item.templateName }}:
</div>
<div class="process-item-info">
<div class="process-item-size">
<img src="@/assets/img/Excel.png" alt="" />
文件大小:{{ item.size }}M
</div>
<div class="process-item-name">{{ item.fileName }}</div>
<div class="process-item-num">
<el-progress :show-text="false" :stroke-width="6" :percentage="item.percentage" :color="item.percentage != 100 ? '#5850FF' : '#2CCA74'"></el-progress>
<div class="process-num-status" v-if="item.percentage > 0">上传中</div>
<div class="process-num-status process-refresh" v-if="item.percentage == 0">
重试
<i class="el-icon-refresh-right"></i>
</div>
<div class="process-num-status" v-if="item.percentage == 100"><i class="el-icon-success"></i></div>
</div>
</div>
</div>
</div>
<el-dialog title="提示" :visible.sync="dialogVisible" width="30%" :before-close="handleClose">
<div class="dialog-body">
<div class="dialog-tips-icon"><i class="el-icon-warning"></i></div>
<div class="dialog-tips-text">点击继续将开始上传数据文件</div>
<div class="dialog-tips-text">
<span>期间请勿关闭页面</span>
,是否继续吗?
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogVisible = false">
取 消
</el-button>
<el-button size="small" type="primary" @click="handleSure">确 定</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
name: 'step-second',
props: {},
data() {
return {
dialogVisible: false,
setInter: null,
process: [{ percentage: 0 }, { percentage: 0 }, { percentage: 0 }],
uploadItem: ''
}
},
mounted() {},
beforeDestroy() {
clearInterval(this.setInter)
},
methods: {
handleSure() {
this.datacubeUpload()
this.dialogVisible = false
},
startUpload(item, info) {
this.uploadItem = info
this.process = item.map(p => {
return {
percentage: 0,
fileName: p.fileName,
templateName: p.templateName,
size: p.size.toFixed(2)
}
})
this.dialogVisible = true
},
datacubeUpload() {
this.uploadItem.fileList = this.uploadItem.fileList.filter(item => item.fileUrl)
this.uploadItem.createdStaffId = this.$globalState.session.id
this.$apis.square.datacubeUpload(this.uploadItem).then(res => {
if (res) {
const result = res.failFile
this.process.forEach(p => {
p.percentage = Math.random() * 30
})
this.setInter = setInterval(this.addProcess, 1000)
let resultNum = 0
result.forEach((item, index) => {
if (item.uploadSuccess == 0) {
this.process[index].percentage = 100
resultNum++
} else {
this.process[index].percentage = 0
}
if (resultNum == result.length) {
this.$emit('handleSuccess')
}
})
}
clearInterval(this.setInter)
})
},
addProcess() {
this.process.forEach(p => {
p.percentage = p.percentage > 90 ? p.percentage : p.percentage + Math.random() * 5
})
}
}
}
</script>
<style lang="scss" scoped>
.import-main {
margin: 60px auto 0px;
width: 92%;
.upload-process {
&-item {
display: flex;
margin-bottom: 20px;
width: 40vw;
.process-item-label {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
label {
color: #eb4e4e;
}
}
.process-item-info {
flex: 1;
}
.process-item-size {
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 22px;
img {
width: 24px;
}
}
.process-item-name {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 22px;
margin-top: 6px;
}
.process-item-num {
margin-top: 8px;
display: flex;
align-items: center;
font-size: 14px;
font-weight: 400;
color: rgba(0, 0, 0, 0.9);
line-height: 22px;
/deep/ .el-progress {
flex: 1;
margin-right: 6px;
}
.process-num-status {
width: 60px;
&.process-refresh {
cursor: pointer;
}
i {
color: #2cca74;
font-size: 14px;
&.el-icon-refresh-right {
color: #8c8c8c;
}
}
}
}
}
}
.dialog-body {
text-align: center;
margin: 10px 0px;
.dialog-tips-icon {
margin-bottom: 12px;
i {
color: #5850ff;
font-size: 32px;
}
}
.dialog-tips-text {
font-size: 16px;
font-weight: 400;
color: #333333;
line-height: 22px;
span {
color: #eb4e4e;
}
}
}
.dialog-footer {
text-align: center;
}
}
</style>
<template>
<div class="import-main">
<div class="import-success">
<div class="import-success-image">
<i class="el-icon-success"></i>
</div>
<div class="import-success-desc">上传完成</div>
<div class="import-success-content">数据中心已成功接收到数据,数据处理完毕后将发送企微通知。</div>
<div class="import-success-content">届时请回到【引流获客】-【企微魔方】查看分析结果</div>
</div>
</div>
</template>
<script>
export default {
name: 'step-third',
props: {},
data() {
return {}
},
methods: {}
}
</script>
<style lang="scss" scoped>
.import-main {
padding: 30px;
width: 80%;
margin: 0 auto;
border: 1px solid #e8e8ea;
}
.import-success {
text-align: center;
.el-icon-success {
font-size: 60px;
color: #2cca74;
}
&-desc {
font-size: 24px;
font-weight: 500;
color: #333333;
line-height: 32px;
margin: 20px 0px 10px;
}
&-content {
font-size: 14px;
font-weight: 400;
color: #000000;
line-height: 22px;
opacity: 0.45;
}
}
</style>
...@@ -207,8 +207,7 @@ ...@@ -207,8 +207,7 @@
</div> </div>
</div> </div>
</div> </div>
<GLFooter <GLFooter>
>
<el-button type="primary" @click="handleSave" v-if="editStatus">提交</el-button> <el-button type="primary" @click="handleSave" v-if="editStatus">提交</el-button>
<el-button @click="goback">取消</el-button> <el-button @click="goback">取消</el-button>
</GLFooter> </GLFooter>
...@@ -339,7 +338,7 @@ export default { ...@@ -339,7 +338,7 @@ export default {
}, },
watch: { watch: {
'addForm.content': { 'addForm.content': {
handler: function () { handler: function() {
this.content = [] this.content = []
if (this.addForm.content) { if (this.addForm.content) {
let str = this.addForm.content let str = this.addForm.content
...@@ -353,7 +352,7 @@ export default { ...@@ -353,7 +352,7 @@ export default {
} }
}, },
'addForm.tagging': { 'addForm.tagging': {
handler: function () { handler: function() {
this.taggingLength = 0 this.taggingLength = 0
if (this.addForm.tagging) { if (this.addForm.tagging) {
this.addForm.tagging.forEach(item => { this.addForm.tagging.forEach(item => {
...@@ -589,7 +588,7 @@ export default { ...@@ -589,7 +588,7 @@ export default {
}) })
} }
}) })
}, }
}, },
mounted() { mounted() {
this.findConfig() this.findConfig()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!