Browse Source

提交

newStyle
douzhuo 2 years ago
parent
commit
79f251b7ce
51 changed files with 599 additions and 479 deletions
  1. BIN
      dist.zip
  2. +17
    -17
      src/api/modules/api.js
  3. +4
    -4
      src/api/modules/http.js
  4. +5
    -5
      src/page/check/chose.vue
  5. +7
    -7
      src/page/check/index.vue
  6. +9
    -9
      src/page/index/top/index.vue
  7. +5
    -5
      src/page/login/userlogin.vue
  8. +17
    -15
      src/page/wel.vue
  9. +2
    -2
      src/router/page/index.js
  10. +3
    -3
      src/views/Customer/AgentManagement.vue
  11. +4
    -4
      src/views/Customer/CompanyRecord.vue
  12. +1
    -1
      src/views/Customer/Companymanagement.vue
  13. +3
    -3
      src/views/Customer/SalesStage.vue
  14. +3
    -3
      src/views/Customer/index.vue
  15. +2
    -2
      src/views/Customer/label.vue
  16. +2
    -2
      src/views/Customer/source.vue
  17. +4
    -4
      src/views/Equipment/equipmentDetailList.vue
  18. +3
    -3
      src/views/Equipment/equipmentOnlineRecordList.vue
  19. +12
    -12
      src/views/Equipment/index.vue
  20. +1
    -1
      src/views/Equipment/record.vue
  21. +188
    -119
      src/views/Equipment/state.vue
  22. +10
    -7
      src/views/Receive/index.vue
  23. +4
    -4
      src/views/ReceivingRecords/index.vue
  24. +3
    -3
      src/views/Scheduling/index.vue
  25. +6
    -6
      src/views/Statistics/BuildingContrast.vue
  26. +1
    -1
      src/views/Statistics/ConsultantBrand.vue
  27. +1
    -1
      src/views/Statistics/EmployeesReceive.vue
  28. +1
    -1
      src/views/Statistics/MentoringAbility.vue
  29. +3
    -3
      src/views/Statistics/ReceptionOverview.vue
  30. +1
    -1
      src/views/Statistics/ReceptionStatistical.vue
  31. +1
    -1
      src/views/Statistics/TheTeamCompared.vue
  32. +2
    -2
      src/views/Statistics/TrendAnalysis.vue
  33. +15
    -15
      src/views/Statistics/dataScreeAge.vue
  34. +16
    -16
      src/views/Statistics/dataScreeOrg.vue
  35. +19
    -19
      src/views/Statistics/dataScreeSys.vue
  36. +8
    -8
      src/views/Statistics/houseDataSys.vue
  37. +2
    -2
      src/views/Statistics/index.vue
  38. +5
    -5
      src/views/Statistics/trend.vue
  39. +7
    -7
      src/views/Template/Pinspeakwords.vue
  40. +4
    -4
      src/views/Template/PinspeakwordsList.vue
  41. +62
    -38
      src/views/Template/taboo.vue
  42. +2
    -2
      src/views/Template/wrongword.vue
  43. +1
    -1
      src/views/admin/app/index.vue
  44. +62
    -41
      src/views/admin/dept/index.vue
  45. +1
    -1
      src/views/admin/role/index.vue
  46. +23
    -23
      src/views/admin/user/index.vue
  47. +11
    -11
      src/views/building/Count.vue
  48. +23
    -23
      src/views/building/index.vue
  49. +5
    -5
      src/views/houseData/analyse.vue
  50. +6
    -6
      src/views/houseData/count.vue
  51. +2
    -1
      vue.config.js

BIN
dist.zip View File


+ 17
- 17
src/api/modules/api.js View File

@@ -85,7 +85,7 @@ export function getRoleByOrgCode(query) {
}

// 用户管理
// 获取当前人的所有楼盘
// 获取当前人的所有项目
export function queryHouseByUsername(query) {
return request({
url: '/autoSR/zkhouse/queryHouseByUsername',
@@ -313,7 +313,7 @@ export function findHouseByUser(query) {
}
})
}
// 楼盘绑定
// 项目绑定
export function saveHouse(data) {
return request({
url: '/admin/user/saveHouse',
@@ -374,7 +374,7 @@ export function rolePage(query) {
}


// 楼盘管理,获取公司列表
// 项目管理,获取公司列表
export function getCompanyList(query) {
return request({
url: '/autoSR/zkorg/findMyOrg',
@@ -382,7 +382,7 @@ export function getCompanyList(query) {
params:query
})
}
// 获取楼盘管理列表
// 获取项目管理列表
export function zkhousePage(query) {
return request({
url: '/autoSR/zkhouse/page',
@@ -399,7 +399,7 @@ export function getAreaList(query) {
params:query
})
}
// 获取当前人的区域的楼盘
// 获取当前人的区域的项目
export function findHouseByArea(query) {
return request({
url: 'autoSR/cushouseuserrelationmid/findHouseByArea',
@@ -423,7 +423,7 @@ export function getAllOperationsStaffByAgent(query) {
params:query
})
}
// 添加楼盘
// 添加项目
export function addZkhouse(data) {
return request({
url: '/autoSR/zkhouse',
@@ -638,7 +638,7 @@ export function equipmentZxOnFindByPage(query) {
})
}

//楼盘获取顾问列表
//项目获取顾问列表
export function getUserByHouseId(query) {
return request({
url: '/admin/user/getUserByHouseId',
@@ -734,7 +734,7 @@ export function equipReceiveFindByPage(query) {
params:query
})
}
// 楼盘对比列表
// 项目对比列表
export function houseStatistics(query) {
return request({
url: 'autoSR/zkhouse/houseStatistics',
@@ -767,7 +767,7 @@ export function zkoperationrecordSaveCompany(data) {
data
})
}
// 楼盘运营人员添加
// 项目运营人员添加
export function zkoperationrecordSaveHouse(data) {
return request({
url: '/autoSR/zkoperationrecord/saveHouse',
@@ -808,7 +808,7 @@ export function deptUpdate(data) {
data
})
}
// 根据楼盘获取部门
// 根据项目获取部门
export function deptFindList(query) {
return request({
url: 'admin/dept/findList',
@@ -832,7 +832,7 @@ export function bindAgent(data) {
data
})
}
// 楼盘绑定代理商
// 项目绑定代理商
export function saveAgent(data) {
return request({
url: 'autoSR/zkhouse/saveAgent',
@@ -881,7 +881,7 @@ export function dataOverviewWithSystemWithLook(data) {
data
})
}
// 获取楼盘数据一
// 获取项目数据一
export function houseDataAll(data) {
return request({
url: 'autoSR/cusStageStatistics/houseDataAll',
@@ -889,7 +889,7 @@ export function houseDataAll(data) {
data
})
}
// 获取楼盘数据一
// 获取项目数据一
export function houseTrends(data) {
return request({
url: 'autoSR/cusStageStatistics/houseTrends',
@@ -914,7 +914,7 @@ export function receptionDataOfSystem(data) {
data
})
}
// 楼盘统计公司
// 项目统计公司
export function companyStatistics(query) {
return request({
url: 'autoSR/cusStageStatistics/companyStatistics',
@@ -922,7 +922,7 @@ export function companyStatistics(query) {
params:query
})
}
// 楼盘统计代理商
// 项目统计代理商
export function agentStatistics(query) {
return request({
url: 'autoSR/cusStageStatistics/agentStatistics',
@@ -930,7 +930,7 @@ export function agentStatistics(query) {
params:query
})
}
// 楼盘统计代理商
// 项目统计代理商
export function houseStatistics1(query) {
return request({
url: 'autoSR/cusStageStatistics/houseStatistics',
@@ -1063,7 +1063,7 @@ export function filedownload(query) {
params:query
})
}
//选择楼盘
//选择项目
export function addLoginCount(data) {
return request({
url: 'admin/log/addLoginCount',


+ 4
- 4
src/api/modules/http.js View File

@@ -465,7 +465,7 @@ export function agentListupdate(query) {
// 总览


//获取楼盘下部门
//获取项目下部门
export function overviewfindList(query) {
return request({
url: 'admin/dept/findListByUser',
@@ -474,7 +474,7 @@ export function overviewfindList(query) {
})
}

//获取楼盘下顾问
//获取项目下顾问
export function overviewfindUserListByHouseId(query) {
return request({
url: 'autoSR/cushouseuserrelationmid/findUserListByHouseId',
@@ -625,7 +625,7 @@ export function teamAllLevel(query) {
}


//楼盘对比表格
//项目对比表格
export function houseTable(query) {
return request({
url: 'autoSR/cusStageStatistics/houseTable',
@@ -634,7 +634,7 @@ export function houseTable(query) {
})
}

//楼盘对比图表
//项目对比图表
export function houseData(query) {
return request({
url: 'autoSR/cusStageStatistics/houseData',


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

@@ -6,7 +6,7 @@
</div>
<div class="hid">
选择后台|{{
flag == 1 ? "选择代理商" : flag == 2 ? "选择公司" : "选择楼盘"
flag == 1 ? "选择代理商" : flag == 2 ? "选择公司" : "选择项目"
}}
</div>
<div class="content" v-if="flag == 1">
@@ -142,7 +142,7 @@
</el-select>
<el-input
v-if="info.selectHouseType == 1"
placeholder="请输入楼盘名称"
placeholder="请输入项目名称"
style="width: 200px; margin-left: 40px; margin-right: 30px"
v-model="propertyName"
clearable
@@ -165,7 +165,7 @@
@click="chose(item)"
>
<div class="text-1">{{ item.propertyName }}</div>
<div class="text-2">楼盘类型:{{ item.houseType==0?'正式':item.houseType==1?'试用':item.houseType==2?'演示':'测试' }}</div>
<div class="text-2">项目类型:{{ item.houseType==0?'正式':item.houseType==1?'试用':item.houseType==2?'演示':'测试' }}</div>
<div class="text-2">
服务状态:
<span
@@ -295,7 +295,7 @@ export default {
.then((res) => {
// console.log(res);
this.info.selectHouseType=res.selectHouseType
// 获取楼盘
// 获取项目
this.zkhousePage();
// 获取区域列表
this.findArea();
@@ -414,7 +414,7 @@ export default {
// // 获取公司
// this.getCompanyList();
// } else {
// // 获取楼盘
// // 获取项目
// }
if (this.flag == 1) {
// 获取代理商


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

@@ -23,7 +23,7 @@
</div>
<div class="tab" @click="goindex(3)" v-if="tabFlag4">
<div><img src="/img/checktab4.png" alt="" /></div>
<div class="text">楼盘后台</div>
<div class="text">项目后台</div>
</div>
</div>
</div>
@@ -40,7 +40,7 @@ export default {
tabFlag2: false,
// 公司后台标志
tabFlag3: false,
// 楼盘后台标志
// 项目后台标志
tabFlag4: false,
backFlag: false,
info: {},
@@ -112,7 +112,7 @@ export default {
// this.list = res.data.records;
// this.total = res.data.total;
if (res.data.total == 0) {
this.$message.warning("您当前并未绑定楼盘");
this.$message.warning("您当前并未绑定项目");
return;
} else if (res.data.total > 1) {
// 公司后台
@@ -169,7 +169,7 @@ export default {
.then((res) => {
// console.log(res);
this.info.selectHouseType = res.selectHouseType;
// 获取楼盘
// 获取项目
this.zkhousePage();
});
},
@@ -193,7 +193,7 @@ export default {
// this.list = res.data.records;
// this.total = res.data.total;
if (res.data.total == 0) {
this.$message.warning("您当前并未绑定楼盘");
this.$message.warning("您当前并未绑定项目");
return;
} else if (res.data.total > 1) {
// 公司后台
@@ -223,7 +223,7 @@ export default {
// this.list = res.data.records;
// this.total = res.data.total;
if (res.data.total == 0) {
this.$message.warning("您当前并未绑定楼盘");
this.$message.warning("您当前并未绑定项目");
return;
} else if (res.data.total > 1) {
// 公司后台
@@ -264,7 +264,7 @@ export default {
}
if (idx == 3) {
this.findByUserName();
// 楼盘后台
// 项目后台
// this.$router.push({ path: "/chose", query: { flag: 3 } });
}
localStorage.setItem("allClose", true);


+ 9
- 9
src/page/index/top/index.vue View File

@@ -32,7 +32,7 @@
? "代理商后台"
: orgType == 2
? "公司后台"
: "楼盘后台"
: "项目后台"
}}
</div>
</div>
@@ -247,7 +247,7 @@ export default {
},
created() {
handleImg(this.userInfo.avatar, "thumbnail");
// this.getHouseList() //获取当前人的所有楼盘
// this.getHouseList() //获取当前人的所有项目
},
mounted() {
listenfullscreen(this.setScreen);
@@ -301,7 +301,7 @@ export default {
}
if (idx == 3) {
this.findByUserName();
// 楼盘后台
// 项目后台
}
},
goChange() {
@@ -337,7 +337,7 @@ export default {
}
if (idx == 3) {
this.findByUserName();
// 楼盘后台
// 项目后台
}
} else {
this.$router.push({ path: "/check", query: { backFlag: true } });
@@ -408,7 +408,7 @@ export default {
.then((res) => {
// console.log(res);
this.info.selectHouseType = res.selectHouseType;
// 获取楼盘
// 获取项目
this.zkhousePage();
});
},
@@ -424,13 +424,13 @@ export default {
// this.list = res.data.records;
// this.total = res.data.total;
if (res.data.total == 0) {
this.$message.warning("您当前并未绑定楼盘");
this.$message.warning("您当前并未绑定项目");
return;
} else if (res.data.total > 1) {
// 公司后台
this.$router.push({ path: "/chose", query: { flag: 3 } });
} else {
this.$message.warning("您没有多余的楼盘");
this.$message.warning("您没有多余的项目");
return;
// this.$router.push({ path: "/wel" });
localStorage.setItem("topName", res.data.records[0].propertyName);
@@ -451,13 +451,13 @@ export default {
// this.list = res.data.records;
// this.total = res.data.total;
if (res.data.total == 0) {
this.$message.warning("您当前并未绑定楼盘");
this.$message.warning("您当前并未绑定项目");
return;
} else if (res.data.total > 1) {
// 公司后台
this.$router.push({ path: "/chose", query: { flag: 3 } });
} else {
this.$message.warning("您没有多余的楼盘");
this.$message.warning("您没有多余的项目");
return;
// this.$router.push({ path: "/wel" });
localStorage.setItem("topName", res.data.records[0].propertyName);


+ 5
- 5
src/page/login/userlogin.vue View File

@@ -156,7 +156,7 @@ export default {
}
if (idx == 3) {
this.findByUserName();
// 楼盘后台
// 项目后台
// that.$router.push({ path: "/chose", query: { flag: 3 } });
}
} else {
@@ -209,7 +209,7 @@ export default {
// this.list = res.data.records;
// this.total = res.data.total;
if (res.data.total == 0) {
this.$message.warning("您当前并未绑定楼盘");
this.$message.warning("您当前并未绑定项目");
return;
} else if (res.data.total > 1) {
// 公司后台
@@ -235,7 +235,7 @@ export default {
.then((res) => {
// console.log(res);
this.info.selectHouseType = res.selectHouseType;
// 获取楼盘
// 获取项目
this.zkhousePage();
});
},
@@ -251,7 +251,7 @@ export default {
// this.list = res.data.records;
// this.total = res.data.total;
if (res.data.total == 0) {
this.$message.warning("您当前并未绑定楼盘");
this.$message.warning("您当前并未绑定项目");
return;
} else if (res.data.total > 1) {
// 公司后台
@@ -281,7 +281,7 @@ export default {
// this.list = res.data.records;
// this.total = res.data.total;
if (res.data.total == 0) {
this.$message.warning("您当前并未绑定楼盘");
this.$message.warning("您当前并未绑定项目");
return;
} else if (res.data.total > 1) {
// 公司后台


+ 17
- 15
src/page/wel.vue View File

@@ -1,7 +1,7 @@
<template>
<div class="box-center">
<div class="house-only" v-if="role == 3 && info.userRoleType != 6">
<!-- 楼盘后台 -->
<!-- 项目后台 -->
<div class="app-titel">
<div class="titel-text">时间</div>
<div class="toptimeqhuan">
@@ -447,7 +447,7 @@
</div>

<div class="pagechen" @click="jumpto('2')">
<div class="pageboxtitle1">45天到期的楼盘</div>
<div class="pageboxtitle1">45天到期的项目</div>
<div class="pageboxtitle3">
{{ sysTop.matuityOfHouse || 0 }}
</div>
@@ -503,7 +503,7 @@
<!-- 卡片部分 -->
<div class="page-container">
<div class="pagechen">
<div class="pageboxtitle1">新增楼盘数</div>
<div class="pageboxtitle1">新增项目数</div>
<div class="pageboxtitle2">
<div class="span1">{{ sysSec.newAddHouseQuantity || 0 }}</div>
<div class="span2">
@@ -522,7 +522,7 @@
</div>
</div>
<div class="pagechen">
<div class="pageboxtitle1">活跃楼盘数</div>
<div class="pageboxtitle1">活跃项目数</div>
<div class="pageboxtitle2">
<div class="span1">{{ sysSec.activeHouseQuantity || 0 }}</div>
<div class="span2">
@@ -909,7 +909,7 @@
</div>

<div class="pagechen">
<div class="pageboxtitle1">活跃楼盘数</div>
<div class="pageboxtitle1">活跃项目数</div>
<div class="pageboxtitle2">
<div class="span1">{{ sysSec.activeHouseQuantity || 0 }}</div>
<div class="span2">
@@ -934,7 +934,7 @@
<div class="zuo">
<div class="title1" style="cursor: pointer">
<div>
{{ role == 2 ? "楼盘排名(TOP10)" : "公司排名(TOP10)" }}
{{ role == 2 ? "项目排名(TOP10)" : "公司排名(TOP10)" }}
</div>
<div style="display: flex">
<div
@@ -963,7 +963,7 @@
>>
<el-table-column
prop="companyName"
:label="role == 2 ? '楼盘名称' : '公司名称'"
:label="role == 2 ? '项目名称' : '公司名称'"
align="center"
>
<template slot-scope="{ row }">
@@ -1001,7 +1001,7 @@
<div class="you">
<div class="title1" style="cursor: pointer">
<div>
{{ role == 2 ? "顾问排名(TOP10)" : "楼盘排名(TOP10)" }}
{{ role == 2 ? "顾问排名(TOP10)" : "项目排名(TOP10)" }}
</div>
<div style="display: flex">
<div
@@ -1031,7 +1031,7 @@
>>
<el-table-column
prop="houseName"
:label="role == 2 ? '顾问名称' : '楼盘名称'"
:label="role == 2 ? '顾问名称' : '项目名称'"
align="center"
>
<template slot-scope="{ row }">
@@ -1089,7 +1089,7 @@ export default {
houseId: "",
houseList: [],
houseRank: [],
allHouseRank: {}, // 全部的楼盘排名
allHouseRank: {}, // 全部的项目排名
companyRank: [],
allCompanyRank: {}, // 全部的排名列表
classatec: 1,
@@ -1120,17 +1120,19 @@ export default {
list: [],
fraction: "",
},
info: {},
};
},

computed: {
...mapGetters(["permissions"]),
info() {
return this.$store.state.user.userInfo
}
},

mounted() {
this.role = localStorage.getItem("orgType");
this.info = getStore({ name: "userInfo" });
if (this.role == 3) {
this.houseId = localStorage.getItem("houseId");

@@ -1250,7 +1252,7 @@ export default {
let gettime = yy + "-" + mm + "-" + dd;
return gettime;
},
//切换楼盘
//切换项目
houseChange() {
this.TimetoAhoose = 0;
this.statDateStart = "";
@@ -1295,7 +1297,7 @@ export default {
});
},

// 选择公司类型切换 classatec1 公司/楼盘 classatec2 楼盘/顾问
// 选择公司类型切换 classatec1 公司/项目 classatec2 项目/顾问
chooseCompanyRank(keys, index) {
this[keys] = index
console.log(keys)
@@ -1331,7 +1333,7 @@ export default {
}
},

//获取楼盘
//获取项目
zkhousePage() {
this.$api.api
.findHouseByUser({


+ 2
- 2
src/router/page/index.js View File

@@ -80,11 +80,11 @@ export default [{
}
},
// {
// // 楼盘选择
// // 项目选择
// path: '/building/chose',
// component: () =>
// import(/* webpackChunkName: "page" */ '@/views/building/chose'),
// name: '楼盘选择',
// name: '项目选择',
// meta: {
// keepAlive: true,
// isTab: false,


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

@@ -1027,7 +1027,7 @@ export default {
//确认编辑
editor() {
// if(!this.resetFlag){
// this.$message.error('平台用户与楼盘用户不能重复添加!')
// this.$message.error('平台用户与项目用户不能重复添加!')
// return
// }
this.$refs.editoragentobj.validate((valid) => {
@@ -1109,7 +1109,7 @@ export default {
//确认更换
replace() {
if (!this.resetFlag) {
this.$message.error("平台用户与楼盘用户不能重复添加!");
this.$message.error("平台用户与项目用户不能重复添加!");
return;
}
this.$refs.replaceagentobj.validate((valid) => {
@@ -1154,7 +1154,7 @@ export default {
//确认新增
add() {
// if(!this.resetFlag){
// this.$message.error('平台用户与楼盘用户不能重复添加!')
// this.$message.error('平台用户与项目用户不能重复添加!')
// return
// }
this.$refs.addagentobj.validate((valid) => {


+ 4
- 4
src/views/Customer/CompanyRecord.vue View File

@@ -126,7 +126,7 @@

<el-table-column prop="managerPhone" label="管理员账号" align="center">
</el-table-column>
<el-table-column prop="houseNum" label="服务期楼盘" align="center">
<el-table-column prop="houseNum" label="服务期项目" align="center">
</el-table-column>
<el-table-column prop="lockFlag" label="状态" align="center">
<template slot-scope="{ row }">
@@ -989,7 +989,7 @@ export default {
//确认编辑
editor() {
// if(!this.resetFlag){
// this.$message.error('平台用户与楼盘用户不能重复添加!')
// this.$message.error('平台用户与项目用户不能重复添加!')
// return
// }
this.$refs.editoragentobj.validate((valid) => {
@@ -1067,7 +1067,7 @@ export default {
//确认更换
replace() {
if (!this.resetFlag) {
this.$message.error("平台用户与楼盘用户不能重复添加!");
this.$message.error("平台用户与项目用户不能重复添加!");
return;
}
this.$refs.replaceagentobj.validate((valid) => {
@@ -1219,7 +1219,7 @@ export default {
//确认新增
add() {
// if(!this.resetFlag){
// this.$message.error('平台用户与楼盘用户不能重复添加!')
// this.$message.error('平台用户与项目用户不能重复添加!')
// return
// }
this.$refs.addagentobj.validate((valid) => {


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

@@ -118,7 +118,7 @@
align="center"
>
</el-table-column> -->
<el-table-column prop="houseNum" label="服务期楼盘" align="center">
<el-table-column prop="houseNum" label="服务期项目" align="center">
</el-table-column>
<el-table-column label="操作" align="center" fixed="right" width="200">
<template slot-scope="scope">


+ 3
- 3
src/views/Customer/SalesStage.vue View File

@@ -8,7 +8,7 @@
class="label"
style="color: #32363d; font-weight: 400; font-size: 16px"
>
楼盘选择:
项目选择:
</div>
<div v-if="orgType != 3">
<el-select
@@ -39,7 +39,7 @@
<!-- 表格 -->
<div class="cen-tab">
<el-table :data="tableData" stripe style="width: 100%">
<el-table-column prop="houseName" label="楼盘名称" align="center">
<el-table-column prop="houseName" label="项目名称" align="center">
</el-table-column>
<el-table-column prop="stageName" label="阶段名称" align="center">
</el-table-column>
@@ -123,7 +123,7 @@ computed: {
this.cus_sal_del = this.permissions["cus_sal_del"];
},
mounted() {
// 获取楼盘列表
// 获取项目列表
this.zkhousePage();
},
methods: {


+ 3
- 3
src/views/Customer/index.vue View File

@@ -6,7 +6,7 @@
<div class="booxtop">
<div class="app-topbox">
<div class="div-labox" v-if="orgType != 3">
<div class="labeltext">楼盘选择:</div>
<div class="labeltext">项目选择:</div>
<el-select
class="div-inpbox"
v-model="searchForm.projectId"
@@ -586,7 +586,7 @@ export default {
this.cus_index_downLoad = this.permissions["cus_index_downLoad"];
},
mounted() {
// 获取楼盘列表
// 获取项目列表
this.zkhousePage();
},
methods: {
@@ -619,7 +619,7 @@ export default {
message: res.msg,
type: "success",
});
// 获取楼盘列表
// 获取项目列表
this.findbypage();
} else {
this.$message({


+ 2
- 2
src/views/Customer/label.vue View File

@@ -7,7 +7,7 @@
class="label"
style="color: #32363d; font-weight: 400; font-size: 16px"
>
楼盘选择:
项目选择:
</div>
<div>
<el-select
@@ -317,7 +317,7 @@ export default {
this.yyc_add_level1 = this.permissions["yyc_add_level1"];
},
mounted() {
// 获取楼盘列表
// 获取项目列表
this.zkhousePage();
},
methods: {


+ 2
- 2
src/views/Customer/source.vue View File

@@ -147,7 +147,7 @@ export default {
id: "",
sourceName: "", // 资源名称
houseId:
localStorage.getItem("houseId"), // 楼盘id
localStorage.getItem("houseId"), // 项目id
sort: "", // 顺序
},

@@ -156,7 +156,7 @@ export default {
id: "",
newSourceId: "",
houseId:
localStorage.getItem("houseId"), // 楼盘id
localStorage.getItem("houseId"), // 项目id
},
delIdList: [], // 要转移的数据位置



+ 4
- 4
src/views/Equipment/equipmentDetailList.vue View File

@@ -23,7 +23,7 @@
>
</el-option>
</el-select>
<!-- <span class="demonstration">楼盘名称:</span> -->
<!-- <span class="demonstration">项目名称:</span> -->
<el-select
v-model="selValue"
@change="selChange"
@@ -32,7 +32,7 @@
>
<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-option label="项目" value="2"></el-option>
</el-select>
<!-- <div style="width: 200px">
<el-select
@@ -66,7 +66,7 @@
</el-option>
</el-select>
</div>
<!-- 楼盘 -->
<!-- 项目 -->
<div style="margin-left: 26px" v-else-if="selValue == 2">
<el-select
v-model="houseId"
@@ -1166,7 +1166,7 @@ export default {
this.getdetail();
this.getcompare();
},
//获取楼盘数据
//获取项目数据
getHouseList() {
if (this.selValue == 1) {
this.$api.api


+ 3
- 3
src/views/Equipment/equipmentOnlineRecordList.vue View File

@@ -38,7 +38,7 @@
>
</el-date-picker>
<span class="demonstration" v-if="orgType!=3" style="margin-left: 18px; line-height: 40px"
>楼盘名称:</span
>项目名称:</span
>
<div style="width: 200px" v-if="orgType!=3">
<!-- <el-input v-model="page.houseName"></el-input>-->
@@ -153,7 +153,7 @@
>
</el-date-picker>
<span class="demonstration" v-if="orgType!=3" style="margin-left: 18px; line-height: 40px"
>楼盘名称:</span
>项目名称:</span
>
<div style="width: 200px;" v-if="orgType!=3">
<!-- <el-input v-model="page.houseName"></el-input>-->
@@ -478,7 +478,7 @@ export default {
this.page.pageNum = val;
this.getTableList();
},
//获取楼盘数据
//获取项目数据
getHouseList() {
axios({
url: `/autoSR/zkhouse/findHouseByUser`,


+ 12
- 12
src/views/Equipment/index.vue View File

@@ -41,7 +41,7 @@
<el-option label="批次号" value="3"></el-option>
<el-option label="代理商名称" value="4"></el-option>
<el-option label="公司名称" value="5"></el-option>
<el-option label="楼盘名称" value="6"></el-option>
<el-option label="项目名称" value="6"></el-option>
</el-select>
</el-input>
</div>
@@ -240,7 +240,7 @@
</el-table-column>
<el-table-column prop="orgName" label="公司" align="center">
</el-table-column>
<el-table-column prop="houseName" label="楼盘" align="center">
<el-table-column prop="houseName" label="项目" align="center">
</el-table-column>
<el-table-column prop="userName" label="领用人" align="center">
</el-table-column>
@@ -338,7 +338,7 @@
</el-table-column> -->
<el-table-column
prop="bindHouseTime"
label="绑定楼盘时间"
label="绑定项目时间"
align="center"
width="150"
>
@@ -534,11 +534,11 @@
>
<!-- <el-form-item label="绑定" prop="choic">
<el-radio-group v-model="bindForm.choic">
<el-radio label="3">楼盘</el-radio>
<el-radio label="3">项目</el-radio>
<el-radio label="6">代理商</el-radio>
</el-radio-group>
</el-form-item> -->
<el-form-item label="楼盘" prop="houseId">
<el-form-item label="项目" prop="houseId">
<el-select
filterable
clearable
@@ -624,7 +624,7 @@
:rules="bindRules"
label-width="140px"
>
<el-form-item label="楼盘" prop="houseId">
<el-form-item label="项目" prop="houseId">
<el-select
filterable
v-model="bindForm.houseId"
@@ -660,7 +660,7 @@
:rules="receiveRules"
label-width="100px"
>
<el-form-item label="楼盘" prop="batchId">
<el-form-item label="项目" prop="batchId">
<el-select
v-model="receiveForm.batchId"
style="width: 80%"
@@ -738,7 +738,7 @@ export default {
endDate: "", //结束时间
agentName: "", //代理商名称
orgName: "", //公司名称
houseName: "", //楼盘名称
houseName: "", //项目名称
acceptanceStatus: "", //设备状态
audioStatus: "", //录音状态
uploadStatus: "", //上传状态
@@ -845,7 +845,7 @@ export default {
},
receiveForm: {},
receiveRules: {
houseId: [{ required: true, message: "请选择楼盘", trigger: "blur" }],
houseId: [{ required: true, message: "请选择项目", trigger: "blur" }],
batchId: { required: true, message: "请选择顾问", trigger: "blur" },
},
batchRules: {
@@ -856,7 +856,7 @@ export default {
batchId: { required: true, message: "请选择批次号", trigger: "blur" },
},
bindRules: {
houseId: [{ required: true, message: "请选择楼盘", trigger: "blur" }],
houseId: [{ required: true, message: "请选择项目", trigger: "blur" }],
},
multipleSelection: [],
customColors: [
@@ -982,7 +982,7 @@ export default {
this.searchForm.orgName = e;
}
if (this.selflag == 6) {
// 楼盘名称
// 项目名称
this.searchForm.houseName = e;
}
},
@@ -999,7 +999,7 @@ export default {
endDate: "", //结束时间
agentName: "", //代理商名称
orgName: "", //公司名称
houseName: "", //楼盘名称
houseName: "", //项目名称
acceptanceStatus: "", //设备状态
audioStatus: "", //录音状态
uploadStatus: "", //上传状态


+ 1
- 1
src/views/Equipment/record.vue View File

@@ -169,7 +169,7 @@ export default {
};
},
mounted() {
// 获取楼盘列表
// 获取项目列表
this.equipReceiveFindByPage();
},
methods: {


+ 188
- 119
src/views/Equipment/state.vue View File

@@ -2,8 +2,8 @@
<div class="box-center">
<!-- 头 -->
<div class="app-top">
<div class="app-titel" style="margin-left: 15px" v-if="orgType!=3">
<el-select
<div class="app-titel" style="margin-left: 15px" v-if="orgType != 3">
<el-select
v-model="houseTypes"
@change="sysChange"
style="width: 100px; margin-right: 10px"
@@ -25,7 +25,7 @@
>
<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-option label="项目" value="2"></el-option>
</el-select>
<!-- -->
<div style="margin-left: 26px" v-if="selValue == 1">
@@ -45,7 +45,7 @@
</el-option>
</el-select>
</div>
<!-- 楼盘 -->
<!-- 项目 -->
<div style="margin-left: 26px" v-else-if="selValue == 2">
<el-select
v-model="choicValue"
@@ -120,7 +120,7 @@
<!-- <el-option label="批次号" value="3"></el-option>
<el-option label="代理商名称" value="4"></el-option>
<el-option label="公司名称" value="5"></el-option> -->
<el-option label="楼盘名称" value="6"></el-option>
<el-option label="项目名称" value="6"></el-option>
</el-select>
</el-input>
</div>
@@ -248,10 +248,10 @@
<div class="label">领用人:</div>
<el-input type="text" v-model="searchForm.userName"></el-input>
</div>
<div class="div-lab">
<!-- <div class="div-lab">
<div class="label">设备电量:</div>
<el-input type="text" v-model="searchForm.electricity"></el-input>
</div>
</div> -->
</div>

<!-- <div class="app-titel" style="margin-top: 15px">
@@ -275,9 +275,7 @@
<div class="app-titel" style="margin-top: 15px">
<!-- <div class="label" style="color: #ffffff">筛选相关:</div> -->
<div style="margin-left: 20px">
<el-button type="primary" @click="screen"
>筛选</el-button
>
<el-button type="primary" @click="screen">筛选</el-button>
</div>
<div style="margin-left: 20px">
<el-button @click="reset">清空筛选条件</el-button>
@@ -295,7 +293,7 @@
<el-button
@click="closeAllLight()"
type="primary"
v-if="equ_state_off"
v-if="equ_state_off"
:disabled="multipleSelection.length == 0"
>批量关闭指示灯</el-button
>
@@ -327,7 +325,10 @@
>批量解绑</el-button
>
</div>
<div style="margin-left: auto;margin-right:10px;" v-if="equ_state_downLoad">
<div
style="margin-left: auto; margin-right: 10px"
v-if="equ_state_downLoad"
>
<el-button @click="downLoad">导出</el-button>
</div>
</div>
@@ -352,7 +353,7 @@
</el-table-column>
<el-table-column prop="imei" label="设备编号" align="center">
</el-table-column>
<el-table-column prop="houseName" label="楼盘" align="center">
<el-table-column prop="houseName" label="项目" align="center">
</el-table-column>
<el-table-column prop="userName" label="领用人" align="center">
</el-table-column>
@@ -365,7 +366,7 @@
</el-table-column>
<el-table-column prop="recCmd" label="录音状态" align="center">
<template slot-scope="{ row }">
{{ row.recCmd=='start' ? "开启" : "关闭" }}
{{ row.recCmd == "start" ? "开启" : "关闭" }}
</template>
</el-table-column>
<!--<el-table-column
@@ -425,8 +426,12 @@
<template slot-scope="{ row }">
{{
row.offStatus == 1
? "正常关机": row.offStatus == 2
? "低电关机":row.offStatus == 3? "异常关机":''
? "正常关机"
: row.offStatus == 2
? "低电关机"
: row.offStatus == 3
? "异常关机"
: ""
}}
</template>
</el-table-column>
@@ -436,26 +441,54 @@
<!-- <div style="color: #2671e2" @click="toinifoThereturn()">
修改指示灯状态
</div> -->
<el-dropdown v-if="(row.receiveType==2&&equ_state_take)||(row.houseName&&equ_state_take)||equ_state_open||equ_state_WiFi||equ_state_Voice" @command="handleCommand($event, row)" trigger="click">
<span style="color: #409eff; font-size: 12px; margin-left: 10px;cursor: pointer;">
<el-dropdown
v-if="
(row.receiveType == 2 && equ_state_take) ||
(row.houseName && equ_state_take) ||
equ_state_open ||
equ_state_WiFi ||
equ_state_Voice
"
@command="handleCommand($event, row)"
trigger="click"
>
<span
style="
color: #409eff;
font-size: 12px;
margin-left: 10px;
cursor: pointer;
"
>
更多<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown">
<!-- <el-dropdown-item command="toinifoThereturn" v-if="row.receiveType == 2" >归还</el-dropdown-item> -->
<el-dropdown-item command="toinifoThereturn" v-if="row.receiveType==2 &&equ_state_take"
<el-dropdown-item
command="toinifoThereturn"
v-if="row.receiveType == 2 && equ_state_take"
>归还</el-dropdown-item
>
<el-dropdown-item command="receive" v-if="row.houseName&&equ_state_take&&row.receiveType!=2"
<el-dropdown-item
command="receive"
v-if="row.houseName && equ_state_take && row.receiveType != 2"
>领用</el-dropdown-item
>
<el-dropdown-item command="lightStatusChange"
v-if="equ_state_open"
<el-dropdown-item
command="lightStatusChange"
v-if="equ_state_open"
>{{
row.lightStatus == "on" ? "关闭" : "开启"
}}指示灯</el-dropdown-item
>
<el-dropdown-item v-if="equ_state_WiFi" command="wifiShow">WiFi管理</el-dropdown-item>
<el-dropdown-item v-if="equ_state_Voice" command="voiceOpen">录音{{row.recCmd=='start'?'关闭':'开启'}}</el-dropdown-item>
<el-dropdown-item v-if="equ_state_WiFi" command="wifiShow"
>WiFi管理</el-dropdown-item
>
<el-dropdown-item v-if="equ_state_Voice" command="voiceOpen"
>录音{{
row.recCmd == "start" ? "关闭" : "开启"
}}</el-dropdown-item
>
</el-dropdown-menu>
</el-dropdown>
</template>
@@ -486,7 +519,7 @@
:rules="receiveRules"
label-width="100px"
>
<el-form-item label="楼盘" prop="batchId">
<el-form-item label="项目" prop="batchId">
<el-input
v-model="receiveForm.bindHouseName"
style="width: 80%"
@@ -528,7 +561,7 @@
:rules="bindRules"
label-width="140px"
>
<el-form-item label="楼盘" prop="houseId">
<el-form-item label="项目" prop="houseId">
<el-select
filterable
v-model="bindForm.houseId"
@@ -565,7 +598,11 @@
</el-form-item>
<div>主WiFi</div>
<el-form-item label="wifi名称" prop="masterWifiName">
<el-input v-model="wifiForm.masterWifiName" maxlength="20" clearable></el-input>
<el-input
v-model="wifiForm.masterWifiName"
maxlength="20"
clearable
></el-input>
</el-form-item>
<el-form-item label="wifi密码" prop="masterWifiPassword">
<el-input
@@ -575,7 +612,11 @@
</el-form-item>
<div>备用一</div>
<el-form-item label="wifi名称" prop="spareOneWifiName">
<el-input v-model="wifiForm.spareOneWifiName" maxlength="20" clearable></el-input>
<el-input
v-model="wifiForm.spareOneWifiName"
maxlength="20"
clearable
></el-input>
</el-form-item>
<el-form-item label="wifi密码" prop="spareOneWifiPassword">
<el-input
@@ -585,7 +626,11 @@
</el-form-item>
<div>备用二</div>
<el-form-item label="wifi名称" prop="spareTwoWifiName">
<el-input v-model="wifiForm.spareTwoWifiName" maxlength="20" clearable></el-input>
<el-input
v-model="wifiForm.spareTwoWifiName"
maxlength="20"
clearable
></el-input>
</el-form-item>
<el-form-item label="wifi密码" prop="spareTwoWifiPassword">
<el-input
@@ -606,7 +651,7 @@

<script>
import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
import { exportMethodPost } from "@/util/util";
export default {
data() {
return {
@@ -636,11 +681,11 @@ export default {
],
audioStatusList: [
{
value: 'start',
value: "start",
label: "开启",
},
{
value: 'stop',
value: "stop",
label: "关闭",
},
],
@@ -706,13 +751,14 @@ export default {
],
options1: [],
houseList: [],
selValue: localStorage.getItem("orgType") == 0
selValue:
localStorage.getItem("orgType") == 0
? "0"
: localStorage.getItem("orgType") == 1
? "1"
: "2",
choicValue:'',
dataList:[],
choicValue: "",
dataList: [],
searchForm: {
name: "",
imei: "", //设备号
@@ -724,17 +770,17 @@ export default {
endDate: "", //结束时间
agentName: "", //代理商名称
orgName: "", //公司名称
houseName: "", //楼盘名称
houseName: "", //项目名称
acceptanceStatus: "", //设备状态
recCmd: "", //录音状态
simAudioUploadStatus: "", //上传状态
offStatus: "", //关机状态
onLine: "",
userName:'',
electricity:''
userName: "",
electricity: "",
},
bindRules: {
houseId: [{ required: true, message: "请选择楼盘", trigger: "blur" }],
houseId: [{ required: true, message: "请选择项目", trigger: "blur" }],
},
bindForm: {
remark: "",
@@ -768,7 +814,7 @@ export default {
],
},
addRules: {
houseId: [{ required: true, message: "请选择楼盘", trigger: "blur" }],
houseId: [{ required: true, message: "请选择项目", trigger: "blur" }],
batchId: { required: true, message: "请选择顾问", trigger: "blur" },
},
receiveVisible: false,
@@ -806,7 +852,7 @@ export default {
value: "2,3",
},
],
houseTypes:'0,1'
houseTypes: "0,1",
};
},
computed: {
@@ -822,48 +868,66 @@ export default {
this.equ_state_WiFi = this.permissions["equ_state_WiFi"];
this.equ_state_Voice = this.permissions["equ_state_Voice"];
this.equ_state_downLoad = this.permissions["equ_state_downLoad"];

if (this.orgType == 2 || this.orgType == 3) {
this.houseTypes = "";
}
},
mounted() {
if(this.$route.query.flag){
if(this.$route.query.flag==1){
this.searchForm.onLine='0';
}else{
this.searchForm.onLine='1';
this.searchForm.electricity=this.$route.query.electricity
if (this.$route.query.flag) {
if (this.$route.query.flag == 1) {
this.searchForm.onLine = "0";
} else {
this.searchForm.onLine = "1";
this.searchForm.electricity = this.$route.query.electricity;
}
}

}
// asd
this.getList();
// 获取列表
this.zkhousePage();
},
methods: {
downLoad(){
downLoad() {
let obj = {
timeType:2,
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"),
queryOrgType:this.selValue/1+1,
...this.searchForm,
houseTypes: this.houseTypes,
timeType: 2,
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"),
queryOrgType: this.selValue / 1 + 1,
...this.searchForm,
houseTypes: this.houseTypes,
};
exportMethodPost('autoSR/zk/equipment/pageExport','设备监控',obj)
exportMethodPost("autoSR/zk/equipment/pageExport", "设备监控", obj);
},
sysChange(){
this.choicValue=''
this.selValue='0'
this.getList()
sysChange() {
this.choicValue = "";
this.selValue = "0";
this.getList();
},
selChange1() {
this.choicValue = "";
this.getList();
},
getList() {
getList() {
console.log(this.selValue);
// 当为楼盘选择时
// 当为项目选择时
if (this.selValue == 1) {
this.$api.api
.findMyOrg({
@@ -963,29 +1027,44 @@ export default {
.equipmentZxOnFindByPage({
size: this.size,
current: this.currentPage,
timeType:2,
timeType: 2,
// orgType: localStorage.getItem("orgType"),
// orgCode: localStorage.getItem("orgCode"),
// agentId: localStorage.getItem("agentId"),
// houseId: localStorage.getItem("houseId"),
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,
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"),
queryOrgType:this.selValue/1+1,
queryOrgType: this.selValue / 1 + 1,
...this.searchForm,
houseTypes: this.houseTypes,
})
.then((res) => {
// console.log(res);
let newlist=res.data.list.records;
newlist.map(item=>{
let num=this.ascformatDate(item.updateTime)
if(num>12){
item.electricity=0;
item.signalDevice=0;
}
})
let newlist = res.data.list.records;
newlist.map((item) => {
let num = this.ascformatDate(item.updateTime);
if (num > 12) {
item.electricity = 0;
item.signalDevice = 0;
}
});
this.tableData = newlist;
this.onLineCount = res.data.onLineCount;
this.offLineCount = res.data.offLineCount;
@@ -996,18 +1075,18 @@ export default {
valuechange() {
this.getTableList();
},
ascformatDate(dateTimeStamp){
let newDate = new Date(dateTimeStamp.replace(/-/g, '/')).getTime();
let minute = 1000 * 60;
let hour = minute * 60;
let day = hour * 24;
let halfamonth = day * 15;
let month = day * 30;
let now = new Date().getTime();
let diffValue = now - newDate;
let result =diffValue/hour;
return result;
},
ascformatDate(dateTimeStamp) {
let newDate = new Date(dateTimeStamp.replace(/-/g, "/")).getTime();
let minute = 1000 * 60;
let hour = minute * 60;
let day = hour * 24;
let halfamonth = day * 15;
let month = day * 30;
let now = new Date().getTime();
let diffValue = now - newDate;
let result = diffValue / hour;
return result;
},
//批量
Batchreturn() {
this.$confirm("确认批量归还吗?", "提示", {
@@ -1032,9 +1111,7 @@ export default {
this.getTableList();
});
})
.catch(() => {

});
.catch(() => {});
},
zkequipmentUnbind() {
this.$confirm("确认批量解绑吗?", "提示", {
@@ -1062,9 +1139,7 @@ export default {
this.getTableList();
});
})
.catch(() => {

});
.catch(() => {});
},
zkhousePage() {
this.$api.api
@@ -1134,16 +1209,16 @@ export default {
endDate: "", //结束时间
agentName: "", //代理商名称
orgName: "", //公司名称
houseName: "", //楼盘名称
houseName: "", //项目名称
acceptanceStatus: "", //设备状态
recCmd: "", //录音状态
simAudioUploadStatus: "", //上传状态
offStatus: "", //关机状态
onLine: "",
userName:'',
electricity:''
userName: "",
electricity: "",
};
this.time=[]
this.time = [];
this.currentPage = 1;
this.getTableList();
},
@@ -1192,8 +1267,8 @@ export default {
this.userList = res.data;
});
},
voiceOpen(row){
this.$confirm(
voiceOpen(row) {
this.$confirm(
`确认${row.recCmd == "start" ? "关闭" : "开启"}录音吗?`,
"提示",
{
@@ -1216,8 +1291,7 @@ export default {
this.getTableList();
});
})
.catch(() => {
});
.catch(() => {});
},
// 指示灯开启关闭
lightStatusChange(row) {
@@ -1244,8 +1318,7 @@ export default {
this.getTableList();
});
})
.catch(() => {
});
.catch(() => {});
},
openAllLight() {
this.$confirm(`确认开启指示灯吗?`, "提示", {
@@ -1271,8 +1344,7 @@ export default {
this.getTableList();
});
})
.catch(() => {
});
.catch(() => {});
},
closeAllLight() {
this.$confirm(`确认关闭指示灯吗?`, "提示", {
@@ -1298,8 +1370,7 @@ export default {
this.getTableList();
});
})
.catch(() => {
});
.catch(() => {});
},
//归还
toinifoThereturn(row) {
@@ -1321,17 +1392,15 @@ export default {
this.getTableList();
});
})
.catch(() => {

});
.catch(() => {});
},
timeChange(e) {
if (e) {
this.searchForm.startDate = e[0];
this.searchForm.endDate = e[1];
}else{
this.searchForm.startDate = '';
this.searchForm.endDate ='';
} else {
this.searchForm.startDate = "";
this.searchForm.endDate = "";
}
},
selChange() {
@@ -1341,7 +1410,7 @@ export default {
this.searchForm.agentName = "";
this.searchForm.orgName = "";
this.searchForm.houseName = "";
this.searchForm.userName=''
this.searchForm.userName = "";
},
selectChange(e) {
this.searchForm.imei = "";
@@ -1349,7 +1418,7 @@ export default {
this.searchForm.agentName = "";
this.searchForm.orgName = "";
this.searchForm.houseName = "";
this.searchForm.userName=''
this.searchForm.userName = "";
if (!e) return;
if (this.selflag == 1) {
// 设备编号
@@ -1368,7 +1437,7 @@ export default {
this.searchForm.orgName = e;
}
if (this.selflag == 6) {
// 楼盘名称
// 项目名称
this.searchForm.houseName = e;
}
},


+ 10
- 7
src/views/Receive/index.vue View File

@@ -1725,11 +1725,13 @@ export default {
},
//文本恢复
textrestore() {
this.optimizeobj = [];
this.optimizetext = {};
this.optimizeobj = {};
this.optimizetext = [];
this.$api.http
.findText({ corpusId: this.arr[this.aplayerId].id })
.then((res) => {
console.log(res, "文本恢复");
// return
this.optimizeobj = res.data;
this.optimizetext = JSON.parse(res.data.textContent);
});
@@ -1788,13 +1790,14 @@ export default {
},
//获取文本
texttap() {
this.optimizeobj = [];
this.optimizetext = {};
this.optimizeobj = {};
this.optimizetext = [];
this.$api.http
.findText({ corpusId: this.arr[this.aplayerId].id })
.then((res) => {
this.optimizeobj = res.data;
this.optimizetext = JSON.parse(res.data.textContent);
console.log(res, "获取文本");
this.optimizeobj = res.data;
this.optimizetext = JSON.parse(res.data.textContent);
this.dialogFormtext = true;
});
},
@@ -2209,7 +2212,7 @@ export default {
this.tablist = [];
if (this.userinformationlist.yon == 0) {
this.isd = audopbj[this.AudioIdx].id;
console.log(audopbj[this.AudioIdx].speakerNum, 'speakerNum')
console.log(audopbj[this.AudioIdx].speakerNum, "speakerNum");
for (var i = 0; i <= audopbj[this.AudioIdx].speakerNum; i++) {
if (i == 0) {
this.tablist.push({


+ 4
- 4
src/views/ReceivingRecords/index.vue View File

@@ -7,7 +7,7 @@
class="label"
style="color: #32363d; font-weight: 400; font-size: 16px"
>
楼盘选择:
项目选择:
</div>
<div style="margin-left: 8px">
<el-select
@@ -246,7 +246,7 @@
</el-select>
</div>

<div class="div-lab">
<!-- <div class="div-lab">
<div class="label">是否有效:</div>
<el-select
v-model="searchForm.validInvalid"
@@ -262,7 +262,7 @@
:value="item.value"
></el-option>
</el-select>
</div>
</div> -->
</div>

<div class="app-titel" style="margin-top: 15px"></div>
@@ -529,7 +529,7 @@ export default {
this.rec_index_downLoad = this.permissions["rec_index_downLoad"];
},
mounted() {
// 获取楼盘列表
// 获取项目列表
this.zkhousePage();
},



+ 3
- 3
src/views/Scheduling/index.vue View File

@@ -3,7 +3,7 @@
<!-- 头 -->
<div class="app-top">
<div class="app-titel" style="margin-top: 5px">
<div class="label" v-if="orgType!=3" id="label1">楼盘名称:</div>
<div class="label" v-if="orgType!=3" id="label1">项目名称:</div>
<div style="width: 200px" v-if="orgType!=3">
<el-select
v-model="houseid"
@@ -483,7 +483,7 @@ export default {
});
});
},
// 楼盘选择
// 项目选择
houseChange(e) {
this.houseid = e;
this.Page = 1;
@@ -492,7 +492,7 @@ export default {
this.name = "";
this.AgentPoollist();
},
// 获取楼盘下拉的数据
// 获取项目下拉的数据
getHouse() {
this.$api.api.findHouseByUser({
orgType: localStorage.getItem("orgType"),


+ 6
- 6
src/views/Statistics/BuildingContrast.vue View File

@@ -59,7 +59,7 @@
<span v-else> {{ scope.$index + 1 }}</span>
</template>
</el-table-column>
<el-table-column prop="houseName" label="楼盘" align="center">
<el-table-column prop="houseName" label="项目" align="center">
</el-table-column>
<el-table-column prop="accountNum" label="顾问数" align="center">
</el-table-column>
@@ -118,7 +118,7 @@
<div class="text1-2">{{ objList1.sum }}次</div>
</div>
<div class="sanbox1" style="width: 40%">
<div class="text1-1">楼盘总数</div>
<div class="text1-1">项目总数</div>
<div class="text1-2">{{ objList1.num }}个</div>
</div>
<div class="sanbox1" style="width: 25%">
@@ -147,7 +147,7 @@
</div>
<div class="hejisan">
<div class="sanbox1" style="width: 50%">
<div class="text1-1">楼盘总数</div>
<div class="text1-1">项目总数</div>
<div class="text1-2">{{ objList2.num }}个</div>
</div>
<div class="sanbox1" style="width: 50%">
@@ -183,7 +183,7 @@
<div class="text1-2">{{ objList3.sum }}次</div>
</div>
<div class="sanbox1" style="width: 40%">
<div class="text1-1">楼盘总数</div>
<div class="text1-1">项目总数</div>
<div class="text1-2">{{ objList3.num }}个</div>
</div>
<div class="sanbox1" style="width: 25%">
@@ -216,7 +216,7 @@
<div class="text1-2">{{ objList4.sum }}分钟</div>
</div>
<div class="sanbox1" style="width: 40%">
<div class="text1-1">楼盘总数</div>
<div class="text1-1">项目总数</div>
<div class="text1-2">{{ objList4.num }}个</div>
</div>
<div class="sanbox1" style="width: 25%">
@@ -337,7 +337,7 @@ export default {
}
exportMethodPost(
"autoSR/cusStageStatistics/houseTableExport",
"楼盘对比",
"项目对比",
pamaet
);
},


+ 1
- 1
src/views/Statistics/ConsultantBrand.vue View File

@@ -2,7 +2,7 @@
<div class="box-center">
<div class="app-top">
<div class="app-titel" v-if="role != 3" style="margin-bottom: 10px">
<div class="titel-text">楼盘选择:</div>
<div class="titel-text">项目选择:</div>
<div style="margin-left: 26px">
<el-select
v-model="houseId"


+ 1
- 1
src/views/Statistics/EmployeesReceive.vue View File

@@ -4,7 +4,7 @@
<el-row style="border-bottom: 1px solid #D8D8D8;height: 70px;">
<el-col :span="12">
<div style="line-height: 70px;color: #32363D;font-size: 18px;font-weight: 600;">
楼盘选择:
项目选择:
<el-select v-model="value" placeholder="请选择">
<el-option
v-for="item in options"


+ 1
- 1
src/views/Statistics/MentoringAbility.vue View File

@@ -4,7 +4,7 @@

<div class="app-top">
<div class="app-titel" v-if="role != 3" style="margin-bottom: 10px">
<div class="titel-text">楼盘选择:</div>
<div class="titel-text">项目选择:</div>
<div style="margin-left: 26px">
<el-select
v-model="houseId"


+ 3
- 3
src/views/Statistics/ReceptionOverview.vue View File

@@ -3,7 +3,7 @@
<!-- 头 -->
<div class="app-top">
<div class="app-titel" v-if="role != 3" style="margin-bottom: 10px">
<div class="titel-text">楼盘选择:</div>
<div class="titel-text">项目选择:</div>
<div style="margin-left: 26px">
<el-select
v-model="houseId"
@@ -542,7 +542,7 @@ export default {
localStorage.setItem("activeIndex", this.activeIndex);
this.systemAccessranking();
},
//切换楼盘
//切换项目
houseChange() {
this.Zxllist = [];
this.marketingId = "";
@@ -564,7 +564,7 @@ export default {
this.overviewteamOrAccountSellingTrends();
this.overviewteamOrAccountSellingTrends1();
},
//获取楼盘
//获取项目
zkhousePage() {
this.$api.api
.findHouseByUser({


+ 1
- 1
src/views/Statistics/ReceptionStatistical.vue View File

@@ -3,7 +3,7 @@
<div class="app-top">

<div class="app-titel" v-if="role!=3" style="margin-bottom:10px;">
<div class="titel-text">楼盘选择:</div>
<div class="titel-text">项目选择:</div>
<div style="margin-left: 26px">
<el-select v-model="houseId" placeholder="请选择" @change="houseChange">
<el-option


+ 1
- 1
src/views/Statistics/TheTeamCompared.vue View File

@@ -3,7 +3,7 @@
<!-- 头 -->
<div class="app-top">
<div class="app-titel" v-if="role!=3" style="margin-bottom:10px;">
<div class="titel-text">楼盘选择:</div>
<div class="titel-text">项目选择:</div>
<div style="margin-left: 26px">
<el-select v-model="houseId" placeholder="请选择" @change="houseChange">
<el-option


+ 2
- 2
src/views/Statistics/TrendAnalysis.vue View File

@@ -3,7 +3,7 @@
<!-- 头 -->
<div class="app-top">
<div class="app-titel" v-if="role != 3" style="margin-bottom: 10px">
<div class="titel-text">楼盘选择:</div>
<div class="titel-text">项目选择:</div>
<div style="margin-left: 26px">
<el-select
v-model="houseId"
@@ -433,7 +433,7 @@ export default {
selectTime1: "", //对比时间
selectTime: "", //对比时间
aliasclass: 1, //tab下标
houseId: "", //楼盘id
houseId: "", //项目id
options: [],
value: "",
checked: false, //是否对比


+ 15
- 15
src/views/Statistics/dataScreeAge.vue View File

@@ -61,15 +61,15 @@
<div class="app-box-er">
<div class="container">
<div class="grid-content">
<div class="text1">服务期内楼盘总数</div>
<div class="text1">服务期内项目总数</div>
<div class="text2">{{ firstTab.houseQofEnough || 0 }}</div>
</div>
<div class="grid-content">
<div class="text1">累计楼盘数</div>
<div class="text1">累计项目数</div>
<div class="text2">{{ firstTab.houseQuantity || 0 }}</div>
</div>
<div class="grid-content">
<div class="text1">试用楼盘数</div>
<div class="text1">试用项目数</div>
<div class="text2">{{ firstTab.houseQuantityOfTryOut || 0 }}</div>
</div>
<div class="grid-content">
@@ -251,7 +251,7 @@
<div class="container" v-if="echarValue == 0">
<div class="grid-content" style="cursor: pointer;" @click="Overviewxlick('1')">
<div class="text1" :class="{ tophovese: cardindex == 1 }">
购买服务楼盘
购买服务项目
</div>
<div class="text2" :class="{ tophovese: cardindex == 1 }">
{{ thirdTab.houseQuantity || 0 }}
@@ -259,7 +259,7 @@
</div>
<!-- <div class="grid-content" style="cursor: pointer;" @click="Overviewxlick('2')">
<div class="text1" :class="{ tophovese: cardindex == 2 }">
服务期内楼盘
服务期内项目
</div>
<div class="text2" :class="{ tophovese: cardindex == 2 }">
{{ thirdTab.houseQofEnough || 0 }}
@@ -326,12 +326,12 @@
</el-table-column>
<el-table-column
prop="buyHouseQuantity"
label="购买服务楼盘数"
label="购买服务项目数"
align="center"
>
<template slot-scope="{ row }">
<span
@click="goDetail1(row, '购买服务楼盘数', 0)"
@click="goDetail1(row, '购买服务项目数', 0)"
style="cursor: pointer"
>{{ row.buyHouseQuantity || 0 }}</span
>
@@ -437,7 +437,7 @@
<el-table-column
v-if="visible1"
prop="houseName"
label="楼盘"
label="项目"
align="center"
>
</el-table-column>
@@ -473,7 +473,7 @@
<el-table-column
v-if="visible5"
prop="orgName"
label="楼盘"
label="项目"
align="center"
>
</el-table-column>
@@ -589,7 +589,7 @@ export default {
this.elTitle = str;
this.detailList = [];
if (idx == 0) {
// 跳转楼盘管理
// 跳转项目管理
this.$router.push({
path:'/building/index',
query:{time:row.date}
@@ -685,7 +685,7 @@ export default {
goDetail(row) {
this.dialogVisible = true;
this.timeStr = row.time;
this.elTitle = "楼盘实时统计";
this.elTitle = "项目实时统计";
this.realTimeStatisticsOfTime(row.hour);
this.visible1 = true;
this.visible2 = false;
@@ -747,7 +747,7 @@ export default {
this.dataOverviewWithSystemWithDay();
this.dataOverviewWithSystemWithLook();
},
// 当选择的代理商或者楼盘切换时
// 当选择的代理商或者项目切换时
selChange() {
this.choicValue = "";
this.dateType = 4;
@@ -761,7 +761,7 @@ export default {
// 获取下拉框数据
getList() {
console.log(this.selValue);
// 当为楼盘选择时
// 当为项目选择时
if (this.selValue == 1) {
this.$api.api
.findMyOrg({
@@ -955,13 +955,13 @@ export default {
let timeDate = [];
let arr1 = [];
if (idx == 1) {
Strname = ["购买服务楼盘数"];
Strname = ["购买服务项目数"];
this.thirdTab.buyHouseList.map((item) => {
timeDate.push(item.time.substring(5, 10));
arr1.push(item.data);
});
} else if (idx == 2) {
Strname = ["服务期内楼盘数"];
Strname = ["服务期内项目数"];
this.thirdTab.houseQofEnoughList.map((item) => {
timeDate.push(item.time.substring(5, 10));
arr1.push(item.data);


+ 16
- 16
src/views/Statistics/dataScreeOrg.vue View File

@@ -88,19 +88,19 @@
</div>
</div> -->
<div class="grid-content">
<div class="text1">楼盘总数</div>
<div class="text1">项目总数</div>
<div class="text2">{{ firstTab.houseQuantity || 0 }}</div>
</div>
<div class="grid-content">
<div class="text1">服务期内楼盘总数</div>
<div class="text1">服务期内项目总数</div>
<div class="text2">{{ firstTab.houseQofEnough || 0 }}</div>
</div>
<div class="grid-content">
<div class="text1">试用楼盘数</div>
<div class="text1">试用项目数</div>
<div class="text2">{{ firstTab.houseQuantityOfTryOut || 0 }}</div>
</div>
<div class="grid-content">
<div class="text1">过期楼盘数</div>
<div class="text1">过期项目数</div>
<div class="text2">{{ firstTab.houseQofUnenough || 0 }}</div>
</div>
<div class="grid-content">
@@ -328,7 +328,7 @@
<div class="container" v-if="echarValue == 0">
<!-- <div class="grid-content" @click="Overviewxlick('1')">
<div class="text1" :class="{ tophovese: cardindex == 1 }">
购买服务楼盘
购买服务项目
</div>
<div class="text2" :class="{ tophovese: cardindex == 1 }">
{{ thirdTab.houseQuantity || 0 }}
@@ -336,7 +336,7 @@
</div>
<div class="grid-content" @click="Overviewxlick('2')">
<div class="text1" :class="{ tophovese: cardindex == 2 }">
服务期内楼盘
服务期内项目
</div>
<div class="text2" :class="{ tophovese: cardindex == 2 }">
{{ thirdTab.houseQofEnough || 0 }}
@@ -411,12 +411,12 @@
</el-table-column>
<!-- <el-table-column
prop="buyHouseQuantity"
label="购买服务楼盘数"
label="购买服务项目数"
align="center"
>
<template slot-scope="{ row }">
<span
@click="goDetail1(row, '购买服务楼盘数', 0)"
@click="goDetail1(row, '购买服务项目数', 0)"
style="cursor: pointer"
>{{ row.buyHouseQuantity || 0 }}</span
>
@@ -522,7 +522,7 @@
<el-table-column
v-if="visible1"
prop="houseName"
label="楼盘"
label="项目"
align="center"
>
</el-table-column>
@@ -558,7 +558,7 @@
<el-table-column
v-if="visible5"
prop="orgName"
label="楼盘"
label="项目"
align="center"
>
</el-table-column>
@@ -678,7 +678,7 @@ export default {
this.elTitle = str;
this.detailList = [];
if (idx == 0) {
// 跳转楼盘管理
// 跳转项目管理
this.$router.push({
path:'/building/index',
query:{time:row.date}
@@ -774,7 +774,7 @@ export default {
goDetail(row) {
this.dialogVisible = true;
this.timeStr = row.time;
this.elTitle = "楼盘实时统计";
this.elTitle = "项目实时统计";
this.realTimeStatisticsOfTime(row.hour);
this.visible1 = true;
this.visible2 = false;
@@ -834,7 +834,7 @@ export default {
this.dataOverviewWithSystemWithDay();
this.dataOverviewWithSystemWithLook();
},
// 当选择的代理商或者楼盘切换时
// 当选择的代理商或者项目切换时
selChange() {
this.choicValue = "";
this.dateType = 4;
@@ -848,7 +848,7 @@ export default {
// 获取下拉框数据
getList() {
console.log(this.selValue);
// 当为楼盘选择时
// 当为项目选择时
if (this.selValue == 1) {
this.$api.api
.findMyOrg({
@@ -1042,13 +1042,13 @@ export default {
// 先处理时间
// console.log(timeDate);
if (idx == 1) {
Strname = ["购买服务楼盘数"];
Strname = ["购买服务项目数"];
this.thirdTab.buyHouseList.map((item) => {
timeDate.push(item.time.substring(5, 10));
arr1.push(item.data);
});
} else if (idx == 2) {
Strname = ["服务期内楼盘数"];
Strname = ["服务期内项目数"];
this.thirdTab.houseQofEnoughList.map((item) => {
timeDate.push(item.time.substring(5, 10));
arr1.push(item.data);


+ 19
- 19
src/views/Statistics/dataScreeSys.vue View File

@@ -87,23 +87,23 @@
</div>

<div class="grid-content">
<div class="text1">楼盘总数</div>
<div class="text1">项目总数</div>
<div class="text2">{{ firstTab.houseQuantity || 0 }}</div>
</div>
<div class="grid-content">
<div class="text1">服务期内楼盘总数</div>
<div class="text1">服务期内项目总数</div>
<div class="text2">{{ firstTab.houseQofEnough || 0 }}</div>
</div>
<div class="grid-content" v-if='houseTypes=="0,1"'>
<div class="text1">试用楼盘数</div>
<div class="text1">试用项目数</div>
<div class="text2">{{ firstTab.houseQuantityOfTryOut || 0 }}</div>
</div>
<div class="grid-content" v-if='houseTypes=="2,3"'>
<div class="text1">演示楼盘数</div>
<div class="text1">演示项目数</div>
<div class="text2">{{ firstTab.houseQuantityOfDemo || 0 }}</div>
</div>
<div class="grid-content">
<div class="text1">过期楼盘数</div>
<div class="text1">过期项目数</div>
<div class="text2">{{ firstTab.houseQofUnenough || 0 }}</div>
</div>
<div class="grid-content">
@@ -343,7 +343,7 @@
@click="Overviewxlick('1')"
>
<div class="text1" :class="{ tophovese: cardindex == 1 }">
购买服务楼盘
购买服务项目
</div>
<div
class="text2"
@@ -355,7 +355,7 @@
</div>
<!-- <div class="grid-content" style="cursor: pointer;" @click="Overviewxlick('2')">
<div class="text1" :class="{ tophovese: cardindex == 2 }">
服务期内楼盘
服务期内项目
</div>
<div class="text2" :class="{ tophovese: cardindex == 2 }">
{{ thirdTab.houseQofEnough || 0 }}
@@ -450,12 +450,12 @@
</el-table-column>
<el-table-column
prop="buyHouseQuantity"
label="购买服务楼盘数"
label="购买服务项目数"
align="center"
>
<template slot-scope="{ row }">
<span
@click="goDetail1(row, '购买服务楼盘数', 0)"
@click="goDetail1(row, '购买服务项目数', 0)"
style="cursor: pointer"
>{{ row.buyHouseQuantity || 0 }}</span
>
@@ -561,7 +561,7 @@
<el-table-column
v-if="visible1"
prop="houseName"
label="楼盘"
label="项目"
align="center"
>
</el-table-column>
@@ -597,7 +597,7 @@
<el-table-column
v-if="visible5"
prop="orgName"
label="楼盘"
label="项目"
align="center"
>
</el-table-column>
@@ -733,13 +733,13 @@ export default {
this.elTitle = str;
this.detailList = [];
if (idx == 0) {
// 跳转楼盘管理
// 跳转项目管理
this.$router.push({
path:'/building/index',
query:{time:row.date}
})
} else if (idx == 1) {
// // 跳转楼盘管理
// // 跳转项目管理
// this.$router.push({
// path:'/building/index',
// query:{time:row.date}
@@ -834,7 +834,7 @@ export default {
goDetail(row) {
this.dialogVisible = true;
this.timeStr = row.time;
this.elTitle = "楼盘实时统计";
this.elTitle = "项目实时统计";
this.realTimeStatisticsOfTime(row.hour);
this.visible1 = true;
this.visible2 = false;
@@ -884,7 +884,7 @@ export default {
this.dataOverviewWithSystemWithDay();
this.dataOverviewWithSystemWithLook();
},
// 当选择的代理商或者楼盘切换时
// 当选择的代理商或者项目切换时
selChange(e) {
console.log(e);
if (e == -1) {
@@ -912,7 +912,7 @@ export default {
},
sysChange() {
this.choicValue=''
this.selValue=this.options[0].value
// this.selValue=this.options[0].value
this.dateType = 4;
this.cardindex = 1;
this.secindex = 1;
@@ -927,7 +927,7 @@ export default {
// 获取下拉框数据
getList() {
console.log(this.selValue);
// 当为楼盘选择时
// 当为项目选择时
if (this.selValue == 1) {
this.$api.api
.findMyOrg({
@@ -1111,13 +1111,13 @@ export default {
// 先处理时间
// console.log(timeDate);
if (idx == 1) {
Strname = ["购买服务楼盘数"];
Strname = ["购买服务项目数"];
this.thirdTab.buyHouseList.map((item) => {
timeDate.push(item.time.substring(5, 10));
arr1.push(item.data);
});
} else if (idx == 2) {
Strname = ["服务期内楼盘数"];
Strname = ["服务期内项目数"];
this.thirdTab.houseQofEnoughList.map((item) => {
timeDate.push(item.time.substring(5, 10));
arr1.push(item.data);


+ 8
- 8
src/views/Statistics/houseDataSys.vue View File

@@ -67,19 +67,19 @@
<div class="app-box-er">
<div class="container1">
<div class="grid-content">
<div class="text1">服务期内楼盘数</div>
<div class="text1">服务期内项目数</div>
<div class="text2">
{{ firstTab.houseQofEnough || 0 }}
</div>
</div>
<div class="grid-content">
<div class="text1">过期楼盘数</div>
<div class="text1">过期项目数</div>
<div class="text2">
{{ firstTab.houseQofUnenough || 0 }}
</div>
</div>
<div class="grid-content">
<div class="text1">累计楼盘数</div>
<div class="text1">累计项目数</div>
<div class="text2">
{{ firstTab.houseQuantity || 0 }}
</div>
@@ -90,7 +90,7 @@

<div class="app-box-er">
<div class="app-titel" style="margin-bottom: 10px">
<div class="titel-text" style="text-indent: 0;min-width:64px;">楼盘趋势</div>
<div class="titel-text" style="text-indent: 0;min-width:64px;">项目趋势</div>
<div class="toptimeqhuan">
<div :class="{ tophove: dateType == 4 }" @click="tabtimetap(4)">
近7天
@@ -179,7 +179,7 @@
style="height: auto; padding-bottom: 10px; cursor: pointer"
>
<div class="text1" :class="{ tophovese: secindex == 1 }">
活跃楼盘
活跃项目
</div>
<div class="text2" :class="{ tophovese: secindex == 1 }">
{{ compare.activeHouseQuantity || 0 }}
@@ -387,13 +387,13 @@ export default {
// 判断是第几个然后对数据进行渲染
// 先处理时间
if (idx == 1) {
Strname = ["活跃楼盘数"];
Strname = ["活跃项目数"];
this.compare.activeHouseQuantityList.map((item) => {
timeDate.push(item.time.substring(5, 10));
arr1.push(item.data);
});
} else if (idx == 2) {
Strname = ["服务期内楼盘数"];
Strname = ["服务期内项目数"];
this.compare.houseQofEnoughList.map((item) => {
timeDate.push(item.time.substring(5, 10));
arr1.push(item.data);
@@ -538,7 +538,7 @@ export default {
this.houseTrends();
},
getList() {
// 当为楼盘选择时
// 当为项目选择时
if (this.selValue == 1) {
this.$api.api
.findMyOrg({


+ 2
- 2
src/views/Statistics/index.vue View File

@@ -4,7 +4,7 @@
<div class="app-top">
<div v-if="orgType!=3" class="app-titel2" style="margin-bottom: 10px">
<div class="titel-text" >
楼盘选择: </div>
项目选择: </div>
<div style="margin-left: 26px">
<el-select v-model="houseId" filterable @change="houseChange" placeholder="请选择">
<el-option
@@ -219,7 +219,7 @@ export default {
query: { flag: Userrecord },
});
},
//获取楼盘
//获取项目
zkhousePage() {
this.$api.api
.findHouseByUser({


+ 5
- 5
src/views/Statistics/trend.vue View File

@@ -25,7 +25,7 @@
>
<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-option label="项目" value="2"></el-option>
</el-select>
<!-- -->
<div style="margin-left: 26px" v-if="selValue == 1">
@@ -45,7 +45,7 @@
</el-option>
</el-select>
</div>
<!-- 楼盘 -->
<!-- 项目 -->
<div style="margin-left: 26px" v-else-if="selValue == 2">
<el-select
v-model="choicValue"
@@ -86,7 +86,7 @@
<div class="app-box-er" >
<div class="app-titel" style="margin-bottom: 10px">
<div class="titel-text" style="text-indent: 0; min-width: 64px">
楼盘趋势
项目趋势
</div>
<div class="toptimeqhuan">
<div :class="{ tophove: dateType == 4 }" @click="tabtimetap(4)">
@@ -454,7 +454,7 @@ export default {
value: "1",
},
{
label: "楼盘",
label: "项目",
value: "2",
},
],
@@ -678,7 +678,7 @@ export default {
},
getList() {
console.log(this.selValue);
// 当为楼盘选择时
// 当为项目选择时
if (this.selValue == 1) {
this.$api.api
.findMyOrg({


+ 7
- 7
src/views/Template/Pinspeakwords.vue View File

@@ -3,7 +3,7 @@
<div id="app">
<div class="content-left">
<div v-if="orgType!=3">
<span style="color: red">*</span> 楼盘选择:
<span style="color: red">*</span> 项目选择:
<el-select v-model="houseId" size="mini" @change="selectChange" clearable :disabled="disabledcet" placeholder="请选择">
<el-option v-for="item in houseList" :key="item.value" :label="item.label" :value="item.value">
</el-option>
@@ -166,7 +166,7 @@ export default {
return {
drag: false,
houseList: [],
houseId: "", // 楼盘
houseId: "", // 项目
treeList: [], //树形数据
newlist: [],
nodelist: [],
@@ -224,12 +224,12 @@ export default {
},
},
methods: {
// 楼盘选择
// 项目选择
selectChange(e) {
this.houseId = e;
this.templategetMarketingTree();
},
// 获取楼盘下拉的数据
// 获取项目下拉的数据
getHouse() {
this.$api.api.findHouseByUser({
orgType: localStorage.getItem("orgType"),
@@ -298,7 +298,7 @@ export default {
// 树图,设置初始选中值及分数回显--编辑跳转过来的
setInitCheck() {
if(this.Templateid==''){
//获取楼盘
//获取项目
this.getHouse();
}else{
this.disabledcet = true;
@@ -324,7 +324,7 @@ export default {
}

},
// 获取楼盘下拉的数据
// 获取项目下拉的数据
getHouse2() {
this.$api.api.findHouseByUser({
orgType: localStorage.getItem("orgType"),
@@ -729,7 +729,7 @@ export default {
});
if (this.houseId == "") {
this.$message({
message: "请选择楼盘",
message: "请选择项目",
type: "warning",
});
return;


+ 4
- 4
src/views/Template/PinspeakwordsList.vue View File

@@ -4,7 +4,7 @@
<!-- 头 -->
<div class="app-top">
<div class="app-titel" style="margin-top: 5px">
<div class="label" v-if="orgType!=3">楼盘:</div>
<div class="label" v-if="orgType!=3">项目:</div>
<div v-if="orgType!=3">
<el-select
v-model="projectId"
@@ -61,7 +61,7 @@
style="width: 100%">
<el-table-column
prop="houseName"
label="楼盘名称"
label="项目名称"
align="center"
>
</el-table-column>
@@ -319,7 +319,7 @@ export default {
this.pageNum=1;
this.getcompanyList()
},
//获取楼盘
//获取项目
 zkhousePage() {
this.$api.api.findHouseByUser({
orgType: localStorage.getItem("orgType"),
@@ -334,7 +334,7 @@ export default {
this.getcompanyList()
});
    },
//切换楼盘
//切换项目
houseChange(){
this.pageNum=1;
this.getcompanyList()


+ 62
- 38
src/views/Template/taboo.vue View File

@@ -3,10 +3,14 @@
<!-- 头 -->
<div class="app-top">
<div class="app-titel" style="margin-top: 5px">
<div class="label" style="color: #32363d; font-weight: 400" v-if="orgType!=3">
楼盘选择:
<div
class="label"
style="color: #32363d; font-weight: 400"
v-if="orgType != 3"
>
项目选择:
</div>
<div v-if="orgType!=3">
<div v-if="orgType != 3">
<el-select
v-model="houseId"
@change="houseChange"
@@ -24,24 +28,20 @@
</div>
<div class="label">敏感词:</div>
<div>
<el-input v-model="words" maxlength="8" clearable ></el-input>
<el-input v-model="words" maxlength="8" clearable></el-input>
</div>
<div style="margin-left: 20px">
<el-button
type="primary"
@click="screening()"
>筛选</el-button
>
<el-button type="primary" @click="screening()">筛选</el-button>
</div>
<div style="margin-left: 20px">
<el-button
v-if="tem_tab_add"
@click="editorinfo()"
type="primary"
<el-button v-if="tem_tab_add" @click="editorinfo()" type="primary"
>新增</el-button
>
</div>
<div style="margin-left: auto;margin-right:10px;" v-if="tem_tab_downLoad">
<div
style="margin-left: auto; margin-right: 10px"
v-if="tem_tab_downLoad"
>
<el-button @click="downLoad">导出</el-button>
</div>
</div>
@@ -49,10 +49,10 @@

<!-- 表格 -->
<div class="cen-tab">
<el-table :data="tableData" stripe style="width: 100%">
<el-table :data="tableData" stripe style="width: 100%">
<el-table-column prop="words" label="敏感词" align="center">
</el-table-column>
<el-table-column prop="houseName" label="楼盘名称" align="center">
<el-table-column prop="houseName" label="项目名称" align="center">
</el-table-column>
<el-table-column prop="createDate" label="创建时间" align="center">
</el-table-column>
@@ -62,11 +62,13 @@
<!-- scope -->
<el-table-column label="操作" align="center">
<template slot-scope="scope" style="">
<el-button v-if="tem_tab_edit" type="text" @click="bianji(scope.row)">编辑</el-button>
<el-button
v-if="tem_tab_del"
v-if="tem_tab_edit"
type="text"
@click="del(scope.row)"
@click="bianji(scope.row)"
>编辑</el-button
>
<el-button v-if="tem_tab_del" type="text" @click="del(scope.row)"
>删除</el-button
>
</template>
@@ -77,7 +79,7 @@
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="Page"
:page-sizes="[ 10, 30, 50]"
:page-sizes="[10, 30, 50]"
:page-size="size"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
@@ -89,7 +91,7 @@
<el-dialog
:title="editFlag ? '编辑' : '新增'"
:visible.sync="dialogVisible"
@close='$refs.ruleForm.resetFields();'
@close="$refs.ruleForm.resetFields()"
>
<el-form
:model="ruleForm"
@@ -105,7 +107,9 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" :loading="loadingFlag" @click="editor()">保存</el-button>
<el-button type="primary" :loading="loadingFlag" @click="editor()"
>保存</el-button
>
</div>
</el-dialog>
</div>
@@ -113,7 +117,7 @@

<script>
import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
import { exportMethodPost } from "@/util/util";
export default {
data() {
return {
@@ -123,8 +127,8 @@ export default {
tableData: [],
multipleSelection: [],
dialogVisible: false,
loadingFlag:false,
orgType:localStorage.getItem('orgType'),
loadingFlag: false,
orgType: localStorage.getItem("orgType"),
ruleForm: {
words: "",
id: "",
@@ -139,9 +143,10 @@ export default {
words: [{ required: true, message: "请填写禁忌词", trigger: "blur" }],
},
editFlag: false,
hasOwn: [], // 是否拥有敏感词
};
},
computed: {
computed: {
...mapGetters(["permissions"]),
},
created() {
@@ -154,13 +159,13 @@ export default {
this.zkhousePage();
},
methods: {
downLoad(){
downLoad() {
let obj = {
houseId: this.houseId,
words: this.words,
};
// exportMethodPost()
exportMethodPost('autoSR/sensitivewords/export','禁忌话术',obj)
exportMethodPost("autoSR/sensitivewords/export", "禁忌话术", obj);
},
houseChange() {
this.Page = 1;
@@ -193,6 +198,9 @@ export default {
this.$api.http.taboofindbypage(obj).then((res) => {
console.log(res);
this.tableData = res.data.records;
this.hasOwn = res.data.records.map((item) => {
return item.words;
});
this.total = res.data.total;
});
},
@@ -241,12 +249,16 @@ export default {
editorinfo() {
this.dialogVisible = true;
this.editFlag = false;
this.ruleForm.words=''
this.ruleForm.words = "";
},
editor() {
this.$refs.ruleForm.validate((valid) => {
if (valid) {
this.loadingFlag=true
if (this.hasOwn.indexOf(this.ruleForm.words) != -1) {
this.$message.error("该敏感词已存在");
return;
}
this.loadingFlag = true;
if (this.editFlag == false) {
this.$api.http
.tabooadd({
@@ -255,10 +267,6 @@ export default {
})
.then((res) => {
if (res.code == 0) {
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.dialogVisible = false;
this.$refs.ruleForm.resetFields();
this.Page = 1;
@@ -267,6 +275,16 @@ export default {
} else {
this.$message.error(res.message);
}
setTimeout(() => {
this.loadingFlag = false;
console.log("防重");
}, 1);
})
.catch((e) => {
setTimeout(() => {
this.loadingFlag = false;
console.log("防重");
}, 1);
});
} else {
this.$api.http
@@ -276,10 +294,6 @@ export default {
})
.then((res) => {
if (res.code == 0) {
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.dialogVisible = false;
this.$refs.ruleForm.resetFields();
this.Page = 1;
@@ -288,6 +302,16 @@ export default {
} else {
this.$message.error(res.message);
}
setTimeout(() => {
this.loadingFlag = false;
console.log("防重");
}, 1);
})
.catch((e) => {
setTimeout(() => {
this.loadingFlag = false;
console.log("防重");
}, 1);
});
}
} else {


+ 2
- 2
src/views/Template/wrongword.vue View File

@@ -4,7 +4,7 @@
<div class="app-top">
<div class="app-titel" v-if="orgType!=3">
<div class="label" style="color: #32363d; font-weight: 400">
楼盘选择:
项目选择:
</div>
<div>
<el-select
@@ -188,7 +188,7 @@ export default {
this.tem_ww_downLoad = this.permissions["tem_ww_downLoad"];
},
mounted() {
// 获取楼盘列表
// 获取项目列表
this.zkhousePage();
},
methods: {


+ 1
- 1
src/views/admin/app/index.vue View File

@@ -101,7 +101,7 @@ export default {

},
mounted() {
// 获取楼盘列表
// 获取项目列表
// this.zkhousePage();
this.correctFindbypage();
},


+ 62
- 41
src/views/admin/dept/index.vue View File

@@ -1,5 +1,5 @@
<template>
<div class="box-center" style="cursor:pointer;">
<div class="box-center" style="cursor: pointer">
<!-- 头 -->
<div class="app-top">
<div class="app-titel" style="margin-top: 5px">
@@ -21,9 +21,18 @@
<el-table-column prop="peopleCount" label="部门人数" align="center">
</el-table-column>
<!-- scope -->
<el-table-column label="操作" v-if="sys_dept_edit||sys_dept_del" align="center">
<el-table-column
label="操作"
v-if="sys_dept_edit || sys_dept_del"
align="center"
>
<template slot-scope="scope" style="">
<span v-if="sys_dept_edit" style="color: #2671e2" @click="bianji(scope.row)">编辑</span>
<span
v-if="sys_dept_edit"
style="color: #2671e2"
@click="bianji(scope.row)"
>编辑</span
>
<span
v-if="sys_dept_del"
style="color: #2671e2; margin-left: 10px"
@@ -81,7 +90,7 @@
<el-form-item label="转移部门" prop="newDeptId">
<el-select
v-model="deptForm.newDeptId"
style="width:80%;"
style="width: 80%"
placeholder="请选择"
filterable
>
@@ -113,7 +122,7 @@ export default {
input: "",
tableData: [],
multipleSelection: [],
deptList:[],
deptList: [],
dialogVisible: false,
deptVisible: false,
orgType: localStorage.getItem("orgType"),
@@ -123,7 +132,7 @@ export default {
},
deptForm: {
deptId: "",
newDeptId:''
newDeptId: "",
},
houseId: "",
houseList: [],
@@ -143,7 +152,7 @@ export default {
computed: {
...mapGetters(["permissions"]),
},
created(){
created() {
this.sys_dept_add = this.permissions["sys_dept_add"];
this.sys_dept_edit = this.permissions["sys_dept_edit"];
this.sys_dept_del = this.permissions["sys_dept_del"];
@@ -180,6 +189,10 @@ export default {
this.$api.api.deptFindByPage(obj).then((res) => {
console.log(res);
this.tableData = res.data.records;
this.hasData = res.data.records.map((item) => {
return item.name;
});
console.log(this.hasData);
this.total = res.data.total;
});
},
@@ -187,21 +200,22 @@ export default {
this.Page = 1;
this.deptFindByPage();
},
delSure(){
this.$refs.deptForm.validate((valid) => {
if(valid){
this.$api.api.deptDel({
houseId:this.houseId,
...this.deptForm,
})
.then(res=>{
console.log(res);
this.deptFindByPage();
this.$message.success('移除成功')
this.deptVisible=false
})
}
})
delSure() {
this.$refs.deptForm.validate((valid) => {
if (valid) {
this.$api.api
.deptDel({
houseId: this.houseId,
...this.deptForm,
})
.then((res) => {
console.log(res);
this.deptFindByPage();
this.$message.success("移除成功");
this.deptVisible = false;
});
}
});
},
//删除
del(row) {
@@ -209,33 +223,32 @@ export default {
this.$api.api
.deptFindList({
houseId: this.houseId,
deptId:row.deptId
deptId: row.deptId,
})
.then((res) => {
console.log(res);
this.deptList=res.data
if(this.deptList.length==0){
this.deptList = res.data;
if (this.deptList.length == 0) {
// this.$message.warning('没有别的部门啦!')
if(this.tableData[0].peopleCount>0){
this.$message.warning('当前部门下还有用户!')
return
}else{
this.$api.api.deptDel({
houseId:this.houseId,
deptId:row.deptId
// ...this.deptForm,
})
.then(res=>{
if (this.tableData[0].peopleCount > 0) {
this.$message.warning("当前部门下还有用户!");
return;
} else {
this.$api.api
.deptDel({
houseId: this.houseId,
deptId: row.deptId,
// ...this.deptForm,
})
.then((res) => {
console.log(res);
this.deptFindByPage();
this.$message.success('删除成功')
})
this.$message.success("删除成功");
});
}

}else{
} else {
this.deptVisible = true;
}

});
},
//编辑
@@ -247,14 +260,21 @@ export default {
},

editorinfo() {
this.ruleForm.name=''
this.ruleForm.name = "";
this.dialogVisible = true;
this.editFlag = false;
},
editor() {
this.$refs.ruleForm.validate((valid) => {
if (valid) {
if (this.hasData.indexOf(this.ruleForm.name) != -1) {
this.$message.error("该部门已存在");
return;
}
if (this.editFlag == false) {
console.log(this.hasData);
// 新增

this.$api.api
.deptAdd({
houseId: this.houseId,
@@ -271,6 +291,7 @@ export default {
}
});
} else {
// 修改
this.$api.api
.deptUpdate({
deptId: this.ruleForm.deptId,


+ 1
- 1
src/views/admin/role/index.vue View File

@@ -4,7 +4,7 @@
<basic-container>
<div style="margin-bottom: 20px">
<el-radio-group v-model="tabselect" size="medium" @change="radioChange">
<el-radio-button label="0">楼盘角色</el-radio-button>
<el-radio-button label="0">项目角色</el-radio-button>
<el-radio-button label="1">公司角色</el-radio-button>
<el-radio-button label="2">代理商角色</el-radio-button>
<el-radio-button label="3">系统角色</el-radio-button>


+ 23
- 23
src/views/admin/user/index.vue View File

@@ -133,7 +133,7 @@
<!-- <el-option label="平台用户" value="0"></el-option> -->
<!-- <el-option label="代理商用户" value="1"></el-option> -->
<el-option label="公司用户" value="2"></el-option>
<el-option label="楼盘用户" value="3"></el-option>
<el-option label="项目用户" value="3"></el-option>
</el-select>
</el-form-item>
<el-form-item label="用户身份" prop="userRoleType">
@@ -327,7 +327,7 @@
@click="gochosehouse(scope.row)"
type="text"
size="small"
>楼盘选择</el-button
>项目选择</el-button
>
<el-button
v-if="sys_user_bind"
@@ -435,7 +435,7 @@
:value="1"
></el-option>
<el-option label="公司" :value="2"></el-option>
<el-option label="楼盘" :value="3"></el-option>
<el-option label="项目" :value="3"></el-option>
</el-select>
</el-form-item>
<el-form-item
@@ -694,7 +694,7 @@
</el-dialog>

<el-dialog
title="绑定楼盘"
title="绑定项目"
:visible.sync="houseVisible"
width="800px"
@close="houseClose"
@@ -702,24 +702,24 @@
<div class="bindchoice">
<div style="line-height: 15px; margin-right: 10px">绑定方式</div>
<el-radio-group v-model="bindFlag" @change="radioChange">
<el-radio label="0">指定楼盘绑定</el-radio>
<el-radio label="0">指定项目绑定</el-radio>
<el-radio v-if="code.userRoleType!=6" label="1">按区域绑定</el-radio>
</el-radio-group>
</div>
<div v-if="bindFlag == 0" class="con">
<!-- 指定楼盘绑定 -->
<!-- 指定项目绑定 -->
<el-form
:inline="true"
:model="searchhouseMsg"
class="demo-form-inline"
ref="searchhouseMsg"
>
<el-form-item label="楼盘名称" prop="orgName">
<el-form-item label="项目名称" prop="orgName">
<el-input
v-model="searchhouseMsg.propertyName"
maxlength="10"
clearable
placeholder="请输入楼盘名称"
placeholder="请输入项目名称"
></el-input>
</el-form-item>
<el-form-item label="省市" prop="">
@@ -760,7 +760,7 @@
:cell-style="{ textAlign: 'center' }"
>
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column prop="propertyName" label="楼盘">
<el-table-column prop="propertyName" label="项目">
</el-table-column>
<el-table-column label="省市">
<template slot-scope="{ row }">
@@ -794,7 +794,7 @@
</div>
</div>
<div v-else class="cons">
<!--区域楼盘绑定 -->
<!--区域项目绑定 -->
<!-- 2 -->
<div>
<div class="area">
@@ -1577,11 +1577,11 @@ export default {
cityId: "",
};
},
// 查询楼盘
// 查询项目
searchHouse() {
this.gethouseList();
},
// /清空楼盘
// /清空项目
resetHouse() {
this.searchhouseMsg = {
propertyName: "",
@@ -1592,9 +1592,9 @@ export default {
this.provice = [];
this.gethouseList();
},
// 绑定楼盘
// 绑定项目
addHouse() {
// 楼盘
// 项目
if (this.bindFlag == 0) {
if (this.checkHouse.length == 0&&this.originalList.length == 0) {
this.houseVisible = false;
@@ -1673,7 +1673,7 @@ export default {
});
}
},
// 楼盘绑定解绑
// 项目绑定解绑
// bindhouse(e){
// // if(e.isSelected)
// this.$api.api.saveHouse()
@@ -1742,7 +1742,7 @@ export default {
}
});
},
// 去楼盘管理
// 去项目管理
async gochosehouse(row) {
console.log(row);
this.code = row;
@@ -1755,7 +1755,7 @@ export default {
// 判断是否有绑定以及绑定方式
// console.log(row.selectHouseType)
if (row.selectHouseType == 1) {
console.log("这里是单个楼盘勾选");
console.log("这里是单个项目勾选");
this.bindFlag = "0";
}
else if (row.selectHouseType == 2) {
@@ -1837,7 +1837,7 @@ export default {
this.managerList = res.data.records;
});
},
// 获取楼盘列表
// 获取项目列表
gethouseList() {
this.$api.api
.houseListWhenAddUser({
@@ -1871,8 +1871,8 @@ export default {

}
});
// 数据处理,首先需要知道当前用户的楼盘数量,然后对数据进行操作
// 生成一个数组来存储所有选中的楼盘数,同时去除当前页面的内容,当点击确认的时候没丢数据进行去重,点击下一页的同时将当前页的选中项放入原始数组
// 数据处理,首先需要知道当前用户的项目数量,然后对数据进行操作
// 生成一个数组来存储所有选中的项目数,同时去除当前页面的内容,当点击确认的时候没丢数据进行去重,点击下一页的同时将当前页的选中项放入原始数组
// console.log(arr,'123');
if (arr.length != 0 && this.bindFlag == 0) {
setTimeout(() => {
@@ -1907,7 +1907,7 @@ export default {
if (idx != -1) {
this.$refs.multipleTable.toggleRowSelection(this.housedata[idx]);
}
this.$message.warning("您只能选择一个楼盘");
this.$message.warning("您只能选择一个项目");

return;
}
@@ -2341,7 +2341,7 @@ export default {
this.orgFlag = false;
this.orgCodeChange(row.orgCode, 0);
} else {
// 楼盘 选择公司 角色 角色身份
// 项目 选择公司 角色 角色身份
this.orgFlag = true;
this.orgCodeChange(row.orgCode, 0);
this.getDeptList(row.houseId);
@@ -2384,7 +2384,7 @@ export default {
this.form.orgCode = localStorage.getItem("orgCode");
this.orgCodeChange(localStorage.getItem("orgCode"), 0);
} else {
// 楼盘 选择公司 角色 角色身份
// 项目 选择公司 角色 角色身份
this.orgFlag = true;
this.roleFlag = true;
this.identityFlag = true;


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

@@ -6,7 +6,7 @@
:class="{ activecllasscet: activeTotal == 0 }"
:style="{ background: activeTotal == 0 ? '#2671E2' : '#ffffff' }"
>
楼盘
项目
</div>
<div
v-if="orgType == 0"
@@ -89,7 +89,7 @@
>
<el-option label="公司名称" value="1"></el-option>
<el-option v-if="orgType==0&&activeTotal != 2" label="代理商名称" value="2"></el-option>
<el-option label="楼盘名称" value="3"></el-option>
<el-option label="项目名称" value="3"></el-option>
</el-select>
</el-input>
</div> -->
@@ -123,7 +123,7 @@
></el-option>
<el-option
v-if="activeTotal == 0"
label="楼盘名称"
label="项目名称"
value="3"
></el-option>
</el-select>
@@ -154,7 +154,7 @@
></el-option>
<el-option
v-if="activeTotal == 0"
label="楼盘名称"
label="项目名称"
value="3"
></el-option>
</el-select>
@@ -225,7 +225,7 @@
stripe
style="width: 100%"
>
<el-table-column prop="propertyName" label="楼盘名称" align="center">
<el-table-column prop="propertyName" label="项目名称" align="center">
</el-table-column>
<el-table-column prop="orgName" label="公司名称" align="center">
</el-table-column>
@@ -305,7 +305,7 @@
</el-table-column>
<el-table-column
prop="houseQuantityOfEnough"
label="服务期内楼盘"
label="服务期内项目"
align="center"
>
</el-table-column>
@@ -377,7 +377,7 @@
</el-table-column>
<el-table-column
prop="houseQuantityOfEnough"
label="服务期内楼盘"
label="服务期内项目"
align="center"
>
</el-table-column>
@@ -506,7 +506,7 @@ export default {
if (this.orgType == 1) {
this.selflag = "3";
}
// 获取楼盘列表
// 获取项目列表
this.tabtimetap(4);
this.getOperaList();
this.houseStatistics();
@@ -528,10 +528,10 @@ export default {
} else {
obj.operationType = null;
}
// 楼盘
// 项目
this.exportMethodPost(
"/autoSR/cusStageStatistics/houseStatisticsExport",
"楼盘数据",
"项目数据",
obj
);
} else if (this.activeTotal == 1) {
@@ -732,7 +732,7 @@ export default {
} else {
obj.operationType = null;
}
// 楼盘
// 项目
this.$api.api.houseStatistics1(obj).then((res) => {
// console.log(res);
this.tableData = res.data.records;


+ 23
- 23
src/views/building/index.vue View File

@@ -75,7 +75,7 @@
</div>

<div v-if="orgType == 0" class="div-lab">
<div class="label">楼盘类型:</div>
<div class="label">项目类型:</div>
<el-select
v-model="searchForm.houseType"
placeholder="请选择"
@@ -188,7 +188,7 @@
</div>

<div class="div-lab">
<div class="label">楼盘名称:</div>
<div class="label">项目名称:</div>
<el-input
class="div-inp"
v-model="searchForm.propertyName"
@@ -224,7 +224,7 @@
prop="propertyName"
:show-overflow-tooltip="true"
width="120px"
label="楼盘名称"
label="项目名称"
align="center"
>
</el-table-column>
@@ -256,7 +256,7 @@
:show-overflow-tooltip="true"
width="120px"
prop="provinceName,cityName"
label="楼盘地区"
label="项目地区"
align="center"
:key="Math.random()"
>
@@ -301,7 +301,7 @@
<el-table-column
:key="Math.random()"
prop="houseType"
label="楼盘类型"
label="项目类型"
align="center"
v-if="orgType != 2"
>
@@ -428,7 +428,7 @@
</div>

<el-dialog
:title="editFlag ? '编辑楼盘' : '新增楼盘'"
:title="editFlag ? '编辑项目' : '新增项目'"
:visible.sync="dialogVisible"
@close="dialogClose"
>
@@ -456,7 +456,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="楼盘类型" prop="houseType" v-if="orgType != 2">
<el-form-item label="项目类型" prop="houseType" v-if="orgType != 2">
<el-radio-group v-model="ruleForm.houseType" style="width: 400px">
<el-radio :label="0">正式</el-radio>
<el-radio :label="1">试用</el-radio>
@@ -464,7 +464,7 @@
<el-radio :label="3">测试</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="楼盘名称" prop="propertyName">
<el-form-item label="项目名称" prop="propertyName">
<el-input
v-model="ruleForm.propertyName"
maxlength="30"
@@ -503,7 +503,7 @@
onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)));"
></el-input>
</el-form-item>
<el-form-item label="楼盘地区" prop="provinceId">
<el-form-item label="项目地区" prop="provinceId">
<el-cascader
:props="props"
@change="locationsChange"
@@ -913,13 +913,13 @@ export default {
},
ruleForm: {
orgCode: "", //公司标识
houseType: 0, //楼盘类型
propertyName: "", //楼盘名称
houseType: 0, //项目类型
propertyName: "", //项目名称
startWorking: "", //活动开始时间
endWorking: "", //活动结束时间
linkman: "", //联系人
linkmanPhone: "", //联系手机
area: [], //楼盘地区
area: [], //项目地区
address: "", //详细地址
operationalPeople: "", //运营人员
managerPhone: "", //管理员账号
@@ -933,7 +933,7 @@ export default {
rules: {
orgCode: [{ required: true, message: "请选择公司", trigger: "blur" }],
propertyName: [
{ required: true, message: "请填写楼盘名称", trigger: "change" },
{ required: true, message: "请填写项目名称", trigger: "change" },
],
managerPassword: [
{ required: true, message: "请填写密码", trigger: "blur" },
@@ -1169,7 +1169,7 @@ export default {
addSurequxiao() {
this.dialogVisible = false;
},
// 添加楼盘
// 添加项目
addSure() {
this.$refs.ruleForm.validate((valid) => {
if (valid) {
@@ -1208,7 +1208,7 @@ export default {
this.loadingFlag = false;
console.log("防重");
}, 1);
this.$message.success("新增楼盘成功");
this.$message.success("新增项目成功");
this.zkhousePage();
}
})
@@ -1225,7 +1225,7 @@ export default {
row.lockFlag == 0
? "禁用" + "-" + row.propertyName + "-"
: "启用" + "-" + row.propertyName + "-"
}楼盘吗?`,
}项目吗?`,
"提示",
{
confirmButtonText: "确定",
@@ -1263,13 +1263,13 @@ export default {
this.time = [];
this.ruleForm = {
orgCode: "", //公司标识
houseType: 0, //楼盘类型
propertyName: "", //楼盘名称
houseType: 0, //项目类型
propertyName: "", //项目名称
startWorking: "", //活动开始时间
endWorking: "", //活动结束时间
linkman: "", //联系人
linkmanPhone: "", //联系手机
area: [], //楼盘地区
area: [], //项目地区
address: "", //详细地址
operationalPeople: "", //运营人员
managerPhone: "", //管理员账号
@@ -1278,7 +1278,7 @@ export default {
cityId: "", //市id
};
},
// 新增楼盘,弹框显示
// 新增项目,弹框显示
addHouse() {
this.editFlag = false;
this.dialogVisible = true;
@@ -1309,7 +1309,7 @@ export default {
},
changeSure() {
if (!this.resetFlag) {
this.$message.error("平台用户与楼盘用户不能重复添加!");
this.$message.error("平台用户与项目用户不能重复添加!");
return;
}
this.$refs.accountForm
@@ -1334,7 +1334,7 @@ export default {
},
del(row) {
console.log(row, "删除");
this.$confirm(`是否删除此楼盘?`, "提示", {
this.$confirm(`是否删除此项目?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
distinguishCancelAndClose: true,
@@ -1384,7 +1384,7 @@ export default {
}
});
},
// 获取楼盘列表
// 获取项目列表
zkhousePage() {
let obj = {
current: this.currentPage,


+ 5
- 5
src/views/houseData/analyse.vue View File

@@ -25,7 +25,7 @@
>
<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-option label="项目" value="2"></el-option>
</el-select>

<div style="margin-left: 10px" v-if="selValue == 1">
@@ -45,7 +45,7 @@
</el-option>
</el-select>
</div>
<!-- 楼盘 -->
<!-- 项目 -->
<div style="margin-left: 26px" v-else-if="selValue == 2">
<el-select
v-model="choicValue"
@@ -231,7 +231,7 @@
style="width: 100%"
>
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column prop="houseName" label="楼盘名称" align="center">
<el-table-column prop="houseName" label="项目名称" align="center">
</el-table-column>
<el-table-column label="地区" align="center">
<template slot-scope="{ row }">
@@ -311,7 +311,7 @@
</div>

<el-dialog title="趋势图" :visible.sync="dialogVisible">
<div class="houseSize">楼盘: {{houseName||''}} 运营:{{operationStaffName||'暂无'}}</div>
<div class="houseSize">项目: {{houseName||''}} 运营:{{operationStaffName||'暂无'}}</div>
<div style="height: 350px; width: 94%; margin: 0 auto">
<div id="line" style="min-height: 350px"></div>
</div>
@@ -963,7 +963,7 @@ export default {
},
getList() {
console.log(this.selValue);
// 当为楼盘选择时
// 当为项目选择时
if (this.selValue == 1) {
this.$api.api
.findMyOrg({


+ 6
- 6
src/views/houseData/count.vue View File

@@ -56,7 +56,7 @@
<div class="cen-tab">
<el-table :data="tableData" stripe style="width: 100%" >
<el-table-column prop="operationName" label="运营" align="center"></el-table-column>
<el-table-column prop="houseQuantityInService" label="服务中楼盘数" width="120" align="center"></el-table-column>
<el-table-column prop="houseQuantityInService" label="服务中项目数" width="120" align="center"></el-table-column>
<el-table-column prop="wrongWordAddCount" width="120" label="常错词添加数" align="center"></el-table-column>
<el-table-column prop="wrongWordUpdateCount" width="120" label="接待错词修改条数" align="center"></el-table-column>
<el-table-column prop="markAdviserCount" width="120" label="标记顾问数" align="center"></el-table-column>
@@ -64,8 +64,8 @@
<el-table-column prop="prohibitedWordsAddCount" width="120" label="新增违禁词数" align="center"></el-table-column>
<el-table-column prop="CustomerLabelUpdateCount" width="120" label="客户标签修改次数" align="center"></el-table-column>
<el-table-column prop="ZkMarkingUpdateCount" width="120" label="销讲话术更新次数" align="center"></el-table-column>
<el-table-column prop="loginHouseCount" width="120" label="登录楼盘次数" align="center"></el-table-column>
<el-table-column prop="lastLoginTime" width="140" label="最后一次登录楼盘时间" align="center"></el-table-column>
<el-table-column prop="loginHouseCount" width="120" label="登录项目次数" align="center"></el-table-column>
<el-table-column prop="lastLoginTime" width="140" label="最后一次登录项目时间" align="center"></el-table-column>
<el-table-column label="操作" align="center" width="120" fixed="right">
<template slot-scope="{ row }">
<el-button
@@ -108,7 +108,7 @@
</el-date-picker>
</div>
<div class="div-lab1">
<div class="label1"> 楼盘: </div>
<div class="label1"> 项目: </div>
<el-input
style="width: 180px"
maxlength="30"
@@ -153,7 +153,7 @@
</el-table-column>
<el-table-column
prop="houseName"
label="楼盘"
label="项目"
align="center"
>
</el-table-column>
@@ -242,7 +242,7 @@ export default {
},
{
value: "7",
label: "登录楼盘",
label: "登录项目",
},
],
createBy:'',


+ 2
- 1
vue.config.js View File

@@ -4,10 +4,11 @@
*/
// const url = 'http://pigx-gateway'
// const url = 'http://39.97.167.65:9999' //测试
const url = 'http://192.168.31.167:9999' //长龙
// const url = 'http://192.168.31.167:9999' //长龙
// const url = 'http://192.168.31.134:9999' //嘉豪
// const url = 'http://192.168.31.100:9999' //王笑
// const url = 'http://62.234.122.43:9999' //正式
const url = 'https://zanyong.hfju.com' // 正式域名

const CompressionWebpackPlugin = require('compression-webpack-plugin')
const productionGzipExtensions = ['js', 'css']


Loading…
Cancel
Save