Commit 4c8aeff5 by 前端

Merge branch 'yangm_dev_v2.4.0' into 'v2.4.0'

Yangm dev v2.4.0

See merge request !109
2 parents a10f8660 c30a8de1
...@@ -130,6 +130,16 @@ const queryCrowdGroupDetailsByCrowdGroupId = params => { ...@@ -130,6 +130,16 @@ const queryCrowdGroupDetailsByCrowdGroupId = params => {
returnAll: true returnAll: true
}) })
} }
//活动配置列表
const activityPage = params => {
params.method = 'marketing.api.activity.config.page'
return http3({
url: '/rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
getCrowdList, getCrowdList,
getCrowdDetails, getCrowdDetails,
...@@ -141,5 +151,6 @@ export default { ...@@ -141,5 +151,6 @@ export default {
addCrowdGroup, addCrowdGroup,
editCrowdGroup, editCrowdGroup,
deleteCrowdGroup, deleteCrowdGroup,
queryCrowdGroupDetailsByCrowdGroupId queryCrowdGroupDetailsByCrowdGroupId,
activityPage
} }
...@@ -30,18 +30,17 @@ Vue.prototype.$apis = apis ...@@ -30,18 +30,17 @@ Vue.prototype.$apis = apis
Vue.use(glsxTable) Vue.use(glsxTable)
Vue.prototype.$message = message Vue.prototype.$message = message
Vue.prototype.size = 'small' Vue.prototype.size = 'small'
// Vue.prototype.btn_size = 'mini' // Vue.prototype.btn_size = 'mini'
Vue.prototype.$Constants = Constants Vue.prototype.$Constants = Constants
Vue.prototype.$Utils = Util Vue.prototype.$Utils = Util
Vue.prototype.$Commons = common Vue.prototype.$Commons = common
Vue.prototype.$echarts = echarts Vue.prototype.$echarts = echarts
//过滤器统一处理预加载 //过滤器统一处理预加载
Object.keys(filters).forEach(key => { Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key]) Vue.filter(key, filters[key])
}) })
export { bootstrap, mount, unmount } export { bootstrap, mount, unmount } from '@/setup'
from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
export const http2 = params => Vue.prototype.$http2(params) export const http2 = params => Vue.prototype.$http2(params)
export const http3 = params => Vue.prototype.$http3(params) export const http3 = params => Vue.prototype.$http3(params)
export const http_common = params => Vue.prototype.$http_common(params)
\ No newline at end of file \ No newline at end of file
export const http_common = params => Vue.prototype.$http_common(params)
...@@ -67,6 +67,14 @@ ...@@ -67,6 +67,14 @@
transform: translateX(-50%); transform: translateX(-50%);
margin-bottom: 12px; margin-bottom: 12px;
} }
.el-icon-error {
display: block !important;
font-size: 33px !important;
position: relative;
left: 50%;
transform: translateX(-50%);
margin-bottom: 12px;
}
.el-tooltip__popper.is-dark { .el-tooltip__popper.is-dark {
background: #666666 !important; background: #666666 !important;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06) !important; box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06) !important;
......
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
}, },
methods: { methods: {
async getCrowdList() { async getCrowdList() {
const commonParam = { pageSize: 1000, pageNum: 1, merchantId: this.$globalState.session.merchantId } const commonParam = { pageSize: 100, pageNum: 1, merchantId: this.$globalState.session.merchantId }
const params1 = { const params1 = {
req: { req: {
crowdType: 1, crowdType: 1,
...@@ -132,7 +132,7 @@ export default { ...@@ -132,7 +132,7 @@ export default {
selectGroup:右边树的选中数据 selectGroup:右边树的选中数据
*/ */
this.crowdUnitList = [ this.crowdUnitList = [
{ crowdName: '推荐人群', children: crowdUnitList[0].data.crowdUnitList, groupArr: [], groupArr_right: [], checked: false, checked_right: false, isIndeterminateGroup: false, isIndeterminateGroup_right: false, gruopCheckAll: false, gruopCheckAll_right: false, selectGroup: [] }, { crowdName: '推荐人群', children: crowdUnitList[0].data.crowdUnitList, groupArr: [], groupArr_right: [], checked: true, checked_right: true, isIndeterminateGroup: false, isIndeterminateGroup_right: false, gruopCheckAll: false, gruopCheckAll_right: false, selectGroup: [] },
{ crowdName: '自定义人群', children: crowdUnitList[1].data.crowdUnitList, groupArr: [], groupArr_right: [], checked: false, checked_right: false, isIndeterminateGroup: false, isIndeterminateGroup_right: false, gruopCheckAll: false, gruopCheckAll_right: false, selectGroup: [] } { crowdName: '自定义人群', children: crowdUnitList[1].data.crowdUnitList, groupArr: [], groupArr_right: [], checked: false, checked_right: false, isIndeterminateGroup: false, isIndeterminateGroup_right: false, gruopCheckAll: false, gruopCheckAll_right: false, selectGroup: [] }
] ]
this.crowdUnitListReset = this.$common.utils.deepClone(this.crowdUnitList) this.crowdUnitListReset = this.$common.utils.deepClone(this.crowdUnitList)
...@@ -197,6 +197,9 @@ export default { ...@@ -197,6 +197,9 @@ export default {
crowdIdList crowdIdList
} }
} }
if (this.ruleForm.isDisplay == 2) {
delete this.ruleForm.displayLoc
}
Object.assign(params.req, this.ruleForm) Object.assign(params.req, this.ruleForm)
let crowdGroup let crowdGroup
if (this.ruleForm.crowdGroupId) { if (this.ruleForm.crowdGroupId) {
...@@ -205,9 +208,13 @@ export default { ...@@ -205,9 +208,13 @@ export default {
crowdGroup = 'addCrowdGroup' crowdGroup = 'addCrowdGroup'
} }
this.$apis.crowdManage[crowdGroup](params).then(res => { this.$apis.crowdManage[crowdGroup](params).then(res => {
if (res) { console.log(res)
if (res.data.code == 0) {
this.groupVisible = false this.groupVisible = false
this.$message.success('操作成功')
this.$parent.searchTable() this.$parent.searchTable()
} else {
this.$message.error(res.data.message)
} }
}) })
} }
......
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
crowdId: this.crowdGroupId, crowdId: this.crowdGroupId,
selectTab: 'second' selectTab: 'second'
}) })
this.$history.push(`/marketing/sop/sopAnalysisList?fromPage=${encodeURI(`/npmph/clientDataOverview/marketingPeople?crowQuery=${query}`)}&id=${id}`) this.$history.push(`/marketing/sop/sopAnalysisList?fromPage=${encodeURI(`/custom/clientDataOverview/marketingPeople?crowQuery=${query}`)}&id=${id}`)
}, },
// 跳转到编辑营销SOP // 跳转到编辑营销SOP
handleEdit(row) { handleEdit(row) {
...@@ -166,7 +166,7 @@ export default { ...@@ -166,7 +166,7 @@ export default {
crowdId: this.crowdGroupId, crowdId: this.crowdGroupId,
selectTab: 'second' selectTab: 'second'
}) })
this.$history.push(`/marketing/sop/editSop?fromPage=${encodeURI(`/npmph/clientDataOverview/marketingPeople?crowQuery=${query}`)}&addOrEdit=edit&id=${row.id}&$title=编辑SOP`) this.$history.push(`/marketing/sop/editSop?fromPage=${encodeURI(`/custom/clientDataOverview/marketingPeople?crowQuery=${query}`)}&addOrEdit=edit&id=${row.id}&$title=编辑SOP`)
}, },
setTableFinishFun() { setTableFinishFun() {
this.$refs.marketingPlan.data.length ? (this.$refs.marketingPlan.tableHeightValues = '') : this.$refs.marketingPlan.setTableHeightFun() this.$refs.marketingPlan.data.length ? (this.$refs.marketingPlan.tableHeightValues = '') : this.$refs.marketingPlan.setTableHeightFun()
......
...@@ -28,9 +28,9 @@ ...@@ -28,9 +28,9 @@
<el-button type="text" @click="handleAdd(scope.scope)" class="blue-text"> <el-button type="text" @click="handleAdd(scope.scope)" class="blue-text">
编辑 编辑
</el-button> </el-button>
<!-- <el-button type="text" @click="handleDelete(scope.scope)" class="blue-text"> <el-button type="text" @click="handleDelete(scope.scope)" class="blue-text">
删除 删除
</el-button> --> </el-button>
<!-- <GLButton @click="goDetail(scope.scope.id, scope.scope.custGroupName)" fn="客户群详情" type="text">详情</GLButton> --> <!-- <GLButton @click="goDetail(scope.scope.id, scope.scope.custGroupName)" fn="客户群详情" type="text">详情</GLButton> -->
</template> </template>
</GLTable> </GLTable>
...@@ -119,14 +119,20 @@ export default { ...@@ -119,14 +119,20 @@ export default {
label: '未加企微数', label: '未加企微数',
prop: 'notWechatTotal' prop: 'notWechatTotal'
}, },
// { {
// label: '概览是否展示', label: '概览是否展示',
// prop: 'delCustomerCount' prop: 'isDisplay',
// }, formatter: cellValue => {
// { return cellValue.isDisplay == 1 ? '展示' : '不展示'
// label: '展示位', }
// prop: 'staffs' },
// }, {
label: '展示位',
prop: 'displayLoc',
formatter: cellValue => {
return cellValue.displayLoc ? cellValue.displayLoc + '号展示位' : '--'
}
},
{ {
label: '操作', label: '操作',
width: 180, width: 180,
...@@ -167,23 +173,37 @@ export default { ...@@ -167,23 +173,37 @@ export default {
cancelButtonText: '否', cancelButtonText: '否',
type: 'warning' type: 'warning'
}) })
.then(() => { .then(async () => {
this.$apis.crowdManage const activityPage = await this.$apis.crowdManage.activityPage({ pageSize: 1, pageNum: 1, custGroupId: scope.crowdGroupId })
.deleteCrowdGroup({ if (activityPage.data.length) {
'req.crowdGroupId': scope.crowdGroupId this.againConfirm()
}) } else {
.then(res => { this.$apis.crowdManage
if (res) { .deleteCrowdGroup({
this.$message({ 'req.crowdGroupId': scope.crowdGroupId
type: 'success', })
message: '删除成功!' .then(res => {
}) if (res) {
} this.$message({
this.searchTable() type: 'success',
}) message: '删除成功!'
})
}
this.searchTable()
})
}
}) })
.catch(() => {}) .catch(() => {})
}, },
againConfirm() {
this.$confirm('此分群已被招揽活动任务调用,不支持删除', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'error'
})
.then(() => {})
.catch(() => {})
},
setTableHeightEvent() { setTableHeightEvent() {
this.$refs.clientGroupManage.setTableHeightFun() this.$refs.clientGroupManage.setTableHeightFun()
}, },
......
...@@ -249,16 +249,16 @@ export default { ...@@ -249,16 +249,16 @@ export default {
prop: 'audi', prop: 'audi',
width: 170 width: 170
}, },
{ // {
label: '车险开始时间', // label: '车险开始时间',
prop: 'isStartDate', // prop: 'isStartDate',
width: 170 // width: 170
}, // },
{ // {
label: '车险到期时间', // label: '车险到期时间',
prop: 'insEndDate', // prop: 'insEndDate',
width: 170 // width: 170
}, // },
{ {
label: '跟进员工', label: '跟进员工',
prop: 'followStaff', prop: 'followStaff',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!