Commit 23e7569d authored by chenqikuai's avatar chenqikuai

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

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