| | |
| | | handleClick() { |
| | | this.$emit('change', this.formSearch); |
| | | } |
| | | }, |
| | | watch: { |
| | | // 当设备编号首次从后端获取时,触发通知事件 |
| | | ['formSearch.deviceCode'](nV, oV) { |
| | | if (oV == undefined && nV != oV) { |
| | | this.handleClick(); |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | // 当设备编号已经从后端获取完成时,直接触发通知事件 |
| | | if (this.formSearch.deviceCode) { |
| | | this.handleClick(); |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | <style lang="scss"> |
| | | .map-date-selector { |
| | | display: inline-block; |
| | | position: relative; |
| | | /* left: 0; |
| | | right: 0; |
| | | top: 0px; */ |
| | | /* padding: 0 4px; */ |
| | | /* color: ffffffbd; */ |
| | | /* background-color: antiquewhite; */ |
| | | <style scoped lang="scss"> |
| | | .el-form-item { |
| | | margin-bottom: 0px; |
| | | margin-right: 8px !important; |
| | | } |
| | | </style> |