Browse Source

新增销讲话术传参字段

newStyle
风继续吹 1 year ago
parent
commit
9a4ed8fd38
3 changed files with 89 additions and 14 deletions
  1. BIN
      public/img/bidata/heads.png
  2. +20
    -12
      src/page/bi/bi.vue
  3. +69
    -2
      src/views/Customer/index.vue

BIN
public/img/bidata/heads.png View File

Before After
Width: 3840  |  Height: 136  |  Size: 67 KiB

+ 20
- 12
src/page/bi/bi.vue View File

@@ -3,7 +3,12 @@
<!-- 头部导航菜单以及筛选菜单 -->
<header class="header">
<!-- 导航菜单 -->
<div class="head-top">
<div
class="head-top"
:class="{
yunzhu: $domain == '39.97.244.65' || $domain == 'zh.aihxz.com' || $domain == 'localhost',
}"
>
<div class="nav-box">
<div
class="nav-box-item"
@@ -844,8 +849,7 @@
color: item.showStatus == 0 ? '#c2c2c2' : '#fff',
}"
v-html="item.message"
>
</p>
></p>
<span
:style="{
textDecoration:
@@ -854,8 +858,7 @@
}"
style="color: #fff; font-weight: 400; font-size: 16px"
v-html="item.createTime"
></span
>
></span>
</el-checkbox>
</el-checkbox-group>
</div>
@@ -1823,7 +1826,7 @@ export default {
xAxis: [],
legend: [],
series: [],
minInterval: 'auto',
minInterval: "auto",
};

let par1 = {
@@ -1915,7 +1918,7 @@ export default {
const params = {
orgType: localStorage.getItem("orgType") || "",
agentId: localStorage.getItem("agentId") || "",
houseId: localStorage.getItem('houseId') || "",
houseId: localStorage.getItem("houseId") || "",
current: this.current,
size: this.size,
};
@@ -2311,7 +2314,7 @@ export default {
console.log(res);
if (res.code == 10000) {
this.$message.success(res.message);
this.initPage()
this.initPage();
} else {
this.$message.error(res.message);
}
@@ -3472,7 +3475,7 @@ export default {
];
}
if (!obj.minInterval) {
option.yAxis[0].minInterval = 5
option.yAxis[0].minInterval = 5;
}

// 使用刚指定的配置项和数据显示图表。
@@ -4075,6 +4078,11 @@ export default {
background: url("/img/bidata/head.png") no-repeat;
background-size: 100% 60px;

&.yunzhu {
background: url("/img/bidata/heads.png") no-repeat;
background-size: 100% 60px;
}

.nav-box {
position: absolute;
left: 50%;
@@ -4797,7 +4805,7 @@ export default {

.head-box-items {
padding: 24px 28px;
background: url("/img/bidata/itemBg.png") no-repeat;
background: url("/img/bidata/itembg.png") no-repeat;
background-size: 222px;

.t {
@@ -4946,7 +4954,7 @@ export default {

.head-box-items {
padding: 24px 28px;
background: url("/img/bidata/itemBg.png") no-repeat;
background: url("/img/bidata/itembg.png") no-repeat;
background-size: 222px;

.t {
@@ -5092,7 +5100,7 @@ export default {

.head-box-items {
padding: 24px 28px;
background: url("/img/bidata/itemBg.png") no-repeat;
background: url("/img/bidata/itembg.png") no-repeat;
background-size: 222px;

.t {


+ 69
- 2
src/views/Customer/index.vue View File

@@ -263,6 +263,46 @@
</el-option>
</el-select>
</div>
<div class="div-labox">
<div class="labeltext">销讲话术:</div>
<el-select
v-model="result1"
multiple
clearable
filterable
collapse-tags
placeholder="请选择"
class="div-inpbox"
>
<el-option
v-for="item in trendAnalysisAllLevelList"
:key="item.name"
:label="item.name"
:value="item.name"
>
</el-option>
</el-select>

<el-select
style="margin-left: 12px;"
v-if="result1.length > 0 && trendAnalysisAllLevelListChildren.length > 0"
v-model="result2"
multiple
clearable
filterable
collapse-tags
placeholder="请选择"
class="div-inpbox"
>
<el-option
v-for="item in trendAnalysisAllLevelListChildren"
:key="item.name"
:label="item.name"
:value="item.name"
>
</el-option>
</el-select>
</div>
</div>
<div class="app-topbox">
<div class="div-labox">
@@ -536,6 +576,8 @@ export default {
sensitiveWords: [],
marketingBusiness: [],
},
result1: [],
result2: [],
clientStagelist: [],
sensitiveList: [], //违禁词

@@ -546,6 +588,8 @@ export default {
agentId: "", // 移交员工的id

templateList: [], // 销讲业务列表
trendAnalysisAllLevelList: [], // 销讲话术列表
trendAnalysisAllLevelListChildren: [], // 二级列表
};
},
computed: {
@@ -559,6 +603,15 @@ export default {
};
this.$db.upDate(params);
},

'result1' () {
this.trendAnalysisAllLevelListChildren = []
this.trendAnalysisAllLevelList.filter(item => {
if (this.result1.includes(item.name)) {
this.trendAnalysisAllLevelListChildren = [...this.trendAnalysisAllLevelListChildren, ...item.children]
}
})
}
},

created() {
@@ -576,7 +629,19 @@ export default {
this.zkhousePage();
},
methods: {
//一二级
trendAnalysisAllLevel() {
let pamaet = {
showStatus: "",
houseId: this.searchForm.projectId,
};
this.$api.http.trendAnalysisAllLevel(pamaet).then((res) => {
console.log(res, "level");
if (res.data) {
this.trendAnalysisAllLevelList = res.data;
}
});
},
// 添加日志
addOperatingLog() {
this.$api.http.addOperatingLog({ logType: 7 });
@@ -696,8 +761,9 @@ export default {
current: this.page.currentPage,
size: this.page.pageSize,
...this.searchForm,
result: this.result2.join(',')
};
obj.marketingBusiness = obj.marketingBusiness.join(',')
obj.marketingBusiness = obj.marketingBusiness.join(",");
obj.keywordIds = obj.keywordsId.join(",");
console.log(obj, "入参");
obj.sensitiveWords = JSON.stringify(obj.sensitiveWords);
@@ -752,6 +818,7 @@ export default {
this.getclientStage();
// 获取违禁词
this.sensitivewordsList();
this.trendAnalysisAllLevel();
},
// 违禁词
sensitivewordsList() {


Loading…
Cancel
Save