筛选
-
-
+ -->
-
{{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/admin/user/index.vue b/src/views/admin/user/index.vue
index bb24b75..d1bd82e 100644
--- a/src/views/admin/user/index.vue
+++ b/src/views/admin/user/index.vue
@@ -1816,6 +1816,10 @@ export default {
if (this.addFlag) {
this.$refs.form.validate((valid) => {
if (valid) {
+ if(localStorage.getItem('orgType')==2||localStorage.getItem('orgType')==3){
+ // console.log(123);
+ this.form.orgCode=localStorage.getItem('orgCode')
+ }
this.$api.api.addUser(this.form).then((res) => {
console.log(res);
this.roleList();
diff --git a/src/views/building/index.vue b/src/views/building/index.vue
index 4453cc4..9e2548e 100644
--- a/src/views/building/index.vue
+++ b/src/views/building/index.vue
@@ -214,6 +214,11 @@
{{ row.serviceStatus == 0 ? "在服务期内" : "已过期" }}
+
+
+
+ {{row.lockFlag==1?'禁用':'启用'}}
+
@@ -231,6 +236,7 @@
绑定代理商
删除
+ {{row.lockFlag==0?'禁用':'启用'}}
@@ -729,7 +735,7 @@ export default {
this.operaForm.orgCode = row.orgCode;
this.sysFlag=idx
this.idx=idx
- this.AllOperationsStaff(idx);
+ this.AllOperationsStaff(idx,row);
this.zkoperationrecordFindByOrg(row.id,idx);
},
zkoperationrecordFindByOrg(orgId,idx) {
@@ -754,12 +760,12 @@ export default {
});
},
//获取运营人员
- AllOperationsStaff(idx) {
+ AllOperationsStaff(idx,row) {
console.log(idx);
this.optionsoperationalPeople = [];
if(idx==1){
this.$api.http.getAllOperationsStaffByAgent({
- agentId:localStorage.getItem('agentId')
+ agentId:row.agentId
}).then((res) => {
this.optionsoperationalPeople= res.data
this.operaVisible = true;
@@ -810,6 +816,31 @@ export default {
}
});
},
+ toDisable(row){
+ this.$confirm(`确定${row.lockFlag==0?'禁用':'启用'}此代理商么?`, '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ // return
+ // console.log(123);
+ this.$api.api.editZkhouse({id:row.id,lockFlag:row.lockFlag==0?1:0}).then((res) => {
+ if(res.code==0){
+ this.$message({
+ type: 'success',
+ message: '操作成功!'
+ });
+ this.zkhousePage();
+ }else{
+ this.$message.error(res.message);
+ }
+ })
+ })
+ .catch(err=>{
+ // console.log('关闭');
+ // console.log(err);
+ })
+ },
dialogClose() {
this.restFrom();
},
@@ -946,7 +977,7 @@ export default {
let _this = this;
this.addressOptions = [];
let res = await getAreaList({ parentId });
- console.log(res);
+ // console.log(res);
// 当他没有值时给addressOptions赋值,这是第一个数组
if (res.code == 0) {
// _this.$set(_this, 'addressOptions',_this.ruleForm.cityIds&&_this.ruleForm.provinceId ? this.loadOptions(res.data||[] ):res.data)
diff --git a/vue.config.js b/vue.config.js
index f966a06..a34852c 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -4,8 +4,8 @@
*/
// const url = 'http://pigx-gateway'
// const url = 'http://39.97.167.65:9999' //测试
-// const url = 'http://192.168.31.169:9999' //长龙
-const url = 'http://192.168.31.134:9999' //嘉豪
+const url = 'http://192.168.31.169:9999' //长龙
+// const url = 'http://192.168.31.133:9999' //嘉豪
// const url = 'http://192.168.31.100:9999' //王笑
const CompressionWebpackPlugin = require('compression-webpack-plugin')