| | |
| | | import {reactive} from "vue"; |
| | | import {useRouter} from "vue-router" |
| | | const router = useRouter() |
| | | |
| | | import request from "@/utils/request" |
| | | import { ref, onMounted } from "vue"; |
| | | // import { ref } from 'vue' |
| | | import { ElMessage, ElMessageBox } from 'element-plus' |
| | | // import LanguageMixin from './lang/LanguageMixin' |
| | | |
| | | const tableData = ref([]) |
| | | |
| | | // 发送获取表格数据的请求 |
| | | // const fetchTableData = async () => { |
| | | // try { |
| | |
| | | // } |
| | | // }; |
| | | // onMounted(fetchTableData); |
| | | |
| | | |
| | | |
| | | request.get("unLoadGlass/downStorage/selectStorageCage").then((res) => { |
| | | if (res.code == 200) { |
| | | console.log(res.data); |
| | | tableData.value = res.data |
| | | } else { |
| | | ElMessage.warning(res.msg) |
| | | |
| | | } |
| | | }); |
| | | |
| | | const dialogForm = () => { |
| | | ElMessageBox.confirm( |
| | | '是否报缺?', |
| | |
| | | .then(() => { |
| | | // this.boxa = true |
| | | // this.box = false |
| | | |
| | | }) |
| | | } |
| | | const open = () => { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | const gridOptions = reactive({ |
| | | border: "full",//表格加边框 |
| | | keepSource: true,//保持源数据 |
| | |
| | | 'thick': '183.6', |
| | | } |
| | | ] |
| | | |
| | | }) |
| | | |
| | | |
| | | |
| | | </script> |
| | | |
| | | <template> |
| | | <!-- 父级框 --> |
| | | <div class="container"> |
| | |
| | | <div class="moving-rect shui"></div> |
| | | </div> |
| | | </template> |
| | | |
| | | <style scoped> |
| | | .container { |
| | | position: relative; |
| | | display: inline-block; /* 使容器大小适应图片大小 */ |
| | | } |
| | | |
| | | img { |
| | | display: block; /* 让图片以块级元素显示 */ |
| | | max-width: 100%; /* 确保图片不超出容器 */ |
| | | } |
| | | |
| | | .moving-rect { |
| | | width: 100px; |
| | | height: 50px; |
| | | position: absolute; |
| | | } |
| | | |
| | | .vertical { |
| | | width: 45px; |
| | | height: 25px; |
| | |
| | | transform: translateX(-50%); |
| | | animation: move-vertical 6s infinite; /* 从上到下动画,持续6秒,无限循环 */ |
| | | } |
| | | |
| | | @keyframes move-vertical { |
| | | 0% { |
| | | top: 510px; /* 起始位置 */ |
| | |
| | | transform: translateY(-50%); |
| | | animation: move-horizontal 6s infinite; /* 从右到左动画,持续6秒,无限循环 */ |
| | | } |
| | | |
| | | @keyframes move-horizontal { |
| | | 0% { |
| | | right: 210px; /* 起始位置 */ |
| | |
| | | right: calc(100% - 1030px); /* 从右到左结束位置 */ |
| | | } |
| | | } |
| | | |
| | | .xiao { |
| | | width: 45px; |
| | | height: 25px; |
| | |
| | | right: calc(100% - 198px); /* 从右到左结束位置 */ |
| | | } |
| | | } |
| | | |
| | | .zan { |
| | | width: 25px; |
| | | height: 45px; |
| | |
| | | transform: translateX(-50%); |
| | | animation: move-zan 6s infinite; /* 从上到下动画,持续6秒,无限循环 */ |
| | | } |
| | | |
| | | @keyframes move-zan { |
| | | 0% { |
| | | top: 570px; /* 起始位置 */ |
| | |
| | | transform: translateX(-50%); |
| | | animation: move-fa 6s infinite; /* 从上到下动画,持续6秒,无限循环 */ |
| | | } |
| | | |
| | | @keyframes move-fa { |
| | | 0% { |
| | | top: 150px; /* 起始位置 */ |
| | |
| | | right: calc(100% - 610px); /* 结束位置 */ |
| | | } |
| | | } |
| | | |
| | | </style> |