接口代理

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

@ -8,12 +8,12 @@
## 开发环境变量
# VUE_APP_HOST = "http://mdapi.junln.net/api/v1.0/"
# 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_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'

@ -1,12 +1,13 @@
## 生产环境变量
# VUE_APP_HOST = "http://mdapi.junln.net/api/v1.0/"
# 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_RUOYI ='http://221.229.220.83:9028'
VUE_APP_RUOYI ='https://www.jichuanglanhai.com:88'
# IOS和安卓访问
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_VERSION2 = "3.2.8"
一期

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

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

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

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

@ -2,11 +2,19 @@
<div class="vx-container">
<div class="general-header"></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 />
</div>
<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="download-btn" @click="handlerDownload()">
<span>></span>
@ -30,10 +38,10 @@ export default {
}
},
created() {
console.log(this.$store.state.showBtnData, '值')
document.title = this.$route.query.name || '企业' //
let windowBar = document.getElementById('statusBar')
windowBar.style.height = 0 + 'px'
this.isShow = this.$route.query.isShow
},
methods: {
@ -107,8 +115,8 @@ export default {
transform: translate(-50%, -50%);
z-index: 20;
width: 90%;
height: 75%;
background-color: #FFFFFF;
height: 70%;
background-color: #ffffff;
border-radius: 20px;
overflow: hidden;
box-sizing: border-box;
@ -130,8 +138,12 @@ export default {
.back-home {
width: 1.94rem;
height: 0.5rem;
background: url('~@/assets/image/vxEwm/backHome.png');
background-size: 100% 100%;
color: #177fd4;
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 {
width: 4.11rem;

@ -300,8 +300,8 @@
打卡人{{ item.reportPersonName }}
</div>
<img
v-show="item.isTrouble == 1"
@click="goInfo(item)"
v-show="item.isTrouble == 1"
src="@/assets/image/vxEwm/examine.png"
alt=""
/>
@ -508,7 +508,11 @@ export default {
//
goInfo(item) {
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
*/
module.exports = {
publicPath: './', //APP打包
publicPath: '/demo/mudu-vx/', //APP打包
// publicPath: '/demo/mudu-app-ceshi/',
// publicPath: '/demo/mudu-app-zhengshi/',

Loading…
Cancel
Save