| | |
| | | methods: { |
| | | //获取值班列表信息 |
| | | getSchedlingList(item){ |
| | | this.$emit('showschedulingdetail', item.dept, "1", 'type') |
| | | this.$emit('showschedulingdetail', item.dept, item.dept, 'type') |
| | | }, |
| | | //获取值班单位信息 |
| | | getSchedulingDeptList(){ |
| | |
| | | <!-- 值班table --> |
| | | <div> |
| | | <el-dialog :title="schedulingTitle" :modal="true" :visible.sync="schedulingVisible" |
| | | :before-close="schedulingBeforeClose" :close-on-click-modal="true" class="global-dialog-seat"> |
| | | :before-close="schedulingBeforeClose" :close-on-click-modal="true" class="area-details-box"> |
| | | <div class="header"> |
| | | <div> |
| | | <span>值班人:</span> |
| | |
| | | }, |
| | | schedulingVisible: false, |
| | | schedulingTitle: '', |
| | | dept:'' |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | init(data) { |
| | | this.schedulingVisible = true; |
| | | this.schedulingTitle = data.name + "值班信息"; |
| | | this.dept = data.dept; |
| | | this.getSchedulingtPaging() |
| | | }, |
| | | /** |
| | |
| | | this.page.currentPage = 1 |
| | | this.person = ''; |
| | | this.contact = ''; |
| | | this.dept = ""; |
| | | this.schedulingTableData = [] |
| | | this.schedulingVisible = false |
| | | }, |
| | |
| | | // 值班分页查询 |
| | | handleCurrentChange: function (currentPage) { |
| | | this.page.currentPage = currentPage |
| | | |
| | | this.getSchedulingtPaging() |
| | | }, |
| | | |
| | |
| | | var values = { |
| | | sameday:1, |
| | | person: this.person, |
| | | contact: this.contact |
| | | contact: this.contact, |
| | | dept:this.dept |
| | | } |
| | | getSchedulingList( |
| | | this.page.currentPage, |
| | |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="scss"></style> |
| | | <style scoped lang="scss"> |
| | | .global-dialog-seat{ |
| | | height: countSizeVh(700); |
| | | } |
| | | </style> |
| | |
| | | * @param {*} type |
| | | * @return {*} |
| | | */ |
| | | async showschedulingdetail (name, typeVale, type) { |
| | | async showschedulingdetail (name, dept, type) { |
| | | const data = { |
| | | name:name, |
| | | typeVale:typeVale, |
| | | dept:dept, |
| | | type:type |
| | | } |
| | | this.$refs.schedulingList.init(data); |