Commit 1d89907f authored by hanfeng zhang's avatar hanfeng zhang

321

parent ac4e9b71
...@@ -20,7 +20,7 @@ Vue.use(utils).use(service) ...@@ -20,7 +20,7 @@ Vue.use(utils).use(service)
Vue.prototype.$dsbridge = dsbridge Vue.prototype.$dsbridge = dsbridge
Vue.prototype.$global = global Vue.prototype.$global = global
new VConsole() // new VConsole()
new Vue({ new Vue({
router, router,
......
...@@ -50,10 +50,9 @@ export function isAppEnv() { ...@@ -50,10 +50,9 @@ export function isAppEnv() {
} }
export function appNavBack(){ export function appNavBack(){
console.log(111);
const appEnv = isAppEnv()
const appEnv = isAppEnv()
console.log(111,appEnv);
if(appEnv){ if(appEnv){
goBack() goBack()
}else{ }else{
......
...@@ -109,7 +109,7 @@ export default Vue.extend({ ...@@ -109,7 +109,7 @@ export default Vue.extend({
}, },
created(){ created(){
this.entId=JSON.parse(localStorage.getItem('ENT_INFO') as string).id this.entId=JSON.parse(localStorage.getItem('ENT_INFO') as string).id
const leaderId = JSON.parse(localStorage.getItem('UER_INFO') as string)?.id const leaderId = JSON.parse(localStorage.getItem('USR_INFO') as string)?.id
this.selectedLeaderId = [leaderId] this.selectedLeaderId = [leaderId]
this.getStaffInfo(this.selectedLeaderId[0]) this.getStaffInfo(this.selectedLeaderId[0])
const depId = this.$route.query.id as string const depId = this.$route.query.id as string
......
...@@ -80,6 +80,7 @@ import Staff from '@/service/moudles/Staff'; ...@@ -80,6 +80,7 @@ import Staff from '@/service/moudles/Staff';
import { Account } from '@/service/base'; import { Account } from '@/service/base';
import { formatDate } from '@/util/FormatDate'; import { formatDate } from '@/util/FormatDate';
import { formatFileSize } from '@/util/Common'; import { formatFileSize } from '@/util/Common';
import { getUserInfo } from '@/util/Bridge';
Vue.use(Popup); Vue.use(Popup);
...@@ -128,7 +129,7 @@ export default Vue.extend({ ...@@ -128,7 +129,7 @@ export default Vue.extend({
this.show = true; this.show = true;
this.show1 = true; this.show1 = true;
this.progress = 0; this.progress = 0;
Staff.getInstance().addExcel(this.file, Account.entId, this.onProgressChange).then(() => { Staff.getInstance().addExcel(this.file, JSON.parse(getUserInfo()).entId, this.onProgressChange).then(() => {
this.$router.push({ name: "Team" }) this.$router.push({ name: "Team" })
}).catch((err) => { }).catch((err) => {
Toast.fail(err) Toast.fail(err)
......
...@@ -111,18 +111,20 @@ export default Vue.extend({ ...@@ -111,18 +111,20 @@ export default Vue.extend({
}, },
created() { created() {
this.info = this.$route.query as unknown as AcceptJoinDTO this.info = this.$route.query as unknown as AcceptJoinDTO
console.log(this.info);
this.getDepInfo(this.info) this.getDepInfo(this.info)
}, },
methods: { methods: {
appNavBack, appNavBack,
async submit() { async submit() {
console.log('申请')
this.loading = true this.loading = true
const {depId,entId,expiration,hash,inviterId,joinTime,name,oaServer,phone,position} = this.info as AcceptJoinDTO const {depId,entId,expiration,hash,inviterId,joinTime,name,oaServer,phone,position} = this.info as AcceptJoinDTO
let req = { let req = {
depId,entId,expiration: Number(expiration) ,hash,inviterId,joinTime: Number(joinTime),name,oaServer,phone,position depId,entId,expiration: Number(expiration) ,hash,inviterId,joinTime: Number(joinTime),name,oaServer,phone,position
} }
console.log(this.info);
this.$service.enterprise.acceptJoin(req) this.$service.enterprise.acceptJoin(req)
.then((res: any) => { .then((res: any) => {
const {data} = res const {data} = res
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
header-bg="bg-white" header-bg="bg-white"
:loading="loading" :loading="loading"
left-arrow left-arrow
@click-left="appNavBack" @click-left="goBack"
> >
<template slot="right"> <template slot="right">
<app-icon <app-icon
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<script lang="ts"> <script lang="ts">
import Vue from 'vue' import Vue from 'vue'
import { useLocalStorageState } from 'ahooks-vue' import { useLocalStorageState } from 'ahooks-vue'
import { appNavBack, getUserInfo, openCompanyUserInfo } from '@/util/Bridge' import { appNavBack, getUserInfo, goBack, openCompanyUserInfo } from '@/util/Bridge'
import { Department, Staff } from '@/Interface' import { Department, Staff } from '@/Interface'
// import {openCompanyUserInfo} from '@/util/Bridge' // import {openCompanyUserInfo} from '@/util/Bridge'
...@@ -115,7 +115,7 @@ export default Vue.extend({ ...@@ -115,7 +115,7 @@ export default Vue.extend({
this.parentId = dep.id this.parentId = dep.id
this.getStaff() this.getStaff()
}, },
appNavBack, goBack,
getEntInfo() { getEntInfo() {
this.loading = true this.loading = true
return this.$service.enterprise.getEnterpriseInfo({ return this.$service.enterprise.getEnterpriseInfo({
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<code-icon :path="require('@/assets/icons/y-downlode.png')" class-name="h-9 w-9"/>保存 <code-icon :path="require('@/assets/icons/y-downlode.png')" class-name="h-9 w-9"/>保存
</div> </div>
</div> </div>
<c-button type="secondary" class="mt-16" @click="$router.push('/team/team-frame')">进入团队工作台</c-button> <c-button type="secondary" class="mt-16" @click="handleClickLeft">进入团队工作台</c-button>
</div> </div>
</main-page> </main-page>
</div> </div>
...@@ -135,7 +135,7 @@ export default Vue.extend({ ...@@ -135,7 +135,7 @@ export default Vue.extend({
return res return res
}, },
handleClickLeft() { handleClickLeft() {
this.$router.push('/team/team-frame') this.$router.replace('/team/team-frame')
}, },
dpr() { dpr() {
console.log(window.devicePixelRatio, 'pixel') console.log(window.devicePixelRatio, 'pixel')
......
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