@@ -44,7 +44,7 @@ | |||||
<div class="app-titel" style="margin-top: 15px"> | <div class="app-titel" style="margin-top: 15px"> | ||||
<div class="label" style="color: #ffffff">筛选相关:</div> | <div class="label" style="color: #ffffff">筛选相关:</div> | ||||
<div> | <div> | ||||
<el-button @click="infoadd()" style="background: #2671e2; color: #ffffff" | |||||
<el-button v-if="cus_ag_add" @click="infoadd()" style="background: #2671e2; color: #ffffff" | |||||
>新增</el-button | >新增</el-button | ||||
> | > | ||||
</div> | </div> | ||||
@@ -135,11 +135,11 @@ | |||||
</el-table-column> | </el-table-column> | ||||
<el-table-column label="操作" align="center" fixed="right" width="200"> | <el-table-column label="操作" align="center" fixed="right" width="200"> | ||||
<template slot-scope="scope"> | <template slot-scope="scope"> | ||||
<el-button type="text" size="small" @click="infoeditor(scope.row)">编辑</el-button> | |||||
<el-button type="text" size="small" @click="inforeplace(scope.row)">更换账号</el-button> | |||||
<el-button type="text" size="small" @click="toinifodelete(scope)">删除</el-button> | |||||
<el-button type="text" size="small" @click="editOpera(scope.row)">管理系统运营</el-button> | |||||
<el-button type="text" size="small" @click="toDisable(scope.row)">{{scope.row.lockFlag==0?'禁用':'启用'}}</el-button> | |||||
<el-button type="text" v-if="cus_ag_edit" size="small" @click="infoeditor(scope.row)">编辑</el-button> | |||||
<el-button type="text" v-if="cus_ag_change" size="small" @click="inforeplace(scope.row)">更换账号</el-button> | |||||
<el-button type="text" v-if="cus_ag_del" size="small" @click="toinifodelete(scope)">删除</el-button> | |||||
<el-button type="text" v-if="cus_ag_manage" size="small" @click="editOpera(scope.row)">管理系统运营</el-button> | |||||
<el-button type="text" v-if="cus_ag_open" size="small" @click="toDisable(scope.row)">{{scope.row.lockFlag==0?'禁用':'启用'}}</el-button> | |||||
</template> | </template> | ||||
</el-table-column> | </el-table-column> | ||||
</el-table> | </el-table> | ||||
@@ -339,6 +339,7 @@ | |||||
</template> | </template> | ||||
<script> | <script> | ||||
import { mapGetters } from "vuex"; | |||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
@@ -480,6 +481,17 @@ export default { | |||||
} | } | ||||
}; | }; | ||||
}, | |||||
computed: { | |||||
...mapGetters(["permissions"]), | |||||
}, | |||||
created() { | |||||
this.cus_ag_add = this.permissions["cus_ag_add"]; | |||||
this.cus_ag_edit = this.permissions["cus_ag_edit"]; | |||||
this.cus_ag_change = this.permissions["cus_ag_change"]; | |||||
this.cus_ag_del = this.permissions["cus_ag_del"]; | |||||
this.cus_ag_manage = this.permissions["cus_ag_manage"]; | |||||
this.cus_ag_open = this.permissions["cus_ag_open"]; | |||||
}, | }, | ||||
mounted() { | mounted() { | ||||
this.getAgentList() | this.getAgentList() | ||||
@@ -21,7 +21,7 @@ | |||||
<div class="app-titel" style="margin-top: 15px"> | <div class="app-titel" style="margin-top: 15px"> | ||||
<div class="label" style="color: #ffffff">筛选相关:</div> | <div class="label" style="color: #ffffff">筛选相关:</div> | ||||
<div> | <div> | ||||
<el-button @click="infoadd()" style="background: #2671e2; color: #ffffff" | |||||
<el-button v-if="cus_crd_add" @click="infoadd()" style="background: #2671e2; color: #ffffff" | |||||
>新增</el-button | >新增</el-button | ||||
> | > | ||||
</div> | </div> | ||||
@@ -96,13 +96,13 @@ | |||||
</el-table-column> | </el-table-column> | ||||
<el-table-column label="操作" align="center" fixed="right" width="200"> | <el-table-column label="操作" align="center" fixed="right" width="200"> | ||||
<template slot-scope="scope"> | <template slot-scope="scope"> | ||||
<el-button type="text" size="small" @click="infoeditor(scope.row)">编辑</el-button> | |||||
<el-button type="text" size="small" @click="inforeplace(scope.row)">更换账号</el-button> | |||||
<el-button type="text" size="small" @click="toinifodelete(scope)">删除</el-button> | |||||
<el-button type="text" v-if="cus_crd_edit" size="small" @click="infoeditor(scope.row)">编辑</el-button> | |||||
<el-button type="text" v-if="cus_crd_change" size="small" @click="inforeplace(scope.row)">更换账号</el-button> | |||||
<el-button type="text" v-if="cus_crd_del" size="small" @click="toinifodelete(scope)">删除</el-button> | |||||
<!-- <el-button type="text" size="small" @click="editOpera(scope.row,0)">管理系统运营</el-button> | <!-- <el-button type="text" size="small" @click="editOpera(scope.row,0)">管理系统运营</el-button> | ||||
<el-button type="text" size="small" @click="editOpera(scope.row,1)">管理代理商运营</el-button> --> | <el-button type="text" size="small" @click="editOpera(scope.row,1)">管理代理商运营</el-button> --> | ||||
<el-button type="text" size="small" @click="bindAgent(scope.row)">绑定代理商</el-button> | |||||
<el-button type="text" size="small" @click="toDisable(scope.row)">{{scope.row.lockFlag==0?'禁用':'启用'}}</el-button> | |||||
<el-button type="text" v-if="cus_crd_bindAgent" size="small" @click="bindAgent(scope.row)">绑定代理商</el-button> | |||||
<el-button type="text" v-if="cus_crd_open" size="small" @click="toDisable(scope.row)">{{scope.row.lockFlag==0?'禁用':'启用'}}</el-button> | |||||
</template> | </template> | ||||
</el-table-column> | </el-table-column> | ||||
</el-table> | </el-table> | ||||
@@ -296,6 +296,7 @@ | |||||
</template> | </template> | ||||
<script> | <script> | ||||
import { mapGetters } from "vuex"; | |||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
@@ -434,6 +435,17 @@ export default { | |||||
} | } | ||||
}; | }; | ||||
}, | }, | ||||
computed: { | |||||
...mapGetters(["permissions"]), | |||||
}, | |||||
created() { | |||||
this.cus_crd_add = this.permissions["cus_crd_add"]; | |||||
this.cus_crd_edit = this.permissions["cus_crd_edit"]; | |||||
this.cus_crd_change = this.permissions["cus_crd_change"]; | |||||
this.cus_crd_del = this.permissions["cus_crd_del"]; | |||||
this.cus_crd_bindAgent = this.permissions["cus_crd_bindAgent"]; | |||||
this.cus_crd_open = this.permissions["cus_crd_open"]; | |||||
}, | |||||
mounted() { | mounted() { | ||||
this.orgType=localStorage.getItem('orgType') | this.orgType=localStorage.getItem('orgType') | ||||
this.getcompanyList() | this.getcompanyList() | ||||
@@ -93,8 +93,8 @@ | |||||
<!-- <el-button type="text" size="small" @click="infoeditor(scope.row)">编辑</el-button> | <!-- <el-button type="text" size="small" @click="infoeditor(scope.row)">编辑</el-button> | ||||
<el-button type="text" size="small" @click="inforeplace(scope.row)">更换账号</el-button> | <el-button type="text" size="small" @click="inforeplace(scope.row)">更换账号</el-button> | ||||
<el-button type="text" size="small" @click="toinifodelete(scope)">删除</el-button> --> | <el-button type="text" size="small" @click="toinifodelete(scope)">删除</el-button> --> | ||||
<el-button type="text" size="small" @click="editOpera(scope.row,0)">管理系统运营</el-button> | |||||
<el-button type="text" size="small" @click="editOpera(scope.row,1)">管理代理商运营</el-button> | |||||
<el-button type="text" size="small" v-if="cus_com_sys" @click="editOpera(scope.row,0)">管理系统运营</el-button> | |||||
<el-button type="text" size="small" v-if="cus_com_sys1" @click="editOpera(scope.row,1)">管理代理商运营</el-button> | |||||
<!-- <el-button type="text" size="small" @click="bindAgent(scope.row)">绑定代理商</el-button> --> | <!-- <el-button type="text" size="small" @click="bindAgent(scope.row)">绑定代理商</el-button> --> | ||||
</template> | </template> | ||||
</el-table-column> | </el-table-column> | ||||
@@ -289,6 +289,7 @@ | |||||
</template> | </template> | ||||
<script> | <script> | ||||
import { mapGetters } from "vuex"; | |||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
@@ -426,6 +427,13 @@ export default { | |||||
// ], | // ], | ||||
} | } | ||||
}; | }; | ||||
}, | |||||
computed: { | |||||
...mapGetters(["permissions"]), | |||||
}, | |||||
created() { | |||||
this.cus_com_sys = this.permissions["cus_com_sys"]; | |||||
this.cus_com_sys1 = this.permissions["cus_com_sys1"]; | |||||
}, | }, | ||||
mounted() { | mounted() { | ||||
this.orgType=localStorage.getItem('orgType') | this.orgType=localStorage.getItem('orgType') | ||||
@@ -14,7 +14,7 @@ | |||||
<el-select | <el-select | ||||
v-model="houseId" | v-model="houseId" | ||||
@change="houseChange" | @change="houseChange" | ||||
filterable | |||||
filterable | |||||
placeholder="请选择" | placeholder="请选择" | ||||
> | > | ||||
<el-option | <el-option | ||||
@@ -28,6 +28,7 @@ | |||||
</div> | </div> | ||||
<div style="margin-left: 20px"> | <div style="margin-left: 20px"> | ||||
<el-button | <el-button | ||||
v-if="cus_sal_add" | |||||
@click="infoadd()" | @click="infoadd()" | ||||
style="background: #2671e2; color: #ffffff" | style="background: #2671e2; color: #ffffff" | ||||
>新增</el-button | >新增</el-button | ||||
@@ -49,8 +50,8 @@ | |||||
<el-table-column label="操作" align="center" width="150"> | <el-table-column label="操作" align="center" width="150"> | ||||
<template slot-scope="{ row }"> | <template slot-scope="{ row }"> | ||||
<el-button type="text" @click="edit(row)">编辑</el-button> | |||||
<el-button type="text" @click="toinifodelete(row)">删除</el-button> | |||||
<el-button type="text" v-if="cus_sal_edit" @click="edit(row)">编辑</el-button> | |||||
<el-button type="text" v-if="cus_sal_del" @click="toinifodelete(row)">删除</el-button> | |||||
</template> | </template> | ||||
</el-table-column> | </el-table-column> | ||||
</el-table> | </el-table> | ||||
@@ -87,6 +88,7 @@ | |||||
</template> | </template> | ||||
<script> | <script> | ||||
import { mapGetters } from "vuex"; | |||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
@@ -111,6 +113,14 @@ export default { | |||||
value: "", | value: "", | ||||
}; | }; | ||||
}, | }, | ||||
computed: { | |||||
...mapGetters(["permissions"]), | |||||
}, | |||||
created() { | |||||
this.cus_sal_add = this.permissions["cus_sal_add"]; | |||||
this.cus_sal_edit = this.permissions["cus_sal_edit"]; | |||||
this.cus_sal_del = this.permissions["cus_sal_del"]; | |||||
}, | |||||
mounted() { | mounted() { | ||||
// 获取楼盘列表 | // 获取楼盘列表 | ||||
this.zkhousePage(); | this.zkhousePage(); | ||||
@@ -266,11 +266,11 @@ | |||||
</el-table-column> | </el-table-column> | ||||
<el-table-column label="操作" align="center" width="250" fixed="right"> | <el-table-column label="操作" align="center" width="250" fixed="right"> | ||||
<template slot-scope="{row}"> | <template slot-scope="{row}"> | ||||
<el-button type="text">客户详情</el-button> | |||||
<el-button type="text">接待详情</el-button> | |||||
<el-button type="text" v-if="cus_index_detail">客户详情</el-button> | |||||
<el-button type="text" v-if="cus_index_visit">接待详情</el-button> | |||||
<!-- <el-button type="text">更多</el-button> --> | <!-- <el-button type="text">更多</el-button> --> | ||||
<el-button type="text" @click="tranfser(row)">转交</el-button> | |||||
<el-button type="text">删除</el-button> | |||||
<el-button type="text" @click="tranfser(row)" v-if="cus_index_take">转交</el-button> | |||||
<el-button type="text" v-if="cus_index_del">删除</el-button> | |||||
</template> | </template> | ||||
</el-table-column> | </el-table-column> | ||||
</el-table> | </el-table> | ||||
@@ -291,6 +291,7 @@ | |||||
</template> | </template> | ||||
<script> | <script> | ||||
import { mapGetters } from "vuex"; | |||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
@@ -406,6 +407,15 @@ export default { | |||||
}, | }, | ||||
}; | }; | ||||
}, | }, | ||||
computed: { | |||||
...mapGetters(["permissions"]), | |||||
}, | |||||
created() { | |||||
this.cus_index_detail = this.permissions["cus_index_detail"]; | |||||
this.cus_index_take = this.permissions["cus_index_take"]; | |||||
this.cus_index_del = this.permissions["cus_index_del"]; | |||||
this.cus_index_visit = this.permissions["cus_index_visit"]; | |||||
}, | |||||
mounted() { | mounted() { | ||||
// 获取楼盘列表 | // 获取楼盘列表 | ||||
this.zkhousePage(); | this.zkhousePage(); | ||||
@@ -240,9 +240,9 @@ | |||||
<!-- scope --> | <!-- scope --> | ||||
<el-table-column label="操作" align="center" width="200" fixed="right"> | <el-table-column label="操作" align="center" width="200" fixed="right"> | ||||
<template slot-scope="{ row }"> | <template slot-scope="{ row }"> | ||||
<el-button type="text">查看</el-button> | |||||
<el-button type="text">下载文本</el-button> | |||||
<el-button type="text">下载录音</el-button> | |||||
<el-button type="text" v-if="rec_index_look">查看</el-button> | |||||
<el-button type="text" v-if="rec_index_text">下载文本</el-button> | |||||
<el-button type="text" v-if="rec_index_voice">下载录音</el-button> | |||||
</template> | </template> | ||||
</el-table-column> | </el-table-column> | ||||
</el-table> | </el-table> | ||||
@@ -263,6 +263,7 @@ | |||||
</template> | </template> | ||||
<script> | <script> | ||||
import { mapGetters } from "vuex"; | |||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
@@ -363,6 +364,14 @@ export default { | |||||
projectId: "", | projectId: "", | ||||
}, | }, | ||||
}; | }; | ||||
}, | |||||
computed: { | |||||
...mapGetters(["permissions"]), | |||||
}, | |||||
created() { | |||||
this.rec_index_look = this.permissions["rec_index_look"]; | |||||
this.rec_index_text = this.permissions["rec_index_text"]; | |||||
this.rec_index_voice = this.permissions["rec_index_voice"]; | |||||
}, | }, | ||||
mounted() { | mounted() { | ||||
this.tabtimetap(0); | this.tabtimetap(0); | ||||
@@ -161,7 +161,7 @@ | |||||
</el-table-column> | </el-table-column> | ||||
<el-table-column label="操作" align="center" fixed="right" width="200"> | <el-table-column label="操作" align="center" fixed="right" width="200"> | ||||
<template slot-scope="{ row }"> | <template slot-scope="{ row }"> | ||||
<el-button type="text" @click="goEquiment(row)" | |||||
<el-button type="text" v-if="cus_build_area_record" @click="goEquiment(row)" | |||||
>设备使用统计</el-button | >设备使用统计</el-button | ||||
> | > | ||||
</template> | </template> | ||||
@@ -187,6 +187,7 @@ | |||||
</template> | </template> | ||||
<script> | <script> | ||||
import { mapGetters } from "vuex"; | |||||
import { getAreaList } from "@/api/modules/api"; | import { getAreaList } from "@/api/modules/api"; | ||||
export default { | export default { | ||||
data() { | data() { | ||||
@@ -245,6 +246,12 @@ export default { | |||||
size: 10, | size: 10, | ||||
total: 10, | total: 10, | ||||
}; | }; | ||||
}, | |||||
computed: { | |||||
...mapGetters(["permissions"]), | |||||
}, | |||||
created() { | |||||
this.cus_build_area_record = this.permissions["cus_build_area_record"]; | |||||
}, | }, | ||||
mounted() { | mounted() { | ||||
// 获取楼盘列表 | // 获取楼盘列表 | ||||
@@ -21,7 +21,7 @@ | |||||
</el-select> | </el-select> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<el-button class="app-titel-btn" type="primary" @click="addClick" | |||||
<el-button v-if="cus_build_area_add" class="app-titel-btn" type="primary" @click="addClick" | |||||
>新增</el-button | >新增</el-button | ||||
> | > | ||||
</div> | </div> | ||||
@@ -39,8 +39,8 @@ | |||||
</el-table-column> | </el-table-column> | ||||
<el-table-column label="操作" width="250"> | <el-table-column label="操作" width="250"> | ||||
<template slot-scope="scope"> | <template slot-scope="scope"> | ||||
<el-button type="text" @click="edit(scope.row)">编辑</el-button> | |||||
<el-button type="text" @click="del(scope.row)">删除</el-button> | |||||
<el-button type="text" v-if="cus_build_area_edit" @click="edit(scope.row)">编辑</el-button> | |||||
<el-button type="text" v-if="cus_build_area_del" @click="del(scope.row)">删除</el-button> | |||||
</template> | </template> | ||||
</el-table-column> | </el-table-column> | ||||
</el-table> | </el-table> | ||||
@@ -102,6 +102,7 @@ | |||||
</template> | </template> | ||||
<script> | <script> | ||||
import { mapGetters } from "vuex"; | |||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
@@ -133,6 +134,14 @@ export default { | |||||
options: [], | options: [], | ||||
roleFlag: "", | roleFlag: "", | ||||
}; | }; | ||||
}, | |||||
computed: { | |||||
...mapGetters(["permissions"]), | |||||
}, | |||||
created() { | |||||
this.cus_build_area_add = this.permissions["cus_build_area_add"]; | |||||
this.cus_build_area_del = this.permissions["cus_build_area_del"]; | |||||
this.cus_build_area_edit = this.permissions["cus_build_area_edit"]; | |||||
}, | }, | ||||
mounted() { | mounted() { | ||||
// 获取公司列表 | // 获取公司列表 | ||||
@@ -143,6 +143,7 @@ | |||||
</div> | </div> | ||||
<div style="margin-left: auto; margin-right: 20px" v-if="orgType != 2"> | <div style="margin-left: auto; margin-right: 20px" v-if="orgType != 2"> | ||||
<el-button | <el-button | ||||
v-if="cus_build_index_add" | |||||
style="background: #2671e2; color: #ffffff" | style="background: #2671e2; color: #ffffff" | ||||
@click="addHouse" | @click="addHouse" | ||||
>新增</el-button | >新增</el-button | ||||
@@ -223,20 +224,20 @@ | |||||
<!-- scope --> | <!-- scope --> | ||||
<el-table-column label="操作" align="center" fixed="right" width="200"> | <el-table-column label="操作" align="center" fixed="right" width="200"> | ||||
<template slot-scope="{ row }"> | <template slot-scope="{ row }"> | ||||
<el-button type="text" @click="edit(row)">编辑</el-button> | |||||
<el-button type="text" v-if="cus_build_index_edit" @click="edit(row)">编辑</el-button> | |||||
<el-button | <el-button | ||||
type="text" | type="text" | ||||
v-if="orgType != 2" | |||||
v-if="orgType != 2&&cus_build_index_change" | |||||
@click="changeAccount(row)" | @click="changeAccount(row)" | ||||
>更换账号</el-button | >更换账号</el-button | ||||
> | > | ||||
<el-button type="text" v-if="orgType == 2">添加员工</el-button> | |||||
<el-button type="text" size="small" @click="editOpera(row,0)">管理系统运营人员</el-button> | |||||
<el-button type="text" size="small" @click="editOpera(row,1)">管理代理商运营</el-button> | |||||
<!-- <el-button type="text" v-if="orgType == 2">添加员工</el-button> --> | |||||
<el-button type="text" size="small" v-if="cus_build_index_sys" @click="editOpera(row,0)">管理系统运营人员</el-button> | |||||
<el-button type="text" size="small" v-if="cus_build_index_agent" @click="editOpera(row,1)">管理代理商运营</el-button> | |||||
<!-- <el-button type="text">添加员工</el-button> --> | <!-- <el-button type="text">添加员工</el-button> --> | ||||
<el-button type="text" size="small" @click="bindAgent(row)">绑定代理商</el-button> | |||||
<el-button type="text" @click="del(row)">删除</el-button> | |||||
<el-button type="text" size="small" @click="toDisable(row)">{{row.lockFlag==0?'禁用':'启用'}}</el-button> | |||||
<el-button type="text" size="small" v-if="cus_build_index_bindAgent" @click="bindAgent(row)">绑定代理商</el-button> | |||||
<el-button type="text" v-if="cus_build_index_del" @click="del(row)">删除</el-button> | |||||
<el-button type="text" v-if="cus_build_index_open" size="small" @click="toDisable(row)">{{row.lockFlag==0?'禁用':'启用'}}</el-button> | |||||
</template> | </template> | ||||
</el-table-column> | </el-table-column> | ||||
</el-table> | </el-table> | ||||
@@ -514,6 +515,7 @@ | |||||
</template> | </template> | ||||
<script> | <script> | ||||
import { mapGetters } from "vuex"; | |||||
import { getAreaList } from "@/api/modules/api"; | import { getAreaList } from "@/api/modules/api"; | ||||
export default { | export default { | ||||
data() { | data() { | ||||
@@ -667,6 +669,19 @@ export default { | |||||
agentId:'', | agentId:'', | ||||
}, | }, | ||||
}; | }; | ||||
}, | |||||
computed: { | |||||
...mapGetters(["permissions"]), | |||||
}, | |||||
created() { | |||||
this.cus_build_index_add = this.permissions["cus_build_index_add"]; | |||||
this.cus_build_index_edit = this.permissions["cus_build_index_edit"]; | |||||
this.cus_build_index_change = this.permissions["cus_build_index_change"]; | |||||
this.cus_build_index_sys = this.permissions["cus_build_index_sys"]; | |||||
this.cus_build_index_agent = this.permissions["cus_build_index_agent"]; | |||||
this.cus_build_index_bindAgent = this.permissions["cus_build_index_bindAgent"]; | |||||
this.cus_build_index_del = this.permissions["cus_build_index_del"]; | |||||
this.cus_build_index_open = this.permissions["cus_build_index_open"]; | |||||
}, | }, | ||||
mounted() { | mounted() { | ||||
this.orgType = localStorage.getItem("orgType"); | this.orgType = localStorage.getItem("orgType"); | ||||