Selaa lähdekoodia

项目新增字段

autoSR1012
douzhuo 2 vuotta sitten
vanhempi
commit
5997387ddd
5 muutettua tiedostoa jossa 137 lisäystä ja 35 poistoa
  1. +37
    -2
      pages/center/Piabodata/StaffAnalysis.vue
  2. +44
    -10
      pages/center/Piabodata/Theteamcompared.vue
  3. +13
    -20
      pages/center/Piabodata/TrendAnalysis.vue
  4. +42
    -3
      pages/center/Piabodata/index.vue
  5. +1
    -0
      pages/login/index.vue

+ 37
- 2
pages/center/Piabodata/StaffAnalysis.vue Näytä tiedosto

@@ -112,7 +112,14 @@
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
<view class="single">
<view class="title" style="padding-right: 30rpx;">
<view class="title1" style="flex: 1;">销讲能力</view>
<view class="title1" style="flex-grow: 1;">销讲能力</view>
<view class="title2" @click="showTemplates=true">
<view class="title2-che" style="width: 220rpx;">
{{ showBeTexts }}
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
</view>
</view>
</view>
<view class="uchaserbox" style="height: 70vh;">
<qiun-data-charts type="radar" :chartData="chartData" :canvas2d="true"
@@ -156,6 +163,11 @@
mode="single-column" :list="templateList" @cancel="templateCancel" @confirm="templateConfirm"></u-select>



<!-- 销讲业务2 -->
<u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplates"
mode="single-column" :list="templateLists" @cancel="showTemplates = false" @confirm="templateConfirms">
</u-select>
<!-- 加载组件 -->
<loading v-model="LOADING"></loading>
</view>
@@ -264,6 +276,13 @@
templateList: [], // 销讲业务
showTemplate: false, // 展示选择销讲业务弹窗
marketingBusiness: '', // 选择的业务id
showTemplates: false, // 展示选择销讲业务弹窗
templateLists: [], // 销讲业务
marketingBusinessId: '', // 选择的业务id
showBeTexts: '', //
};

},
@@ -299,11 +318,24 @@
},


// 确认选择销讲业务
templateConfirms(e) {
this.showTemplates = false;
this.marketingBusinessId = e[0].value
this.showBeTexts = e[0].label
this.getdata()
},

// 获取销讲业务
getMarketingBusiness() {
this.$u.get('/customer/marketingBusiness', {
houseId: uni.getStorageSync('buildingID').id,
}).then(res => {
this.templateLists = res.map(item => {
return item
})
this.marketingBusinessId = res[0].id
this.showBeTexts = res[0].templateName
this.templateList = res
this.templateList.unshift({
templateName: '全部业务',
@@ -311,6 +343,9 @@
})
})
},
//是否对比
checkboxChange() {
this.timepickpickisshow = !this.timepickpickisshow;
@@ -539,7 +574,7 @@
timeType: this.lastEndDate ? null : this.activeTotal + '',
lastEndDate: this.lastEndDate,
lastStartDate: this.lastStartDate,
marketingBusiness: this.marketingBusiness,
marketingBusiness: this.marketingBusinessId,
})
.then(res => {
this.LOADING = false


+ 44
- 10
pages/center/Piabodata/Theteamcompared.vue Näytä tiedosto

@@ -1,8 +1,12 @@
<template>
<view class="box">
<view class="boxtittabs">
<div class="items" @tap="screenShow = true">{{ showTimeText }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon></div>
<div class="items" @tap="showTemplate = true">{{ showBeText }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon></div>
<div class="items" @tap="screenShow = true">{{ showTimeText }}
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon>
</div>
<div class="items" @tap="showTemplate = true">{{ showBeText }}
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon>
</div>
</view>

<view class="timepick">
@@ -150,9 +154,14 @@
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
<view class="single">
<view class="title" style="padding-right: 30rpx;">
<view class="title1" style="flex: 1;">销讲能力</view>
<view class="title2" style="flex: 1;justify-content: flex-end;" @click="goTeam">
<view class="title2-che">团队
<view class="title1" style="flex-grow: 1;">销讲能力</view>

<view class="title2" style="flex-grow: 1;justify-content: flex-end;">
<view class="title2-che" @click="showTemplates=true" style="width: 220rpx;">
{{ showBeTexts }}
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
</view>
<view class="title2-che" @click="goTeam">团队
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
</view>
</view>
@@ -204,6 +213,11 @@
<u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplate"
mode="single-column" :list="templateList" @cancel="templateCancel" @confirm="templateConfirm"></u-select>


<!-- 销讲业务2 -->
<u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplates"
mode="single-column" :list="templateLists" @cancel="showTemplates = false" @confirm="templateConfirms">
</u-select>
<!-- 加载组件 -->
<loading v-model="LOADING"></loading>
</view>
@@ -398,6 +412,11 @@
showTemplate: false, // 展示选择销讲业务弹窗
marketingBusiness: '', // 选择的业务id


showTemplates: false, // 展示选择销讲业务弹窗
templateLists: [], // 销讲业务
marketingBusinessId: '', // 选择的业务id
showBeTexts: '', //
};
},

@@ -418,6 +437,7 @@

onLoad() {
this.LOADING = true
this.getMarketingBusiness()
let that = this
uni.$on('update', function(data) {
// console.log(data)
@@ -430,11 +450,11 @@
// this.buildingname = uni.getStorageSync('buildingID').name;
// 请求接口获取所有置业顾问员工的列表
this.getSectionList()
this.getMarketingBusiness()

},
onPullDownRefresh() {
let that = this
this.getMarketingBusiness()
uni.$on('update', function(data) {
// console.log(data)
that.deptids = data.arr.join(',')
@@ -446,7 +466,6 @@
// this.buildingname = uni.getStorageSync('buildingID').name;
// 请求接口获取所有置业顾问员工的列表
this.getSectionList()
this.getMarketingBusiness()
setTimeout(function() {
uni.stopPullDownRefresh();
}, 1000);
@@ -465,13 +484,27 @@
this.showBeText = e[0].label
this.getSectionList()
},


// 确认选择销讲业务
templateConfirms(e) {
this.showTemplates = false;
this.marketingBusinessId = e[0].value
this.showBeTexts = e[0].label
// 获取销奖能力
this.getPowerList()
},

// 获取销讲业务
getMarketingBusiness() {
this.$u.get('/customer/marketingBusiness', {
houseId: uni.getStorageSync('buildingID').id,
}).then(res => {
this.templateLists = res.map(item => {
return item
})
this.marketingBusinessId = res[0].id
this.showBeTexts = res[0].templateName
this.templateList = res
this.templateList.unshift({
templateName: '全部业务',
@@ -814,7 +847,7 @@
timeType: this.lastEndDate ? null : this.activeTotal + '',
lastEndDate: this.lastEndDate,
lastStartDate: this.lastStartDate,
marketingBusiness: this.marketingBusiness,
marketingBusiness: this.marketingBusinessId,
})
.then(res => {
this.LOADING = false
@@ -957,6 +990,7 @@
width: 100%;
flex-direction: column;
border: none;

.tabbox {
width: 100%;
}


+ 13
- 20
pages/center/Piabodata/TrendAnalysis.vue Näytä tiedosto

@@ -528,9 +528,7 @@
},

init() {
if (this.marketingBusiness) {
this.pamect.marketingBusiness = this.marketingBusiness
}
this.pamect.marketingBusiness = this.marketingBusiness
this.$u.post("/cusLvStatistics/lyAndcp", this.pamect).then(data => {
this.pamect.lastStartDate = data.lastStartDate;
this.pamect.lastEndDate = data.lastEndDate;
@@ -712,9 +710,14 @@
//tab切换
tabxuanxiangtap(index) {
if (index == 1 || index == 3 || index == 4) {
this.marketingBusinessText = this.showMarketingList[1].templateName
this.marketingBusiness = this.showMarketingList[1].id
this.showMarketingList.shift()
this.marketingBusinessText = this.showMarketingList[0].templateName
this.marketingBusiness = this.showMarketingList[0].id
} else {
this.showMarketingList.unshift({
templateName: '全部',
id: ''
})
this.marketingBusiness = ''
this.marketingBusinessText = '请选择销讲业务'
}
@@ -733,9 +736,7 @@
series: []
};
this.linetype = "line";
if (this.marketingBusiness) {
this.pamect.marketingBusiness = this.marketingBusiness
}
this.pamect.marketingBusiness = this.marketingBusiness
this.$u.post("/cusLvStatistics/teamOrOneValueShow", this.pamect).then(data => {
if (this.pamect.showStatus == 0) {
that.lineOptsect = {
@@ -802,9 +803,7 @@
categories: [],
series: []
};
if (this.marketingBusiness) {
this.pamect.marketingBusiness = this.marketingBusiness
}
this.pamect.marketingBusiness = this.marketingBusiness
this.linetype = "radar";
this.$u.post("/cusLvStatistics/accFirstLevelContrast", this.pamect).then(data => {
// return
@@ -928,9 +927,7 @@
categories: [],
series: []
};
if (this.marketingBusiness) {
this.pamect.marketingBusiness = this.marketingBusiness
}
this.pamect.marketingBusiness = this.marketingBusiness
this.$u.post("/cusLvStatistics/firstLevelContrast", this.pamect).then(data => {
if (data.length == 0) {
return
@@ -972,9 +969,7 @@
aboutEecondary() {
this.lineOptsect = {};
this.linetype = "line";
if (this.marketingBusiness) {
this.pamect.marketingBusiness = this.marketingBusiness
}
this.pamect.marketingBusiness = this.marketingBusiness
this.$u.post("/cusLvStatistics/level2Contrast", this.pamect).then(data => {
if (this.pamect.showStatus == 0) {
this.lineOptsect = {
@@ -1185,9 +1180,7 @@
};
this.linetype = "line";
this.$forceUpdate()
if (this.marketingBusiness) {
this.pamect.marketingBusiness = this.marketingBusiness
}
this.pamect.marketingBusiness = this.marketingBusiness
this.$u.post("/cusLvStatistics/teamOrOneValueShowByDept", this.pamect).then(data => {
if (this.Selecttuanduiobj.id == "") {
var newlist = [];


+ 42
- 3
pages/center/Piabodata/index.vue Näytä tiedosto

@@ -1,8 +1,12 @@
<template>
<view class="box">
<view class="boxtittabs">
<div class="items" @tap="screenShow = true">{{ showTimeText }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon></div>
<div class="items" @tap="showTemplate = true">{{ showBeText }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon></div>
<view class="items" @tap="screenShow = true">{{ showTimeText }}
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon>
</view>
<view class="items" @tap="showTemplate = true">{{ showBeText }}
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx"></u-icon>
</view>
</view>
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
<view class="Piabodata-box">
@@ -129,6 +133,12 @@
<view class="single">
<view class="title">
<view class="title1">场景触达分析</view>
<view class="title2" @click="showTemplates=true">
<view class="title2-che" style="width: 220rpx;">
{{ showBeTexts }}
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
</view>
</view>
</view>
<view style="width: 100%;height: 300rpx;text-align: center;line-height: 300rpx;"
v-if="newlisttabinfo.length==0">暂无数据</view>
@@ -204,10 +214,18 @@
</view>
</view>
</u-popup>


<!-- 销讲业务 -->
<u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplate"
mode="single-column" :list="templateList" @cancel="templateCancel" @confirm="templateConfirm"></u-select>


<!-- 销讲业务2 -->
<u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplates"
mode="single-column" :list="templateLists" @cancel="showTemplates = false" @confirm="templateConfirms">
</u-select>

<!-- 加载组件 -->
<loading v-model="LOADING"></loading>
</view>
@@ -359,6 +377,11 @@
templateList: [], // 销讲业务
showTemplate: false, // 展示选择销讲业务弹窗
marketingBusiness: '', // 选择的业务id

showTemplates: false, // 展示选择销讲业务弹窗
templateLists: [], // 销讲业务
marketingBusinessId: '', // 选择的业务id
showBeTexts: '', //
};
},
onShow() {
@@ -413,17 +436,33 @@
this.getdata()
},

// 确认选择销讲业务
templateConfirms(e) {
this.showTemplates = false;
this.marketingBusinessId = e[0].value
this.showBeTexts = e[0].label
this.getdata()
},


// 获取销讲业务
getMarketingBusiness() {
this.$u.get('/customer/marketingBusiness', {
houseId: uni.getStorageSync('buildingID').id,
}).then(res => {
this.templateLists = res.map(item => {
return item
})
this.marketingBusinessId = res[0].id
this.showBeTexts = res[0].templateName
this.templateList = res
this.templateList.unshift({
templateName: '全部业务',
id: ''
})
// 获取维度
this.getindexZxl()
})
},

@@ -496,7 +535,7 @@
timeType: this.lastEndDate ? null : this.activeTotal,
lastEndDate: this.lastEndDate,
lastStartDate: this.lastStartDate,
marketingBusiness: this.marketingBusiness,
marketingBusiness: this.marketingBusinessId,
})
.then(res => {
this.LOADING = false


+ 1
- 0
pages/login/index.vue Näytä tiedosto

@@ -138,6 +138,7 @@
uni.setStorageSync("fendianindex", 0); //写入缓存
uni.setStorageSync("weapp_session_userInfo_data", data); //写入缓存
uni.setStorageSync("buildingID", lopan); //项目id写入缓存
this.$u.post('/user/addLoginCount', { houseId: data.zkProperties[0].id})
uni.switchTab({
url: '/pages/index/index'
});


Ladataan…
Peruuta
Tallenna