Browse Source

init

newStyle
lancer 2 years ago
parent
commit
27f63aa522
8 changed files with 287 additions and 72 deletions
  1. BIN
      public/img/nullnull.png
  2. +1
    -0
      src/page/check/chose.vue
  3. +1
    -1
      src/views/Customer/AgentManagement.vue
  4. +127
    -35
      src/views/Equipment/equipmentDetailList.vue
  5. +53
    -24
      src/views/Equipment/index.vue
  6. +28
    -5
      src/views/Statistics/ConsultantBrand.vue
  7. +68
    -4
      src/views/building/Count.vue
  8. +9
    -3
      src/views/building/index.vue

BIN
public/img/nullnull.png View File

Before After
Width: 236  |  Height: 236  |  Size: 20 KiB

+ 1
- 0
src/page/check/chose.vue View File

@@ -332,6 +332,7 @@ export default {
propertyName: this.propertyName, propertyName: this.propertyName,
provinceId :this.provinceId , provinceId :this.provinceId ,
cityId:this.cityId, cityId:this.cityId,
sortBy:1,
...obj ...obj
}).then((res) => { }).then((res) => {
// console.log(res) // console.log(res)


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

@@ -1079,7 +1079,7 @@ export default {
contractEndDate:this.contractEndDate, contractEndDate:this.contractEndDate,
serviceStatus:this.serviceStatus, serviceStatus:this.serviceStatus,
agentName:this.agentName, agentName:this.agentName,
operationalId:this.operationalId,
operationStaffId:this.operationalId,
provinceId:this.provinceId, provinceId:this.provinceId,
cityId:this.cityId, cityId:this.cityId,
operationalName:this.operationalName, operationalName:this.operationalName,


+ 127
- 35
src/views/Equipment/equipmentDetailList.vue View File

@@ -9,8 +9,8 @@
padding-top: 18px; padding-top: 18px;
" "
> >
<span class="demonstration">楼盘名称:</span>
<!-- <el-select
<!-- <span class="demonstration">楼盘名称:</span> -->
<el-select
v-model="selValue" v-model="selValue"
@change="selChange" @change="selChange"
style="width: 100px" style="width: 100px"
@@ -19,9 +19,8 @@
<el-option label="代理商" v-if="orgType == 0" value="0"></el-option> <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="公司" v-if="orgType != 2" value="1"></el-option>
<el-option label="楼盘" value="2"></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>
<!-- <div style="width: 200px">
<el-select <el-select
v-model="houseId" v-model="houseId"
filterable filterable
@@ -36,6 +35,55 @@
> >
</el-option> </el-option>
</el-select> </el-select>
</div> -->
<div style="margin-left: 26px" v-if="selValue == 1">
<el-select
v-model="houseId"
filterable
placeholder="默认为全部"
@change="change"
>
<el-option
v-for="item in houseList"
:key="item.orgCode"
:label="item.name"
:value="item.orgCode"
>
</el-option>
</el-select>
</div>
<!-- 楼盘 -->
<div style="margin-left: 26px" v-else-if="selValue == 2">
<el-select
v-model="houseId"
filterable
placeholder="默认为全部"
@change="change"
>
<el-option
v-for="item in houseList"
:key="item.id"
:label="item.propertyName"
:value="item.id"
>
</el-option>
</el-select>
</div>
<div style="margin-left: 26px" v-else>
<el-select
v-model="houseId"
filterable
placeholder="默认为全部"
@change="change"
>
<el-option
v-for="item in houseList"
:key="item.id"
:label="item.agentName"
:value="item.id"
>
</el-option>
</el-select>
</div> </div>
</div> </div>
</div> </div>
@@ -697,7 +745,11 @@ export default {
houseId: "", houseId: "",
timeType: 0, timeType: 0,
orgType: localStorage.getItem("orgType"), orgType: localStorage.getItem("orgType"),
selValue:'0',
selValue: localStorage.getItem("orgType") == 0
? "0"
: localStorage.getItem("orgType") == 1
? "1"
: "2",
time: "", time: "",
compareFlag: "0", compareFlag: "0",
selectTime: "", selectTime: "",
@@ -828,11 +880,12 @@ export default {
selChange() { selChange() {
this.choicValue = ""; this.choicValue = "";
this.timeType = 4; this.timeType = 4;
// this.getList();
this.getTableList();
this.getdetail();
// 获取对比列表
this.getcompare();
this.houseId='';
this.getHouseList();
// this.getTableList();
// this.getdetail();
// // 获取对比列表
// this.getcompare();
}, },
// 没有对比时的折线图 // 没有对比时的折线图
getNoCompare(){ getNoCompare(){
@@ -842,7 +895,9 @@ export default {
// pageSize: this.pageNum, // pageSize: this.pageNum,
startDate: this.page.openTime, startDate: this.page.openTime,
endDate: this.page.closeTime, endDate: this.page.closeTime,
houseId: this.houseId,
agentId: localStorage.getItem("orgType")==1?localStorage.getItem("agentId"):this.selValue == 0 ? this.houseId : 'null',
orgCode: localStorage.getItem("orgType")==2?localStorage.getItem("orgCode"):this.selValue == 1 ? this.houseId : 'null',
houseId: localStorage.getItem("orgType")==3?localStorage.getItem("houseId"):this.selValue == 2 ? this.houseId : 'null',
timeType: this.timeType, timeType: this.timeType,
contrastStartDate: this.selectTime, contrastStartDate: this.selectTime,
contrastEndDate: this.selectTime1, contrastEndDate: this.selectTime1,
@@ -1019,26 +1074,57 @@ export default {
}, },
//获取楼盘数据 //获取楼盘数据
getHouseList() { getHouseList() {
this.$api.api
.findHouseByUser({
orgType: localStorage.getItem("orgType"),
agentId: localStorage.getItem("agentId"),
})
.then((res) => {
this.houseList = res.data;
if (!this.flag) {
// console.log(this.flag, "12");
if (localStorage.getItem("orgType") == 3) {
this.houseId = localStorage.getItem("houseId");
} else {
this.houseId = res.data[0].id;
}
}
// console.log(this.flag,'12')
this.tabtimetap(this.timeType);
// return
this.getTableList();
});
if (this.selValue == 1) {
this.$api.api
.findMyOrg({
orgType: localStorage.getItem("orgType"),
agentId: localStorage.getItem("agentId"),
})
.then((res) => {
this.houseList = res.data;
this.tabtimetap(this.timeType);
this.getTableList();
});
} else if (this.selValue == 2) {
this.$api.api
.findHouseByUser({
orgType: localStorage.getItem("orgType"),
houseId: localStorage.getItem("houseId"),
})
.then((res) => {
this.houseList = res.data;
this.tabtimetap(this.timeType);
this.getTableList();
});
} else {
this.$api.api
.findMyAgent({
orgType: localStorage.getItem("orgType"),
})
.then((res) => {
this.houseList = res.data;
this.tabtimetap(this.timeType);
this.getTableList();
});
}


// this.$api.api.findHouseByUser({
// orgType: localStorage.getItem("orgType"),
// agentId: localStorage.getItem("agentId"),
// })
// .then((res) => {
// this.houseList = res.data;
// if (!this.flag) {
// if (localStorage.getItem("orgType") == 3) {
// this.houseId = localStorage.getItem("houseId");
// } else {
// this.houseId = res.data[0].id;
// }
// }
// this.tabtimetap(this.timeType);
// this.getTableList();
// });
}, },
handleSizeChange(val) { handleSizeChange(val) {
console.log("每页条" + val); console.log("每页条" + val);
@@ -1068,7 +1154,9 @@ export default {
size: this.pageSize, size: this.pageSize,
startDate: this.page.openTime, startDate: this.page.openTime,
endDate: this.page.closeTime, endDate: this.page.closeTime,
houseId: this.houseId,
agentId: localStorage.getItem("orgType")==1?localStorage.getItem("agentId"):this.selValue == 0 ? this.houseId : 'null',
orgCode: localStorage.getItem("orgType")==2?localStorage.getItem("orgCode"):this.selValue == 1 ? this.houseId : 'null',
houseId: localStorage.getItem("orgType")==3?localStorage.getItem("houseId"):this.selValue == 2 ? this.houseId : 'null',
timeType: this.timeType, timeType: this.timeType,
contrastStartDate: this.selectTime, contrastStartDate: this.selectTime,
contrastEndDate: this.selectTime1, contrastEndDate: this.selectTime1,
@@ -1405,7 +1493,9 @@ export default {
let obj = { let obj = {
startDate: this.page.openTime, startDate: this.page.openTime,
endDate: this.page.closeTime, endDate: this.page.closeTime,
houseId: this.houseId,
agentId: localStorage.getItem("orgType")==1?localStorage.getItem("agentId"):this.selValue == 0 ? this.houseId : 'null',
orgCode: localStorage.getItem("orgType")==2?localStorage.getItem("orgCode"):this.selValue == 1 ? this.houseId : 'null',
houseId: localStorage.getItem("orgType")==3?localStorage.getItem("houseId"):this.selValue == 2 ? this.houseId : 'null',
timeType: this.timeType, timeType: this.timeType,
contrastStartDate: this.selectTime, contrastStartDate: this.selectTime,
contrastEndDate: this.selectTime1, contrastEndDate: this.selectTime1,
@@ -1564,7 +1654,9 @@ export default {
pageSize: this.page.pageSize, pageSize: this.page.pageSize,
startDate: this.page.openTime, startDate: this.page.openTime,
endDate: this.page.closeTime, endDate: this.page.closeTime,
houseId: this.houseId,
agentId: localStorage.getItem("orgType")==1?localStorage.getItem("agentId"):this.selValue == 0 ? this.houseId : 'null',
orgCode: localStorage.getItem("orgType")==2?localStorage.getItem("orgCode"):this.selValue == 1 ? this.houseId : 'null',
houseId: localStorage.getItem("orgType")==3?localStorage.getItem("houseId"):this.selValue == 2 ? this.houseId : 'null',
timeType: this.timeType, timeType: this.timeType,
orgType: localStorage.getItem("orgType"), orgType: localStorage.getItem("orgType"),
}; };


+ 53
- 24
src/views/Equipment/index.vue View File

@@ -260,7 +260,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="name" label="上传状态" align="center"> <el-table-column prop="name" label="上传状态" align="center">
</el-table-column> --> </el-table-column> -->
<el-table-column
<!-- <el-table-column
prop="autoSwitch" prop="autoSwitch"
label="自动转写开关" label="自动转写开关"
align="center" align="center"
@@ -269,15 +269,12 @@
<template slot-scope="{ row }"> <template slot-scope="{ row }">
{{ row.autoSwitch == 0 ? "已关闭" : "已开启" }} {{ row.autoSwitch == 0 ? "已关闭" : "已开启" }}
</template> </template>
</el-table-column>
</el-table-column> -->
<el-table-column <el-table-column
prop="defaultTransliteration"
prop="transliterationMethodName"
label="转写方式" label="转写方式"
align="center" align="center"
> >
<template slot-scope="{ row }">
{{ row.defaultTransliteration == 0 ? "科大讯飞" : "思必驰" }}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="acceptanceStatus" prop="acceptanceStatus"
@@ -372,14 +369,18 @@
>归还</el-dropdown-item >归还</el-dropdown-item
> >


<el-dropdown-item
<el-dropdown-item
command="zhuanxeishezhi"
>转写设置</el-dropdown-item
>
<!-- <el-dropdown-item
command="infotranscription" command="infotranscription"
v-if="equ_index_change" v-if="equ_index_change"
>转写方式</el-dropdown-item >转写方式</el-dropdown-item
> >
<el-dropdown-item command="isAutoSwitch" v-if="equ_index_auto" <el-dropdown-item command="isAutoSwitch" v-if="equ_index_auto"
>自动转写</el-dropdown-item >自动转写</el-dropdown-item
>
> -->
<el-dropdown-item <el-dropdown-item
command="acceptance" command="acceptance"
v-if="row.acceptanceStatus == 1 && equ_index_makeSure" v-if="row.acceptanceStatus == 1 && equ_index_makeSure"
@@ -692,6 +693,25 @@
<el-button type="primary" @click="saveReceive()">保存</el-button> <el-button type="primary" @click="saveReceive()">保存</el-button>
</div> </div>
</el-dialog> </el-dialog>


<el-dialog
title="转写设置"
:visible.sync="receiveVisiblescd"
>
<div>
<span>转写方式:</span>
<el-radio-group v-model="radioindex" style="margin-left:30px;">
<el-radio :label="0">关闭转写</el-radio>
<el-radio :label="1">科大讯飞</el-radio>
<el-radio :label="2">思必驰</el-radio>
</el-radio-group>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="receiveVisiblescd = false">取 消</el-button>
<el-button type="primary" @click="shezhizhuanxei()">保存</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>


@@ -750,18 +770,6 @@ export default {
value: "1", value: "1",
label: "未验收", label: "未验收",
}, },
// {
// value: "2",
// label: "维修中",
// },
// {
// value: "3",
// label: "更换中",
// },
// {
// value: "4",
// label: "已报损",
// },
], ],
offStatusList: [ offStatusList: [
{ {
@@ -853,6 +861,9 @@ export default {
{ color: "#1989fa", percentage: 80 }, { color: "#1989fa", percentage: 80 },
{ color: "#6f7ad3", percentage: 100 }, { color: "#6f7ad3", percentage: 100 },
], ],
radioindex:'',
radioindexid:'',
receiveVisiblescd:false
}; };
}, },
computed: { computed: {
@@ -880,6 +891,26 @@ export default {
this.zkhousePage(); this.zkhousePage();
}, },
methods: { methods: {
//转写设置
zhuanxeishezhi(row){
this.radioindexid=row.id;
this.radioindex=row.transliterationMethod;
this.receiveVisiblescd=true;
},
//转写设置确认
shezhizhuanxei(){
this.$api.api.updateTranslationMethod({
id: this.radioindexid,
transliterationMethod:this.radioindex,
}).then((res) => {
this.receiveVisiblescd=false;
this.$message({
type: "success",
message: "修改成功!",
});
this.equipmentManagement();
});
},
// 获取批次列表 // 获取批次列表
zkequipmentbatchList() { zkequipmentbatchList() {
this.$api.api.zkequipmentbatchList().then((res) => { this.$api.api.zkequipmentbatchList().then((res) => {
@@ -1325,12 +1356,10 @@ export default {
} }
) )
.then(() => { .then(() => {
this.$api.api
.updateTranslationMethod({
this.$api.api.updateTranslationMethod({
id: row.id, id: row.id,
defaultTransliteration: row.defaultTransliteration == 0 ? 1 : 0, defaultTransliteration: row.defaultTransliteration == 0 ? 1 : 0,
})
.then((res) => {
}).then((res) => {
this.$message({ this.$message({
type: "success", type: "success",
message: "修改成功!", message: "修改成功!",


+ 28
- 5
src/views/Statistics/ConsultantBrand.vue View File

@@ -177,7 +177,7 @@
<div class="text1-2">{{avg1}}次</div> <div class="text1-2">{{avg1}}次</div>
</div> </div>
</div> </div>
<div
<div v-if="echarlist.length!=0"
style="overflow-y: auto; height: 258px; width: 94%; margin: 0 auto" style="overflow-y: auto; height: 258px; width: 94%; margin: 0 auto"
> >
<div class="jinbox" v-for="(item, i) in echarlist" :key="i"> <div class="jinbox" v-for="(item, i) in echarlist" :key="i">
@@ -191,6 +191,12 @@
<div class="jinboxbott">{{ item.zxl }}</div> <div class="jinboxbott">{{ item.zxl }}</div>
</div> </div>
</div> </div>
<div class="nulllist" style="height:250px" v-if="echarlist.length==0">
<div class="imgboxc">
<img class="imgboxc-img" src="/img/nullnull.png" alt="">
<div class="nulltext">暂无数据</div>
</div>
</div>
</div> </div>
<div class="you"> <div class="you">
<div class="title"> <div class="title">
@@ -211,7 +217,7 @@
<div class="text1-2">{{Math.floor(avg2/60)}}分钟</div> <div class="text1-2">{{Math.floor(avg2/60)}}分钟</div>
</div> </div>
</div> </div>
<div
<div v-if="echarlist2.length!=0"
style="overflow-y: auto; height: 258px; width: 94%; margin: 0 auto" style="overflow-y: auto; height: 258px; width: 94%; margin: 0 auto"
> >
<div class="jinbox" v-for="(item, i) in echarlist2" :key="i"> <div class="jinbox" v-for="(item, i) in echarlist2" :key="i">
@@ -225,7 +231,12 @@
<div class="jinboxbott">{{ item.zxl }}</div> <div class="jinboxbott">{{ item.zxl }}</div>
</div> </div>
</div> </div>

<div class="nulllist" style="height:250px" v-if="echarlist2.length==0">
<div class="imgboxc">
<img class="imgboxc-img" src="/img/nullnull.png" alt="">
<div class="nulltext">暂无数据</div>
</div>
</div>
</div> </div>
</div> </div>


@@ -260,7 +271,7 @@
<div class="text1-2">{{avg3}}%</div> <div class="text1-2">{{avg3}}%</div>
</div> </div>
</div> </div>
<div
<div v-if="echarlist1.length!=0"
style="overflow-y: auto; height: 258px; width: 94%; margin: 0 auto" style="overflow-y: auto; height: 258px; width: 94%; margin: 0 auto"
> >
<div class="jinbox" v-for="(item, i) in echarlist1" :key="i"> <div class="jinbox" v-for="(item, i) in echarlist1" :key="i">
@@ -274,6 +285,12 @@
<div class="jinboxbott">{{ item.zxl }}%</div> <div class="jinboxbott">{{ item.zxl }}%</div>
</div> </div>
</div> </div>
<div class="nulllist" style="height:250px" v-if="echarlist1.length==0">
<div class="imgboxc">
<img class="imgboxc-img" src="/img/nullnull.png" alt="">
<div class="nulltext">暂无数据</div>
</div>
</div>
</div> </div>
<div class="you"> <div class="you">
<div class="title"> <div class="title">
@@ -309,7 +326,7 @@
<div class="text1-2">{{avg4}}次</div> <div class="text1-2">{{avg4}}次</div>
</div> </div>
</div> </div>
<div
<div v-if="echarlist3.length!=0"
style="overflow-y: auto; height: 258px; width: 94%; margin: 0 auto" style="overflow-y: auto; height: 258px; width: 94%; margin: 0 auto"
> >
<div class="jinbox" v-for="(item, i) in echarlist3" :key="i"> <div class="jinbox" v-for="(item, i) in echarlist3" :key="i">
@@ -323,6 +340,12 @@
<div class="jinboxbott">{{ item.zxl }}</div> <div class="jinboxbott">{{ item.zxl }}</div>
</div> </div>
</div> </div>
<div class="nulllist" style="height:250px" v-if="echarlist3.length==0">
<div class="imgboxc">
<img class="imgboxc-img" src="/img/nullnull.png" alt="">
<div class="nulltext">暂无数据</div>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>


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

@@ -158,13 +158,31 @@
clearable clearable
></el-cascader> ></el-cascader>
</div> </div>
<div class="div-lab" v-if="orgType == 0">
<!-- <div class="div-lab" v-if="orgType == 0">
<div class="label" style="min-width:70px;">系统运营:</div> <div class="label" style="min-width:70px;">系统运营:</div>
<el-input maxlength="10" clearable v-model="searchForm.linkman"></el-input> <el-input maxlength="10" clearable v-model="searchForm.linkman"></el-input>
</div> </div>
<div class="div-lab" v-if="orgType == 1"> <div class="div-lab" v-if="orgType == 1">
<div class="label" style="min-width:70px;">售后运营:</div> <div class="label" style="min-width:70px;">售后运营:</div>
<el-input maxlength="10" clearable v-model="searchForm.linkman"></el-input> <el-input maxlength="10" clearable v-model="searchForm.linkman"></el-input>
</div> -->
<div v-if="orgType == 0||orgType == 1" class="div-lab">
<div class="label">运营人员:</div>
<el-select
v-model="searchForm.operationStaffId"
placeholder="请选择"
class="div-inp"
filterable
clearable
>
<el-option
v-for="item in operaList"
:key="item.accountId"
:label="item.name"
:value="item.accountId"
>
</el-option>
</el-select>
</div> </div>
</div> </div>
<div class="app-titel" style="margin-top: 15px"> <div class="app-titel" style="margin-top: 15px">
@@ -188,11 +206,14 @@
</el-table-column> </el-table-column>
<el-table-column prop="agentName" label="代理商" align="center"> <el-table-column prop="agentName" label="代理商" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="equipmentNum" label="设备总数" align="center">
</el-table-column>



<el-table-column prop="area" label="地区" align="center"> <el-table-column prop="area" label="地区" align="center">
</el-table-column> </el-table-column>


<el-table-column prop="linkman" label="系统运营" align="center">
<el-table-column v-if="orgType!=2" prop="operationStaffName" label="运营人员" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="onlineQuantity" label="在线设备" align="center"> <el-table-column prop="onlineQuantity" label="在线设备" align="center">
</el-table-column> </el-table-column>
@@ -242,6 +263,12 @@
</el-table-column> </el-table-column>
<el-table-column prop="onlineQuantity" label="在线设备" align="center"> <el-table-column prop="onlineQuantity" label="在线设备" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="area" label="地区" align="center">
</el-table-column>
<el-table-column prop="operationStaffName" label="运营人员" align="center">
</el-table-column>
<el-table-column prop="equipmentNum" label="设备总数" align="center">
</el-table-column>
<el-table-column <el-table-column
prop="noOnlineQuantity" prop="noOnlineQuantity"
label="离线设备" label="离线设备"
@@ -281,11 +308,15 @@
<el-table v-if="activeTotal==1" :data="tableData" stripe style="width: 100%"> <el-table v-if="activeTotal==1" :data="tableData" stripe style="width: 100%">
<el-table-column prop="agentName" label="代理商名称" align="center"> <el-table-column prop="agentName" label="代理商名称" align="center">
</el-table-column> </el-table-column>
<!-- <el-table-column prop="area" label="服务期内公司" align="center">
</el-table-column> -->
<el-table-column prop="area" label="地区" align="center">
</el-table-column>
<el-table-column prop="operationStaffName" label="运营人员" align="center">
</el-table-column>
<el-table-column prop="houseQuantityOfEnough" label="服务期内楼盘" align="center"> <el-table-column prop="houseQuantityOfEnough" label="服务期内楼盘" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="sumReception" label="接待量" align="center"> <el-table-column prop="sumReception" label="接待量" align="center">
</el-table-column>
<el-table-column prop="equipmentNum" label="设备总数" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="sumRecordTime" label="接待时长" align="center"> <el-table-column prop="sumRecordTime" label="接待时长" align="center">
</el-table-column> </el-table-column>
@@ -382,11 +413,13 @@ export default {
dateType: "4", dateType: "4",
startDate: "", startDate: "",
endDate: "", endDate: "",
operationStaffId:''
}, },
currentPage: 1, currentPage: 1,
selflag: "1", selflag: "1",
size: 10, size: 10,
total: 10, total: 10,
operaList:[]
}; };
}, },
computed: { computed: {
@@ -401,10 +434,26 @@ export default {
} }
// 获取楼盘列表 // 获取楼盘列表
this.tabtimetap(4); this.tabtimetap(4);
this.getOperaList()
this.houseStatistics(); this.houseStatistics();


}, },
methods: { methods: {
getOperaList(){
if (this.orgType == 1) {
this.$api.http
.getAllOperationsStaffByAgent({
agentId: localStorage.getItem('agentId'),
})
.then((res) => {
this.operaList = res.data;
});
} else {
this.$api.http.getAllOperationsStaff().then((res) => {
this.operaList = res.data;
});
}
},
selectChange(e) { selectChange(e) {
this.searchForm.equipImei = ""; this.searchForm.equipImei = "";
this.searchForm.userName = ""; this.searchForm.userName = "";
@@ -523,6 +572,13 @@ export default {
orgType:localStorage.getItem('orgType'), orgType:localStorage.getItem('orgType'),
}; };
if(this.activeTotal==0){ if(this.activeTotal==0){
if(this.orgType==0){
obj.operationType=1
}else if(this.orgType==1){
obj.operationType=2
}else{
obj.operationType=null
}
// 楼盘 // 楼盘
this.$api.api.houseStatistics1(obj).then((res) => { this.$api.api.houseStatistics1(obj).then((res) => {
// console.log(res); // console.log(res);
@@ -530,6 +586,7 @@ export default {
this.total = res.data.total; this.total = res.data.total;
}); });
}else if(this.activeTotal==1){ }else if(this.activeTotal==1){
obj.operationType=null;
// 代理商 // 代理商
this.$api.api.agentStatistics(obj).then((res) => { this.$api.api.agentStatistics(obj).then((res) => {
// console.log(res); // console.log(res);
@@ -537,6 +594,13 @@ export default {
this.total = res.data.total; this.total = res.data.total;
}); });
}else{ }else{
if(this.orgType==0){
obj.operationType=1
}else if(this.orgType==1){
obj.operationType=2
}else{
obj.operationType=null
}
// 公司 // 公司
this.$api.api.companyStatistics(obj).then((res) => { this.$api.api.companyStatistics(obj).then((res) => {
// console.log(res); // console.log(res);


+ 9
- 3
src/views/building/index.vue View File

@@ -258,6 +258,7 @@
prop="provinceName,cityName" prop="provinceName,cityName"
label="楼盘地址" label="楼盘地址"
align="center" align="center"
:key="Math.random()"
> >
<template slot-scope="scope"> {{scope.row.provinceName}}{{scope.row.cityName}} </template> <template slot-scope="scope"> {{scope.row.provinceName}}{{scope.row.cityName}} </template>
</el-table-column> </el-table-column>
@@ -267,21 +268,25 @@
prop="linkman" prop="linkman"
label="联系人信息" label="联系人信息"
align="center" align="center"
:key="Math.random()"
> >
<template slot-scope="{ row }"> <template slot-scope="{ row }">
{{ row.linkman + "-" + row.linkmanPhone || "-" }} {{ row.linkman + "-" + row.linkmanPhone || "-" }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop='operationStaffName' label="运营人员" align="center">
</el-table-column>


<el-table-column prop="managerPhone" label="管理员账号" align="center">

<el-table-column :key="Math.random()" prop="managerPhone" label="管理员账号" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
{{ row.managerPhone || "-" }} {{ row.managerPhone || "-" }}
</template> </template>
</el-table-column> </el-table-column>


<el-table-column :key="Math.random()" prop='operationStaffName' v-if="orgType==0||orgType==1" label="运营人员" align="center">
</el-table-column>

<el-table-column <el-table-column
:key="Math.random()"
prop="houseType" prop="houseType"
label="楼盘类型" label="楼盘类型"
align="center" align="center"
@@ -1311,6 +1316,7 @@ export default {
orgCode: localStorage.getItem("orgCode"), orgCode: localStorage.getItem("orgCode"),
operationType:localStorage.getItem("orgType")==0?'1':localStorage.getItem("orgType")==1?'2':'', operationType:localStorage.getItem("orgType")==0?'1':localStorage.getItem("orgType")==1?'2':'',
...this.searchForm, ...this.searchForm,

}; };
if (this.orgType == 0) { if (this.orgType == 0) {
obj.residueTime = null; obj.residueTime = null;


Loading…
Cancel
Save