Commit fe7a8d31 authored by 姬鋆屾's avatar 姬鋆屾

pref:优化考勤异常处理时数据不存在添加提示窗

parent 99bf9250
......@@ -123,8 +123,6 @@ export default {
}
})
: this.afterRender(res);
console.log(res.entity);
})
.catch((error) => {
......
......@@ -6,7 +6,7 @@
:direction="direction"
size="50%"
>
<div style="padding:20px;font-size:15px">
<div style="padding: 20px; font-size: 15px">
<div>已选择{{ selection.length }}个:</div>
<div class="staffList mt20">
<div v-for="item in selection" :key="item" class="mt10">
......@@ -15,7 +15,7 @@
>{{ item.goOrOff }} 时间
{{ item.goOffDateTime }} 打卡异常状态</span
>
<span class="ml10" style="color:#f56c6c">
<span class="ml10" style="color: #f56c6c">
{{ dict["errorStatus"][item.errorStatus] }}
</span>
<span class="ml10">修改为</span>
......@@ -140,12 +140,20 @@ export default {
},
getInital(id) {
this.$post(this.urls.currUrl + "?id=" + id).then((res) => {
if (res.code == 1) {
this.afterRender();
this.dict = res.data.dict;
}
});
console.log(id);
this.$post(this.urls.currUrl + "?id=" + id)
.then((res) => {
if (res.code == 1) {
this.afterRender();
this.dict = res.data.dict;
} else {
this.$message.error(res.msg);
}
})
.catch((error) => {
console.log(error);
});
},
// 保存
saveForm() {
......@@ -167,15 +175,14 @@ export default {
}
//删除不必要的提交参数
if(this.dealParams.recordErrorEntities.length>0){
let newArrays=this.dealParams.recordErrorEntities.map(i=>{
let obj={}
obj.id=i.id;
obj.staffId=i.staffId;
if (this.dealParams.recordErrorEntities.length > 0) {
let newArrays = this.dealParams.recordErrorEntities.map((i) => {
let obj = {};
obj.id = i.id;
obj.staffId = i.staffId;
return obj;
});
this.dealParams.recordErrorEntities=newArrays
this.dealParams.recordErrorEntities = newArrays;
}
this.btnLoading = true;
// 保存结果处理
......@@ -189,7 +196,6 @@ export default {
})
.catch((error) => {
this.btnLoading = false;
console.log(error);
this.$message.error(error.message);
});
},
......
......@@ -310,12 +310,10 @@ export default {
},
// 处理
handle(err) {
console.log(err);
this.$refs.drawerShow.edit(err, []);
},
// 撤销
reCancle(err) {
console.log(err);
this.currentParams = err;
this.dialogVisible = true;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment