Commit 551dccc6 authored by hanfeng zhang's avatar hanfeng zhang

321

parent 07f585a0
...@@ -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,
......
...@@ -42,8 +42,9 @@ export function isAppEnv() { ...@@ -42,8 +42,9 @@ export function isAppEnv() {
} }
export function appNavBack(){ export function appNavBack(){
const appEnv = isAppEnv()
console.log(111); console.log(111);
const appEnv = isAppEnv()
if(appEnv){ if(appEnv){
goBack() goBack()
...@@ -127,6 +128,8 @@ export function getSign(obj: object) { ...@@ -127,6 +128,8 @@ export function getSign(obj: object) {
export function getPublicKey(){ export function getPublicKey(){
const data = dsbridge.call(BridgeMethods.GET_PUBLIC_KEY,{},res=>{ const data = dsbridge.call(BridgeMethods.GET_PUBLIC_KEY,{},res=>{
console.log(res);
return res return res
}) })
return data return data
......
...@@ -216,6 +216,7 @@ export default Vue.extend({ ...@@ -216,6 +216,7 @@ 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 + 6000000 this.acceptJoin.expiration = this.acceptJoin.joinTime + 6000000
console.log(getPublicKey(),'getPublicKey');
this.acceptJoin.inviterId = process.env.NODE_ENV ==='production'? getPublicKey(): "1FKxgaEh5fuSm7a35BfUnKYAmradowpiTR" this.acceptJoin.inviterId = process.env.NODE_ENV ==='production'? getPublicKey(): "1FKxgaEh5fuSm7a35BfUnKYAmradowpiTR"
this.acceptJoin.oaServer = localStorage.getItem('ENT_INFO')? JSON.parse(localStorage.getItem('ENT_INFO') as any).oaServer : 'http://172.16.101.107:20000' this.acceptJoin.oaServer = localStorage.getItem('ENT_INFO')? JSON.parse(localStorage.getItem('ENT_INFO') as any).oaServer : 'http://172.16.101.107:20000'
......
...@@ -59,7 +59,7 @@ import Vue from 'vue' ...@@ -59,7 +59,7 @@ import Vue from 'vue'
import { team, contacts } from '@/DTO' import { team, contacts } from '@/DTO'
import { Member } from '@/DTO' import { Member } from '@/DTO'
import { getContacts } from '@/util/Contact' import { getContacts } from '@/util/Contact'
import { openCompanyUserInfo } from '@/util/Bridge' import { openCompanyUserInfo ,appNavBack} from '@/util/Bridge'
export default Vue.extend({ export default Vue.extend({
name: 'TeamDetail', name: 'TeamDetail',
...@@ -109,6 +109,7 @@ export default Vue.extend({ ...@@ -109,6 +109,7 @@ export default Vue.extend({
this.getStaff(this.parentId) this.getStaff(this.parentId)
}, },
methods: { methods: {
appNavBack,
// 获取成员 // 获取成员
getStaff(id: string) { getStaff(id: string) {
this.loading = true this.loading = true
......
...@@ -114,10 +114,11 @@ export default Vue.extend({ ...@@ -114,10 +114,11 @@ export default Vue.extend({
this.parentId = dep.id this.parentId = dep.id
this.getStaff() this.getStaff()
}, },
appNavBack(){ appNavBack,
this.$router.go(-1) // appNavBack(){
// appNavBack() // this.$router.go(-1)
}, // // appNavBack()
// },
getEntInfo() { getEntInfo() {
this.loading = true this.loading = true
return this.$service.enterprise.getEnterpriseInfo({ return this.$service.enterprise.getEnterpriseInfo({
......
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