Commit e404c667 by 王志慧

Merge branch 'v3.12.0' of http://192.168.3.233:8090/saas/scrm-micro-custom into v3.12.0

2 parents 27923bf5 eda0ab59
......@@ -15,7 +15,7 @@
"echarts": "^5.2.0",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.4.7",
"glsx-components": "^1.5.2",
"glsx-table": "^1.1.0",
"jquery": "^3.6.0",
"sha1": "^1.1.1",
......
<template>
<div>
<el-form :model="ruleForm" :rules="rules" :label-position="labelPosition" :label-width="labelWidth" :size="size">
<div class="gl-form-page gl-form-min">
<el-form :model="ruleForm" :rules="rules" :label-position="labelPosition" :size="size">
<el-form-item v-for="(item, index) in ruleData" :key="index" :label="item.label" :prop="item.prop || ''" :class="item.class" v-show="!item.hidden">
<template slot-scope="scope">
<template v-if="item.type === 'input'">
......@@ -75,10 +75,10 @@ export default {
type: String,
default: 'small'
},
labelWidth: {
type: String,
default: '100px'
}
// labelWidth: {
// type: String,
// default: '100px'
// }
},
mounted() {},
methods: {
......
......@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) {
return Promise.resolve(cfg)
}
return new Http({ request: { timeout: 3000 } }).get('https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2')
return new Http({ request: { timeout: 3000 } }).get('https://oss-config.dev.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2')
//开发环境mock
// return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2')
}
......
<template>
<div>
<GLDialog :title="dialogTitle" :visible.sync="groupVisible">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="grouping-ruleForm">
<el-form-item label="分群名称" prop="crowdGroupName" size="small">
<el-input v-model="ruleForm.crowdGroupName" placeholder="请输入分群名称" maxlength="30" show-word-limit></el-input>
<GLDialog :title="dialogTitle" :visible.sync="groupVisible" mode="big">
<div class="gl-form-page gl-form-min" >
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" class="grouping-ruleForm">
<el-form-item label="分群名称:" prop="crowdGroupName" size="small">
<el-input class="crowdGroupName" v-model="ruleForm.crowdGroupName" placeholder="请输入分群名称" maxlength="30" show-word-limit></el-input>
</el-form-item>
<el-form-item label="分群描述" size="small">
<el-input v-model="ruleForm.crowdGroupDesc" placeholder="请输入分群描述" maxlength="100" show-word-limit></el-input>
<el-form-item label="分群描述:" size="small">
<el-input class="crowdGroupDesc" v-model="ruleForm.crowdGroupDesc" type="textarea" placeholder="请输入分群描述" maxlength="100" show-word-limit></el-input>
</el-form-item>
<el-form-item label="概览是否展示" size="small">
<el-form-item label="概览是否展示:" size="small">
<el-radio-group v-model="ruleForm.isDisplay">
<el-radio :label="1">是</el-radio>
<el-radio :label="2">否</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="选择展示位" size="small" v-show="ruleForm.isDisplay == 1">
<el-form-item label="选择展示位:" size="small" v-show="ruleForm.isDisplay == 1">
<el-select v-model="ruleForm.displayLoc" placeholder="请选择">
<el-option v-for="item in 12" :key="item" :label="`${item}号展示位`" :value="item"></el-option>
</el-select>
</el-form-item>
<el-form-item label="选择人群" size="small">
<el-form-item label="选择人群:" size="small">
<div class="group-tree-container">
<div class="group-tree-panel" :style="{ height: heightBox + 'px' }">
<template v-for="(item, index) in crowdUnitList">
......@@ -55,6 +56,7 @@
</div>
</el-form-item>
</el-form>
</div>
<span slot="footer" class="dialog-footer">
<el-button plain size="small" class="btn-three" @click="groupVisible = false">取 消</el-button>
<el-button type="primary" size="small" @click="handleSelect">提 交</el-button>
......@@ -205,7 +207,7 @@ export default {
crowdGroup = 'addCrowdGroup'
}
this.$apis.crowdManage[crowdGroup](params).then(res => {
if (res.data.code == 0) {
this.groupVisible = false
this.$message.success('操作成功')
......@@ -262,7 +264,7 @@ export default {
arr2.push(item.crowdId)
}
})
this.setTreeChecked(arr1, arr2)
},
setTreeChecked(arr1, arr2) {
......@@ -364,6 +366,12 @@ export default {
</script>
<style lang="scss" scoped>
.crowdGroupDesc {
padding-right: 56px;
}
.crowdGroupName{
padding-right: 50px;
}
.group-tree-container {
display: flex;
.group-tree-operation {
......
......@@ -12,10 +12,11 @@
<GLButton size="small" @click="handleExport" fn="导出">导出</GLButton>
</div>
<GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="clientManage" :hasNum="true" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :noDataImg="url" :pageConf="pageConf" :tableParams="tableParams">
<span slot="customerName" slot-scope="scope">
<span slot="customerName" slot-scope="scope">
<GLFull :labelWidth="70" :identification="`node_${scope.scope.id}`">{{ scope.scope.customerName ? scope.scope.customerName : '--' }}</GLFull>
</span>
<span slot="customerSex" slot-scope="scope">
<!-- <span slot="customerSex" slot-scope="scope" >-->
<span slot="customerSex" slot-scope="scope" >
<span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span>
</span>
<!-- 企微名称 -->
......@@ -236,12 +237,12 @@ export default {
// mutiSelectUniqueKey: 'id',
tableColumns: [
{
label: '客户ID',
prop: 'oneId',
width: 290,
line: 1
},
// {
// label: '客户ID',
// prop: 'oneId',
// width: 290,
// line: 1
// },
{
label: '客户名称',
prop: 'customerName',
......@@ -342,9 +343,6 @@ export default {
flushTime: false
}
},
// activated() {
// this.searchTable()
// },
created() {
if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中
......@@ -443,21 +441,11 @@ export default {
setTableHeightEvent() {
this.$refs.clientManage.setTableHeightFun()
},
setTableFinishFun(content) {
//关闭默认时间30天再刷新,showDefaultTime也要设置false
// if (!this.flushTime) {
// this.flushTime = true
// this.searchTable()
// }
//接收到的数据为空
// if (!this.$refs.clientManage.data.length) {
// this.$refs.clientManage.setTableHeightFun()
// }
setTableFinishFun() {
this.$refs.clientManage.data.length ? (this.$refs.clientManage.tableHeightValues = '') : this.$refs.clientManage.setTableHeightFun()
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
let params = JSON.parse(JSON.stringify(this.searchForm))
if (params.daterange) {
params.beginTime = this.searchForm.daterange[0]
params.endTime = this.searchForm.daterange[1]
......@@ -475,26 +463,13 @@ export default {
return params
},
beforeSearchFn() {
// return new Promise((resolve, reject) => {
// this.searchFormTable = JSON.parse(JSON.stringify(this.searchForm))
// if (this.searchFormTable.daterange) {
// this.searchFormTable.beginTime = this.searchForm.daterange[0]
// this.searchFormTable.endTime = this.searchForm.daterange[1]
// delete this.searchFormTable.daterange
// } else {
// if (this.searchFormTable.beginTime) delete this.searchFormTable.beginTime && delete this.searchFormTable.endTime
// }
// resolve()
// })
return new Promise(async (resolve, reject) => {
return new Promise(async (resolve) => {
if (Object.keys(this.$route.query).length && this.queryFlag == 0) {
const res = JSON.parse(window.localStorage.getItem('sourceList'))
let add_way = this.$route.query.addWay || ''
let isJoinVal = this.$route.query.isJoin || null
let addWayObj = res.find(i => i.label === add_way)
let addWayVal = addWayObj.value
this.searchForm.addWay = addWayVal
this.searchForm.addWay = addWayObj.value
this.searchForm.isJoin = isJoinVal === null ? null : Number(isJoinVal)
setTimeout(() => {
this.$refs.combiForm.expandFn()
......@@ -568,7 +543,7 @@ export default {
},
//导出
handleExport() {
var params = this.getParams()
let params = this.getParams()
clientManageExportApi(params).then(res => {
this.$Utils.exportFn(res)
})
......@@ -675,8 +650,6 @@ export default {
}
}
padding: 20px 20px 30px;
// min-width: 1300px;
background-color: #fff;
.el-button + .el-button {
margin-left: 10px;
......
......@@ -3,29 +3,31 @@
<div class="container" id="container">
<div>
<div class="title">创建人群</div>
<div class="info-box">
<el-form class="create-form" :model="crowdForm" :rules="crowdRules" ref="crowdForm" label-width="118px">
<div class="el-form-line">
<el-form-item label="人群名称:" prop="crowdName">
<el-input v-model.trim="crowdForm.crowdName" size="small" placeholder="请输入人群名称" maxlength="60"></el-input>
</el-form-item>
<span class="limited">最多30个字符</span>
</div>
<div class="el-form-line">
<el-form-item label="人群描述:">
<el-input v-model.trim="crowdForm.crowdDesc" size="small" placeholder="请输入人群描述" maxlength="200"></el-input>
</el-form-item>
<span class="limited">最多100个字符</span>
</div>
<div class="el-form-line">
<el-form-item label="标签筛选:" class="label-word">
<div class="flex">
<div class="font-14 color-58 mr2 hand" @click="open('dialogRuleVisible')">人群规则说明</div>
<div class="font-14 color-58 hand" @click="open('dialogLogicVisible')">人群规则逻辑</div>
</div>
</el-form-item>
</div>
</el-form>
<div class="info-box" >
<div class="gl-form-page">
<el-form class="create-form" :model="crowdForm" :rules="crowdRules" ref="crowdForm">
<div class="el-form-line">
<el-form-item label="人群名称:" prop="crowdName">
<el-input v-model.trim="crowdForm.crowdName" size="small" placeholder="请输入人群名称" maxlength="60"></el-input>
</el-form-item>
<span class="limited">最多30个字符</span>
</div>
<div class="el-form-line">
<el-form-item label="人群描述:">
<el-input v-model.trim="crowdForm.crowdDesc" size="small" placeholder="请输入人群描述" maxlength="200"></el-input>
</el-form-item>
<span class="limited">最多100个字符</span>
</div>
<div class="el-form-line">
<el-form-item label="标签筛选:" class="label-word">
<div class="flex">
<div class="font-14 color-58 mr2 hand" @click="open('dialogRuleVisible')">人群规则说明</div>
<div class="font-14 color-58 hand" @click="open('dialogLogicVisible')">人群规则逻辑</div>
</div>
</el-form-item>
</div>
</el-form>
</div>
<div class="label-wrap">
<div :class="{ 'fixed-box': true, is_fixed: isFixed, is_pb: isDom }" id="boxFixed">
<template v-if="this.selectedArray.length > 0">
......@@ -489,7 +491,7 @@ export default {
}
},
//选择标签
selectTag(data) {
this.tableData.forEach(item => {
......@@ -502,7 +504,7 @@ export default {
})
},
// 添加已选标签
selectedLabelFn(groupData, data) {
this.addClick = true
......@@ -733,7 +735,7 @@ export default {
font-weight: 400;
color: #999999;
line-height: 17px;
margin-left: 118px;
margin-left: 154px;
margin-bottom: 20px;
margin-top: -20px;
}
......
......@@ -3,8 +3,8 @@
<div class="container">
<div>
<div class="title">人群详情</div>
<div class="info-box">
<el-form class="create-form" :model="crowdForm" :rules="crowdRules" label-width="118px">
<div class="info-box gl-form-page">
<el-form class="create-form" :model="crowdForm" :rules="crowdRules">
<div class="el-form-line">
<el-form-item label="人群名称:" prop="crowdName" class="label-word">
<div class="color-3">{{ crowdForm.crowdName }}</div>
......@@ -25,7 +25,7 @@
</div>
<div class="el-form-line">
<el-form-item label="已选标签:" prop="groupNameRule" class="label-word">
<div class="pageContent">
<div class="pageContent" style="display: flex;">
<GLTable :tableData="selectedArray" :hasNum="hasNum" :hasPage="hasPage" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<span slot="labelUnitList" slot-scope="scope">
<div class="allTagsWrap flex">
......@@ -109,7 +109,7 @@ export default {
dialogLogicVisible: false,
tableData: [],
hasPage: false,
hasNum: false,
hasNum: true,
page: {},
tableParams: {
tableColumns: [
......@@ -122,7 +122,7 @@ export default {
{
label: '标签组类型',
prop: 'groupType',
width: 180,
width: 220,
formatter: cellValue => {
return cellValue.groupType == '企业标签' && this.$globalState.session.merchantModel == 1 ? '集团标签' : cellValue.groupType
},
......@@ -147,7 +147,7 @@ export default {
this.getCrowdDetails()
},
mounted() {
},
methods: {
goBack() {
......@@ -164,11 +164,11 @@ export default {
'req.crowdId': this.crowdId
}
this.$apis.crowdManage.getCrowdDetails(params).then(res => {
if (res.code == 0) {
this.crowdForm.crowdName = res.data.crowdName
this.crowdForm.crowdDesc = res.data.crowdDesc
this.selectedArray = res.data.tagCombine ? JSON.parse(res.data.tagCombine) : []
}
})
......@@ -200,9 +200,12 @@ export default {
<style lang="scss" scoped>
@import '@/styles/variables.scss';
/deep/.glsx-table{
width: 100%;
}
.container {
background: #ffffff;
height: calc(100vh - 164px);
overflow-y: auto;
// padding: 20px;
......
......@@ -432,10 +432,10 @@ export default {
justify-content: center;
position: fixed;
bottom: 0px;
height: 64px;
height: 120px;
width: 100%;
background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
// background: #ffffff;
// box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
.label-text {
margin-left: 10px;
......
......@@ -120,7 +120,7 @@
</span>
</GLTable>
</div>
<div
<!-- <div
class="footer-panel"
:style="{
left: footerLeft + 'px',
......@@ -128,7 +128,7 @@
}"
>
<el-button @click="handleCancel" type="primary">取消</el-button>
</div>
</div> -->
</div>
</template>
<script>
......@@ -434,9 +434,9 @@ export default {
}
})
},
handleCancel() {
this.$router.push('/guestGroup/index')
},
// handleCancel() {
// this.$router.push('/guestGroup/index')
// },
beforeSearchFn() {
return new Promise((resolve, reject) => {
this.searchForm = {
......
......@@ -22,9 +22,9 @@
选择跟进专员
</el-button>
<span class="drainage-coutom-count">
只能选择
(只能选择
<span class="count">1</span>
个
人)
</span>
<div class="el-input-tag input-tag-wrapper" v-if="choicedStaff.beforeUserName">
<el-tag effect="plain" type="info" :key="idx" :disable-transitions="false" closable @close="handleClose(1)">
......@@ -50,9 +50,9 @@
选择跟进专员
</el-button>
<span class="drainage-coutom-count">
只能选择
(只能选择
<span class="count">1</span>
个
人)
</span>
<div class="el-input-tag input-tag-wrapper" v-if="choicedStaff.afterUserName">
<el-tag effect="plain" type="info" :key="idx" :disable-transitions="false" closable @close="handleClose(2)">
......@@ -148,7 +148,6 @@ export default {
if (this.type == 2) {
;(this.choicedStaff.afterUserId = item.userId), (this.choicedStaff.afterUserName = item.userName), (this.choicedStaff.afterUserUuid = item.userUuid)
}
}
}
}
......@@ -160,7 +159,6 @@ export default {
}
.scrm-sub-client-container {
.pageContent {
background-color: #fff;
.baseTitle {
.title {
......@@ -209,13 +207,14 @@ export default {
max-height: 68px;
overflow: auto;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 567px;
width: 580px;
display: flex;
align-items: center;
//align-items: center;
margin-top: 6px;
font-size: 14px;
height: 46px;
height: 75px;
/deep/ .el-tag {
margin-top: 8px;
height: 26px;
line-height: 26px;
padding: 0 8px;
......@@ -228,6 +227,7 @@ export default {
}
}
.drainage-coutom-count {
margin-left: 8px;
color: #999;
font-size: 14px;
.count {
......
......@@ -14,6 +14,8 @@
<yl-descriptions v-if="leadType == 5 || leadType == 6" ref="ylDeacriptions" :tableModel="orderDescriModel" :showData="leadBaseList" />
</div>
<!-- 跟进记录 -->
</div>
<div class="pageContent" :style="{ 'min-height': clientHeight + 50 + 'px' }">
<div class="baseTitle">
<p class="title">跟进记录</p>
<hr />
......@@ -34,6 +36,7 @@
</div>
</div>
</div>
</div>
</template>
<script>
......@@ -116,7 +119,7 @@ export default {
this.addCol()
},
mounted() {
this.clientHeight = document.documentElement.clientHeight - 140
this.clientHeight = document.documentElement.clientHeight - 610
},
computed: {
// 救援服务
......@@ -209,9 +212,7 @@ export default {
<style lang="scss" scoped>
.scrm-sub-client-container {
.pageContent {
// padding: 6px 0px 30px;
// min-width: 1300px;
margin-bottom: 16px;
background-color: #fff;
.leadAllocation {
width: 700px;
......
......@@ -19,7 +19,7 @@ const cdn = {
]
}
module.exports = {
outputDir: `../dist/${packageName}`,
outputDir: `dist`,
publicPath, //node_env ? baseUrl : '/'
assetsDir: 'static',
configureWebpack: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!