diff --git a/dist.rar b/dist.rar new file mode 100644 index 0000000..9c62c73 Binary files /dev/null and b/dist.rar differ 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 }} - 切换 + 切换 + + + @@ -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')