|
@@ -3,9 +3,6 @@
|
|
|
<template v-if="permissionFiltering">
|
|
|
<div class="model-title">
|
|
|
<div class="model-title-text">住户身份占比</div>
|
|
|
- <el-select v-model="mixins_query.communityId" placeholder="所有社区" clearable class="saveColumn-select" @change="getData">
|
|
|
- <el-option v-for="(item, index) in communityList" :label="item.communityName" :value="item.id" :key="index"></el-option>
|
|
|
- </el-select>
|
|
|
</div>
|
|
|
<div class="model-content">
|
|
|
<zz-echart :option="clientOptions" class="chart"></zz-echart>
|
|
@@ -19,6 +16,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import { mapState } from 'vuex';
|
|
|
import { GradualChange, ringType } from './indexOptionChart';
|
|
|
import permissionComponent from './permissionComponent';
|
|
|
const colors = [
|
|
@@ -45,7 +43,9 @@ export default {
|
|
|
[
|
|
|
{ value: 0, name: '业主' },
|
|
|
{ value: 0, name: '亲属' },
|
|
|
- { value: 0, name: '租客' }
|
|
|
+ { value: 0, name: '租客' },
|
|
|
+ { value: 0, name: '租户管理员' },
|
|
|
+ { value: 0, name: '普通员工' }
|
|
|
],
|
|
|
{},
|
|
|
{ type: 'number', total: 0 }
|
|
@@ -63,7 +63,9 @@ export default {
|
|
|
[
|
|
|
{ value: 0, name: '业主' },
|
|
|
{ value: 0, name: '亲属' },
|
|
|
- { value: 0, name: '租客' }
|
|
|
+ { value: 0, name: '租客' },
|
|
|
+ { value: 0, name: '租户管理员' },
|
|
|
+ { value: 0, name: '普通员工' }
|
|
|
],
|
|
|
{},
|
|
|
{ type: 'number', total: 0 }
|
|
@@ -76,7 +78,9 @@ export default {
|
|
|
let typeName = {
|
|
|
1: '业主',
|
|
|
2: '亲属',
|
|
|
- 3: '租客'
|
|
|
+ 3: '租客',
|
|
|
+ 4: '租户管理员',
|
|
|
+ 5: '普通员工'
|
|
|
};
|
|
|
let newData = [];
|
|
|
for (let a in data.datas) {
|
|
@@ -88,11 +92,6 @@ export default {
|
|
|
return newData;
|
|
|
}
|
|
|
},
|
|
|
- computed: {
|
|
|
- communityList() {
|
|
|
- return this.$store.getters['getAreaSelect'];
|
|
|
- }
|
|
|
- },
|
|
|
created() {
|
|
|
this.getData();
|
|
|
}
|