Commit 2e121744 authored by renjintao's avatar renjintao

Merge branch 'portal' of git.mes123.com:zhouyx/mes-ui into portal

parents 0099d2fb 65b2e67c
...@@ -154,17 +154,36 @@ export default { ...@@ -154,17 +154,36 @@ export default {
] ]
} }
}, },
created() { //获取公休日数组
this.getWeekTypeListFn() getweekList() {
this.tableHeight = window.innerHeight - 230 let parmse = {
conditions: [],
isDesc: true,
pageSize: 10
}
Api.getWeekTypeList(parmse).then((res) => {
console.log(res.result)
this.weekTypeList = res.result
})
}, },
mounted() { //设置公休日
window.onresize = () => { radioChange(a) {
///浏览器窗口大小变化 console.log(a)
return (() => { let datArray = this.weekTypeList
window.screenHeight = window.innerHeight datArray.map(u => {
this.tableHeight = window.screenHeight - 230 if (a == u.weekendTypeName) {
})() 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({
...@@ -299,7 +318,7 @@ export default { ...@@ -299,7 +318,7 @@ export default {
return this.$t(vkey) || key return this.$t(vkey) || key
} }
} }
} }
</script> </script>
<style lang="less"> <style lang="less">
......
...@@ -149,7 +149,9 @@ export default { ...@@ -149,7 +149,9 @@ export default {
}, },
watch: { watch: {
v() { v() {
console.log(v)
this.entity = this.$u.clone(this.v); this.entity = this.$u.clone(this.v);
this.selectAry();
}, },
}, },
}; };
......
This diff is collapsed.
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