Commit a643dc4f authored by renjintao's avatar renjintao

overtime work

parent 2e121744
This diff is collapsed.
......@@ -198,85 +198,66 @@ export default {
this.editModal = true;
this.curId = id;
},
methods: {
addOk() {
this.$refs.grid.load()
this.addModal = false
this.$refs.addModal.entity = {}
this.editModal = false
this.curId = 0
},
addFn() {
this.addModal = true
this.$refs.addmodal.entity = {}
},
search() {
this.$refs.grid.reload(this.easySearch)
},
edit(id) {
this.editModal = true
this.curId = id
},
remove(id) {
this.deletelModal = true;
this.curId = id;
},
removeOk() {
Api.delete({
id: this.curId
}).then((r) => {
if (r.success) {
this.$refs.grid.load();
this.deletelModal = false;
this.$Message.success("删除成功");
}
});
},
removeCancel() {
this.deletelModal = false;
},
cancel() {
this.curId = 0;
this.addModal = false;
this.$refs.addModal.entity = {};
this.detailModal = false;
this.editModal = false;
this.deletedlModal = false;
this.deletelMore = false;
},
//多选处理--表格选择项变化方法
selectionChange(selection) {
this.selectedRows = selection;
this.footerModel = selection.length > 0;
},
deleteMore() {
this.deletelMore = true;
},
l(key) {
/*
calendar_work:{
id:'',
creationTime:'创建时间',
creatorUserId:'创建人',
lastModificationTime:'更新时间',
lastModifierUserId:'更新人',
isDeleted:'删除人',
deletionTime:'删除时间',
deleterUserId:'删除人',
title:'日历名称',
calendarClassId:'关联班次',
calendarClassTitle:'',
calendarClassStart:'',
calendarClassEnd:'',
workHours:'工作时长',
}
*/
let vkey = "calendar_work" + "." + key;
return this.$t(vkey) || key;
},
remove(id) {
this.deletelModal = true;
this.curId = id;
},
};
removeOk() {
Api.delete({
id: this.curId
}).then((r) => {
if (r.success) {
this.$refs.grid.load();
this.deletelModal = false;
this.$Message.success("删除成功");
}
});
},
removeCancel() {
this.deletelModal = false;
},
cancel() {
this.curId = 0;
this.addModal = false;
this.$refs.addModal.entity = {};
this.detailModal = false;
this.editModal = false;
this.deletedlModal = false;
this.deletelMore = false;
},
//多选处理--表格选择项变化方法
selectionChange(selection) {
this.selectedRows = selection;
this.footerModel = selection.length > 0;
},
deleteMore() {
this.deletelMore = true;
},
l(key) {
/*
calendar_work:{
id:'',
creationTime:'创建时间',
creatorUserId:'创建人',
lastModificationTime:'更新时间',
lastModifierUserId:'更新人',
isDeleted:'删除人',
deletionTime:'删除时间',
deleterUserId:'删除人',
title:'日历名称',
calendarClassId:'关联班次',
calendarClassTitle:'',
calendarClassStart:'',
calendarClassEnd:'',
workHours:'工作时长',
}
*/
let vkey = "calendar_work" + "." + key;
return this.$t(vkey) || key;
},
},
};
</script>
<style lang="less">
......
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