Commit 23e7569d authored by chenqikuai's avatar chenqikuai

feat: 添加成员处添加批量导入转跳按钮

parent 1f682329
......@@ -6,11 +6,12 @@
:ent-id="entId"
:selected.sync="selectedDepId"
/>
<main-page
left-arrow
:loading="loading"
@click-left="handleClickLeft"
>
<main-page left-arrow :loading="loading" @click-left="handleClickLeft">
<template #right>
<div @click="$router.push({ name: 'Import' })">
<img class="w-6 h-6" src="@/assets/icons/add_many_people.png" alt />
</div>
</template>
<div class="px-4 pt-14 pb-16">
<!-- 姓名/职位 -->
<input-cell
......@@ -45,7 +46,7 @@
title="员工编号"
placeholder="请输入员工编号"
type="input"
/> -->
/>-->
<c-cell
v-model="date"
dot
......@@ -59,24 +60,16 @@
:round="false"
color="#4F62C1"
:show-confirm="true"
:style="{ height:'100%'}"
:style="{ height: '100%' }"
@confirm="selectJoinTime"
/>
<!-- 选择部门 -->
<group-cell
dot
required
class="mt-4"
title="所属部门"
@click="selectDep"
>
<group-cell dot required class="mt-4" title="所属部门" @click="selectDep">
<c-cell :title="currentDep.name" />
</group-cell>
<!--按钮-->
<div class="fixed bottom-0 left-0 w-full px-4 py-1.5 bg-common-bg">
<c-button @click="generateQrCode">
生成邀请二维码
</c-button>
<c-button @click="generateQrCode">生成邀请二维码</c-button>
</div>
</div>
</main-page>
......@@ -86,12 +79,12 @@
<script lang="ts">
import Vue from 'vue'
import { Calendar,Overlay } from 'vant'
import { Calendar, Overlay } from 'vant'
import { AcceptJoinDTO } from '@/service/moudles/service.dto'
import { trim } from '@/util/Contact'
import {Department} from '@/Interface'
import { Department } from '@/Interface'
import { useLocalStorageState } from 'ahooks-vue'
import {formatDate} from '@/util/FormatDate'
import { formatDate } from '@/util/FormatDate'
import DepSelector from '@/views/team/components/dep-selector.vue'
Vue.use(Calendar).use(Overlay)
......@@ -167,7 +160,7 @@ export default Vue.extend({
entId: this.entId,
parentId: parentId
}).then((res: any) => {
const {data}=res
const { data } = res
this.loading = false
if (data.code === this.$global.success) {
return data.data
......@@ -182,7 +175,7 @@ export default Vue.extend({
entId: this.entId,
id: depId
}).then((res: any) => {
const {data}=res
const { data } = res
this.loading = false
if (data.code === this.$global.success) {
this.currentDep = data.data
......@@ -204,7 +197,7 @@ export default Vue.extend({
this.$router.go(-1)
},
// 入职日期
selectJoinTime(date:Date) {
selectJoinTime(date: Date) {
this.acceptJoin.joinTime = new Date(date).getTime()
this.show = false
this.date = this.formatDate(date)
......@@ -221,11 +214,11 @@ export default Vue.extend({
this.acceptJoin.entId = this.entId
this.acceptJoin.depId = this.selectedDepId
this.acceptJoin.expiration = this.acceptJoin.joinTime
this.acceptJoin.inviterId ="1FKxgaEh5fuSm7a35BfUnKYAmradowpiTR"
this.acceptJoin.inviterId = "1FKxgaEh5fuSm7a35BfUnKYAmradowpiTR"
this.acceptJoin.oaServer = 'http://172.16.101.107:20000'
this.$store.commit('setAcceptJoin', this.acceptJoin)
this.$router.push('/team/two-code')
}).catch(() => {})
}).catch(() => { })
}
},
watch: {
......@@ -237,5 +230,4 @@ export default Vue.extend({
</script>
<style lang="less">
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment