| | |
| | | goalManagementApi() |
| | | .searchFile(uploadFile.name) |
| | | .then((res) => { |
| | | debugger |
| | | window.open(res.data, "_blank"); |
| | | }) |
| | | dialogImageUrl.value = uploadFile.url!; |
| | |
| | | |
| | | // 路由加载前 |
| | | router.beforeEach(async (to, from, next) => { |
| | | if (to.path === '/intelligentLine') { |
| | | next(); |
| | | } else { |
| | | NProgress.configure({ showSpinner: false }); |
| | | if (to.meta.title) NProgress.start(); |
| | | const token = Session.get('token'); |
| | |
| | | next({ ...to, replace: true }); |
| | | } else { |
| | | next(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | <script setup lang="ts"> |
| | | |
| | | import {defineEmits, reactive} from "vue"; |
| | | import { reactive} from "vue"; |
| | | import {checkOutStateType, GoodsDetailDataType} from "/@/views/facilityManagement/goodsDetailManage/index"; |
| | | import {teamManageApi} from "/@/api/systemManage/basicDateManage/personShiftManage/teamManage"; |
| | | import {ElMessage} from "element-plus/es"; |
| | |
| | | alert('您的浏览器不支持socket'); |
| | | } else { |
| | | // 实例化socket |
| | | debugger |
| | | let uid = userInfos.value.uid.toString() |
| | | var url = state.path + uid + '*' + id; |
| | | console.log(url,'url',uid,'uid') |
| | |
| | | }; |
| | | |
| | | window.particlesJS.load = function(tag_id, path_config_json, callback){ |
| | | debugger |
| | | /* load json config */ |
| | | var xhr = new XMLHttpRequest(); |
| | | xhr.open('GET', path_config_json); |