Commit 475a546a authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 1118965e 6fe0f6e0
...@@ -38,11 +38,11 @@ ...@@ -38,11 +38,11 @@
v-if="item.type === 'select'" v-if="item.type === 'select'"
:placeholder="'请选择' + item.label" :placeholder="'请选择' + item.label"
> >
<el-option <!-- <el-option
label="全部" label=""
value="" value=""
v-if="!item.multiple && !item.notShowAll" v-if="!item.multiple && !item.notShowAll"
></el-option> ></el-option> -->
<el-option <el-option
:label="label" :label="label"
:value="value" :value="value"
......
...@@ -63,7 +63,9 @@ ...@@ -63,7 +63,9 @@
</div> </div>
</div> </div>
<div class="mt20"> <div class="mt20">
<el-button type="primary" @click="saveForm">确定</el-button> <el-button type="primary" @click="saveForm" :loading="btnLoading"
>确定</el-button
>
<el-button @click="cancleFn">取消</el-button> <el-button @click="cancleFn">取消</el-button>
</div> </div>
</div> </div>
...@@ -110,6 +112,7 @@ export default { ...@@ -110,6 +112,7 @@ export default {
errorStatus: "", errorStatus: "",
}, },
duration: "", duration: "",
btnLoading: false,
}; };
}, },
...@@ -162,12 +165,21 @@ export default { ...@@ -162,12 +165,21 @@ export default {
"分钟"; "分钟";
this.dealParams.durtion = this.duration; this.dealParams.durtion = this.duration;
} }
this.btnLoading = true;
// 保存结果处理 // 保存结果处理
this.$post(this.urls.saveUrl, this.dealParams).then((res) => { this.$post(this.urls.saveUrl, this.dealParams)
if (res.code == 1) { .then((res) => {
this.cancleFn(); this.btnLoading = false;
} if (res.code == 1) {
}); this.cancleFn();
this.$message.success(res.msg);
}
})
.catch((error) => {
this.btnLoading = false;
console.log(error);
this.$message.error(error.message);
});
}, },
cancleFn() { cancleFn() {
this.open = false; this.open = false;
......
...@@ -486,6 +486,12 @@ export default { ...@@ -486,6 +486,12 @@ export default {
label: "班次", label: "班次",
fuzzy: false, fuzzy: false,
}, },
{
name: "punchResult",
type: "select",
label: "打卡结果",
fuzzy: false,
},
{ {
name: "attendanceDateStart", name: "attendanceDateStart",
type: "date", type: "date",
......
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