diff --git a/src/api/modules/api.js b/src/api/modules/api.js
index 217d6f2..6f1b61d 100644
--- a/src/api/modules/api.js
+++ b/src/api/modules/api.js
@@ -9,7 +9,24 @@ export function userDict(query) {
params: query
})
}
-
+// 组织权限获取数组
+export function fetchRoleTree(orgType) {
+ return request({
+ url: '/admin/sysorgmenu/tree/' + orgType,
+ method: 'get'
+ })
+}
+//添加组织用户权限
+export function permissionUpd(orgType, menuIds) {
+ return request({
+ url: 'admin/sysorgmenu',
+ method: 'post',
+ data: {
+ orgType:orgType ,
+ menuIds: menuIds
+ }
+ })
+}
export function fetchList(query) {
return request({
url: '/admin/user/page',
diff --git a/src/page/check/index.vue b/src/page/check/index.vue
index 1851b81..b64025c 100644
--- a/src/page/check/index.vue
+++ b/src/page/check/index.vue
@@ -138,7 +138,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) {
// 公司后台
diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue
index d5a085d..3ebb8f4 100644
--- a/src/page/index/top/index.vue
+++ b/src/page/index/top/index.vue
@@ -19,13 +19,22 @@
line-height: 30px;
cursor: pointer;
"
- @click="goChange"
>
-
{{orgType==0?'系统后台':orgType==1?'代理商后台':orgType==2?'公司后台':'楼盘后台'}}
+
+ {{
+ orgType == 0
+ ? "系统后台"
+ : orgType == 1
+ ? "代理商后台"
+ : orgType == 2
+ ? "公司后台"
+ : "楼盘后台"
+ }}
+
{{
companyName
}}
- 切换
+ 切换
- 在服务期内({{residueTime}})
- 过期({{residueTime}})
- 禁用({{residueTime}})
+ 在服务期内({{scope.row.residueTime}})
+ 过期({{scope.row.residueTime}})
+ 禁用
+
+
+ {{row.lockFlag==1?'禁用':'启用'}}
+
+
编辑
@@ -313,7 +319,7 @@
-
+
{
- return
- this.$api.http.delAgent({id:item.row.id}).then((res) => {
+ // return
+ // console.log(123);
+ this.$api.http.editorAgent({id:row.id,lockFlag:row.lockFlag==0?'1':'0'}).then((res) => {
if(res.code==0){
this.$message({
type: 'success',
- message: '删除成功!'
+ message: '操作成功!'
});
this.Screeningofempty()
this.getAgentList()
@@ -718,7 +725,8 @@ export default {
})
})
.catch(err=>{
- console.log('关闭');
+ // console.log('关闭');
+ // console.log(err);
})
},
//时间选择
@@ -752,7 +760,7 @@ export default {
serviceStatus:this.serviceStatus,
agentName:this.agentName,
operationalName:this.operationalName,
-
+
}).then((res) => {
console.log(res.data);
this.tableData=res.data.records;
diff --git a/src/views/Customer/CompanyRecord.vue b/src/views/Customer/CompanyRecord.vue
new file mode 100644
index 0000000..f7ee62f
--- /dev/null
+++ b/src/views/Customer/CompanyRecord.vue
@@ -0,0 +1,859 @@
+
+
+
+
+
+
+
代理商名称:
+
+
+
+
公司名称:
+
+
+
+
运营人员名称:
+
+
+
+
+
+
+
筛选相关:
+
+ 新增
+
+
+ 筛选
+
+
+ 清空筛选条件
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{scope.row.contactPerson}}:{{scope.row.contactNumber}}
+
+
+
+
+
+
+
+
+
+ {{row.lockFlag==1?'禁用':'启用'}}
+
+
+
+
+ 编辑
+ 更换账号
+ 删除
+
+ 绑定代理商
+ {{scope.row.lockFlag==0?'禁用':'启用'}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/Customer/Companymanagement.vue b/src/views/Customer/Companymanagement.vue
index f18b175..61fe1d5 100644
--- a/src/views/Customer/Companymanagement.vue
+++ b/src/views/Customer/Companymanagement.vue
@@ -20,11 +20,11 @@
筛选相关:
-
+
筛选
-
-
+ -->
-
{{scope.row.contactPerson}}:{{scope.row.contactNumber}}
-
-
+ -->
+
- 编辑
+
管理系统运营
管理代理商运营
- 绑定代理商
+
@@ -478,7 +477,7 @@ export default {
this.operaForm.orgId=row.orgCode
this.sysFlag=idx
// 获取所有代理商运营
- this.getAllOperationsStaff(idx)
+ this.getAllOperationsStaff(idx,row)
this.idx=idx
this.zkoperationrecordFindByOrg(row.orgCode,idx)
// this.operaVisible=true
@@ -635,11 +634,11 @@ export default {
this.dialogVisible=true;
},
//获取运营人员
- getAllOperationsStaff(idx){
+ getAllOperationsStaff(idx,row){
this.optionsoperationStaff=[];
if(idx==1){
this.$api.http.getAllOperationsStaffByAgent({
- agentId:localStorage.getItem('agentId')
+ orgCode:row.orgCode
}).then((res) => {
this.optionsoperationStaff= res.data
this.operaVisible=true
@@ -751,7 +750,8 @@ export default {
operatorName:this.operatorName,
operationStaffName:this.operationStaffName,
name:this.name,
- agentId:localStorage.getItem('agentId')
+ agentId:localStorage.getItem('agentId'),
+ orgType: localStorage.getItem("orgType"),
}
this.$api.http.getcompanyList(parmest).then((res) => {
console.log(res.data);
diff --git a/src/views/Equipment/batch.vue b/src/views/Equipment/batch.vue
index 8e03fee..c0fed26 100644
--- a/src/views/Equipment/batch.vue
+++ b/src/views/Equipment/batch.vue
@@ -16,7 +16,7 @@
清空筛选条件
- 添加批次
@@ -77,7 +77,7 @@
- 修改
+ 修改
@@ -126,6 +126,7 @@
+
+