Browse Source

新增销讲话术传参字段

newStyle
风继续吹 11 months 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"> <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">
<div <div
class="nav-box-item" class="nav-box-item"
@@ -844,8 +849,7 @@
color: item.showStatus == 0 ? '#c2c2c2' : '#fff', color: item.showStatus == 0 ? '#c2c2c2' : '#fff',
}" }"
v-html="item.message" v-html="item.message"
>
</p>
></p>
<span <span
:style="{ :style="{
textDecoration: textDecoration:
@@ -854,8 +858,7 @@
}" }"
style="color: #fff; font-weight: 400; font-size: 16px" style="color: #fff; font-weight: 400; font-size: 16px"
v-html="item.createTime" v-html="item.createTime"
></span
>
></span>
</el-checkbox> </el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</div> </div>
@@ -1823,7 +1826,7 @@ export default {
xAxis: [], xAxis: [],
legend: [], legend: [],
series: [], series: [],
minInterval: 'auto',
minInterval: "auto",
}; };


let par1 = { let par1 = {
@@ -1915,7 +1918,7 @@ export default {
const params = { const params = {
orgType: localStorage.getItem("orgType") || "", orgType: localStorage.getItem("orgType") || "",
agentId: localStorage.getItem("agentId") || "", agentId: localStorage.getItem("agentId") || "",
houseId: localStorage.getItem('houseId') || "",
houseId: localStorage.getItem("houseId") || "",
current: this.current, current: this.current,
size: this.size, size: this.size,
}; };
@@ -2311,7 +2314,7 @@ export default {
console.log(res); console.log(res);
if (res.code == 10000) { if (res.code == 10000) {
this.$message.success(res.message); this.$message.success(res.message);
this.initPage()
this.initPage();
} else { } else {
this.$message.error(res.message); this.$message.error(res.message);
} }
@@ -3472,7 +3475,7 @@ export default {
]; ];
} }
if (!obj.minInterval) { 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: url("/img/bidata/head.png") no-repeat;
background-size: 100% 60px; background-size: 100% 60px;


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

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


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


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


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


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


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


.t { .t {


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

@@ -263,6 +263,46 @@
</el-option> </el-option>
</el-select> </el-select>
</div> </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>
<div class="app-topbox"> <div class="app-topbox">
<div class="div-labox"> <div class="div-labox">
@@ -536,6 +576,8 @@ export default {
sensitiveWords: [], sensitiveWords: [],
marketingBusiness: [], marketingBusiness: [],
}, },
result1: [],
result2: [],
clientStagelist: [], clientStagelist: [],
sensitiveList: [], //违禁词 sensitiveList: [], //违禁词


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


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

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


created() { created() {
@@ -576,7 +629,19 @@ export default {
this.zkhousePage(); this.zkhousePage();
}, },
methods: { 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() { addOperatingLog() {
this.$api.http.addOperatingLog({ logType: 7 }); this.$api.http.addOperatingLog({ logType: 7 });
@@ -696,8 +761,9 @@ export default {
current: this.page.currentPage, current: this.page.currentPage,
size: this.page.pageSize, size: this.page.pageSize,
...this.searchForm, ...this.searchForm,
result: this.result2.join(',')
}; };
obj.marketingBusiness = obj.marketingBusiness.join(',')
obj.marketingBusiness = obj.marketingBusiness.join(",");
obj.keywordIds = obj.keywordsId.join(","); obj.keywordIds = obj.keywordsId.join(",");
console.log(obj, "入参"); console.log(obj, "入参");
obj.sensitiveWords = JSON.stringify(obj.sensitiveWords); obj.sensitiveWords = JSON.stringify(obj.sensitiveWords);
@@ -752,6 +818,7 @@ export default {
this.getclientStage(); this.getclientStage();
// 获取违禁词 // 获取违禁词
this.sensitivewordsList(); this.sensitivewordsList();
this.trendAnalysisAllLevel();
}, },
// 违禁词 // 违禁词
sensitivewordsList() { sensitivewordsList() {


Loading…
Cancel
Save