Browse Source

需求挖掘分析调试

newStyle
corala 1 year ago
parent
commit
7cbbd9da34
5 changed files with 29 additions and 32 deletions
  1. +2
    -1
      src/router/axios.js
  2. +3
    -2
      src/views/Receive/index.vue
  3. +7
    -6
      src/views/ReceivingRecords/index.vue
  4. +15
    -21
      src/views/Template/requireminingAnalysis.vue
  5. +2
    -2
      vue.config.js

+ 2
- 1
src/router/axios.js View File

@@ -63,7 +63,8 @@ axios.interceptors.response.use(res => {
NProgress.done() NProgress.done()
const status = Number(res.status) || 200 const status = Number(res.status) || 200
const message = res.data.msg || errorCode[status] || errorCode['default'] const message = res.data.msg || errorCode[status] || errorCode['default']
if (status === 401 || status === 500) {
if (status === 401) {
// if (status === 401 || status === 500) {
idx++ idx++
if(idx==1){ if(idx==1){
Message({ Message({


+ 3
- 2
src/views/Receive/index.vue View File

@@ -320,7 +320,7 @@
</div> </div>
<div class="mark-item"> <div class="mark-item">
<img class="markicon" :src="imgArr[3]"/> <img class="markicon" :src="imgArr[3]"/>
<p class="marktext">销讲词销讲词</p>
<p class="marktext">销讲词销讲词销讲词销讲词销讲词销讲词销讲词销讲词销讲词销讲词销讲词销讲词销讲词销讲词销讲词销讲词销讲词销讲词销讲词销讲词</p>
</div> </div>
</div> </div>
<!-- <div class="showmark" v-if="item.types"> --> <!-- <div class="showmark" v-if="item.types"> -->
@@ -2528,7 +2528,7 @@ export default {
padding: 10px 20px; padding: 10px 20px;
} }
.huashu{ .huashu{
width: 400px;
width: 260px;
padding: 0 20px 30px; padding: 0 20px 30px;
display: flex; display: flex;
align-items: center; align-items: center;
@@ -2603,6 +2603,7 @@ export default {
line-height: 18px; line-height: 18px;
word-break: break-all; word-break: break-all;
margin: 0; margin: 0;
max-width: 150px;
} }
} }
} }


+ 7
- 6
src/views/ReceivingRecords/index.vue View File

@@ -364,7 +364,7 @@
<el-form :model="form" v-else> <el-form :model="form" v-else>
<el-form-item label="转写方式" :label-width="80"> <el-form-item label="转写方式" :label-width="80">
<el-select v-model="form.project" placeholder="请选择项目" @change="changeFun"> <el-select v-model="form.project" placeholder="请选择项目" @change="changeFun">
<el-option v-for="(item,index) in projectlist" :label="item.name" :key="index" :value="item.code"></el-option>
<el-option v-for="(item,index) in projectList" :label="item.name" :key="index" :value="item.code"></el-option>
</el-select> </el-select>
<el-select v-model="form.language" placeholder="请选择语种"> <el-select v-model="form.language" placeholder="请选择语种">
<el-option v-for="(item,index) in languageList" :label="item.name" :key="index" :value="item.code"></el-option> <el-option v-for="(item,index) in languageList" :label="item.name" :key="index" :value="item.code"></el-option>
@@ -391,7 +391,7 @@ export default {
xiaojianglist: [], //销讲业务 xiaojianglist: [], //销讲业务
desc: '请等待录音合并之后再重新转写!', desc: '请等待录音合并之后再重新转写!',
dialogVisible: false, dialogVisible: false,
projectlist: [],
projectList: [],
languageList: [], languageList: [],
form: { form: {
language: '', language: '',
@@ -675,9 +675,10 @@ export default {
changeFun(value){ changeFun(value){
// console.log(value) // console.log(value)
this.form.language = '' this.form.language = ''
this.projectlist.forEach(item=>{
this.projectList.forEach(item=>{
if(item.code==value){ if(item.code==value){
this.languageList = item.list
this.languageList = item.list
this.form.language = this.languageList[0].code
} }
}) })
}, },
@@ -686,7 +687,7 @@ export default {
this.$api.api.findTransferMethod().then((res) => { this.$api.api.findTransferMethod().then((res) => {
console.log(res); console.log(res);
if(res.data&&res.data.obj){ if(res.data&&res.data.obj){
this.projectlist = res.data.data||[]
this.projectList = res.data.data||[]
this.languageList = res.data.data&&res.data.data[0].list||[] this.languageList = res.data.data&&res.data.data[0].list||[]
} }
}); });
@@ -717,7 +718,7 @@ export default {
// this.title = row.mergeFlag==1?'提醒':'重新转写'; // this.title = row.mergeFlag==1?'提醒':'重新转写';
this.form.project = row.transferMethod||''; this.form.project = row.transferMethod||'';
if(row.transferLanguage){ if(row.transferLanguage){
this.projectlist.forEach(item=>{
this.projectList.forEach(item=>{
if(item.code==row.transferLanguage){ if(item.code==row.transferLanguage){
this.languageList = item.list this.languageList = item.list
this.form.language = row.transferLanguage||'' this.form.language = row.transferLanguage||''


+ 15
- 21
src/views/Template/requireminingAnalysis.vue View File

@@ -15,11 +15,11 @@
</el-radio-group> </el-radio-group>
<div style="margin-left: 26px" v-if="TimetoAhoose == 7"> <div style="margin-left: 26px" v-if="TimetoAhoose == 7">
<el-date-picker <el-date-picker
style="width: 270px; height: 32px; line-height: 32px"
style="width: 300px; height: 32px; line-height: 32px"
@change="confirmtime" @change="confirmtime"
v-model="customtime" v-model="customtime"
type="daterange" type="daterange"
range-separator=""
range-separator="-"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
@@ -244,7 +244,7 @@
</div> </div>
<!-- 需求挖掘排行 --> <!-- 需求挖掘排行 -->
<div class="box-card"> <div class="box-card">
<div class="title">需求类型挖掘执行排行</div>
<div class="title">需求挖掘排行</div>
<div class="control-tab" style="justify-content: flex-end"> <div class="control-tab" style="justify-content: flex-end">
<div> <div>
<el-select v-model="rankTypeVal" placeholder="请选择"> <el-select v-model="rankTypeVal" placeholder="请选择">
@@ -439,6 +439,7 @@
</div> </div>
</template> </template>
<script> <script>
import * as echarts from "echarts";
export default { export default {
data() { data() {
return { return {
@@ -640,13 +641,13 @@ export default {
}; };
}, },
created() { created() {
},
mounted() {
this.houseId = localStorage.getItem("houseId"); this.houseId = localStorage.getItem("houseId");
this.getAllDeptName(); /// 获取楼盘下全部部门-团队下拉数据 this.getAllDeptName(); /// 获取楼盘下全部部门-团队下拉数据
// this.excuteMethods();
this.getAllAccountName(); // 全部顾问 this.getAllAccountName(); // 全部顾问
}, },
mounted() {
this.excuteMethods();
},
methods: { methods: {
// 部门 // 部门
getAllDeptName() { getAllDeptName() {
@@ -956,7 +957,6 @@ export default {
}, },
}).then((data) => { }).then((data) => {
if (data.code == 0) { if (data.code == 0) {
console.log(data);
this.teams = data.data.map((item) => { this.teams = data.data.map((item) => {
return { return {
name: item.deptName, name: item.deptName,
@@ -976,7 +976,6 @@ export default {
deptId: this.fromobj.team, deptId: this.fromobj.team,
}, },
}).then((data) => { }).then((data) => {
// console.log(data);
if (data.code == 0) { if (data.code == 0) {
this.consultants = data.data.map((item) => { this.consultants = data.data.map((item) => {
return { return {
@@ -996,18 +995,12 @@ export default {
let firstStartDate = this.TimetoAhoose == 7 ? this.fromobj.starttime : ""; let firstStartDate = this.TimetoAhoose == 7 ? this.fromobj.starttime : "";
let firstEndDate = this.TimetoAhoose == 7 ? this.fromobj.endoftime : ""; let firstEndDate = this.TimetoAhoose == 7 ? this.fromobj.endoftime : "";
var daochuparams = var daochuparams =
"?houseId=" +
this.houseId +
"&deptId=" +
this.fromobj.team +
"&createUser=" +
this.fromobj.consultant +
"&dateType=" +
TimetoAhoose +
"&firstStartDate=" +
firstStartDate +
"&firstEndDate=" +
firstEndDate;
"?houseId=" + this.houseId +
"&deptId=" + this.fromobj.team +
"&createUser=" + this.fromobj.consultant +
"&dateType=" + TimetoAhoose +
"&firstStartDate=" + firstStartDate +
"&firstEndDate=" + firstEndDate;
if (type == "rank") { if (type == "rank") {
//排行 //排行
window.location.href ="/autoSR/customer/wordMiningRankExport" + daochuparams; window.location.href ="/autoSR/customer/wordMiningRankExport" + daochuparams;
@@ -1059,9 +1052,10 @@ export default {
Userrecord.id = item.id; Userrecord.id = item.id;
Userrecord.name = ""; Userrecord.name = "";
Userrecord.keywordsId = ""; Userrecord.keywordsId = "";
Userrecord.wordFraction = item.name;//需求挖掘率
} }
localStorage.setItem("Userrecord", JSON.stringify(Userrecord)); localStorage.setItem("Userrecord", JSON.stringify(Userrecord));
location.href = "/autoSR/matchKeywords/receptionIndex";
this.$router.push({path:'/ReceivingRecords/index'})
}, },
//清空筛选条件 //清空筛选条件
Emptycondition() { Emptycondition() {


+ 2
- 2
vue.config.js View File

@@ -2,11 +2,11 @@
* 配置参考: * 配置参考:
* https://cli.vuejs.org/zh/config/ * https://cli.vuejs.org/zh/config/
*/ */
// const url = 'http://192.168.31.160:9999' //长龙
const url = 'http://192.168.31.160:9999' //长龙
// const url = 'http://192.168.31.149:9999' // 胜浩 // const url = 'http://192.168.31.149:9999' // 胜浩
// const url = 'http://127.0.0.1:9999' // 本地 // const url = 'http://127.0.0.1:9999' // 本地


const url = 'http://39.97.244.65:9999' // 测试服务器
// const url = 'http://39.97.244.65:9999' // 测试服务器


// const url = 'http://62.234.122.43:9999' //正式服务器1 // const url = 'http://62.234.122.43:9999' //正式服务器1
// const url = 'http://82.156.35.22:9999' // 正式服务器2 // const url = 'http://82.156.35.22:9999' // 正式服务器2


Loading…
Cancel
Save