新增修改完成,已提交体验版-0114

master
Lee 2023-01-14 13:46:19 +08:00
parent 43c5803e38
commit 8951dfe254
3 changed files with 7 additions and 3 deletions

View File

@ -161,12 +161,14 @@
worksite_id:this.worksiteList[this.worksiteIndex].id, worksite_id:this.worksiteList[this.worksiteIndex].id,
type:this.radioList[this.radioIndex].type type:this.radioList[this.radioIndex].type
} }
this.$requst.post('/api/v1/worker/replenish',params).then(res=>{ this.$requst.post('/api/v1/user/replenish',params).then(res=>{
if(res.code==0){ if(res.code==0){
this.$toolAll.tools.showToast('补卡成功'); this.$toolAll.tools.showToast('补卡成功');
this.showCard = false; this.showCard = false;
// //
this.$refs.signCalendar.getStatusObj(); this.$refs.signCalendar.getStatusObj();
}else{
this.$toolAll.tools.showToast(res.msg);
} }
}) })
}, },

File diff suppressed because one or more lines are too long

View File

@ -308,12 +308,14 @@ var _default = {
worksite_id: this.worksiteList[this.worksiteIndex].id, worksite_id: this.worksiteList[this.worksiteIndex].id,
type: this.radioList[this.radioIndex].type type: this.radioList[this.radioIndex].type
}; };
this.$requst.post('/api/v1/worker/replenish', params).then(function (res) { this.$requst.post('/api/v1/user/replenish', params).then(function (res) {
if (res.code == 0) { if (res.code == 0) {
_this2.$toolAll.tools.showToast('补卡成功'); _this2.$toolAll.tools.showToast('补卡成功');
_this2.showCard = false; _this2.showCard = false;
// 获取状态列表 // 获取状态列表
_this2.$refs.signCalendar.getStatusObj(); _this2.$refs.signCalendar.getStatusObj();
} else {
_this2.$toolAll.tools.showToast(res.msg);
} }
}); });
}, },