4.7新增获取公司接口
This commit is contained in:
parent
88837cd208
commit
01597f0386
|
|
@ -79,6 +79,14 @@ const index = {
|
||||||
data,
|
data,
|
||||||
header
|
header
|
||||||
)
|
)
|
||||||
|
},
|
||||||
|
async fetchCompanyName (data = {} , header = {}){
|
||||||
|
return await Http.get(
|
||||||
|
HttpConfig.systemPath,
|
||||||
|
HttpConfig.serviceUrl.index.fetchCompanyName,
|
||||||
|
data,
|
||||||
|
header
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ class HttpConfig {
|
||||||
// baseUrl = "http://112.29.103.165:21626"
|
// baseUrl = "http://112.29.103.165:21626"
|
||||||
// baseUrl = "http://172.20.10.3:8080"
|
// baseUrl = "http://172.20.10.3:8080"
|
||||||
// baseUrl = "http://10.40.92.13:8080"
|
// baseUrl = "http://10.40.92.13:8080"
|
||||||
// baseUrl = "http://10.40.92.74:8080"
|
// baseUrl = "http://10.40.92.94:8080"
|
||||||
baseUrl = "http://10.40.92.8:8080"
|
baseUrl = "http://10.40.92.8:8080"
|
||||||
// baseUrl = "https://z.csgmall.com.cn/gl"
|
// baseUrl = "https://z.csgmall.com.cn/gl"
|
||||||
// #endif
|
// #endif
|
||||||
|
|
@ -36,7 +36,8 @@ class HttpConfig {
|
||||||
singleNotice: '/sysNotice/getById', // 查看单个公告
|
singleNotice: '/sysNotice/getById', // 查看单个公告
|
||||||
waitDo: '/app/getToDoList', // 获取待办事项
|
waitDo: '/app/getToDoList', // 获取待办事项
|
||||||
keyData: '/app/getCriticalData', // 获取关键数据
|
keyData: '/app/getCriticalData', // 获取关键数据
|
||||||
getUserInfo: '/system/user/getInfo', // 获取用户信息
|
getUserInfo: '/user/getInfo', // 获取用户信息
|
||||||
|
fetchCompanyName: '/dept/getCompanyByAncestors', // 获取公司名称
|
||||||
},
|
},
|
||||||
fetchMaterial: {
|
fetchMaterial: {
|
||||||
fetchMaterialList: '/type/selectMaTypeListByLevelIndex', // 获取设备列表
|
fetchMaterialList: '/type/selectMaTypeListByLevelIndex', // 获取设备列表
|
||||||
|
|
|
||||||
|
|
@ -256,6 +256,15 @@ import { authPath, basePath, publicPath, systemPath } from '../../public';
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
})
|
})
|
||||||
|
// 获取公司名称
|
||||||
|
that.$api.index.fetchCompanyName({
|
||||||
|
ancestors: uni.getStorageSync('userInfo').sysUser.dept.ancestors
|
||||||
|
}).then(res => {
|
||||||
|
console.log(res);
|
||||||
|
if (res.data.code == 200) uni.setStorageSync('companyName', res.data.msg)
|
||||||
|
}).catch(err => {
|
||||||
|
console.log(err);
|
||||||
|
})
|
||||||
},
|
},
|
||||||
onNavigationBarButtonTap(e) {
|
onNavigationBarButtonTap(e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="auth">
|
<view class="auth">
|
||||||
<h4>宁夏送变电工程有限公司</h4>
|
<h4>{{ companyName }}</h4>
|
||||||
<h4 class="authed">
|
<h4 class="authed">
|
||||||
<uni-icons style="margin-right: 8rpx; color: #F19600;" type="checkbox-filled"></uni-icons>
|
<uni-icons style="margin-right: 8rpx; color: #F19600;" type="checkbox-filled"></uni-icons>
|
||||||
<span>已认证</span>
|
<span>已认证</span>
|
||||||
|
|
@ -48,6 +48,7 @@ import { authPath } from '../../public'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
companyName: uni.getStorageSync('companyName'),
|
||||||
username: uni.getStorageSync('userInfo').username,
|
username: uni.getStorageSync('userInfo').username,
|
||||||
phone: uni.getStorageSync('userInfo').sysUser.phonenumber
|
phone: uni.getStorageSync('userInfo').sysUser.phonenumber
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<view class="upper-search">
|
<view class="upper-search">
|
||||||
<h4>宁夏送变电工程有限公司</h4>
|
<h4>{{ companyName }}</h4>
|
||||||
<uni-easyinput prefixIcon="search" v-model="iptVal" placeholder="搜索" @iconClick="iconClick"></uni-easyinput>
|
<uni-easyinput prefixIcon="search" v-model="iptVal" placeholder="搜索" @iconClick="iconClick"></uni-easyinput>
|
||||||
</view>
|
</view>
|
||||||
<h4 class="tit">业务办理</h4>
|
<h4 class="tit">业务办理</h4>
|
||||||
|
|
@ -44,6 +44,7 @@
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
companyName: uni.getStorageSync('companyName'),
|
||||||
iptVal: '',
|
iptVal: '',
|
||||||
benchList: [
|
benchList: [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue