Commit afba4342 by 前端

Merge branch 'develop' into 'master'

合并代码到主干

See merge request !3
2 parents b5440d49 9dab5614
...@@ -11,7 +11,7 @@ export default { ...@@ -11,7 +11,7 @@ export default {
/** 查询我的待办 */ /** 查询我的待办 */
getTasksList (data = {}) { getTasksList (data = {}) {
data.method = 'scrm.api.wwbench.user.task.list.get' data.method = 'scrm.api.wwbench.user.task.list.get'
data.taskTypes = [3, 4, 5, 6] data.taskTypes = [3, 4, 5, 6, 8]
return window.$HTTP({ return window.$HTTP({
url, url,
data, data,
......
...@@ -54,6 +54,9 @@ module.exports = { ...@@ -54,6 +54,9 @@ module.exports = {
}, },
sop: { sop: {
path: '/dj-scrm-wx-work-sop/#/' path: '/dj-scrm-wx-work-sop/#/'
},
clew: {
path: '/dj-scrm-wx-work-attachment-clew/#/'
} }
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -15,7 +15,8 @@ export default { ...@@ -15,7 +15,8 @@ export default {
3: '客户群发', 3: '客户群发',
4: '客户群群发', 4: '客户群群发',
5: '客户资料完善', 5: '客户资料完善',
6: '营销sop-任务' 6: '营销sop-任务',
8: '线索跟进-任务',
}, },
userInfo: {}, userInfo: {},
accountList: [], accountList: [],
...@@ -37,7 +38,8 @@ export default { ...@@ -37,7 +38,8 @@ export default {
{ text: '客户群发', value: 3 }, { text: '客户群发', value: 3 },
{ text: '客户群群发', value: 4 }, { text: '客户群群发', value: 4 },
{ text: '客户资料完善', value: 5 }, { text: '客户资料完善', value: 5 },
{ text: '营销sop', value: 6 } { text: '营销sop', value: 6 },
{ text: '线索跟进', value: 8 }
], ],
list: [ list: [
{ {
...@@ -177,9 +179,8 @@ export default { ...@@ -177,9 +179,8 @@ export default {
}, },
click (e) { click (e) {
let { status, id, taskType } = e let { status, id, taskType } = e
if (status == 2 && taskType != 6) return if (status == 2 && (taskType != 6 || taskType != 8)) return
if (taskType == 6 || taskType == 8) {
if (taskType == 6) {
this.jump(e) this.jump(e)
} else { } else {
wwbenchApi.updateTasks({ id }).then(res => { wwbenchApi.updateTasks({ id }).then(res => {
...@@ -204,11 +205,13 @@ export default { ...@@ -204,11 +205,13 @@ export default {
1: 'customerDetails', 1: 'customerDetails',
2: 'customerGroup/mass', 2: 'customerGroup/mass',
5: 'customer/information', 5: 'customer/information',
6: 'home' 6: 'home',
8: 'clew/detail'
}[taskType] }[taskType]
let { path } = subsystemInfo[{ let { path } = subsystemInfo[{
5: 'customer', 5: 'customer',
6: 'sop' 6: 'sop',
8: 'clew'
}[taskType]] }[taskType]]
if (link) { if (link) {
if (!['prod', 'production'].includes(process.env.NODE_ENV)) path = '/dj-scrm-wx-work-main-lwk/#/' if (!['prod', 'production'].includes(process.env.NODE_ENV)) path = '/dj-scrm-wx-work-main-lwk/#/'
......
...@@ -12,7 +12,7 @@ import routes from './routes' ...@@ -12,7 +12,7 @@ import routes from './routes'
import store from '@/store' import store from '@/store'
// hack router push callback // hack router push callback
const originalPush = Router.prototype.push const originalPush = Router.prototype.push
Router.prototype.push = function push(location, onResolve, onReject) { Router.prototype.push = function push (location, onResolve, onReject) {
if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject) if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject)
return originalPush.call(this, location).catch(err => err) return originalPush.call(this, location).catch(err => err)
} }
...@@ -21,11 +21,11 @@ Vue.use(Router) ...@@ -21,11 +21,11 @@ Vue.use(Router)
const router = createRouter() const router = createRouter()
function createRouter() { function createRouter () {
return new Router({ return new Router({
// mode: 'history', // 如果是 history模式 需要配置vue.config.js publicPath // mode: 'history', // 如果是 history模式 需要配置vue.config.js publicPath
base: process.env.BASE_URL, base: process.env.BASE_URL,
scrollBehavior: function(to, from, savedPosition) { scrollBehavior: function (to, from, savedPosition) {
return savedPosition || { x: 0, y: 0 } return savedPosition || { x: 0, y: 0 }
}, },
routes routes
...@@ -34,6 +34,9 @@ function createRouter() { ...@@ -34,6 +34,9 @@ function createRouter() {
// http://scrm.dev.glsx.com.cn/dj-scrm-wx-work-main/ // http://scrm.dev.glsx.com.cn/dj-scrm-wx-work-main/
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
if (to.name != 'common.accountList') store.commit('SET_LAST_PATH', to.name) if (to.name != 'common.accountList') store.commit('SET_LAST_PATH', to.name)
// if (to.fullPath.indexOf('code') !== -1 && from.fullPath === '/') {
// wx.closeWindow()
// }
/* 路由发生变化修改页面title */ /* 路由发生变化修改页面title */
store.dispatch('setPageMeta', to.meta) store.dispatch('setPageMeta', to.meta)
/* 路由发生变化修改页面背景色 */ /* 路由发生变化修改页面背景色 */
...@@ -44,9 +47,9 @@ router.beforeEach((to, from, next) => { ...@@ -44,9 +47,9 @@ router.beforeEach((to, from, next) => {
store.dispatch('navigation', to) store.dispatch('navigation', to)
} }
next() next()
}) })
// Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465 // Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
export function resetRouter() { export function resetRouter () {
const newRouter = createRouter() const newRouter = createRouter()
router.matcher = newRouter.matcher // reset router router.matcher = newRouter.matcher // reset router
} }
......
...@@ -33,13 +33,6 @@ ...@@ -33,13 +33,6 @@
<van-empty description="暂无内容" /> <van-empty description="暂无内容" />
</template> </template>
</template> </template>
<!-- <div class="title">统计分析</div>
<div class="box">
<div class="item">
<div class="sprite-icon icon-9"></div>
门店报表
</div>
</div> -->
</div> </div>
</template> </template>
...@@ -121,7 +114,9 @@ export default { ...@@ -121,7 +114,9 @@ export default {
.item { .item {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center;
flex-direction: column; flex-direction: column;
height: 84px;
.icon { .icon {
width: 40px; width: 40px;
height: 40px; height: 40px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!