直接访问桌面未登陆默认跳转登录页, 底库上传图片提示语
| | |
| | | import axios from 'axios' |
| | | |
| | | import { getApps } from '@/api/app' |
| | | import { findAllSdk } from '@/api/taskMange' |
| | | |
| | | export default { |
| | | name: 'app', |
| | |
| | | time: new Date() |
| | | }, true); |
| | | }, 1000); |
| | | |
| | | findAllSdk().then(() => { |
| | | |
| | | }); |
| | | }, |
| | | methods: { |
| | | showApps() { |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | timeRange: [new Date(2020, 7, 25, 8), new Date(new Date().setHours(23,59,59))], |
| | | timeRange: [new Date(2020, 7, 25, 8), new Date(new Date().setHours(23, 59, 59))], |
| | | memberInfo: { |
| | | personName: '', |
| | | sex: '', |
| | |
| | | console.log("hello"); |
| | | }, |
| | | getUploadResult(result) { |
| | | console.log(result, "上传的返回"); |
| | | // console.log(result, "上传的返回"); |
| | | this.uploadResult = result.data; |
| | | this.dialogVisible = true; |
| | | this.getPersonList(); |
| | |
| | | this.progressValue = 0 |
| | | this.showProgress = false |
| | | this.$emit('successFN', result) |
| | | // let errorArr = [] |
| | | // // 根据与后台约定data数组返回的都是存在业务意义错误的对象 |
| | | // if (result.data && result.data.length) { |
| | | // errorArr = result.data.map(file => { |
| | | // // 遍历前台抛给后台的fileList 进行比对赋值file文件及message |
| | | // for (var i = 0; i < this.suFileList.length; i++) { |
| | | // const iteam = this.suFileList[i] |
| | | // if ( |
| | | // file.upload.fileName && |
| | | // iteam.name === file.upload.fileName |
| | | // ) { |
| | | // return { |
| | | // uuId: guid(), |
| | | // file: iteam, |
| | | // photos: file.upload.path, |
| | | // baseList: file.baseList ? file.baseList : null, |
| | | // errorMsg: { |
| | | // type: 'error', |
| | | // errorType: '上传异常', |
| | | // message: file.reason ? file.reason : result.msg |
| | | // } |
| | | // } |
| | | // } |
| | | // } |
| | | // }) |
| | | // } |
| | | /* 回调传值 */ |
| | | // 处理错误文件列表 如果为0说明全部成功,(通过校验,并在后台成功完成注册添加) |
| | | // let erFileList = |
| | | // result && result.success |
| | | // ? this.erFileList |
| | | // : [...this.erFileList, ...errorArr] |
| | | // // 全部成功无需打开业务弹窗 |
| | | // if (erFileList.length > 0) { |
| | | // this.$emit('addFilesBaBackFN', { |
| | | // suFileList: result && result.success ? this.suFileList : [], |
| | | // erFileList: erFileList, |
| | | // fileList: this.fileList, |
| | | // result: res |
| | | // }) |
| | | // } |
| | | // if (erFileList.length === 0) { |
| | | // this.$emit('successFN') |
| | | // } |
| | | } |
| | | } catch (error) { |
| | | // this.$notify({ |
| | | // type: 'error', |
| | | // message: '服务器错误!请联系管理员' // + error.message |
| | | // }) |
| | | this.progressValue = 0 |
| | | this.showProgress = false |
| | | console.log('catch---', error) |
| | | const errorArr = this.suFileList.map(file => { |
| | | return { |
| | | uuId: guid(), |
| | |
| | | errorMsg: { |
| | | type: 'error', |
| | | errorType: '上传服务器错误', |
| | | message: '图片不是单人脸照片,请重新上传' |
| | | message: '上传服务器错误' |
| | | } |
| | | } |
| | | }) |
| | |
| | | size="mini" |
| | | style="width:calc(100% - 40px);min-width: 120px;" |
| | | placeholder="请选择" |
| | | @change="tagChange" |
| | | > |
| | | <el-option |
| | | v-for="item in VideoPhotoData.tabs" |
| | |
| | | this.TreeDataPool.fetchTreeData(); |
| | | }, |
| | | mounted() { |
| | | debugger |
| | | //this.isShowUpload(); |
| | | console.log('search mounted') |
| | | this.$nextTick(() => { |
| | | let scrollContain = this.$refs.scrollContain |
| | | this.VideoPhotoData.scrollContainDom = scrollContain |
| | |
| | | "VideoPhotoData.selectWhites": function (value) { |
| | | this.blackAngWhite() |
| | | }, |
| | | tagValues: function (newValue, oldValue) { |
| | | if (newValue.length > 0) { |
| | | this.showType = "compare"; |
| | | } else { |
| | | this.showType = "search"; |
| | | } |
| | | if (newValue.length !== oldValue.length) { |
| | | console.log("tagValue中的刷新方法"); |
| | | // this.VideoPhotoData.querySearchList(); |
| | | this.setLoadSearch(this.VideoPhotoData.querySearchList()); |
| | | } |
| | | }, |
| | | "VideoPhotoData.uploadDiaplay": function (value) { |
| | | debugger |
| | | this.getHeight(); |
| | | console.log("upload的值是:", value) |
| | | if (value) { |
| | |
| | | }, |
| | | getUrlKey(name) { |
| | | return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null |
| | | }, |
| | | tagChange(obj) { |
| | | console.log(obj) |
| | | if (obj.length > 0) { |
| | | this.showType = "compare"; |
| | | } else { |
| | | this.showType = "search"; |
| | | } |
| | | |
| | | this.VideoPhotoData.queryTabs = obj; |
| | | |
| | | this.setLoadSearch(this.VideoPhotoData.querySearchList()); |
| | | } |
| | | } |
| | | }; |
| | |
| | | document.addEventListener("visibilitychange", this.visibilitychange, false); |
| | | window.addEventListener('resize', this.windowSizeChange) |
| | | |
| | | this.VideoPhotoData.capture(); |
| | | this.timer = setInterval(() => { |
| | | this.VideoPhotoData.capture() |
| | | this.CategoryData.realTimeCapture(); |