Browse Source

合并代码

yun
corala 1 year ago
parent
commit
9efde7ba90
3 changed files with 58 additions and 39 deletions
  1. +24
    -21
      pages/center/consumer/index.vue
  2. +21
    -13
      pages/center/records/index.vue
  3. +13
    -5
      pages/mine/details2.vue

+ 24
- 21
pages/center/consumer/index.vue View File

@@ -997,9 +997,9 @@ export default {
this.$u.post("/customer/customerManagement", parames) this.$u.post("/customer/customerManagement", parames)
.then((data) => { .then((data) => {
this.LOADING = false; this.LOADING = false;
if (this.screen.staTime && this.screen.endTime) {
this.arriveFilter = `${this.screen.staTime}-${this.screen.endTime}`;
}
// if (this.screen.staTime && this.screen.endTime) {
// this.arriveFilter = `${this.screen.staTime}-${this.screen.endTime}`;
// }
var list = data.results || []; var list = data.results || [];
list.forEach((item) => { list.forEach((item) => {
if (this.userInfo.dataCode == 6) { if (this.userInfo.dataCode == 6) {
@@ -1056,25 +1056,28 @@ export default {
}, },
//获取顾问列表 //获取顾问列表
getFreeList() { getFreeList() {
this.freeList = [];
this.$u
.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
houseId: this.buildingID,
})
.then((res) => {
this.freeList = res;
this.freeList.forEach((item) => {
item.label = item.name;
item.value = item.accountId;
});
this.freeList.unshift({
label: '全部',
value: '',
})
if(this.userInfo.dataCode==6){
this.freeList = []
if(this.userInfo.dataCode==6){
this.freeList = [{
label: this.userInfo.name,
value: this.userInfo.accountId
}]
}else{
this.freeList = [];
this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
houseId: this.buildingID,
})
.then((res) => {
this.freeList = res;
this.freeList.forEach((item) => {
item.label = item.name;
item.value = item.accountId;
});
this.freeList.unshift({
label: '全部',
value: '',
})
});
} }
});
}, },
// 获取客户阶段数据 // 获取客户阶段数据
getCustomPhase() { getCustomPhase() {


+ 21
- 13
pages/center/records/index.vue View File

@@ -682,19 +682,27 @@
}, },
//获取顾问列表 //获取顾问列表
getFreeList() { getFreeList() {
this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
houseId: this.buildingID
}).then(res => {
this.freeList = res;
this.freeList.forEach(item => {
item.label = item.name;
item.value = item.accountId
})
this.freeList.unshift({
label:'全部',
value: ''
})
})
if(this.userInfo.dataCode==6){// 顾问角色登录时只显示自己
this.freeList = [{
label: this.userInfo.name,
value: this.userInfo.accountId
}]
}else{
this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
houseId: this.buildingID
}).then(res => {
this.freeList = res;
this.freeList.forEach(item => {
item.label = item.name;
item.value = item.accountId
})
this.freeList.unshift({
label:'全部',
value: ''
})
})
}
}, },
actionSelectCallback(e) { actionSelectCallback(e) {
this.screen.agentId = e[0].value; this.screen.agentId = e[0].value;


+ 13
- 5
pages/mine/details2.vue View File

@@ -343,10 +343,13 @@
<view class="hhhbox" v-if="item.show" style="padding: 30rpx;"> <view class="hhhbox" v-if="item.show" style="padding: 30rpx;">
<view class="hsnrtest">话术内容</view> <view class="hsnrtest">话术内容</view>
<view class="Level3che" v-for="(che,inc) in item.questionList" :key='inc'> <view class="Level3che" v-for="(che,inc) in item.questionList" :key='inc'>
<view class="title1">{{inc+1}}.{{che.question}}</view>
<view class="title1" :style="che.selected==2?'color:#666':che.selected==1?'color: #666':''">{{inc+1}}.{{che.question}}</view>
<view class="jiantobox"> <view class="jiantobox">
<!-- 0本次选中 1未选中 2上次选中 -->
<image v-if="che.selected==0" class="arrow" src="/static/images/rate-checked.png" <image v-if="che.selected==0" class="arrow" src="/static/images/rate-checked.png"
mode="" /> mode="" />
<image v-else-if="che.selected==2" class="arrow" src="/static/images/rate-checked.png"
mode="" />
<image v-else class="arrow" src="/static/images/rate-nocheck.png" mode="" /> <image v-else class="arrow" src="/static/images/rate-nocheck.png" mode="" />
</view> </view>
</view> </view>
@@ -370,11 +373,16 @@
<view v-if="subitem.show" style="padding: 30rpx 0;"> <view v-if="subitem.show" style="padding: 30rpx 0;">
<view class="hsnrtest">话术内容</view> <view class="hsnrtest">话术内容</view>
<view class="Level3che" v-for="(che,inc) in subitem.questionList" :key='inc'> <view class="Level3che" v-for="(che,inc) in subitem.questionList" :key='inc'>
<view class="title1">{{inc+1}}.{{che.question}}</view>
<view class="title1" :style="che.selected==2?'color:#666':che.selected==1?'color: #666':''">{{inc+1}}.{{che.question}}</view>
<!-- <view class="title1">{{inc+1}}.{{che.question}}</view> -->
<view class="jiantobox"> <view class="jiantobox">
<image v-if="che.selected==0" class="arrow"
src="/static/images/rate-checked.png" mode="" />
<image v-else class="arrow" src="/static/images/rate-nocheck.png" mode="" />
<!-- 0本次选中 1未选中 2上次选中 -->
<image v-if="che.selected==0" class="arrow" src="/static/images/rate-checked.png"
mode="" />
<image v-else-if="che.selected==2" class="arrow" src="/static/images/rate-checked.png"
mode="" />
<!-- <image v-if="che.selected==0" class="arrow" src="/static/images/rate-checked.png" mode="" /> -->
<image v-else class="arrow" src="/static/images/rate-nocheck.png" mode="" />
</view> </view>
</view> </view>
</view> </view>


Loading…
Cancel
Save