Commit a643dc4f authored by renjintao's avatar renjintao

overtime work

parent 2e121744
...@@ -104,6 +104,12 @@ export default { ...@@ -104,6 +104,12 @@ export default {
high: true, high: true,
align: 'left' align: 'left'
}, },
{
key: 'mesHolidayIds',
title: this.l('mesHolidayIds'),
hide: true,
align: 'left'
},
{ {
key: 'creationTime', key: 'creationTime',
title: this.l('creationTime'), title: this.l('creationTime'),
...@@ -154,36 +160,17 @@ export default { ...@@ -154,36 +160,17 @@ export default {
] ]
} }
}, },
//获取公休日数组 created() {
getweekList() { this.getWeekTypeListFn()
let parmse = { this.tableHeight = window.innerHeight - 230
conditions: [],
isDesc: true,
pageSize: 10
}
Api.getWeekTypeList(parmse).then((res) => {
console.log(res.result)
this.weekTypeList = res.result
})
}, },
//设置公休日 mounted() {
radioChange(a) { window.onresize = () => {
console.log(a) ///浏览器窗口大小变化
let datArray = this.weekTypeList return (() => {
datArray.map(u => { window.screenHeight = window.innerHeight
if (a == u.weekendTypeName) { this.tableHeight = window.screenHeight - 230
this.weekTypeid = u.id })()
}
})
let id = this.weekTypeid
Api.setweek({
id: id
}).then((res) => {
if (res.success) {
this.weekFlag = true
} else {
this.weekFlag = false
console.log('设置失败')
} }
}, },
async fetch({ async fetch({
...@@ -225,14 +212,16 @@ export default { ...@@ -225,14 +212,16 @@ export default {
pageSize: 10 pageSize: 10
} }
Api.getWeekTypeList(parmse).then((res) => { Api.getWeekTypeList(parmse).then((res) => {
console.log(res.result)
this.weekTypeList = res.result this.weekTypeList = res.result
}) })
}, },
//设置公休日 //设置公休日
radioChange(a) { radioChange(a) {
console.log(a)
let datArray = this.weekTypeList let datArray = this.weekTypeList
datArray.map(u => { datArray.map(u => {
if (a == u.title) { if (a == u.weekendTypeName) {
this.weekTypeid = u.id this.weekTypeid = u.id
} }
}) })
...@@ -318,7 +307,7 @@ export default { ...@@ -318,7 +307,7 @@ export default {
return this.$t(vkey) || key return this.$t(vkey) || key
} }
} }
} }
</script> </script>
<style lang="less"> <style lang="less">
......
...@@ -198,25 +198,6 @@ export default { ...@@ -198,25 +198,6 @@ export default {
this.editModal = true; this.editModal = true;
this.curId = id; 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) { remove(id) {
this.deletelModal = true; this.deletelModal = true;
...@@ -276,7 +257,7 @@ export default { ...@@ -276,7 +257,7 @@ export default {
return this.$t(vkey) || key; return this.$t(vkey) || key;
}, },
}, },
}; };
</script> </script>
<style lang="less"> <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