Commit e02dd920 by xuyl

v2.7.0需求开发以及七月份UI改版

1 parent 1416b0c1
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
"echarts": "^5.2.0", "echarts": "^5.2.0",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.4.2", "glsx-components": "^1.4.4",
"glsx-table": "^1.1.0", "glsx-table": "^1.1.0",
"jquery": "^3.6.0", "jquery": "^3.6.0",
"sha1": "^1.1.1", "sha1": "^1.1.1",
......
...@@ -2,53 +2,54 @@ import Vue from 'vue' ...@@ -2,53 +2,54 @@ import Vue from 'vue'
import { message } from '@/plugins/element.js' import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config' import { fetchConfig } from '@/config'
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
import { GLButton, GLTable, GLCombiForm } from 'glsx-components' //权限按钮 (根据权限动态创建) import { GLButton, GLTable, GLCombiForm, GLDialog } from 'glsx-components' //权限按钮 (根据权限动态创建)
import GLFull from '@/components/GLFull' import GLFull from '@/components/GLFull'
import { getRoutes } from '@/router' import { getRoutes } from '@/router'
import render from './render' import render from './render'
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
Vue.use(GLCombiForm) Vue.use(GLCombiForm)
Vue.use(GLDialog)
Vue.component('GLFull', GLFull) Vue.component('GLFull', GLFull)
import 'glsx-components/dist/glsx-components.css' import 'glsx-components/dist/glsx-components.css'
let routes = [] let routes = []
let router = null let router = null
let instance = null let instance = null
// http:调的是新版标签的接口,http2:调的是客户相关接口;http3:企微授权那边的接口 目前导出接口都测试的:http3 // http:调的是新版标签的接口,http2:调的是客户相关接口;http3:企微授权那边的接口 目前导出接口都测试的:http3
export async function bootstrap({ name, id, history, common, messenger, globalState, routerBase }) { export async function bootstrap({ name, id, history, common, messenger, globalState, routerBase }) {
const { response, request, request2, request3, request4, sign, secret, sign_common, request_common } = await fetchConfig(globalState.configSwitch) //globalState.configSwitch const { response, request, request2, request3, request4, sign, secret, sign_common, request_common } = await fetchConfig(globalState.configSwitch) //globalState.configSwitch
Vue.prototype.$history = history Vue.prototype.$history = history
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: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http3 = new common.Http({ response, request: request3, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http3 = new common.Http({ response, request: request3, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$http4 = new common.Http({ response, request: request4, sign, secret, alert: message.error, headers: { token: 'scrm-base-e2d4f962-4ca3-4044-83e7-01ba314d8e3d-rop' } }) // Vue.prototype.$http4 = new common.Http({ response, request: request4, sign, secret, alert: message.error, headers: { token: 'scrm-base-e2d4f962-4ca3-4044-83e7-01ba314d8e3d-rop' } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: "mini-14eda653-4284-4165-bb85-325bb82a516d-rop" } }) // Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: "mini-14eda653-4284-4165-bb85-325bb82a516d-rop" } })
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.prototype.$setGlobalState = globalState.actions.setGlobalState
//Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] }) //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) const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData) routes = getRoutes(routesData)
// { name, id, } // { name, id, }
subscribe({ messenger }) subscribe({ messenger })
Vue.use(GLButton, { routes, routerBase }) Vue.use(GLButton, { routes, routerBase })
} }
export async function mount(props) { export async function mount(props) {
const insts = render(props.routerBase, routes) const insts = render(props.routerBase, routes)
router = insts.router router = insts.router
instance = insts.vm instance = insts.vm
} }
export async function unmount() { export async function unmount() {
instance.$destroy() instance.$destroy()
instance.$el.innerHTML = '' instance.$el.innerHTML = ''
instance = null instance = null
router = null router = null
} }
function subscribe({ messenger }) { function subscribe({ messenger }) {
messenger.subscribe(v => { messenger.subscribe(v => {
console.log(`监听到子应用${v.from}发来消息:`, v) console.log(`监听到子应用${v.from}发来消息:`, v)
}) })
} }
\ No newline at end of file \ No newline at end of file
.el-select { .el-select {
width: 100%; width: 100%;
} }
.el-pagination { .el-pagination {
display: flex; display: flex;
margin-top: 18px; margin-top: 18px;
} }
.el-message-box__btns .el-button--small { .el-message-box__btns .el-button--small {
min-width: 68px; min-width: 68px;
}
.glsx-table .el-pagination.is-background .el-pager li:not(.disabled).active {
background-color: $btnBlue;
color: #fff;
} }
.el-dialog__header .el-dialog__title { .glsx-table .el-pagination.is-background .el-pager li:not(.disabled).active {
height: 28px; background-color: $btnBlue;
font-size: 20px; color: #fff;
font-weight: bold;
color: #333333;
line-height: 28px;
} }
/deep/ .el-input__inner:focus { /deep/ .el-input__inner:focus {
border-color: $btnBlue !important; border-color: $btnBlue !important;
} }
/deep/.el-range-editor.is-active, /deep/.el-range-editor.is-active,
.el-range-editor.is-active:hover { .el-range-editor.is-active:hover {
border-color: $btnBlue; border-color: $btnBlue;
} }
.el-message-box { .el-message-box {
width: 547px; width: 547px;
height: 310px; height: 310px;
box-sizing: border-box; box-sizing: border-box;
padding-bottom: 10px; padding-bottom: 10px;
} }
.el-message-box__title { .el-message-box__title {
padding-left: 0; padding-left: 0;
margin-bottom: 0; margin-bottom: 0;
font-size: 20px; font-size: 20px;
line-height: 1; line-height: 1;
color: #333; color: #333;
} }
.el-message-box__title { .el-message-box__title {
display: block !important; display: block !important;
} }
.el-message-box__headerbtn { .el-message-box__headerbtn {
display: block !important; display: block !important;
color: #666666; color: #666666;
} }
.el-message-box__header { .el-message-box__header {
position: relative; position: relative;
padding: 15px 20px; padding: 15px 20px;
border-bottom: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6;
} }
.el-message-box__content { .el-message-box__content {
text-align: center; text-align: center;
padding: 60px 0; padding: 60px 0;
} }
.el-icon-warning { .el-icon-warning {
display: block !important; display: block !important;
font-size: 33px !important; font-size: 33px !important;
color: #5850ff !important; color: #5850ff !important;
position: relative; position: relative;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
margin-bottom: 12px; margin-bottom: 12px;
} }
.el-message-box__status.el-icon-error { .el-message-box__status.el-icon-error {
display: block !important; display: block !important;
font-size: 33px !important; font-size: 33px !important;
position: relative; position: relative;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
margin-bottom: 12px; 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;
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
line-height: 18px; line-height: 18px;
} }
.el-tooltip__popper[x-placement^="top"] .popper__arrow { .el-tooltip__popper[x-placement^="top"] .popper__arrow {
border-top-color: #666666 !important; border-top-color: #666666 !important;
} }
.el-tooltip__popper[x-placement^="top"] .popper__arrow:after { .el-tooltip__popper[x-placement^="top"] .popper__arrow:after {
border-top-color: #666666 !important; border-top-color: #666666 !important;
} }
\ No newline at end of file \ No newline at end of file
...@@ -10,9 +10,6 @@ ...@@ -10,9 +10,6 @@
<el-button v-if="scope.scope.sopStatus == 1" type="text" @click="handleDelete(scope.scope)">删除</el-button> <el-button v-if="scope.scope.sopStatus == 1" type="text" @click="handleDelete(scope.scope)">删除</el-button>
</template> </template>
</GLTable> </GLTable>
<GLFooter class="gl-footer">
<el-button type="primary" @click="goback()">返回</el-button>
</GLFooter>
</div> </div>
</div> </div>
</template> </template>
...@@ -128,15 +125,6 @@ export default { ...@@ -128,15 +125,6 @@ export default {
//没数据的时候要算高度 //没数据的时候要算高度
}, },
methods: { methods: {
// 返回
goback() {
const { flag } = this.$route.query.crowQuery ? JSON.parse(this.$route.query.crowQuery) : this.$route.query
if (flag) {
this.$router.push('/clientDataOverview/index')
} else {
this.$router.push('/clientDataOverview/grouping')
}
},
// 结束 // 结束
handleEnd(row) { handleEnd(row) {
this.secondConfirm('结束', '结束SOP后,将不再进行营销任务自动推送,且不可恢复。是否确定结束?', 'clientDataOverview', 'endSopEventApi', { sopId: row.id }) this.secondConfirm('结束', '结束SOP后,将不再进行营销任务自动推送,且不可恢复。是否确定结束?', 'clientDataOverview', 'endSopEventApi', { sopId: row.id })
...@@ -149,6 +137,7 @@ export default { ...@@ -149,6 +137,7 @@ export default {
this.$confirm(txt, title, { this.$confirm(txt, title, {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning', type: 'warning',
callback: action => { callback: action => {
if (action == 'confirm') { if (action == 'confirm') {
......
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
</div> </div>
</div> </div>
<add-or-edit ref="addOrEditForm"></add-or-edit> <add-or-edit ref="addOrEditForm"></add-or-edit>
<GLFooter class="GLFooter">
<el-button type="primary" @click="goback">
返回
</el-button>
</GLFooter>
</div> </div>
</template> </template>
...@@ -176,14 +171,12 @@ export default { ...@@ -176,14 +171,12 @@ export default {
handleAdd(row) { handleAdd(row) {
this.$refs.addOrEditForm.init(row) this.$refs.addOrEditForm.init(row)
}, },
goback() {
this.$router.push(`/clientDataOverview/index`)
},
//删除 //删除
handleDelete(scope) { handleDelete(scope) {
this.$confirm('是否确认将此分群删除?', '删除', { this.$confirm('是否确认将此分群删除?', '删除', {
confirmButtonText: '是', confirmButtonText: '是',
cancelButtonText: '否', cancelButtonText: '否',
customClass: 'gl-message-box',
type: 'warning' type: 'warning'
}) })
.then(async () => { .then(async () => {
...@@ -294,7 +287,7 @@ export default { ...@@ -294,7 +287,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/styles/variables.scss'; @import '@/styles/variables.scss';
@import '@/styles/resetelement.scss'; @import '@/styles/resetelement.scss';
.GLFooter{ .GLFooter {
z-index: 100; z-index: 100;
} }
.header-button { .header-button {
......
...@@ -92,9 +92,6 @@ ...@@ -92,9 +92,6 @@
</div> </div>
</GLTable> </GLTable>
</div> </div>
<GLFooter class="gl-footer">
<el-button type="primary" @click="goback()">返回</el-button>
</GLFooter>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="营销计划" name="second"> <el-tab-pane label="营销计划" name="second">
<template v-if="activeName == 'second'"><marketing-plan :crowdGroupId="crowdGroupId"></marketing-plan></template> <template v-if="activeName == 'second'"><marketing-plan :crowdGroupId="crowdGroupId"></marketing-plan></template>
...@@ -347,13 +344,6 @@ export default { ...@@ -347,13 +344,6 @@ export default {
this.marketPeopleFormList[id].optionList = staff this.marketPeopleFormList[id].optionList = staff
}) })
}, },
goback() {
if (this.$route.query && this.$route.query.flag) {
this.$router.push('/clientDataOverview/index')
} else {
this.$router.push('/clientDataOverview/grouping')
}
},
// 导出 // 导出
handleExport() { handleExport() {
var params = { var params = {
......
...@@ -82,11 +82,18 @@ ...@@ -82,11 +82,18 @@
<!-- 1-是,2-否 --> <!-- 1-是,2-否 -->
<span>{{ leftPanelInfo.isJoin == 1 ? '是' : leftPanelInfo.isJoin == 0 ? '否' : '' }}</span> <span>{{ leftPanelInfo.isJoin == 1 ? '是' : leftPanelInfo.isJoin == 0 ? '否' : '' }}</span>
</p> </p>
<p v-if="isCgacar"> <template v-if="isCgacar">
<span>关注公众号:</span> <p>
<!-- 1-是,2-否 --> <span>关注公众号:</span>
<span>{{ leftPanelInfo.subscribeName }}</span> <!-- 1-是,2-否 -->
</p> <span>{{ leftPanelInfo.subscribeName }}</span>
</p>
<p>
<span>关注小程序:</span>
<!-- 1-是,2-否 -->
<span>{{ leftPanelInfo.subscribeName }}</span>
</p>
</template>
<p> <p>
<span>当前状态:</span> <span>当前状态:</span>
...@@ -230,11 +237,11 @@ ...@@ -230,11 +237,11 @@
</div> </div>
</div> </div>
</div> </div>
<div class="footer-panel"> <!-- <div class="footer-panel">
<div> <div>
<el-button type="primary" @click="goBack">返回</el-button> <el-button type="primary" @click="goBack">返回</el-button>
</div> </div>
</div> </div> -->
<basic-dialog class="phone-fill-box" :width="'720px'" title="添加联系电话" :isVisible="phoneVisible" @confirmDialog="phoneConfirmDialog" @closeDialog="phoneVisible = false" :isShowCloseBtn="true"> <basic-dialog class="phone-fill-box" :width="'720px'" title="添加联系电话" :isVisible="phoneVisible" @confirmDialog="phoneConfirmDialog" @closeDialog="phoneVisible = false" :isShowCloseBtn="true">
<div class="dialog-form"> <div class="dialog-form">
<label>联系电话:</label> <label>联系电话:</label>
...@@ -737,9 +744,9 @@ export default { ...@@ -737,9 +744,9 @@ export default {
goNewTag() { goNewTag() {
this.$router.push({ path: '/tagsManage/index' }) this.$router.push({ path: '/tagsManage/index' })
}, },
goBack() { // goBack() {
this.$router.go(-1) // this.$router.go(-1)
}, // },
//点击添加按钮 //点击添加按钮
btnClick(pType, scope) { btnClick(pType, scope) {
......
...@@ -349,35 +349,70 @@ export default { ...@@ -349,35 +349,70 @@ export default {
} }
if (location.host.includes('cgacar')) { if (location.host.includes('cgacar')) {
// cgacar // cgacar
this.clientManageFormList.push({ this.clientManageFormList.push(
type: 'select', {
name: 'subscribe', type: 'select',
label: '关注公众号', name: 'subscribe',
placeholder: '请选择', label: '关注公众号',
optionLabel: 'label', placeholder: '请选择',
optionId: 'value', optionLabel: 'label',
optionList: [ optionId: 'value',
{ optionList: [
label: '全部', {
value: null label: '全部',
}, value: null
{ },
label: '是', {
value: 1 label: '是',
}, value: 1
{ },
label: '否', {
value: 0 label: '否',
} value: 0
] }
}) ]
this.tableParams.tableColumns.splice(6, 0, { },
label: '关注公众号', {
prop: 'subscribe', type: 'select',
width: 140, name: 'subscribe',
line: 1, label: '关注小程序',
addHtml: 'subscribe' placeholder: '请选择',
}) optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: '全部',
value: null
},
{
label: '是',
value: 1
},
{
label: '否',
value: 0
}
]
}
)
this.tableParams.tableColumns.splice(
6,
0,
{
label: '关注公众号',
prop: 'subscribe',
width: 140,
line: 1,
addHtml: 'subscribe'
},
{
label: '关注小程序',
prop: 'subscribe',
width: 140,
line: 1,
addHtml: 'subscribe'
}
)
} }
this.getDictionaryFun() this.getDictionaryFun()
this.getStaffList() this.getStaffList()
......
...@@ -393,6 +393,7 @@ export default { ...@@ -393,6 +393,7 @@ export default {
this.$confirm('暂未选中标签,无法生成人群规则逻辑,快去选标签吧?', '提示', { this.$confirm('暂未选中标签,无法生成人群规则逻辑,快去选标签吧?', '提示', {
confirmButtonText: '我知道了', confirmButtonText: '我知道了',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'gl-message-box',
showCancelButton: false, showCancelButton: false,
type: 'warning' type: 'warning'
}) })
......
...@@ -44,12 +44,7 @@ ...@@ -44,12 +44,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="footer-panel"> <GLDialog title="人群规则说明" :visible.sync="dialogRuleVisible" :hasFooter="false">
<div>
<el-button type="primary" @click="goBack">返回</el-button>
</div>
</div>
<el-dialog title="人群规则说明" class="crowd-dialog" width="720px" :before-close="handleClose" :visible.sync="dialogRuleVisible" :show-close="isShowCloseBtn">
<div class="crowd-dialog-wrap color-3"> <div class="crowd-dialog-wrap color-3">
<div class="condition font-14"> <div class="condition font-14">
<b>说明:</b> <b>说明:</b>
...@@ -71,8 +66,8 @@ ...@@ -71,8 +66,8 @@
</div> </div>
</div> </div>
</div> </div>
</el-dialog> </GLDialog>
<el-dialog title="人群规则逻辑" class="crowd-logic-dialog" width="720px" :before-close="handleClose" :visible.sync="dialogLogicVisible" :show-close="isShowCloseBtn"> <GLDialog title="人群规则逻辑" class="crowd-logic-dialog" :visible.sync="dialogLogicVisible" :hasFooter="false">
<div class="crowd-logic-dialog-wrap"> <div class="crowd-logic-dialog-wrap">
<div :class="{ 'crowd-flex': true }" v-if="this.selectedArray.length > 1"> <div :class="{ 'crowd-flex': true }" v-if="this.selectedArray.length > 1">
<div class="crowd-line" id="lineHeight"></div> <div class="crowd-line" id="lineHeight"></div>
...@@ -93,7 +88,7 @@ ...@@ -93,7 +88,7 @@
</div> </div>
</div> </div>
</div> </div>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -275,24 +270,6 @@ export default { ...@@ -275,24 +270,6 @@ export default {
} }
} }
} }
.footer-panel {
position: fixed;
bottom: 0px;
height: 78px;
left: 220px;
width: 100%;
background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
z-index: 999;
div {
display: inline-block;
position: relative;
transform: translate(-50%, -50%);
left: 50%;
top: 50%;
margin-left: -110px;
}
}
.crowd-dialog { .crowd-dialog {
/deep/.el-dialog__header { /deep/.el-dialog__header {
padding: 15px 20px; padding: 15px 20px;
......
...@@ -325,6 +325,7 @@ export default { ...@@ -325,6 +325,7 @@ export default {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', { this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning' type: 'warning'
}) })
.then(() => { .then(() => {
......
...@@ -265,6 +265,7 @@ export default { ...@@ -265,6 +265,7 @@ export default {
this.$confirm(`是否确认${rowData.status == 1 ? '停用' : '启用'}?`, '提示', { this.$confirm(`是否确认${rowData.status == 1 ? '停用' : '启用'}?`, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning' type: 'warning'
}) })
.then(() => { .then(() => {
...@@ -409,7 +410,7 @@ export default { ...@@ -409,7 +410,7 @@ export default {
} }
.toptip { .toptip {
margin-bottom: 10px; margin-bottom: 10px;
&:nth-last-of-type(-n+4) { &:nth-last-of-type(-n + 4) {
margin-bottom: 0; margin-bottom: 0;
} }
} }
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</div> </div>
</div> </div>
<!-- 功能介绍 --> <!-- 功能介绍 -->
<el-dialog title="功能介绍" :visible.sync="showFuncIntro" width="55%" :before-close="handleClose"> <GLDialog title="功能介绍" mode="big" :visible.sync="showFuncIntro" :hasFooter="true">
<div class="dialogEncircle "> <div class="dialogEncircle ">
<span class="funcText">线索管理模块可查看客户在小程序端留存的售前售后线索,通过配置跟进员工,使线索展示在员工企微任务栏并推送消息提醒,员工跟进线索并输入跟进记录后完成线索跟进</span> <span class="funcText">线索管理模块可查看客户在小程序端留存的售前售后线索,通过配置跟进员工,使线索展示在员工企微任务栏并推送消息提醒,员工跟进线索并输入跟进记录后完成线索跟进</span>
<div class="funcIro"> <div class="funcIro">
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" size="small" @click="showFuncIntro = false">关闭</el-button> <el-button type="primary" size="small" @click="showFuncIntro = false">关闭</el-button>
</span> </span>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
......
...@@ -34,9 +34,6 @@ ...@@ -34,9 +34,6 @@
</div> </div>
</div> </div>
</div> </div>
<GLFooter class="gl-footer">
<el-button @click="goback()" type="primary" size="small">返回</el-button>
</GLFooter>
</div> </div>
</template> </template>
<script> <script>
...@@ -146,9 +143,6 @@ export default { ...@@ -146,9 +143,6 @@ export default {
this.copySameDescri = JSON.parse(JSON.stringify(this.theSameDescri)) this.copySameDescri = JSON.parse(JSON.stringify(this.theSameDescri))
this.copySameDescri.splice(3, 0, addcolList) this.copySameDescri.splice(3, 0, addcolList)
}, },
goback() {
this.$router.push('/leadManage/index')
},
getBaseDetail() { getBaseDetail() {
let params = { id: this.leadId } let params = { id: this.leadId }
getBaseInfo(params).then(res => { getBaseInfo(params).then(res => {
......
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
</div> </div>
</div> </div>
</div> </div>
<el-dialog title="人群规则说明" class="crowd-dialog" width="720px" :before-close="handleRuleClose" :visible.sync="dialogRuleVisible" :show-close="isShowCloseBtn"> <!-- <el-dialog title="人群规则说明" class="crowd-dialog" width="720px" :before-close="handleRuleClose" :visible.sync="dialogRuleVisible" :show-close="isShowCloseBtn">
<div class="crowd-dialog-wrap color-3"> <div class="crowd-dialog-wrap color-3">
<div class="condition font-14"> <div class="condition font-14">
<b>说明:</b> <b>说明:</b>
...@@ -155,7 +155,30 @@ ...@@ -155,7 +155,30 @@
</div> </div>
</div> </div>
</div> </div>
</el-dialog> </el-dialog> -->
<GLDialog title="人群规则说明" :visible.sync="dialogRuleVisible" :hasFooter="false">
<div class="crowd-dialog-wrap color-3">
<div class="condition font-14">
<b>说明:</b>
<br />
<span>
标签组内已选标签取
<b>并集(或)</b>
,即满足一个条件即可、标签组之间取
<b>交集(且)</b>
,即同时满足标签组条件。
</span>
</div>
<div class="flex-between">
<div class="static-image">
<img src="@/assets/crowdManage/sum.png" alt="" />
</div>
<div class="static-image">
<img src="@/assets/crowdManage/intersection.png" alt="" />
</div>
</div>
</div>
</GLDialog>
<basic-dialog class="role" :title="tagDialogTitle" width="712px" :isVisible="tagVisible" @confirmDialog="handleConfirm" @closeDialog="handleClose"> <basic-dialog class="role" :title="tagDialogTitle" width="712px" :isVisible="tagVisible" @confirmDialog="handleConfirm" @closeDialog="handleClose">
<slot> <slot>
<div class="form-title"> <div class="form-title">
...@@ -232,7 +255,7 @@ ...@@ -232,7 +255,7 @@
</rule-form> </rule-form>
</slot> </slot>
</basic-dialog> </basic-dialog>
<basic-dialog class="group-box" title="保存为人群" :isVisible="groupVisible" @confirmDialog="groupConfirmDialog" @closeDialog="groupVisible = false"> <GLDialog title="保存为人群" :visible.sync="groupVisible" :hasFooter="true">
<div class="dialog-form"> <div class="dialog-form">
<div class="dialog-form-item"> <div class="dialog-form-item">
<label> <label>
...@@ -256,8 +279,12 @@ ...@@ -256,8 +279,12 @@
<span>{{ crowdForm.crowdDesc.length }}/100</span> <span>{{ crowdForm.crowdDesc.length }}/100</span>
</div> </div>
</div> </div>
</basic-dialog> <span slot="footer" class="dialog-footer">
<el-dialog title="提示" :visible.sync="successVisible" width="30%"> <el-button plain size="small" class="btn-three" @click="groupVisible = false">取消</el-button>
<el-button type="primary" size="small" @click="groupConfirmDialog">确定</el-button>
</span>
</GLDialog>
<GLDialog title="提示" :visible.sync="successVisible" :hasFooter="false">
<div class="success-panel"> <div class="success-panel">
<i class="el-icon-circle-check"></i> <i class="el-icon-circle-check"></i>
</div> </div>
...@@ -265,7 +292,7 @@ ...@@ -265,7 +292,7 @@
<div class="success-tips-h1">已保存为人群</div> <div class="success-tips-h1">已保存为人群</div>
<div class="success-tips-h2" @click="jumpGroup">立即前往“人群管理”></div> <div class="success-tips-h2" @click="jumpGroup">立即前往“人群管理”></div>
</div> </div>
</el-dialog> </GLDialog>
<div class="loading-containner" v-if="userLoading"> <div class="loading-containner" v-if="userLoading">
<div class="loading-box">客户列表加载中</div> <div class="loading-box">客户列表加载中</div>
</div> </div>
...@@ -303,7 +330,6 @@ export default { ...@@ -303,7 +330,6 @@ export default {
} }
} }
var checkTagsInput = (rule, value, callBack) => { var checkTagsInput = (rule, value, callBack) => {
console.log('value值为:', value, typeof value, value.length)
if (value && value.length == 0) { if (value && value.length == 0) {
return callBack(new Error('请添加标签')) return callBack(new Error('请添加标签'))
} else { } else {
...@@ -311,6 +337,8 @@ export default { ...@@ -311,6 +337,8 @@ export default {
} }
} }
return { return {
isShowCloseBtn: true,
dialogMode: 'mid',
successVisible: false, successVisible: false,
userLoading: false, userLoading: false,
dialogRuleVisible: false, dialogRuleVisible: false,
...@@ -534,7 +562,6 @@ export default { ...@@ -534,7 +562,6 @@ export default {
this.merchantModel = this.$globalState.session.merchantModel this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel this.accountLevel = this.$globalState.session.accountLevel
this.userType = this.$globalState.session.userType this.userType = this.$globalState.session.userType
console.log(this.$globalState.session, '555')
// if (this.merchantModel == 1) { // if (this.merchantModel == 1) {
// if (!(this.accountLevel == 1 && this.userType == 1)) this.tagsGroupList.splice(0, 1) //只能创建自店标签 // if (!(this.accountLevel == 1 && this.userType == 1)) this.tagsGroupList.splice(0, 1) //只能创建自店标签
// } // }
...@@ -587,7 +614,6 @@ export default { ...@@ -587,7 +614,6 @@ export default {
.replace(/groupName/g, 'labelGroupName') .replace(/groupName/g, 'labelGroupName')
.replace(/groupType/g, 'labelGroupType') .replace(/groupType/g, 'labelGroupType')
) )
console.log(getDatas)
var params = { var params = {
addOrEdit: 'add', addOrEdit: 'add',
fromPage: '/custom/tagsManage/index', fromPage: '/custom/tagsManage/index',
...@@ -598,14 +624,12 @@ export default { ...@@ -598,14 +624,12 @@ export default {
labelList: [...getDatas] labelList: [...getDatas]
} }
} }
console.log(params)
this.$common.utils.storage.set('sopInfo', params) this.$common.utils.storage.set('sopInfo', params)
this.$history.push({ this.$history.push({
path: 'marketing/sop/editSop' path: 'marketing/sop/editSop'
}) })
}, },
toViewCustomer(info) { toViewCustomer(info) {
console.log(info)
const id = info.labelGroup.id const id = info.labelGroup.id
const type = info.labelType const type = info.labelType
this.$router.push({ this.$router.push({
...@@ -613,9 +637,7 @@ export default { ...@@ -613,9 +637,7 @@ export default {
path: `/tagsManage/viewCustomers/${id}/${type}` path: `/tagsManage/viewCustomers/${id}/${type}`
}) })
}, },
watchInput() { watchInput() {},
console.log('点击标签组名称输入框')
},
showTagArray(list) { showTagArray(list) {
if (list.length == 0) { if (list.length == 0) {
return [] return []
...@@ -624,7 +646,6 @@ export default { ...@@ -624,7 +646,6 @@ export default {
return list.slice(0, 9) return list.slice(0, 9)
}, },
checkInputContent: function(e) { checkInputContent: function(e) {
console.log(e)
//确保每个输入框的内容不和已存在的编辑标签相同 //确保每个输入框的内容不和已存在的编辑标签相同
let isHasSameTag = this.editTagList.some(ele => ele.name == e) let isHasSameTag = this.editTagList.some(ele => ele.name == e)
if (isHasSameTag) { if (isHasSameTag) {
...@@ -654,7 +675,6 @@ export default { ...@@ -654,7 +675,6 @@ export default {
return true //门店版都显示编辑按钮 return true //门店版都显示编辑按钮
}, },
expandeClick() { expandeClick() {
// console.log('expandeClick')
this.expande = !this.expande this.expande = !this.expande
}, },
closeInitPanel() { closeInitPanel() {
...@@ -688,7 +708,6 @@ export default { ...@@ -688,7 +708,6 @@ export default {
this.getCustomersListData() this.getCustomersListData()
}, },
btnClick(pType, rowData) { btnClick(pType, rowData) {
console.log(pType, rowData, 'btnClick')
switch (pType) { switch (pType) {
case 'create': case 'create':
this.tagDialogTitle = '添加标签组' this.tagDialogTitle = '添加标签组'
...@@ -786,7 +805,6 @@ export default { ...@@ -786,7 +805,6 @@ export default {
return return
} }
} }
console.log('点击了几次')
this.updateTagFun() this.updateTagFun()
this.newAddTagFun() this.newAddTagFun()
// this.handleClose() // this.handleClose()
...@@ -867,10 +885,7 @@ export default { ...@@ -867,10 +885,7 @@ export default {
this.tagForm.initTagsGroup = 2 this.tagForm.initTagsGroup = 2
} }
this.tagForm.tagsName = '' this.tagForm.tagsName = ''
// console.log(this.tagForm.initTagsGroup, '7777')
// console.log(this.tagForm, '内')
} }
// console.log(this.tagForm, '外')
this.tagForm.tagsList = [] //取消时清空新增标签 this.tagForm.tagsList = [] //取消时清空新增标签
this.tagVisible = !this.tagVisible this.tagVisible = !this.tagVisible
}, },
...@@ -885,7 +900,6 @@ export default { ...@@ -885,7 +900,6 @@ export default {
params['labelDTO.labelType'] = this.tagForm.initTagsGroup == 1 ? (this.$globalState.session.merchantModel == 1 ? '集团标签' : '企业标签') : '自店标签' params['labelDTO.labelType'] = this.tagForm.initTagsGroup == 1 ? (this.$globalState.session.merchantModel == 1 ? '集团标签' : '企业标签') : '自店标签'
params['labelDTO.labelList'] = this.tagForm.tagsList params['labelDTO.labelList'] = this.tagForm.tagsList
params['labelDTO.isAddLabelGroupEnter'] = this.tagDialogTitle == '添加标签组' ? true : false params['labelDTO.isAddLabelGroupEnter'] = this.tagDialogTitle == '添加标签组' ? true : false
console.log(params)
newAddTag(params).then(res => { newAddTag(params).then(res => {
if (!res) { if (!res) {
return return
...@@ -980,9 +994,7 @@ export default { ...@@ -980,9 +994,7 @@ export default {
}) })
return this.$Utils.cutMaxCharStr(inputValue) return this.$Utils.cutMaxCharStr(inputValue)
}, },
handleSelect(value) { handleSelect(value) {}
console.log('值内容', value)
}
//注意问问他们后台怎么处理转义字符 //注意问问他们后台怎么处理转义字符
//限制输入特殊字符 //限制输入特殊字符
// keyUp(e) { // keyUp(e) {
...@@ -1110,9 +1122,9 @@ export default { ...@@ -1110,9 +1122,9 @@ export default {
b { b {
color: #666666; color: #666666;
} }
span { // span {
white-space: nowrap; // white-space: nowrap;
} // }
} }
.static-image { .static-image {
width: 335px; width: 335px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!