接口代理

master
许宏杰 1 year ago
parent 5ee28cccce
commit 1fc84929c9

@ -8,12 +8,12 @@
## 开发环境变量 ## 开发环境变量
# VUE_APP_HOST = "http://mdapi.junln.net/api/v1.0/" # VUE_APP_HOST = "http://mdapi.junln.net/api/v1.0/"
# VUE_APP_FILE_HOST = "http://mdapi.junln.net/api/" # VUE_APP_FILE_HOST = "http://mdapi.junln.net/api/"
VUE_APP_HOST = "http://221.229.220.83:8007/api/v1.0/" VUE_APP_HOST = "https://www.jichuanglanhai.com:88/api/v1.0/"
VUE_APP_FILE_HOST = "http://221.229.220.83:8007/api/" VUE_APP_FILE_HOST = "https://www.jichuanglanhai.com:88/api/"
# 二期接口 # 二期接口
VUE_APP_RUOYI ='http://221.229.220.83:9028' VUE_APP_RUOYI ='https://www.jichuanglanhai.com:88'
# 图片前缀正式服务器 # 图片前缀正式服务器
VUE_APP_IMGURL ='http://221.229.220.83:9028' VUE_APP_IMGURL ='https://www.jichuanglanhai.com:88'
# 图片前缀本地服务器 # 图片前缀本地服务器
# VUE_APP_IMGURL ='http://192.168.0.123:9028' # VUE_APP_IMGURL ='http://192.168.0.123:9028'

@ -1,12 +1,13 @@
## 生产环境变量 ## 生产环境变量
# VUE_APP_HOST = "http://mdapi.junln.net/api/v1.0/" # VUE_APP_HOST = "http://mdapi.junln.net/api/v1.0/"
# VUE_APP_FILE_HOST = "http://mdapi.junln.net/api/" # VUE_APP_FILE_HOST = "http://mdapi.junln.net/api/"
VUE_APP_HOST = "http://221.229.220.83:8007/api/v1.0/"
VUE_APP_FILE_HOST = "http://221.229.220.83:8007/api/" VUE_APP_HOST = "https://www.jichuanglanhai.com:88/api/v1.0/"
VUE_APP_FILE_HOST = "https://www.jichuanglanhai.com:88/api/"
# VUE_APP_INTERFACE = "https://mdz.keyush.cn:8030" # VUE_APP_INTERFACE = "https://mdz.keyush.cn:8030"
# 二期接口 # 二期接口
VUE_APP_RUOYI ='http://221.229.220.83:9028' VUE_APP_RUOYI ='https://www.jichuanglanhai.com:88'
# IOS和安卓访问 # IOS和安卓访问
VUE_APP_INTERFACE = "http://39.101.188.84:89" VUE_APP_INTERFACE = "http://39.101.188.84:89"
@ -15,3 +16,5 @@ VUE_APP_IMGURL ='http://221.229.220.83:9028'
VUE_APP_VERSION = "3.2.8" VUE_APP_VERSION = "3.2.8"
VUE_APP_VERSION2 = "3.2.8" VUE_APP_VERSION2 = "3.2.8"
一期

@ -9,7 +9,7 @@
import Vue from 'vue' import Vue from 'vue'
import Router from 'vue-router' import Router from 'vue-router'
import Login from '@/views/Login' import Login from '@/views/Login'
import store from '@/store'
Vue.use(Router) Vue.use(Router)
// 引入其他路由文件 // 引入其他路由文件
@ -21,9 +21,13 @@ const routes = baseRoutes.concat(vxEwm)
const router = new Router({ routes }) const router = new Router({ routes })
// 路由拦截 // 路由拦截
// router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
store.commit('SET_IS_SHOW', {
// next() text: to.name == '企业详情' ? '工业园' : '企业',
// }) isShow: to.query.isShow || to.params.isShow,
})
console.log(to)
next()
})
export default router export default router

@ -23,7 +23,7 @@ let routes = [
component: () => import('@/views/vxEwm/enterprise/info.vue'), component: () => import('@/views/vxEwm/enterprise/info.vue'),
}, },
{ {
path: '/enterpriseData/check/info/:id', path: '/enterpriseData/check/info',
name: '巡检详情', name: '巡检详情',
component: () => component: () =>
import('@/views/vxEwm/enterprise/components/firmInfo.vue'), import('@/views/vxEwm/enterprise/components/firmInfo.vue'),

@ -9,7 +9,10 @@ export default new Vuex.Store({
enterpriseLoaction: false, enterpriseLoaction: false,
msgShow: false, msgShow: false,
msgshowIsFirst: false, msgshowIsFirst: false,
isShow: false, showBtnData: {
text: '',
isShow: false,
},
}, },
mutations: { mutations: {
MYSHOW(state, value) { MYSHOW(state, value) {
@ -24,8 +27,8 @@ export default new Vuex.Store({
SET_ENTERPRISE_SHOW(state, show) { SET_ENTERPRISE_SHOW(state, show) {
state.enterpriseLoaction = show state.enterpriseLoaction = show
}, },
SET_IS_SHOW(state, show) { SET_IS_SHOW(state, data) {
state.isShow = show state.showBtnData = data
}, },
}, },
actions: {}, actions: {},

@ -36,7 +36,7 @@
<van-divider /> <van-divider />
<div class="list-item" v-show="isShow2"> <div class="list-item" v-show="isShow2">
<div class="item-title">现场图片</div> <div class="item-title">现场图片</div>
<div class="item-value"> <div class="item-value value-image">
<van-image <van-image
fit="cover" fit="cover"
:src="filePath + item.src" :src="filePath + item.src"
@ -119,7 +119,7 @@ export default {
}, },
// //
initData() { initData() {
let id = this.$route.params.id let id = this.$route.query.id
Toast.loading({ Toast.loading({
message: '加载中...', message: '加载中...',
duration: 0, duration: 0,
@ -190,6 +190,9 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
div{
box-sizing: border-box;
}
.firm-info { .firm-info {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -223,6 +226,11 @@ export default {
text-align: left; text-align: left;
// line-height: 0.8rem; // line-height: 0.8rem;
} }
.value-image{
display: flex;
align-items: center;
flex-wrap: wrap;
}
} }
.list-item-two { .list-item-two {
display: flex; display: flex;
@ -277,4 +285,18 @@ export default {
} }
} }
} }
#show-maps{
border-radius: 6px;
border: 1px solid #ACD5FE;
}
/deep/.van-image{
width: 1.44rem;
height: 0.96rem;
border-radius: 6px;
overflow: hidden;
margin: 0 0.1rem 0.1rem 0;
}
</style> </style>

@ -2,11 +2,19 @@
<div class="vx-container"> <div class="vx-container">
<div class="general-header"></div> <div class="general-header"></div>
<div class="general-info-bg"></div> <div class="general-info-bg"></div>
<div :class="$route.name == '巡检详情' ? 'general-view-two' : 'general-view'"> <div
:class="$route.name == '巡检详情' ? 'general-view-two' : 'general-view'"
>
<router-view /> <router-view />
</div> </div>
<div class="general-footnote"> <div class="general-footnote">
<div class="back-home" v-show="isShow" @click="backHome"></div> <div
class="back-home"
v-show="$store.state.showBtnData.isShow == 'true'"
@click="backHome"
>
返回{{ $store.state.showBtnData.text }}
</div>
<div class="app-download-hint"></div> <div class="app-download-hint"></div>
<div class="download-btn" @click="handlerDownload()"> <div class="download-btn" @click="handlerDownload()">
<span>></span> <span>></span>
@ -30,10 +38,10 @@ export default {
} }
}, },
created() { created() {
console.log(this.$store.state.showBtnData, '值')
document.title = this.$route.query.name || '企业' // document.title = this.$route.query.name || '企业' //
let windowBar = document.getElementById('statusBar') let windowBar = document.getElementById('statusBar')
windowBar.style.height = 0 + 'px' windowBar.style.height = 0 + 'px'
this.isShow = this.$route.query.isShow this.isShow = this.$route.query.isShow
}, },
methods: { methods: {
@ -107,8 +115,8 @@ export default {
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
z-index: 20; z-index: 20;
width: 90%; width: 90%;
height: 75%; height: 70%;
background-color: #FFFFFF; background-color: #ffffff;
border-radius: 20px; border-radius: 20px;
overflow: hidden; overflow: hidden;
box-sizing: border-box; box-sizing: border-box;
@ -130,8 +138,12 @@ export default {
.back-home { .back-home {
width: 1.94rem; width: 1.94rem;
height: 0.5rem; height: 0.5rem;
background: url('~@/assets/image/vxEwm/backHome.png'); color: #177fd4;
background-size: 100% 100%; font-weight: bold;
font-size: 0.22rem;
border-radius: 28px;
line-height: 0.52rem;
background-image: linear-gradient(to right, #accbee, #e7f0fd);
} }
.app-download-hint { .app-download-hint {
width: 4.11rem; width: 4.11rem;

@ -300,8 +300,8 @@
打卡人{{ item.reportPersonName }} 打卡人{{ item.reportPersonName }}
</div> </div>
<img <img
v-show="item.isTrouble == 1"
@click="goInfo(item)" @click="goInfo(item)"
v-show="item.isTrouble == 1"
src="@/assets/image/vxEwm/examine.png" src="@/assets/image/vxEwm/examine.png"
alt="" alt=""
/> />
@ -508,7 +508,11 @@ export default {
// //
goInfo(item) { goInfo(item) {
this.$router.push({ this.$router.push({
path: '/enterpriseData/check/info/' + item.id, path: '/enterpriseData/check/info/',
query: {
id: item.id,
isShow: true,
},
}) })
}, },
}, },

@ -6,7 +6,7 @@
* @FilePath: \MuduAPP\vue.config.js * @FilePath: \MuduAPP\vue.config.js
*/ */
module.exports = { module.exports = {
publicPath: './', //APP打包 publicPath: '/demo/mudu-vx/', //APP打包
// publicPath: '/demo/mudu-app-ceshi/', // publicPath: '/demo/mudu-app-ceshi/',
// publicPath: '/demo/mudu-app-zhengshi/', // publicPath: '/demo/mudu-app-zhengshi/',

Loading…
Cancel
Save