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

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

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