diff --git a/src/views/Customer/AgentManagement.vue b/src/views/Customer/AgentManagement.vue index 8b32c7f..4c0fd79 100644 --- a/src/views/Customer/AgentManagement.vue +++ b/src/views/Customer/AgentManagement.vue @@ -285,7 +285,7 @@
@@ -364,7 +364,7 @@ @@ -381,7 +381,7 @@ @@ -401,7 +401,7 @@ @@ -568,6 +568,7 @@ export default { resetFlag:false, dialogVisible3:false, operaVisible:false, + loadingFlag:false, provinceId:'', cityId:'', areaList:[], @@ -611,7 +612,8 @@ export default { address:'',// 详细地址 // operationalPeople:'',// 运营人员id linkmanPhone:'',// 联系人手机号 - rulestimelist:[] + rulestimelist:[], + }, rules:{ agentName: [ @@ -761,6 +763,7 @@ export default { this.$refs.operaForm.validate(valid=>{ if(valid){ // console.log(valid,this.operaForm); + this.loadingFlag=true this.$api.api.zkoperationrecord({ orgType:1, accountIds:this.operaForm.operationalPeople.join(','), @@ -769,6 +772,10 @@ export default { }) .then(res=>{ console.log(res); + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.$message.success('操作成功') this.getAgentList() this.operaVisible=false @@ -868,9 +875,14 @@ export default { if(!this.resetFlag){ return } + this.loadingFlag=true this.$api.http.editorAgent(this.editoragentobj).then((res) => { if(res.code==0){ this.dialogVisible2=false; + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.editoragentobj.contractStartDate=''; this.editoragentobj.contractEndDate=''; this.editoragentobj.id=''; @@ -935,9 +947,14 @@ export default { } this.$refs.replaceagentobj.validate((valid) => { if (valid) { + this.loadingFlag=true this.$api.http.updateManagerPhone(this.replaceagentobj).then((res) => { if(res.code==0){ this.dialogVisible3=false; + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.$refs.replaceagentobj.resetFields(); this.Screeningofempty() this.getAgentList() @@ -973,9 +990,14 @@ export default { if(!this.resetFlag){ return } + this.loadingFlag=true this.$api.http.AddAgent(this.addagentobj).then((res) => { if(res.code==0){ this.dialogVisible=false; + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.addagentobj.contractStartDate=''; this.addagentobj.contractEndDate=''; this.$refs.addagentobj.resetFields(); diff --git a/src/views/Customer/CompanyRecord.vue b/src/views/Customer/CompanyRecord.vue index b54965a..c729e01 100644 --- a/src/views/Customer/CompanyRecord.vue +++ b/src/views/Customer/CompanyRecord.vue @@ -296,7 +296,7 @@ @@ -382,7 +382,7 @@ @@ -415,7 +415,7 @@ @@ -449,7 +449,7 @@ @@ -481,7 +481,7 @@ @@ -699,6 +699,7 @@ export default { agentVisible: false, resetFlag: false, passFlag: false, + loadingFlag:false, operatorName: "", //代理商名称 operationStaffName: "", //运营人员名称 name: "", //公司名称 @@ -834,6 +835,7 @@ export default { saveAgent() { this.$refs.agentForm.validate((valid) => { if (valid) { + this.loadingFlag=true console.log(this.agentForm); this.$api.api .bindAgent({ @@ -841,6 +843,10 @@ export default { orgCode: this.agentForm.orgCode, }) .then((res) => { + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.$message.success("操作成功"); this.agentVisible = false; this.Screeningofempty(); @@ -852,6 +858,7 @@ export default { this.$refs.operaForm.validate((valid) => { if (valid) { // console.log(valid,this.operaForm); + this.loadingFlag=true this.$api.api .zkoperationrecordSaveCompany({ orgType: 2, @@ -861,6 +868,10 @@ export default { }) .then((res) => { console.log(res); + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.$message.success("操作成功"); this.operaVisible = false; this.Screeningofempty(); @@ -1048,8 +1059,13 @@ export default { } this.$refs.replaceagentobj.validate((valid) => { if (valid) { + this.loadingFlag=true this.$api.http.changeAccount(this.replaceagentobj).then((res) => { if (res.code == 0) { + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.dialogVisible3 = false; this.$refs.replaceagentobj.resetFields(); this.Screeningofempty(); @@ -1193,9 +1209,14 @@ export default { if (!this.resetFlag) { return; } + this.loadingFlag=true this.addagentobj.pid = 0; this.$api.http.AddaddOrg(this.addagentobj).then((res) => { if (res.code == 0) { + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.dialogVisible = false; this.$refs.addagentobj.resetFields(); this.Screeningofempty(); diff --git a/src/views/Customer/Companymanagement.vue b/src/views/Customer/Companymanagement.vue index 5bbb151..02d0913 100644 --- a/src/views/Customer/Companymanagement.vue +++ b/src/views/Customer/Companymanagement.vue @@ -366,7 +366,7 @@ @@ -523,6 +523,7 @@ export default { resetFlag: false, operaVisible: false, agentVisible: false, + loadingFlag:false, currentPage4: 1, operatorName: "", //代理商名称 operationStaffName: "", //运营人员名称 @@ -664,6 +665,7 @@ export default { this.$refs.operaForm.validate((valid) => { if (valid) { // console.log(valid,this.operaForm); + this.loadingFlag=true this.$api.api .zkoperationrecordSaveCompany({ // orgType:this.idx==0?'1':'2', @@ -674,6 +676,10 @@ export default { }) .then((res) => { console.log(res); + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.$message.success("操作成功"); this.operaVisible = false; this.Screeningofempty(); diff --git a/src/views/Equipment/index.vue b/src/views/Equipment/index.vue index f656543..fac15e3 100644 --- a/src/views/Equipment/index.vue +++ b/src/views/Equipment/index.vue @@ -478,7 +478,7 @@ @@ -818,6 +818,7 @@ export default { dialogVisible4: false, dialogVisible5: false, receiveVisible: false, + loadingFlag:false, batchForm: { batchId: "", imeis: "", @@ -1266,9 +1267,14 @@ export default { addEquipment() { this.$refs.addForm.validate((valid) => { if (valid) { + this.loadingFlag=true console.log(this.addForm); this.$api.api.equipmentAdd(this.addForm).then((res) => { console.log(res); + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.$message.success("添加成功"); this.dialogVisible = false; this.equipmentManagement(); diff --git a/src/views/Scheduling/index.vue b/src/views/Scheduling/index.vue index 5e7eb3a..d26e02f 100644 --- a/src/views/Scheduling/index.vue +++ b/src/views/Scheduling/index.vue @@ -152,7 +152,7 @@ @@ -196,6 +196,7 @@ export default { orgType:localStorage.getItem("orgType"), dialogVisible: false, showVisible: false, + loadingFlag:false, arr: [], currentPage4: 1, tableData: [], @@ -601,6 +602,11 @@ export default { changedArr:JSON.stringify(newlist), }; this.$api.http.agentListsortUpdate(obj).then((res) => { + this.loadingFlag=true + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.dialogVisible = false; this.reset() }); diff --git a/src/views/Template/Pinspeakwords.vue b/src/views/Template/Pinspeakwords.vue index 95ee12d..6da05cc 100644 --- a/src/views/Template/Pinspeakwords.vue +++ b/src/views/Template/Pinspeakwords.vue @@ -63,7 +63,7 @@ @@ -196,6 +196,7 @@ export default { deleteId: null, // 要删除的表单节点的ID disabledcet: false, Templateid:'', + loadingFlag:false, }; }, components: { @@ -846,6 +847,11 @@ export default { // 点击添加节点确认按钮 addSubmit() { if (this.addForm.name != "") { + this.loadingFlag=true + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.dialogFormVisible = false; this.addNode(); } else { diff --git a/src/views/Template/taboo.vue b/src/views/Template/taboo.vue index 8990d2c..9abdea0 100644 --- a/src/views/Template/taboo.vue +++ b/src/views/Template/taboo.vue @@ -105,7 +105,7 @@ @@ -123,6 +123,7 @@ export default { tableData: [], multipleSelection: [], dialogVisible: false, + loadingFlag:false, orgType:localStorage.getItem('orgType'), ruleForm: { words: "", @@ -245,6 +246,7 @@ export default { editor() { this.$refs.ruleForm.validate((valid) => { if (valid) { + this.loadingFlag=true if (this.editFlag == false) { this.$api.http .tabooadd({ @@ -253,6 +255,10 @@ export default { }) .then((res) => { if (res.code == 0) { + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.dialogVisible = false; this.$refs.ruleForm.resetFields(); this.Page = 1; @@ -270,6 +276,10 @@ export default { }) .then((res) => { if (res.code == 0) { + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.dialogVisible = false; this.$refs.ruleForm.resetFields(); this.Page = 1; diff --git a/src/views/Template/wrongword.vue b/src/views/Template/wrongword.vue index 88098ec..f0955f4 100644 --- a/src/views/Template/wrongword.vue +++ b/src/views/Template/wrongword.vue @@ -114,7 +114,7 @@ @@ -148,6 +148,7 @@ export default { tableData: [], multipleSelection: [], dialogVisible: false, + loadingFlag: false, houseList: [], ruleForm: { correctWord: "", @@ -253,6 +254,7 @@ export default { // console.log(this.addressOptions) this.$refs.ruleForm.validate((valid) => { if (valid) { + this.loadingFlag=true console.log(this.ruleForm); // 编辑 // return; @@ -261,6 +263,10 @@ export default { this.$api.api.correctUpdate(this.ruleForm).then((res) => { console.log(res); if (res.code == 0) { + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.dialogVisible = false; this.$message.success("编辑成功"); this.correctFindbypage(); @@ -278,6 +284,10 @@ export default { .then((res) => { console.log(res); if (res.code == 0) { + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.dialogVisible = false; this.$message.success("新增常错词成功"); this.correctFindbypage(); diff --git a/src/views/building/area.vue b/src/views/building/area.vue index 64723e1..e5989f2 100644 --- a/src/views/building/area.vue +++ b/src/views/building/area.vue @@ -92,7 +92,7 @@ @@ -115,6 +115,7 @@ export default { currentPage: 1, dialogVisible: false, editFlag: false, + loadingFlag:false, //公司列表 optionsOrg: [], ruleForm: { @@ -191,6 +192,7 @@ export default { this.$refs.ruleForm.validate((valid) => { if (valid) { // console.log(this.ruleForm) + this.loadingFlag=true if (this.editFlag) { axios({ url: `/autoSR/areamanager`, @@ -203,6 +205,10 @@ export default { }, }).then((res) => { if (res.code == 0) { + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.$message.success("编辑成功"); this.dialogVisible = false; } @@ -218,6 +224,10 @@ export default { }, }).then((res) => { if (res.code == 0) { + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.$message.success("添加成功"); this.dialogVisible = false; } diff --git a/src/views/building/index.vue b/src/views/building/index.vue index 4846632..ddecd5c 100644 --- a/src/views/building/index.vue +++ b/src/views/building/index.vue @@ -531,7 +531,7 @@ @@ -865,6 +865,7 @@ export default { dialogVisible: false, dialogVisible1: false, agentVisible: false, + loadingFlag:false, time: [], addressOptions: [], accountForm: { @@ -1020,6 +1021,7 @@ export default { saveAgent() { this.$refs.agentForm.validate((valid) => { if (valid) { + this.loadingFlag=true console.log(this.agentForm); this.$api.api .saveAgent({ @@ -1027,6 +1029,10 @@ export default { id: this.agentForm.houseId, }) .then((res) => { + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.$message.success("操作成功"); this.zkhousePage(); this.agentVisible = false; @@ -1047,6 +1053,7 @@ export default { this.$refs.operaForm.validate((valid) => { if (valid) { // console.log(valid,this.operaForm); + this.loadingFlag=true this.$api.api .zkoperationrecordSaveHouse({ orgType: 3, @@ -1057,6 +1064,10 @@ export default { }) .then((res) => { console.log(res); + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.$message.success("操作成功"); this.operaVisible = false; this.zkhousePage(); @@ -1135,12 +1146,17 @@ export default { if (!this.resetFlag) { return; } + this.loadingFlag=true // 编辑 if (this.editFlag) { this.$api.api.editZkhouse(this.ruleForm).then((res) => { console.log(res); if (res.code == 0) { this.dialogVisible = false; + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.$message.success("编辑成功"); this.zkhousePage(); } @@ -1151,6 +1167,10 @@ export default { console.log(res); if (res.code == 0) { this.dialogVisible = false; + setTimeout(() => { + this.loadingFlag=false + console.log('防重') + }, 1); this.$message.success("新增楼盘成功"); this.zkhousePage(); } @@ -1254,9 +1274,13 @@ export default { } this.$refs.accountForm.validate((valid) => { if (valid) { + this.loadingFlag=true this.$api.api.updateManagerPhone(this.accountForm).then((res) => { if (res.code == 0) { this.changeFlag = false; + setTimeout(() => { + this.loadingFlag=false + }, 1); this.$message.success("编辑成功"); this.zkhousePage(); } diff --git a/vue.config.js b/vue.config.js index ed52b7b..c158c19 100644 --- a/vue.config.js +++ b/vue.config.js @@ -3,9 +3,9 @@ * https://cli.vuejs.org/zh/config/ */ // const url = 'http://pigx-gateway' -// const url = 'http://39.97.167.65:9999' //测试 +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.134:9999' //嘉豪 // const url = 'http://192.168.31.100:9999' //王笑 // const url = 'http://62.234.122.43:9999' //正式