@@ -285,7 +285,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="dialogVisible = false">取 消</el-button> | <el-button @click="dialogVisible = false">取 消</el-button> | ||||
<el-button type="primary" @click="add()">保存</el-button> | |||||
<el-button type="primary" @click="add()" :loading="loadingFlag">保存</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
@@ -364,7 +364,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="dialogVisible2 = false">取 消</el-button> | <el-button @click="dialogVisible2 = false">取 消</el-button> | ||||
<el-button type="primary" @click="editor()">保存</el-button> | |||||
<el-button type="primary" @click="editor()" :loading="loadingFlag">保存</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
@@ -381,7 +381,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="dialogVisible3 = false">取 消</el-button> | <el-button @click="dialogVisible3 = false">取 消</el-button> | ||||
<el-button type="primary" @click="replace()">保存</el-button> | |||||
<el-button type="primary" @click="replace()" :loading="loadingFlag">保存</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
@@ -401,7 +401,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="operaVisible = false">取 消</el-button> | <el-button @click="operaVisible = false">取 消</el-button> | ||||
<el-button type="primary" @click="saveOpera()">保存</el-button> | |||||
<el-button type="primary" :loading="loadingFlag" @click="saveOpera()">保存</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
</div> | </div> | ||||
@@ -568,6 +568,7 @@ export default { | |||||
resetFlag:false, | resetFlag:false, | ||||
dialogVisible3:false, | dialogVisible3:false, | ||||
operaVisible:false, | operaVisible:false, | ||||
loadingFlag:false, | |||||
provinceId:'', | provinceId:'', | ||||
cityId:'', | cityId:'', | ||||
areaList:[], | areaList:[], | ||||
@@ -611,7 +612,8 @@ export default { | |||||
address:'',// 详细地址 | address:'',// 详细地址 | ||||
// operationalPeople:'',// 运营人员id | // operationalPeople:'',// 运营人员id | ||||
linkmanPhone:'',// 联系人手机号 | linkmanPhone:'',// 联系人手机号 | ||||
rulestimelist:[] | |||||
rulestimelist:[], | |||||
}, | }, | ||||
rules:{ | rules:{ | ||||
agentName: [ | agentName: [ | ||||
@@ -761,6 +763,7 @@ export default { | |||||
this.$refs.operaForm.validate(valid=>{ | this.$refs.operaForm.validate(valid=>{ | ||||
if(valid){ | if(valid){ | ||||
// console.log(valid,this.operaForm); | // console.log(valid,this.operaForm); | ||||
this.loadingFlag=true | |||||
this.$api.api.zkoperationrecord({ | this.$api.api.zkoperationrecord({ | ||||
orgType:1, | orgType:1, | ||||
accountIds:this.operaForm.operationalPeople.join(','), | accountIds:this.operaForm.operationalPeople.join(','), | ||||
@@ -769,6 +772,10 @@ export default { | |||||
}) | }) | ||||
.then(res=>{ | .then(res=>{ | ||||
console.log(res); | console.log(res); | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.$message.success('操作成功') | this.$message.success('操作成功') | ||||
this.getAgentList() | this.getAgentList() | ||||
this.operaVisible=false | this.operaVisible=false | ||||
@@ -868,9 +875,14 @@ export default { | |||||
if(!this.resetFlag){ | if(!this.resetFlag){ | ||||
return | return | ||||
} | } | ||||
this.loadingFlag=true | |||||
this.$api.http.editorAgent(this.editoragentobj).then((res) => { | this.$api.http.editorAgent(this.editoragentobj).then((res) => { | ||||
if(res.code==0){ | if(res.code==0){ | ||||
this.dialogVisible2=false; | this.dialogVisible2=false; | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.editoragentobj.contractStartDate=''; | this.editoragentobj.contractStartDate=''; | ||||
this.editoragentobj.contractEndDate=''; | this.editoragentobj.contractEndDate=''; | ||||
this.editoragentobj.id=''; | this.editoragentobj.id=''; | ||||
@@ -935,9 +947,14 @@ export default { | |||||
} | } | ||||
this.$refs.replaceagentobj.validate((valid) => { | this.$refs.replaceagentobj.validate((valid) => { | ||||
if (valid) { | if (valid) { | ||||
this.loadingFlag=true | |||||
this.$api.http.updateManagerPhone(this.replaceagentobj).then((res) => { | this.$api.http.updateManagerPhone(this.replaceagentobj).then((res) => { | ||||
if(res.code==0){ | if(res.code==0){ | ||||
this.dialogVisible3=false; | this.dialogVisible3=false; | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.$refs.replaceagentobj.resetFields(); | this.$refs.replaceagentobj.resetFields(); | ||||
this.Screeningofempty() | this.Screeningofempty() | ||||
this.getAgentList() | this.getAgentList() | ||||
@@ -973,9 +990,14 @@ export default { | |||||
if(!this.resetFlag){ | if(!this.resetFlag){ | ||||
return | return | ||||
} | } | ||||
this.loadingFlag=true | |||||
this.$api.http.AddAgent(this.addagentobj).then((res) => { | this.$api.http.AddAgent(this.addagentobj).then((res) => { | ||||
if(res.code==0){ | if(res.code==0){ | ||||
this.dialogVisible=false; | this.dialogVisible=false; | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.addagentobj.contractStartDate=''; | this.addagentobj.contractStartDate=''; | ||||
this.addagentobj.contractEndDate=''; | this.addagentobj.contractEndDate=''; | ||||
this.$refs.addagentobj.resetFields(); | this.$refs.addagentobj.resetFields(); | ||||
@@ -296,7 +296,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="dialogVisible = false">取 消</el-button> | <el-button @click="dialogVisible = false">取 消</el-button> | ||||
<el-button type="primary" @click="add()">保存</el-button> | |||||
<el-button type="primary" :loading="loadingFlag" @click="add()">保存</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
@@ -382,7 +382,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="dialogVisible2 = false">取 消</el-button> | <el-button @click="dialogVisible2 = false">取 消</el-button> | ||||
<el-button type="primary" @click="editor()">保存</el-button> | |||||
<el-button type="primary" :loading="loadingFlag" @click="editor()">保存</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
@@ -415,7 +415,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="dialogVisible3 = false">取 消</el-button> | <el-button @click="dialogVisible3 = false">取 消</el-button> | ||||
<el-button type="primary" @click="replace()">保存</el-button> | |||||
<el-button type="primary" :loading="loadingFlag" @click="replace()">保存</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
@@ -449,7 +449,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="operaVisible = false">取 消</el-button> | <el-button @click="operaVisible = false">取 消</el-button> | ||||
<el-button type="primary" @click="saveOpera()">保存</el-button> | |||||
<el-button type="primary" :loading="loadingFlag" @click="saveOpera()">保存</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
@@ -481,7 +481,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="agentVisible = false">取 消</el-button> | <el-button @click="agentVisible = false">取 消</el-button> | ||||
<el-button type="primary" @click="saveAgent()">保存</el-button> | |||||
<el-button type="primary" :loading="loadingFlag" @click="saveAgent()">保存</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
</div> | </div> | ||||
@@ -699,6 +699,7 @@ export default { | |||||
agentVisible: false, | agentVisible: false, | ||||
resetFlag: false, | resetFlag: false, | ||||
passFlag: false, | passFlag: false, | ||||
loadingFlag:false, | |||||
operatorName: "", //代理商名称 | operatorName: "", //代理商名称 | ||||
operationStaffName: "", //运营人员名称 | operationStaffName: "", //运营人员名称 | ||||
name: "", //公司名称 | name: "", //公司名称 | ||||
@@ -834,6 +835,7 @@ export default { | |||||
saveAgent() { | saveAgent() { | ||||
this.$refs.agentForm.validate((valid) => { | this.$refs.agentForm.validate((valid) => { | ||||
if (valid) { | if (valid) { | ||||
this.loadingFlag=true | |||||
console.log(this.agentForm); | console.log(this.agentForm); | ||||
this.$api.api | this.$api.api | ||||
.bindAgent({ | .bindAgent({ | ||||
@@ -841,6 +843,10 @@ export default { | |||||
orgCode: this.agentForm.orgCode, | orgCode: this.agentForm.orgCode, | ||||
}) | }) | ||||
.then((res) => { | .then((res) => { | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.$message.success("操作成功"); | this.$message.success("操作成功"); | ||||
this.agentVisible = false; | this.agentVisible = false; | ||||
this.Screeningofempty(); | this.Screeningofempty(); | ||||
@@ -852,6 +858,7 @@ export default { | |||||
this.$refs.operaForm.validate((valid) => { | this.$refs.operaForm.validate((valid) => { | ||||
if (valid) { | if (valid) { | ||||
// console.log(valid,this.operaForm); | // console.log(valid,this.operaForm); | ||||
this.loadingFlag=true | |||||
this.$api.api | this.$api.api | ||||
.zkoperationrecordSaveCompany({ | .zkoperationrecordSaveCompany({ | ||||
orgType: 2, | orgType: 2, | ||||
@@ -861,6 +868,10 @@ export default { | |||||
}) | }) | ||||
.then((res) => { | .then((res) => { | ||||
console.log(res); | console.log(res); | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.$message.success("操作成功"); | this.$message.success("操作成功"); | ||||
this.operaVisible = false; | this.operaVisible = false; | ||||
this.Screeningofempty(); | this.Screeningofempty(); | ||||
@@ -1048,8 +1059,13 @@ export default { | |||||
} | } | ||||
this.$refs.replaceagentobj.validate((valid) => { | this.$refs.replaceagentobj.validate((valid) => { | ||||
if (valid) { | if (valid) { | ||||
this.loadingFlag=true | |||||
this.$api.http.changeAccount(this.replaceagentobj).then((res) => { | this.$api.http.changeAccount(this.replaceagentobj).then((res) => { | ||||
if (res.code == 0) { | if (res.code == 0) { | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.dialogVisible3 = false; | this.dialogVisible3 = false; | ||||
this.$refs.replaceagentobj.resetFields(); | this.$refs.replaceagentobj.resetFields(); | ||||
this.Screeningofempty(); | this.Screeningofempty(); | ||||
@@ -1193,9 +1209,14 @@ export default { | |||||
if (!this.resetFlag) { | if (!this.resetFlag) { | ||||
return; | return; | ||||
} | } | ||||
this.loadingFlag=true | |||||
this.addagentobj.pid = 0; | this.addagentobj.pid = 0; | ||||
this.$api.http.AddaddOrg(this.addagentobj).then((res) => { | this.$api.http.AddaddOrg(this.addagentobj).then((res) => { | ||||
if (res.code == 0) { | if (res.code == 0) { | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.dialogVisible = false; | this.dialogVisible = false; | ||||
this.$refs.addagentobj.resetFields(); | this.$refs.addagentobj.resetFields(); | ||||
this.Screeningofempty(); | this.Screeningofempty(); | ||||
@@ -366,7 +366,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="operaVisible = false">取 消</el-button> | <el-button @click="operaVisible = false">取 消</el-button> | ||||
<el-button type="primary" @click="saveOpera()">保存</el-button> | |||||
<el-button type="primary" :loading="loadingFlag" @click="saveOpera()">保存</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
@@ -523,6 +523,7 @@ export default { | |||||
resetFlag: false, | resetFlag: false, | ||||
operaVisible: false, | operaVisible: false, | ||||
agentVisible: false, | agentVisible: false, | ||||
loadingFlag:false, | |||||
currentPage4: 1, | currentPage4: 1, | ||||
operatorName: "", //代理商名称 | operatorName: "", //代理商名称 | ||||
operationStaffName: "", //运营人员名称 | operationStaffName: "", //运营人员名称 | ||||
@@ -664,6 +665,7 @@ export default { | |||||
this.$refs.operaForm.validate((valid) => { | this.$refs.operaForm.validate((valid) => { | ||||
if (valid) { | if (valid) { | ||||
// console.log(valid,this.operaForm); | // console.log(valid,this.operaForm); | ||||
this.loadingFlag=true | |||||
this.$api.api | this.$api.api | ||||
.zkoperationrecordSaveCompany({ | .zkoperationrecordSaveCompany({ | ||||
// orgType:this.idx==0?'1':'2', | // orgType:this.idx==0?'1':'2', | ||||
@@ -674,6 +676,10 @@ export default { | |||||
}) | }) | ||||
.then((res) => { | .then((res) => { | ||||
console.log(res); | console.log(res); | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.$message.success("操作成功"); | this.$message.success("操作成功"); | ||||
this.operaVisible = false; | this.operaVisible = false; | ||||
this.Screeningofempty(); | this.Screeningofempty(); | ||||
@@ -478,7 +478,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="dialogVisible = false">取 消</el-button> | <el-button @click="dialogVisible = false">取 消</el-button> | ||||
<el-button type="primary" @click="addEquipment()">保存</el-button> | |||||
<el-button type="primary" :loading="loadingFlag" @click="addEquipment()">保存</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
@@ -818,6 +818,7 @@ export default { | |||||
dialogVisible4: false, | dialogVisible4: false, | ||||
dialogVisible5: false, | dialogVisible5: false, | ||||
receiveVisible: false, | receiveVisible: false, | ||||
loadingFlag:false, | |||||
batchForm: { | batchForm: { | ||||
batchId: "", | batchId: "", | ||||
imeis: "", | imeis: "", | ||||
@@ -1266,9 +1267,14 @@ export default { | |||||
addEquipment() { | addEquipment() { | ||||
this.$refs.addForm.validate((valid) => { | this.$refs.addForm.validate((valid) => { | ||||
if (valid) { | if (valid) { | ||||
this.loadingFlag=true | |||||
console.log(this.addForm); | console.log(this.addForm); | ||||
this.$api.api.equipmentAdd(this.addForm).then((res) => { | this.$api.api.equipmentAdd(this.addForm).then((res) => { | ||||
console.log(res); | console.log(res); | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.$message.success("添加成功"); | this.$message.success("添加成功"); | ||||
this.dialogVisible = false; | this.dialogVisible = false; | ||||
this.equipmentManagement(); | this.equipmentManagement(); | ||||
@@ -152,7 +152,7 @@ | |||||
</div> | </div> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="dialogVisible = false">取 消</el-button> | <el-button @click="dialogVisible = false">取 消</el-button> | ||||
<el-button type="primary" @click="editor()">保存</el-button> | |||||
<el-button type="primary" :loading="loadingFlag" @click="editor()">保存</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
@@ -196,6 +196,7 @@ export default { | |||||
orgType:localStorage.getItem("orgType"), | orgType:localStorage.getItem("orgType"), | ||||
dialogVisible: false, | dialogVisible: false, | ||||
showVisible: false, | showVisible: false, | ||||
loadingFlag:false, | |||||
arr: [], | arr: [], | ||||
currentPage4: 1, | currentPage4: 1, | ||||
tableData: [], | tableData: [], | ||||
@@ -601,6 +602,11 @@ export default { | |||||
changedArr:JSON.stringify(newlist), | changedArr:JSON.stringify(newlist), | ||||
}; | }; | ||||
this.$api.http.agentListsortUpdate(obj).then((res) => { | this.$api.http.agentListsortUpdate(obj).then((res) => { | ||||
this.loadingFlag=true | |||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.dialogVisible = false; | this.dialogVisible = false; | ||||
this.reset() | this.reset() | ||||
}); | }); | ||||
@@ -63,7 +63,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="dialogFormVisible = false">取 消</el-button> | <el-button @click="dialogFormVisible = false">取 消</el-button> | ||||
<el-button type="primary" @click="addSubmit">确 定</el-button> | |||||
<el-button type="primary" :loading="loadingFlag" @click="addSubmit">确 定</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
@@ -196,6 +196,7 @@ export default { | |||||
deleteId: null, // 要删除的表单节点的ID | deleteId: null, // 要删除的表单节点的ID | ||||
disabledcet: false, | disabledcet: false, | ||||
Templateid:'', | Templateid:'', | ||||
loadingFlag:false, | |||||
}; | }; | ||||
}, | }, | ||||
components: { | components: { | ||||
@@ -846,6 +847,11 @@ export default { | |||||
// 点击添加节点确认按钮 | // 点击添加节点确认按钮 | ||||
addSubmit() { | addSubmit() { | ||||
if (this.addForm.name != "") { | if (this.addForm.name != "") { | ||||
this.loadingFlag=true | |||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.dialogFormVisible = false; | this.dialogFormVisible = false; | ||||
this.addNode(); | this.addNode(); | ||||
} else { | } else { | ||||
@@ -105,7 +105,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="dialogVisible = false">取 消</el-button> | <el-button @click="dialogVisible = false">取 消</el-button> | ||||
<el-button type="primary" @click="editor()">保存</el-button> | |||||
<el-button type="primary" :loading="loadingFlag" @click="editor()">保存</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
</div> | </div> | ||||
@@ -123,6 +123,7 @@ export default { | |||||
tableData: [], | tableData: [], | ||||
multipleSelection: [], | multipleSelection: [], | ||||
dialogVisible: false, | dialogVisible: false, | ||||
loadingFlag:false, | |||||
orgType:localStorage.getItem('orgType'), | orgType:localStorage.getItem('orgType'), | ||||
ruleForm: { | ruleForm: { | ||||
words: "", | words: "", | ||||
@@ -245,6 +246,7 @@ export default { | |||||
editor() { | editor() { | ||||
this.$refs.ruleForm.validate((valid) => { | this.$refs.ruleForm.validate((valid) => { | ||||
if (valid) { | if (valid) { | ||||
this.loadingFlag=true | |||||
if (this.editFlag == false) { | if (this.editFlag == false) { | ||||
this.$api.http | this.$api.http | ||||
.tabooadd({ | .tabooadd({ | ||||
@@ -253,6 +255,10 @@ export default { | |||||
}) | }) | ||||
.then((res) => { | .then((res) => { | ||||
if (res.code == 0) { | if (res.code == 0) { | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.dialogVisible = false; | this.dialogVisible = false; | ||||
this.$refs.ruleForm.resetFields(); | this.$refs.ruleForm.resetFields(); | ||||
this.Page = 1; | this.Page = 1; | ||||
@@ -270,6 +276,10 @@ export default { | |||||
}) | }) | ||||
.then((res) => { | .then((res) => { | ||||
if (res.code == 0) { | if (res.code == 0) { | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.dialogVisible = false; | this.dialogVisible = false; | ||||
this.$refs.ruleForm.resetFields(); | this.$refs.ruleForm.resetFields(); | ||||
this.Page = 1; | this.Page = 1; | ||||
@@ -114,7 +114,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="dialogVisible = false">取 消</el-button> | <el-button @click="dialogVisible = false">取 消</el-button> | ||||
<el-button type="primary" @click="addSure()">保存</el-button> | |||||
<el-button type="primary" :loading="loadingFlag" @click="addSure()">保存</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
@@ -148,6 +148,7 @@ export default { | |||||
tableData: [], | tableData: [], | ||||
multipleSelection: [], | multipleSelection: [], | ||||
dialogVisible: false, | dialogVisible: false, | ||||
loadingFlag: false, | |||||
houseList: [], | houseList: [], | ||||
ruleForm: { | ruleForm: { | ||||
correctWord: "", | correctWord: "", | ||||
@@ -253,6 +254,7 @@ export default { | |||||
// console.log(this.addressOptions) | // console.log(this.addressOptions) | ||||
this.$refs.ruleForm.validate((valid) => { | this.$refs.ruleForm.validate((valid) => { | ||||
if (valid) { | if (valid) { | ||||
this.loadingFlag=true | |||||
console.log(this.ruleForm); | console.log(this.ruleForm); | ||||
// 编辑 | // 编辑 | ||||
// return; | // return; | ||||
@@ -261,6 +263,10 @@ export default { | |||||
this.$api.api.correctUpdate(this.ruleForm).then((res) => { | this.$api.api.correctUpdate(this.ruleForm).then((res) => { | ||||
console.log(res); | console.log(res); | ||||
if (res.code == 0) { | if (res.code == 0) { | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.dialogVisible = false; | this.dialogVisible = false; | ||||
this.$message.success("编辑成功"); | this.$message.success("编辑成功"); | ||||
this.correctFindbypage(); | this.correctFindbypage(); | ||||
@@ -278,6 +284,10 @@ export default { | |||||
.then((res) => { | .then((res) => { | ||||
console.log(res); | console.log(res); | ||||
if (res.code == 0) { | if (res.code == 0) { | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.dialogVisible = false; | this.dialogVisible = false; | ||||
this.$message.success("新增常错词成功"); | this.$message.success("新增常错词成功"); | ||||
this.correctFindbypage(); | this.correctFindbypage(); | ||||
@@ -92,7 +92,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="dialogVisible = false">取 消</el-button> | <el-button @click="dialogVisible = false">取 消</el-button> | ||||
<el-button type="primary" @click="add">{{ | |||||
<el-button type="primary" @click="add" :loading="loadingFlag">{{ | |||||
editFlag ? "保 存" : "确 定" | editFlag ? "保 存" : "确 定" | ||||
}}</el-button> | }}</el-button> | ||||
</div> | </div> | ||||
@@ -115,6 +115,7 @@ export default { | |||||
currentPage: 1, | currentPage: 1, | ||||
dialogVisible: false, | dialogVisible: false, | ||||
editFlag: false, | editFlag: false, | ||||
loadingFlag:false, | |||||
//公司列表 | //公司列表 | ||||
optionsOrg: [], | optionsOrg: [], | ||||
ruleForm: { | ruleForm: { | ||||
@@ -191,6 +192,7 @@ export default { | |||||
this.$refs.ruleForm.validate((valid) => { | this.$refs.ruleForm.validate((valid) => { | ||||
if (valid) { | if (valid) { | ||||
// console.log(this.ruleForm) | // console.log(this.ruleForm) | ||||
this.loadingFlag=true | |||||
if (this.editFlag) { | if (this.editFlag) { | ||||
axios({ | axios({ | ||||
url: `/autoSR/areamanager`, | url: `/autoSR/areamanager`, | ||||
@@ -203,6 +205,10 @@ export default { | |||||
}, | }, | ||||
}).then((res) => { | }).then((res) => { | ||||
if (res.code == 0) { | if (res.code == 0) { | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.$message.success("编辑成功"); | this.$message.success("编辑成功"); | ||||
this.dialogVisible = false; | this.dialogVisible = false; | ||||
} | } | ||||
@@ -218,6 +224,10 @@ export default { | |||||
}, | }, | ||||
}).then((res) => { | }).then((res) => { | ||||
if (res.code == 0) { | if (res.code == 0) { | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.$message.success("添加成功"); | this.$message.success("添加成功"); | ||||
this.dialogVisible = false; | this.dialogVisible = false; | ||||
} | } | ||||
@@ -531,7 +531,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="addSurequxiao()">取 消</el-button> | <el-button @click="addSurequxiao()">取 消</el-button> | ||||
<el-button type="primary" @click="addSure"> | |||||
<el-button type="primary" :loading="loadingFlag" @click="addSure"> | |||||
<!-- {{ | <!-- {{ | ||||
editFlag ? "编辑" : "保存" | editFlag ? "编辑" : "保存" | ||||
}} --> | }} --> | ||||
@@ -571,7 +571,7 @@ | |||||
</el-form> | </el-form> | ||||
<div style="display: flex; justify-content: space-around"> | <div style="display: flex; justify-content: space-around"> | ||||
<el-button @click="changeFlag = false">取 消</el-button> | <el-button @click="changeFlag = false">取 消</el-button> | ||||
<el-button type="primary" @click="changeSure">确 定</el-button> | |||||
<el-button type="primary" @click="changeSure" :loading="loadingFlag">确 定</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
@@ -606,7 +606,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="operaVisible = false">取 消</el-button> | <el-button @click="operaVisible = false">取 消</el-button> | ||||
<el-button type="primary" @click="saveOpera()">保存</el-button> | |||||
<el-button type="primary" :loading="loadingFlag" @click="saveOpera()">保存</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
@@ -638,7 +638,7 @@ | |||||
</el-form> | </el-form> | ||||
<div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
<el-button @click="agentVisible = false">取 消</el-button> | <el-button @click="agentVisible = false">取 消</el-button> | ||||
<el-button type="primary" @click="saveAgent()">保存</el-button> | |||||
<el-button type="primary" :loading="loadingFlag" @click="saveAgent()">保存</el-button> | |||||
</div> | </div> | ||||
</el-dialog> | </el-dialog> | ||||
</div> | </div> | ||||
@@ -865,6 +865,7 @@ export default { | |||||
dialogVisible: false, | dialogVisible: false, | ||||
dialogVisible1: false, | dialogVisible1: false, | ||||
agentVisible: false, | agentVisible: false, | ||||
loadingFlag:false, | |||||
time: [], | time: [], | ||||
addressOptions: [], | addressOptions: [], | ||||
accountForm: { | accountForm: { | ||||
@@ -1020,6 +1021,7 @@ export default { | |||||
saveAgent() { | saveAgent() { | ||||
this.$refs.agentForm.validate((valid) => { | this.$refs.agentForm.validate((valid) => { | ||||
if (valid) { | if (valid) { | ||||
this.loadingFlag=true | |||||
console.log(this.agentForm); | console.log(this.agentForm); | ||||
this.$api.api | this.$api.api | ||||
.saveAgent({ | .saveAgent({ | ||||
@@ -1027,6 +1029,10 @@ export default { | |||||
id: this.agentForm.houseId, | id: this.agentForm.houseId, | ||||
}) | }) | ||||
.then((res) => { | .then((res) => { | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.$message.success("操作成功"); | this.$message.success("操作成功"); | ||||
this.zkhousePage(); | this.zkhousePage(); | ||||
this.agentVisible = false; | this.agentVisible = false; | ||||
@@ -1047,6 +1053,7 @@ export default { | |||||
this.$refs.operaForm.validate((valid) => { | this.$refs.operaForm.validate((valid) => { | ||||
if (valid) { | if (valid) { | ||||
// console.log(valid,this.operaForm); | // console.log(valid,this.operaForm); | ||||
this.loadingFlag=true | |||||
this.$api.api | this.$api.api | ||||
.zkoperationrecordSaveHouse({ | .zkoperationrecordSaveHouse({ | ||||
orgType: 3, | orgType: 3, | ||||
@@ -1057,6 +1064,10 @@ export default { | |||||
}) | }) | ||||
.then((res) => { | .then((res) => { | ||||
console.log(res); | console.log(res); | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.$message.success("操作成功"); | this.$message.success("操作成功"); | ||||
this.operaVisible = false; | this.operaVisible = false; | ||||
this.zkhousePage(); | this.zkhousePage(); | ||||
@@ -1135,12 +1146,17 @@ export default { | |||||
if (!this.resetFlag) { | if (!this.resetFlag) { | ||||
return; | return; | ||||
} | } | ||||
this.loadingFlag=true | |||||
// 编辑 | // 编辑 | ||||
if (this.editFlag) { | if (this.editFlag) { | ||||
this.$api.api.editZkhouse(this.ruleForm).then((res) => { | this.$api.api.editZkhouse(this.ruleForm).then((res) => { | ||||
console.log(res); | console.log(res); | ||||
if (res.code == 0) { | if (res.code == 0) { | ||||
this.dialogVisible = false; | this.dialogVisible = false; | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.$message.success("编辑成功"); | this.$message.success("编辑成功"); | ||||
this.zkhousePage(); | this.zkhousePage(); | ||||
} | } | ||||
@@ -1151,6 +1167,10 @@ export default { | |||||
console.log(res); | console.log(res); | ||||
if (res.code == 0) { | if (res.code == 0) { | ||||
this.dialogVisible = false; | this.dialogVisible = false; | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
console.log('防重') | |||||
}, 1); | |||||
this.$message.success("新增楼盘成功"); | this.$message.success("新增楼盘成功"); | ||||
this.zkhousePage(); | this.zkhousePage(); | ||||
} | } | ||||
@@ -1254,9 +1274,13 @@ export default { | |||||
} | } | ||||
this.$refs.accountForm.validate((valid) => { | this.$refs.accountForm.validate((valid) => { | ||||
if (valid) { | if (valid) { | ||||
this.loadingFlag=true | |||||
this.$api.api.updateManagerPhone(this.accountForm).then((res) => { | this.$api.api.updateManagerPhone(this.accountForm).then((res) => { | ||||
if (res.code == 0) { | if (res.code == 0) { | ||||
this.changeFlag = false; | this.changeFlag = false; | ||||
setTimeout(() => { | |||||
this.loadingFlag=false | |||||
}, 1); | |||||
this.$message.success("编辑成功"); | this.$message.success("编辑成功"); | ||||
this.zkhousePage(); | this.zkhousePage(); | ||||
} | } | ||||
@@ -3,9 +3,9 @@ | |||||
* https://cli.vuejs.org/zh/config/ | * https://cli.vuejs.org/zh/config/ | ||||
*/ | */ | ||||
// const url = 'http://pigx-gateway' | // 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.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://192.168.31.100:9999' //王笑 | ||||
// const url = 'http://62.234.122.43:9999' //正式 | // const url = 'http://62.234.122.43:9999' //正式 | ||||