| | |
| | | // } |
| | | // 解决联动任务详情下一个bug |
| | | let ele = (this.datalist as any)[i].activeObject; |
| | | console.log(i) |
| | | if ((ele as any).id === id && i !== 0) { |
| | | if (i - 1 < 0) { |
| | | console.log('aaaaaaaaaaa') |
| | | return false; |
| | | } |
| | | return this.datalist[i - 1]; |
File was renamed from src/pages/search/components/cardWindow.vue |
| | |
| | | <model-card :data="item.list[0]"></model-card> |
| | | </div> |
| | | <el-carousel v-else height="calc(100% - 50px);" :autoplay="false"> |
| | | <el-carousel-item |
| | | v-for="(subitem, subindex) in item.list" |
| | | :key="subindex" |
| | | height="100%" |
| | | > |
| | | <el-carousel-item v-for="(subitem, subindex) in item.list" :key="subindex" height="100%"> |
| | | <model-card |
| | | :data="subitem" |
| | | :activeName="type" |
| | |
| | | defaultWidth: 600 |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.getCenter(); |
| | | window.onresize = () => { |
| | | return (() => { |
| | | this.getCenter(); |
| | | })(); |
| | | }; |
| | | }, |
| | | methods: { |
| | | getCenter() { |
| | | this.center = { |
| | | x: document.documentElement.clientWidth / 2 - 250, |
| | | y: document.documentElement.clientHeight / 2 - 200 |
| | | }; |
| | | }, |
| | | resizeWidth(w) { |
| | | this.defaultWidth = w |
| | | }, |
| | |
| | | }, |
| | | methods: { |
| | | detailsClick(ev) { |
| | | debugger |
| | | this.$emit("detailsClick", ev); |
| | | }, |
| | | toAdd(item) { |
| | |
| | | <div class="column-right" :style="`height:${screenHeight}px;`"> |
| | | <right-side /> |
| | | </div> |
| | | <card-window></card-window> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import LeftNav from "@/components/LeftNav"; |
| | | // import CameraVideo from "./components/Video.vue"; |
| | | import RightSide from "./Video" |
| | | import RightSide from "./Video"; |
| | | import CardWindow from "@/components/cardWindow"; |
| | | |
| | | export default { |
| | | name: "CameraVideo", |
| | | components: { |
| | | LeftNav, |
| | | RightSide |
| | | RightSide, |
| | | CardWindow |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | import LeftNav from "@/components/LeftNav"; |
| | | // import CameraVideo from "./components/Video.vue"; |
| | | import RightSide from "./Searching" |
| | | import CardWindow from "../components/cardWindow"; |
| | | import CardWindow from "@/components/cardWindow"; |
| | | |
| | | export default { |
| | | name: "SearchPage", |