| | |
| | | import DescRes from "./descRes"; |
| | | import Pop from "./pop"; |
| | | import offset from "@/assets/js/tools/offset"; |
| | | import moment from 'moment'; |
| | | import moment from "moment"; |
| | | |
| | | import { |
| | | getList, |
| | |
| | | name: "", |
| | | data() { |
| | | return { |
| | | versionTime: moment().format('YYYY-MM-DD HH:mm:ss'), |
| | | versionTime: moment().format("YYYY-MM-DD HH:mm:ss"), |
| | | reasonVisible: false, |
| | | reason: "", |
| | | currentObj: null, |
| | |
| | | this.file1 = null; |
| | | this.resData = []; |
| | | this.onlyXls = false; |
| | | this.versionTime = moment().format('YYYY-MM-DD HH:mm:ss'); |
| | | this.versionTime = moment().format("YYYY-MM-DD HH:mm:ss"); |
| | | this.uploadShow = true; |
| | | }, |
| | | updateDesc() { |
| | |
| | | } |
| | | if (y < 180) { |
| | | y = 180; |
| | | } |
| | | if (y > clientHeight - 378) { |
| | | y = clientHeight - 378; |
| | | } else if (y > clientHeight - 378) { |
| | | y = clientHeight / 2; |
| | | } |
| | | } else { |
| | | if (y + 18 + 360 > clientHeight) { |
| | |
| | | <template> |
| | | <div |
| | | ref="pop" |
| | | :class="['pop', position]" |
| | | :style="{ |
| | | left: x + 'px', |
| | |
| | | data() { |
| | | return {}; |
| | | }, |
| | | methods: {}, |
| | | methods: { |
| | | onMouseenter() { |
| | | this.visible = true; |
| | | }, |
| | | onMouseleave() { |
| | | this.visible = false; |
| | | } |
| | | }, |
| | | |
| | | mounted() {}, |
| | | mounted() { |
| | | this.$refs.pop.addEventListener('mouseenter', this.onMouseenter); |
| | | this.$refs.pop.addEventListener('mouseleave', this.onMouseleave); |
| | | }, |
| | | beforeDestroy() { |
| | | this.$refs.pop.removeEventListener('mouseenter', this.onMouseenter); |
| | | this.$refs.pop.removeEventListener('mouseleave', this.onMouseleave); |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | |
| | | border-left: 5px solid transparent; |
| | | border-right: 5px solid transparent; |
| | | } |
| | | &::before { |
| | | content: ""; |
| | | position: absolute; |
| | | top: 100%; |
| | | left: 0; |
| | | right: 0; |
| | | display: inline-block; |
| | | height: 10px; |
| | | background: transparent; |
| | | } |
| | | } |
| | | &.bottom { |
| | | margin-top: 10px; |
| | |
| | | border-left: 5px solid transparent; |
| | | border-right: 5px solid transparent; |
| | | } |
| | | &::before { |
| | | content: ""; |
| | | position: absolute; |
| | | bottom: 100%; |
| | | left: 0; |
| | | right: 0; |
| | | height: 10px; |
| | | background: transparent; |
| | | } |
| | | } |
| | | &.left { |
| | | margin-left: -10px; |