Commit dc9b7953 authored by 黄奎's avatar 黄奎
parents 039d0653 1a24d3aa
...@@ -138,6 +138,7 @@ ...@@ -138,6 +138,7 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
height:25px;
} }
.tufa_xiugai { .tufa_xiugai {
......
...@@ -333,27 +333,46 @@ ...@@ -333,27 +333,46 @@
}, },
//值班打卡或值班交接 //值班打卡或值班交接
SetDutyCheck(status) { SetDutyCheck(status) {
this.checkMsg.Status = status; let diaMsg='';
saveDutyCheck(this.checkMsg).then(res => { if(status==1){
if (res.Code == 1) { diaMsg='是否确定值班打卡?'
this.getList(); }
this.$q.notify({ if(status==2){
icon: 'iconfont icon-chenggong', diaMsg='是否确定值班交接?'
color: 'accent', }
timeout: 2000, this.$q.dialog({
message: '数据保存成功!', title: '删除提示',
position: 'top' message: diaMsg,
}) cancel: true,
} else { persistent: true,
this.$q.notify({ ok: "确定",
icon: 'iconfont icon-chenggong', cancel: "取消",
color: 'accent', }).onOk(() => {
timeout: 2000, this.checkMsg.Status = status;
message: res.Message, saveDutyCheck(this.checkMsg).then(res => {
position: 'top' if (res.Code == 1) {
}) this.getList();
} this.$q.notify({
}) icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '数据保存成功!',
position: 'top'
})
} else {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: res.Message,
position: 'top'
})
}
})
}).onCancel(() => {
});
}, },
//刷新父页面 //刷新父页面
refreshPage() { refreshPage() {
......
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