| | |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import UploadFaceImg from '@/components/common/UploadFaceImg' |
| | | import dayjs from 'dayjs' |
| | | import { allList, memberList } from '@/api/business/hiddenDangerParam' |
| | | import { create } from '@/api/business/hiddenDanger' |
| | | export default { |
| | | name: 'OperaVisitsHkWindow', |
| | | extends: BaseOpera, |
| | | components: { |
| | | GlobalWindow |
| | |
| | | } |
| | | }, |
| | | created () { |
| | | this.$set(this.param, 'submitTime', dayjs().format('YYYY-MM-DD HH:mm:ss')) |
| | | this.initData() |
| | | }, |
| | | methods: { |
| | |
| | | const memberNames = item.memberNames.split(',') |
| | | if (memberIds && memberIds.length === 1) { |
| | | this.$set(this.param, 'checkUserId', memberIds[0]) |
| | | } else { |
| | | this.$set(this.param, 'checkUserId', '') |
| | | } |
| | | memberIds.forEach((mem, i) => { |
| | | arr.push({ |
| | |
| | | uploadAvatarSuccess (file) { |
| | | console.log('file', file) |
| | | const item = file.data[0] |
| | | if (['.mp4', '.avi', '.flv', '.wmv'].indexOf(item.imgaddr) === -1) { |
| | | if (['.mp4', '.avi', '.flv', '.wmv'].some(char => item.imgaddr.includes(char))) { |
| | | this.fileList.push({ |
| | | type: 0, |
| | | type: 1, |
| | | fileurl: item.imgaddr, |
| | | fileurlFull: item.url |
| | | }) |
| | | } else { |
| | | this.fileList.push({ |
| | | type: 1, |
| | | type: 0, |
| | | fileurl: item.imgaddr, |
| | | fileurlFull: item.url |
| | | }) |
| | |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | .item { |
| | | width: 90px; |
| | | max-height: 90px; |
| | | width: 92px; |
| | | max-height: 92px; |
| | | margin-left: 10px; |
| | | position: relative; |
| | | border: 1px dashed #d9d9d9; |
| | | border-radius: 4px; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | .close{ |
| | | font-size: 20px; |
| | | position: absolute; |
| | |
| | | cursor: pointer; |
| | | } |
| | | .img { |
| | | width: 90px; |
| | | max-height: 90px; |
| | | width: 92px; |
| | | max-height: 92px; |
| | | } |
| | | } |
| | | } |