|
|
@@ -1,10 +1,14 @@
|
|
|
<template>
|
|
|
<view class="blacklog-container">
|
|
|
- <web-view v-if="isShow" :src="webViewUrl"></web-view>
|
|
|
+ <uni-nav-bar fixed="true" statusBar="true" left-icon="back" :title="title" @clickLeft="back">
|
|
|
+ </uni-nav-bar>
|
|
|
+<!-- <div style="height: 88rpx;width: 100%;"></div> -->
|
|
|
+ <web-view style="margin-top: 88rpx;" v-if="isShow" :src="webViewUrl"></web-view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import Vue from "vue";
|
|
|
import {
|
|
|
getParentIdListByDeptId
|
|
|
} from '@/api/common.js'
|
|
|
@@ -12,24 +16,28 @@
|
|
|
data(){
|
|
|
return{
|
|
|
isShow:false,
|
|
|
- webViewUrl:''
|
|
|
+ webViewUrl:'',
|
|
|
+ title:'申请'
|
|
|
}
|
|
|
},
|
|
|
async onLoad(option = {}) {
|
|
|
let headers = {};
|
|
|
const value = uni.getStorageSync("token"); //取存本地的token
|
|
|
- const apiInfo = uni.getStorageSync("apiInfo"); //取存本地的token
|
|
|
+ // const apiInfo = uni.getStorageSync("apiInfo"); //取存本地的token
|
|
|
+
|
|
|
+ console.log(Vue.prototype.apiUrl,'apiInfo')
|
|
|
headers = {
|
|
|
"content-type": "application/json",
|
|
|
"zoomwin-token": value,
|
|
|
Authorization: value,
|
|
|
"zoomwin-sid": uni.getStorageSync("userInfo").sessionId,
|
|
|
- serverInfo : apiInfo.protocal? apiInfo.protocal+ apiInfo.hostname+':'+apiInfo.port+'/api' :'',
|
|
|
+ serverInfo : Vue.prototype.apiUrl||'',
|
|
|
};
|
|
|
//http://192.168.1.105:18086
|
|
|
const params = JSON.parse(option.params)
|
|
|
params.userInfo = uni.getStorageSync("userInfo")
|
|
|
let html = params.type =='add'? 'a.html':'c.html'
|
|
|
+ this.title= params.type =='add'? '申请':'审批'
|
|
|
try{
|
|
|
params.userInfo.groupIdList = await getParentIdListByDeptId(params.userInfo.groupId)
|
|
|
}catch{
|