| @@ -712,6 +712,17 @@ export function findBannedWordsByCusId(query) { | |||||
| }) | }) | ||||
| } | } | ||||
| // 获取销讲违禁执行 | |||||
| export function findBycusId(query) { | |||||
| return request({ | |||||
| url: 'autoSR/template/findBycusId', | |||||
| method:'get', | |||||
| params:query | |||||
| }) | |||||
| } | |||||
| // | |||||
| // 标记顾问 | // 标记顾问 | ||||
| export function markConsultant(query) { | export function markConsultant(query) { | ||||
| return request({ | return request({ | ||||
| @@ -178,7 +178,7 @@ | |||||
| @size-change="handleSizeChange" | @size-change="handleSizeChange" | ||||
| @current-change="handleCurrentChange" | @current-change="handleCurrentChange" | ||||
| :current-page="currentPage" | :current-page="currentPage" | ||||
| page-sizes="[15]" | |||||
| :page-sizes="[10]" | |||||
| :page-size="size" | :page-size="size" | ||||
| :total="total" | :total="total" | ||||
| layout="total, sizes, prev, pager, next, jumper" | layout="total, sizes, prev, pager, next, jumper" | ||||
| @@ -234,8 +234,8 @@ export default { | |||||
| propertyName: "", | propertyName: "", | ||||
| agentName: "", //代理商名称 | agentName: "", //代理商名称 | ||||
| companyName: "", | companyName: "", | ||||
| total: 20, | |||||
| size: 15, | |||||
| total: 0, | |||||
| size: 10, | |||||
| list: [], | list: [], | ||||
| options: [], | options: [], | ||||
| info: {}, | info: {}, | ||||
| @@ -260,6 +260,11 @@ export default { | |||||
| this.findByUserName(); | this.findByUserName(); | ||||
| } | } | ||||
| }, | }, | ||||
| watch: { | |||||
| total(newV, oldV) { | |||||
| console.log(newV, oldV) | |||||
| } | |||||
| }, | |||||
| computed: {}, | computed: {}, | ||||
| methods: { | methods: { | ||||
| // 获取代理商 | // 获取代理商 | ||||
| @@ -271,7 +276,7 @@ export default { | |||||
| agentName: this.agentName, | agentName: this.agentName, | ||||
| }) | }) | ||||
| .then((res) => { | .then((res) => { | ||||
| console.log(res); | |||||
| console.log(res, 'daskj'); | |||||
| this.list = res.data.records; | this.list = res.data.records; | ||||
| this.total = res.data.total; | this.total = res.data.total; | ||||
| }); | }); | ||||
| @@ -311,7 +316,7 @@ export default { | |||||
| orgType: localStorage.getItem("orgType"), | orgType: localStorage.getItem("orgType"), | ||||
| }) | }) | ||||
| .then((res) => { | .then((res) => { | ||||
| console.log(res); | |||||
| console.log(res, 'dadksladkasl;slkdl'); | |||||
| this.list = res.data.records; | this.list = res.data.records; | ||||
| this.total = res.data.total; | this.total = res.data.total; | ||||
| }); | }); | ||||
| @@ -644,6 +644,8 @@ | |||||
| style="height: calc(70vh - 230px)" | style="height: calc(70vh - 230px)" | ||||
| v-if="zhixingcenterindex == 2" | v-if="zhixingcenterindex == 2" | ||||
| > | > | ||||
| <div style="flex-grow: 1;"> | |||||
| <div | <div | ||||
| style="width: 100%" | style="width: 100%" | ||||
| v-for="(item, index) in keyWordsList" | v-for="(item, index) in keyWordsList" | ||||
| @@ -806,6 +808,7 @@ | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </div> | |||||
| <div class="mydesc" v-if="zhixingcenterindex == 2"> | <div class="mydesc" v-if="zhixingcenterindex == 2"> | ||||
| <span style="color: #409eff" | <span style="color: #409eff" | ||||
| ><i class="el-icon-success" style="margin-right: 5px"></i | ><i class="el-icon-success" style="margin-right: 5px"></i | ||||
| @@ -2212,6 +2215,8 @@ export default { | |||||
| } else { | } else { | ||||
| this.kehuyixiangcenterindex = 1; | this.kehuyixiangcenterindex = 1; | ||||
| } | } | ||||
| this.prohibitedlist = JSON.parse(res.data.sensitiveWords) || []; | |||||
| this.findCARKeywords(); | this.findCARKeywords(); | ||||
| this.findBannedWordsByCusId(); | this.findBannedWordsByCusId(); | ||||
| this.Getsthetransliteratecontent(); | this.Getsthetransliteratecontent(); | ||||
| @@ -2314,10 +2319,9 @@ export default { | |||||
| //获取销讲词违禁词 | //获取销讲词违禁词 | ||||
| findBannedWordsByCusId() { | findBannedWordsByCusId() { | ||||
| this.$api.http | this.$api.http | ||||
| .findBannedWordsByCusId({ cusId: this.fileId }) | |||||
| .findBycusId({ cusId: this.fileId }) | |||||
| .then((res) => { | .then((res) => { | ||||
| let list1 = res.data.SalesTalk || []; | |||||
| let list2 = res.data.ProhibitedWords || []; | |||||
| let list1 = res.data || []; | |||||
| let level1 = []; // 一级 | let level1 = []; // 一级 | ||||
| list1.forEach((item) => { | list1.forEach((item) => { | ||||
| if (item.pid == 0) { | if (item.pid == 0) { | ||||
| @@ -2351,7 +2355,6 @@ export default { | |||||
| level1[0].show = true; | level1[0].show = true; | ||||
| } | } | ||||
| this.ratelist = level1; | this.ratelist = level1; | ||||
| this.prohibitedlist = list2; | |||||
| }); | }); | ||||
| }, | }, | ||||
| @@ -2771,6 +2774,7 @@ export default { | |||||
| } | } | ||||
| .mydesc { | .mydesc { | ||||
| flex-shrink: 0; | |||||
| position: sticky; | position: sticky; | ||||
| bottom: 0; | bottom: 0; | ||||
| padding: 0 10px; | padding: 0 10px; | ||||
| @@ -2827,6 +2831,8 @@ export default { | |||||
| // padding-bottom: 50px; | // padding-bottom: 50px; | ||||
| overflow-y: scroll; | overflow-y: scroll; | ||||
| position: relative; | position: relative; | ||||
| display: flex; | |||||
| flex-direction: column; | |||||
| } | } | ||||
| .biaotibox { | .biaotibox { | ||||
| @@ -491,7 +491,7 @@ export default { | |||||
| }); | }); | ||||
| }, | }, | ||||
| // 递归获取所有的ID | // 递归获取所有的ID | ||||
| getAllTreeListId(arr) { | |||||
| getAllTreeListId(arr) { | |||||
| const setSelected = (arr) => { | const setSelected = (arr) => { | ||||
| arr.forEach((item) => { | arr.forEach((item) => { | ||||
| this.allTreeListId.push(item.id); | this.allTreeListId.push(item.id); | ||||