wangxiaohua 3 years ago
parent
commit
209c65bf0f
9 changed files with 67 additions and 35 deletions
  1. +7
    -7
      src/page/check/chose.vue
  2. +2
    -1
      src/views/Customer/AgentManagement.vue
  3. +2
    -1
      src/views/Customer/CompanyRecord.vue
  4. +2
    -1
      src/views/Customer/Companymanagement.vue
  5. +42
    -15
      src/views/Equipment/equipmentDetailList.vue
  6. +1
    -0
      src/views/Equipment/index.vue
  7. +5
    -5
      src/views/Equipment/state.vue
  8. +4
    -4
      src/views/building/Count.vue
  9. +2
    -1
      src/views/building/index.vue

+ 7
- 7
src/page/check/chose.vue View File

@@ -113,7 +113,7 @@
</div>
<div class="content" v-if="flag == 3">
<div class="search">
<span style="line-height: 32px; margin-right: 20px">区域:</span>
<span style="line-height: 32px; margin-right: 20px">片区:</span>
<el-cascader
:props="props"
v-if="info.selectHouseType == 1"
@@ -134,9 +134,9 @@
>
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
:key="item.id"
:label="item.areaName"
:value="item.provinceItem"
>
</el-option>
</el-select>
@@ -149,7 +149,7 @@
>
</el-input>
<el-button
style="height: 32px; line-height: 13px"
style="height: 32px; line-height: 13px;margin-left:10px;"
type="primary"
size="medium"
@click="screenzkhousePage"
@@ -318,7 +318,7 @@ export default {
findArea() {
this.$api.api.findArea().then((res) => {
console.log(res);
this.options = res.data.records;
this.options = res.data;
});
},
zkhousePage() {
@@ -342,7 +342,7 @@ export default {
if (this.info.selectHouseType == 2) {
this.$api.api
.findHouseByArea({
id: this.area,
provinceItem: this.area,
...obj
})
.then((res) => {


+ 2
- 1
src/views/Customer/AgentManagement.vue View File

@@ -89,10 +89,11 @@
</el-table-column>
<el-table-column
:show-overflow-tooltip="true" width="140px"
prop="address"
prop="provinceName,cityName"
label="地址"
align="center"
>
<template slot-scope="scope"> {{scope.row.provinceName}}{{scope.row.cityName}} </template>
</el-table-column>
<el-table-column
width="140px"


+ 2
- 1
src/views/Customer/CompanyRecord.vue View File

@@ -95,10 +95,11 @@
<el-table-column
:show-overflow-tooltip="true"
width="120px"
prop="address"
prop="provinceName,cityName"
label="公司地址"
align="center"
>
<template slot-scope="scope"> {{scope.row.provinceName}}{{scope.row.cityName}} </template>
</el-table-column>
<el-table-column label="联系人信息" align="center">
<template slot-scope="scope">


+ 2
- 1
src/views/Customer/Companymanagement.vue View File

@@ -83,7 +83,8 @@
align="center"
>
</el-table-column>
<el-table-column prop="address" label="公司地址" align="center">
<el-table-column prop="provinceName,cityName" label="公司地址" align="center">
<template slot-scope="scope"> {{scope.row.provinceName}}{{scope.row.cityName}} </template>
</el-table-column>
<!-- <el-table-column
label="联系人信息"


+ 42
- 15
src/views/Equipment/equipmentDetailList.vue View File

@@ -10,6 +10,16 @@
"
>
<span class="demonstration">楼盘名称:</span>
<!-- <el-select
v-model="selValue"
@change="selChange"
style="width: 100px"
placeholder="请选择"
>
<el-option label="代理商" v-if="orgType == 0" value="0"></el-option>
<el-option label="公司" v-if="orgType != 2" value="1"></el-option>
<el-option label="楼盘" value="2"></el-option>
</el-select> -->
<div style="width: 200px">
<!-- <el-input v-model="page.accountName"></el-input>-->
<el-select
@@ -687,6 +697,7 @@ export default {
houseId: "",
timeType: 0,
orgType: localStorage.getItem("orgType"),
selValue:'0',
time: "",
compareFlag: "0",
selectTime: "",
@@ -814,6 +825,15 @@ export default {
// this.getTableList()
},
methods: {
selChange() {
this.choicValue = "";
this.timeType = 4;
// this.getList();
this.getTableList();
this.getdetail();
// 获取对比列表
this.getcompare();
},
// 没有对比时的折线图
getNoCompare(){
this.compareFlag = 0;
@@ -844,6 +864,7 @@ export default {
this.selectTime1 = "";
this.compareList = [];
this.$set(this, "time", null);
this.getcompare();
},
goinfo(row, idx) {
console.log(row, "信息");
@@ -958,13 +979,13 @@ export default {
},
screening() {
this.page.pageNum = 1;
this.page.pageSize = 6;
this.page.pageSize = 10;
this.getTableList();
},
empty() {
this.page = {
pageNum: 1,
pageSize: 6,
pageSize: 10,
openTime: "",
closeTime: "",
houseName: "",
@@ -1038,7 +1059,7 @@ export default {
this.compareFlag = 0;
let obj = {
current: this.pageNum,
pageSize: this.pageSize,
size: this.pageSize,
startDate: this.page.openTime,
endDate: this.page.closeTime,
houseId: this.houseId,
@@ -1056,7 +1077,7 @@ export default {
.then((res) => {
console.log(res,'获取数据')
this.allCompare = res;
this.total = res.data.first.totalRecord;
this.total = res.data.firstPage.total;
// 数据处理
let arr = [];
if (this.pageNum == 1) {
@@ -1070,15 +1091,15 @@ export default {
};
arr.push(obj1);
}
res.data.first.records.map((item, index) => {
res.data.firstPage.records.map((item, index) => {
let obj = {};
//当他为0的时候
obj.name =
res.data.first.records[index].createTime.substring(5, 10) +
res.data.firstPage.records[index].createTime.substring(5, 10) +
"VS" +
res.data.second.records[index].createTime.substring(5, 10);
obj.first = res.data.first.records[index];
obj.second = res.data.second.records[index];
res.data.secondPage.records[index].createTime.substring(5, 10);
obj.first = res.data.firstPage.records[index];
obj.second = res.data.secondPage.records[index];
obj.contrast = res.data.contrast[index];
// obj.time=''
// obj.time1=''
@@ -1149,12 +1170,18 @@ export default {
item.time = item.first[str];
item.time1 = item.second[str];
item.time2 = item.contrast[str] + "";
if (index > 0) {
timeDate.push(item.name);
arr1.push(item.first[str]);
arr2.push(item.second[str]);
}

// if (index > 0) {
// timeDate.push(item.name);
// arr1.push(item.first[str]);
// arr2.push(item.second[str]);
// }
});
this.allCompare.data.first.map((item,idx)=>{
timeDate.push(item.createTime.substring(5)+'VS'+this.allCompare.data.second[idx].createTime.substring(5))
arr1.push(item[str])
arr2.push(this.allCompare.data.second[idx][str])
})
this.compareList = Object.assign([], this.compareList);
this.$forceUpdate();
var chartDom = document.getElementById("compare");
@@ -1264,7 +1291,7 @@ export default {
// console.log(this.allCompare,"第一种");
let timeDate = [];
let arr1 = [];
this.allCompare.data.first.records.map(item=>{
this.allCompare.data.first.map(item=>{
timeDate.push(item.createTime.substring(5))
arr1.push(item[str])
})


+ 1
- 0
src/views/Equipment/index.vue View File

@@ -1200,6 +1200,7 @@ export default {
this.$api.api
.findHouseByUser({
orgType: localStorage.getItem("orgType"),
houseTypes:'0,1,2,3'
})
.then((res) => {
// console.log(res)


+ 5
- 5
src/views/Equipment/state.vue View File

@@ -2,7 +2,7 @@
<div class="box-center">
<!-- 头 -->
<div class="app-top">
<div class="app-titel" style="margin-left: 15px">
<div class="app-titel" style="margin-left: 15px" v-if="orgType!=3">
<el-select
v-model="selValue"
@change="selChange1"
@@ -919,9 +919,9 @@ export default {
// orgCode: localStorage.getItem("orgCode"),
// agentId: localStorage.getItem("agentId"),
// houseId: localStorage.getItem("houseId"),
agentId: this.selValue == 0 ? this.choicValue : 'null',
orgCode: this.selValue == 1 ? this.choicValue : 'null',
houseId: this.selValue == 2 ? this.choicValue : 'null',
agentId: localStorage.getItem("orgType")==1?localStorage.getItem("agentId"):this.selValue == 0 ? this.choicValue : 'null',
orgCode: localStorage.getItem("orgType")==2?localStorage.getItem("orgCode"):this.selValue == 1 ? this.choicValue : 'null',
houseId: localStorage.getItem("orgType")==3?localStorage.getItem("houseId"):this.selValue == 2 ? this.choicValue : 'null',
orgType: localStorage.getItem("orgType"),
...this.searchForm,
})
@@ -1006,7 +1006,7 @@ export default {
.then((res) => {
this.$message({
type: "success",
message: "操作成功!",
message: res.msg,
});
this.getTableList();
});


+ 4
- 4
src/views/building/Count.vue View File

@@ -158,14 +158,14 @@
clearable
></el-cascader>
</div>
<div class="div-lab" v-if="activeTotal == 0">
<div class="div-lab" v-if="orgType == 0">
<div class="label" style="min-width:70px;">系统运营:</div>
<el-input maxlength="10" clearable v-model="searchForm.linkman"></el-input>
</div>
<!-- <div class="div-lab" v-if="activeTotal == 0">
<div class="label" style="min-width:70px;">系统运营:</div>
<div class="div-lab" v-if="orgType == 1">
<div class="label" style="min-width:70px;">售后运营:</div>
<el-input maxlength="10" clearable v-model="searchForm.linkman"></el-input>
</div> -->
</div>
</div>
<div class="app-titel" style="margin-top: 15px">
<div style="margin-left: 20px">


+ 2
- 1
src/views/building/index.vue View File

@@ -240,10 +240,11 @@
<el-table-column
:show-overflow-tooltip="true"
width="120px"
prop="address"
prop="provinceName,cityName"
label="楼盘地址"
align="center"
>
<template slot-scope="scope"> {{scope.row.provinceName}}{{scope.row.cityName}} </template>
</el-table-column>

<el-table-column


Loading…
Cancel
Save