| | |
| | | <div class="config_content"> |
| | | <div class="item"> |
| | | <div class="head">发起人</div> |
| | | <div class="content">访客</div> |
| | | <div class="content">内部员工</div> |
| | | </div> |
| | | <div class="arrows"> |
| | | <div class="line"></div> |
| | |
| | | export * from './staff' |
| | | export * from './meeting' |
| | | |
| | | |
| | | |
| | | // 查询字典值数据 |
| | | export const getSystemDictData = (data) => { |
| | | return http({ |
| | |
| | | export const findTypeMemberInfo = (data) => { |
| | | return http({ |
| | | url: 'visitsAdmin/cloudService/business/member/findTypeMemberInfo', |
| | | // url: 'visitsAdmin/cloudService/business/member/page', |
| | | method: 'post', |
| | | data |
| | | }) |
| | |
| | | }, |
| | | onLoad(){ |
| | | console.log('userInfo', this.userInfo); |
| | | |
| | | }, |
| | | onShow() { |
| | | this.getTaskInfo() |
| | | }, |
| | | methods: { |
| | |
| | | <text |
| | | v-else |
| | | class="placeholder9" |
| | | @click="$jump('/pages/staff/memberSel')" |
| | | >请选择</text |
| | | > |
| | | </view> |
| | |
| | | name="arrow-right" |
| | | color="#999999" |
| | | size="14" |
| | | @click="$jump('/pages/staff/memberSel')" |
| | | /> |
| | | </view> |
| | | </view> |
| | |
| | | class="adduser_list_item_ipt1_upload" |
| | | v-for="(item, i) in submitFileList" |
| | | :key="i" |
| | | ><image |
| | | > |
| | | <u-icon |
| | | class="close" |
| | | size="20" |
| | | name="close-circle-fill" |
| | | color="red" |
| | | @click="fileDel(i)" |
| | | ></u-icon> |
| | | <image |
| | | v-if="item.type == 0" |
| | | :src="item.fileurlFull" |
| | | mode="widthFix" |
| | | ></image |
| | | ><video |
| | | v-if="item.type == 1" |
| | | :src="item.fileurlFull" |
| | | ></video |
| | | ><video v-if="item.type == 1" :src="item.fileurlFull"></video |
| | | ></view> |
| | | </view> |
| | | </view> |
| | |
| | | url: '/pages/staff/memberSel' |
| | | }) |
| | | }, |
| | | fileDel(i) { |
| | | this.submitFileList.splice(i, 1) |
| | | }, |
| | | uploadImage() { |
| | | this.showUpload = false |
| | | uni.chooseImage({ |
| | | count: 1, |
| | | count: 4, |
| | | success: (chooseImageRes) => { |
| | | console.log('chooseImageRes.tempFilePaths', chooseImageRes.tempFilePaths) |
| | | uni.showLoading({ title: '上传中', mask: true }) |
| | | for (let i = 0; i < chooseImageRes.tempFilePaths.length; i++) { |
| | | const tempFilePaths = chooseImageRes.tempFilePaths |
| | | let imgs = tempFilePaths.map((value, index) => { |
| | | return { |
| | | name: 'file', |
| | | uri: value |
| | | } |
| | | }) |
| | | uni.uploadFile({ |
| | | url: `${uploadUrl}`, |
| | | filePath: chooseImageRes.tempFilePaths[i], |
| | | files: imgs, |
| | | name: 'file', |
| | | formData: { |
| | | folderCode: 'HIDDEN_DANGER_FILE' |
| | | folder: 'HIDDEN_DANGER_FILE' |
| | | }, |
| | | success: (uploadFileRes) => { |
| | | let res = JSON.parse(uploadFileRes.data) |
| | | console.log('res', res) |
| | | let obj = { |
| | | type: '0' |
| | | } |
| | | obj.fileurl = res.data.halfPath |
| | | obj.fileurlFull = res.data.addr |
| | | this.submitFileList.push(obj) |
| | | }, |
| | | complete() { |
| | | if (i === chooseImageRes.tempFilePaths.length - 1) { |
| | | uni.hideLoading() |
| | | } |
| | | } |
| | | console.log('res', res.data) |
| | | if (res.data && res.data.length > 0) { |
| | | res.data.forEach(i => { |
| | | i.type = 0 |
| | | i.fileurl = i.imgaddr |
| | | i.fileurlFull = i.url |
| | | this.submitFileList.push(i) |
| | | }) |
| | | } |
| | | }, |
| | | fail(err) { |
| | | console.log('err', err) |
| | | }, |
| | | complete() { |
| | | uni.hideLoading() |
| | | // if (i === chooseImageRes.tempFilePaths.length - 1) { |
| | | // uni.hideLoading() |
| | | // } |
| | | } |
| | | }) |
| | | // } |
| | | } |
| | | }) |
| | | }, |
| | |
| | | filePath: chooseImageRes.tempFilePath, |
| | | name: 'file', |
| | | formData: { |
| | | folderCode: 'HIDDEN_DANGER_FILE' |
| | | folder: 'HIDDEN_DANGER_FILE' |
| | | }, |
| | | success: (uploadFileRes) => { |
| | | let res = JSON.parse(uploadFileRes.data) |
| | | console.log('res', res) |
| | | let obj = { |
| | | type: '1' |
| | | if (res.data && res.data.length > 0) { |
| | | res.data.forEach(i => { |
| | | i.type = 1 |
| | | i.fileurl = i.imgaddr |
| | | i.fileurlFull = i.url |
| | | this.submitFileList.push(i) |
| | | }) |
| | | } |
| | | obj.fileurl = res.data.halfPath |
| | | obj.fileurlFull = res.data.addr |
| | | this.submitFileList.push(obj) |
| | | }, |
| | | complete() { |
| | | uni.hideLoading() |
| | |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | overflow: hidden; |
| | | position: relative; |
| | | .close { |
| | | position: absolute; |
| | | right: -20rpx; |
| | | top: -20rpx; |
| | | } |
| | | image { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | video { |
| | | width: 100%; |
| | | max-height: 160rpx; |
| | | } |
| | | } |
| | | } |
| | |
| | | param: {}, |
| | | selList: [], |
| | | |
| | | isShowSelMem: false |
| | | isShowSelMem: false, |
| | | pagination: { |
| | | capacity: 20, |
| | | page: 1 |
| | | }, |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.initData() |
| | | }, |
| | | onReachBottom() { |
| | | // if(){} |
| | | }, |
| | | mounted() { |
| | | this.$eventBus.$on('applePeoDetail', (res)=>{ |
| | | res.forEach(item => { |
| | | this.changeMem(item) |
| | | this.memberList.forEach(mem => { |
| | | if (item.id === mem.id) { |
| | | mem.checked = !mem.checked |
| | | } |
| | | }) |
| | | this.$nextnick(() => { |
| | | }) |
| | | this.selList = this.memberList.filter(i => i.checked) |
| | | this.$nextTick(() => { |
| | | this.$forceUpdate() |
| | | }) |
| | | }) |
| | | }, |
| | | methods: { |
| | | initData() { |
| | | const { param, pagination } = this |
| | | findTypeMemberInfo({ |
| | | // model: { |
| | | name: param.name, |
| | | // }, |
| | | type: '2', |
| | | ...pagination |
| | | }).then(res => { |
| | | this.memberList = res.data || [] |
| | | this.memberList.forEach(i => { |
| | | i.checked = false |
| | | }) |
| | | }) |
| | | }, |
| | | onSubmit() { |
| | | if (this.selList.length === 0) return uni.showToast({ |
| | | title: '请先选择人员', |
| | | icon: 'none' |
| | | }) |
| | | this.$eventBus.$emit('applePeo', this.selList) |
| | | uni.navigateBack() |
| | | }, |
| | | changeMem(item, index) { |
| | | item.checked = !item.checked |
| | | this.selList = this.memberList.filter(i => i.checked) |
| | | // const arr = e.detail.value |
| | | // let arrTemp = arr.map(item => { |
| | | // let obj = {} |
| | | // this.memberList.forEach(ite => { |
| | | // if (item == ite.id) { |
| | | // obj.name = ite.name.split('-')[0] |
| | | // obj.componey = ite.name.split('-')[1] || '' |
| | | // obj.id = ite.id |
| | | // this.memberList.forEach(mem => { |
| | | // if(item.id === mem.id){ |
| | | // item.checked = !item.checked |
| | | // } |
| | | // }) |
| | | // return obj |
| | | // }) |
| | | // this.selList = arrTemp |
| | | item.checked = !item.checked |
| | | this.selList = this.memberList.filter(i => i.checked) |
| | | this.$forceUpdate() |
| | | }, |
| | | handleRemove(item) { |
| | |
| | | // console.log(this.memberList); |
| | | this.$forceUpdate() |
| | | }, |
| | | initData() { |
| | | const { param } = this |
| | | findTypeMemberInfo({ |
| | | name: param.name, |
| | | type: '2' |
| | | }).then(res => { |
| | | this.memberList = res.data || [] |
| | | this.memberList.forEach(i => { |
| | | i.checked = false |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | |
| | | }, |
| | | selPeople() { |
| | | if(this.param.memberList && this.param.memberList.length > 0){ |
| | | this.$eventBus.$emit('applePeoDetail', this.param.memberList) |
| | | setTimeout(() => { |
| | | this.$eventBus.$emit('applePeoDetail', this.param.memberList || []) |
| | | }, 500) |
| | | } |
| | | this.$jump('/pages/staff/vehicle/applePeo') |
| | | }, |
| | |
| | | import tlyPictureCut from "@/components/tly-picture-cut/tlyPictureCut.vue"; |
| | | import QfImageCropper from '@/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.vue'; |
| | | import { mapState } from 'vuex' |
| | | import { uploadUrl } from "@/utils/config" |
| | | import { uploadAvatar } from "@/utils/config" |
| | | import { getSystemDictData, visitorSub } from '@/api' |
| | | export default { |
| | | data() { |
| | |
| | | that.$refs.cropper.close() |
| | | uni.showLoading({ title: '上传中', mask: true }); |
| | | uni.uploadFile({ |
| | | url: uploadUrl, |
| | | url: uploadAvatar, |
| | | filePath: file.tempFilePath, |
| | | name: 'file', |
| | | formData: { |
| | |
| | | if (type === 'imgurl') { |
| | | uni.showLoading({ title: '上传中', mask: true }); |
| | | uni.uploadFile({ |
| | | url: uploadUrl, |
| | | url: uploadAvatar, |
| | | filePath: chooseImageRes.tempFilePaths[0], |
| | | name: 'file', |
| | | formData: { |
| | |
| | | var p = location.href.split("?") |
| | | // window.location.href = 'https://dmtest.ahapp.net/hsvisit_h5/#/pages/notice/notice?' + p[1] |
| | | window.location.href = 'http://xiaopiqiu2.natapp1.cc/#/pages/notice/notice?' + p[1] |
| | | // window.location.href = 'http://xiaopiqiu2.natapp1.cc/#/pages/staff/index?' + p[1] |
| | | </script> |
| | | </head> |
| | | <body> |
| | |
| | | |
| | | export const baseUrl = 'api/' |
| | | export const uploadUrl = `${baseUrl}visitsAdmin/cloudService/web/public/uploadFtp.do` |
| | | export const uploadAvatar = `${baseUrl}visitsAdmin/cloudService/web/public/uploadFtp.do` |
| | | export const uploadUrl = `${baseUrl}visitsAdmin/cloudService/public/uploadBatch` |