master
laozt 1 year ago
parent d861aabe8c
commit ab49fcf5e1

@ -11,9 +11,9 @@
VUE_APP_HOST = "http://221.229.220.83:8007/api/v1.0/" 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_FILE_HOST = "http://221.229.220.83:8007/api/"
# 二期接口 # 二期接口
VUE_APP_RUOYI ='http://221.229.220.83:9028' VUE_APP_RUOYI ='http://192.168.0.124:9028'
# 图片前缀正式服务器 # 图片前缀正式服务器
VUE_APP_IMGURL ='http://221.229.220.83:9028' VUE_APP_IMGURL ='http://192.168.0.124:9028'
# 图片前缀本地服务器 # 图片前缀本地服务器
# VUE_APP_IMGURL ='http://192.168.0.123:9028' # VUE_APP_IMGURL ='http://192.168.0.123:9028'

@ -17,4 +17,3 @@ 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"
一期

@ -33,7 +33,7 @@ export default {
var designWidth = 750 // var designWidth = 750 //
var baseFontsize = 120 // cssrempx var baseFontsize = 120 // cssrempx
var realFontsize = (window.screen.width / designWidth) * baseFontsize // var realFontsize = (window.screen.width / designWidth) * baseFontsize //
console.log(realFontsize, '基准') // console.log(realFontsize, '')
// console.log(realFontsize) // console.log(realFontsize)
document.getElementsByTagName('html')[0].style.fontSize = document.getElementsByTagName('html')[0].style.fontSize =
realFontsize + 'px' realFontsize + 'px'

@ -39,6 +39,16 @@ export function listManagement(query) {
params: query params: query
}) })
} }
//查询园区负责人列表
export function listEnterpriseBuildPark(query) {
return request({
url: '/mudu/enterprisebuildpark',
method: 'get',
params: query
})
}
// // 园区详情 enterprise/parkinfo/ // // 园区详情 enterprise/parkinfo/
// export function getParkinfo(id) { // export function getParkinfo(id) {
// return request.get('enterprise/parkinfo/' + id) // return request.get('enterprise/parkinfo/' + id)

@ -87,7 +87,7 @@ request.interceptors.response.use(
const isSucceed = await refreshToken() const isSucceed = await refreshToken()
if (isSucceed) { if (isSucceed) {
//重新请求 //重新请求
console.log('重新刷新') // console.log('重新刷新')
errorData.config.headers.Authorization = errorData.config.headers.Authorization =
'Bearer ' + localStorage.getItem('mudu_token') //替换token 'Bearer ' + localStorage.getItem('mudu_token') //替换token
let result = await request.request(errorData.config) //重新请求 let result = await request.request(errorData.config) //重新请求

@ -78,7 +78,7 @@ request.interceptors.response.use(
} }
}, },
(error) => { (error) => {
console.log(error.response) // console.log(error.response)
if (error.response && error.response.status === 401) { if (error.response && error.response.status === 401) {
Toast({ Toast({
message: '登录过期,请重新登录', message: '登录过期,请重新登录',

@ -22,9 +22,8 @@ const router = new Router({ routes })
// 路由拦截 // 路由拦截
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
console.log('值', to)
store.commit('SET_IS_SHOW', { store.commit('SET_IS_SHOW', {
text: to.name == '企业详情' ? '工业园' : '企业', text: to.name == '企业详情' ? '工业园' : to.name == '企业详情2' ? '楼栋': '企业',
isShow: to.query.isShow || to.params.isShow, isShow: to.query.isShow || to.params.isShow,
}) })
console.log(to) console.log(to)

@ -42,6 +42,25 @@ let routes = [
}, },
], ],
}, },
{
path: '/enterpriseData2',
name: '企业信息',
component: () => import('@/views/vxEwm/enterprise/index.vue'),
redirect: '/enterpriseData2/info',
children: [
{
path: '/enterpriseData2/info',
name: '企业详情2',
component: () => import('@/views/vxEwm/enterprise/info.vue'),
},
{
path: '/enterpriseData2/check/info',
name: '巡检详情',
component: () =>
import('@/views/vxEwm/enterprise/components/firmInfo.vue'),
},
],
},
] ]
// { // {

@ -21,6 +21,6 @@ export async function refreshToken() {
} }
export function isRefreshRequest(config) { export function isRefreshRequest(config) {
console.log(config.__isRefreshToken) // console.log(config.__isRefreshToken)
return !!config.__isRefreshToken //两个取反变成boolean return !!config.__isRefreshToken //两个取反变成boolean
} }

@ -1,16 +1,14 @@
<template> <template>
<div class="enterprise-list"> <div class="enterprise-list">
<div class="title-gr"> <div class="title-gr">
<div class="icon-circle"> <div class="icon-circle"> </div>
<div class="build-name">{{ parkName }} {{ buildingName }}</div>
</div>
<div class="build-name">金星富民置业工业园 1</div>
</div> </div>
<div class="serch-input"> <div class="serch-input">
<div class="input-box"> <div class="input-box">
<input type="text" v-model="querParams.name" placeholder="请输入搜索关键词" /> <input type="text" v-model="querParams.enterpriseName" placeholder="请输入搜索关键词" />
<div class="input-close" v-show="querParams.name"> <div class="input-close" v-show="querParams.enterpriseName">
<van-icon name="clear" @click="querParams.name = undefined" /> <van-icon name="clear" @click="querParams.enterpriseName = undefined" />
</div> </div>
</div> </div>
<div class="serch-btn" @click="onSearch"></div> <div class="serch-btn" @click="onSearch"></div>
@ -18,7 +16,7 @@
<van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad"> <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
<div class="list-box"> <div class="list-box">
<div class="list-item" v-for="item in enterpriseList" :key="item.id" @click="onInfoClcik(item)"> <div class="list-item" v-for="item in enterpriseList" :key="item.id" @click="onInfoClcik(item)">
<div class="item-name">{{ item.name }}</div> <div class="item-name">{{ item.enterpriseName }}</div>
<div class="item-icon"><van-icon name="arrow" color="#CCCCCC" /></div> <div class="item-icon"><van-icon name="arrow" color="#CCCCCC" /></div>
</div> </div>
</div> </div>
@ -28,6 +26,8 @@
<script> <script>
import xApi from '@/api/xApi' import xApi from '@/api/xApi'
import { listEnterpriseBuildPark } from '@/api/mudu/park.js'
export default { export default {
props: { props: {
parkProfileId: { parkProfileId: {
@ -38,20 +38,21 @@ export default {
return { return {
total: 0, total: 0,
querParams: { querParams: {
ParkID: null, buildingId: null,
page: 1, parkId: null,
limit: 10, pageNum: 1,
name: undefined, pageSize: 10,
enterpriseName: null
}, },
enterpriseList: [], enterpriseList: [],
loading: false, loading: false,
finished: false, finished: false,
parkName:null,
buildingName:null,
} }
}, },
created() { created() {
this.querParams.ParkID = this.parkProfileId
console.log(this.querParams)
}, },
methods: { methods: {
onLoad() { onLoad() {
@ -60,31 +61,36 @@ export default {
}, 500) }, 500)
}, },
getList() { getList() {
xApi.allenterpriselist(this.querParams).then((res) => { this.querParams.buildingId = this.$route.query.buildingId
this.enterpriseList.push(...res.data) this.querParams.parkId = this.$route.query.parkId
this.total = res.count
listEnterpriseBuildPark(this.querParams).then((res) => {
this.enterpriseList = this.enterpriseList.concat(res.rows)
this.parkName = this.enterpriseList[0].parkName
this.buildingName = this.enterpriseList[0].buildingName
this.total = res.total
this.loading = false this.loading = false
//
if (this.enterpriseList.length >= this.total) { if (this.enterpriseList.length >= this.total) {
this.finished = true this.finished = true
} else {
this.querParams.pageNum++
} }
this.querParams.page++
}) })
}, },
onSearch() { onSearch() {
this.loading = false this.loading = false
this.finished = false this.finished = false
this.querParams.page = 1 this.querParams.pageNum = 1
this.querParams.limit = 10 this.querParams.pageSize = 10
this.total = 0 this.total = 0
this.enterpriseList = [] this.enterpriseList = []
this.getList() // this.getList()
}, },
onInfoClcik(item) { onInfoClcik(item) {
this.$router.replace({ this.$router.replace({
path: '/enterpriseData', path: '/enterpriseData2/info',
query: { query: {
id: item.id, id: item.enterpriseId,
isShow: true, isShow: true,
}, },
}) })

@ -2,24 +2,17 @@
<div class="vx-container"> <div class="vx-container">
<div class="general-header"></div> <div class="general-header"></div>
<div class="header-bg"></div> <div class="header-bg"></div>
<div <div :class="$route.name == '巡检详情' ? 'general-view-two' : 'general-view'" :style="{
:class="$route.name == '巡检详情' ? 'general-view-two' : 'general-view'"
:style="{
height: $store.state.showBtnData.isShow == 'true' ? '' : '79%', height: $store.state.showBtnData.isShow == 'true' ? '' : '79%',
top: $store.state.showBtnData.isShow == 'true' ? '' : '46%', top: $store.state.showBtnData.isShow == 'true' ? '' : '46%',
transform: transform:
$store.state.showBtnData.isShow == 'true' ? '' : 'translateY(-46%)', $store.state.showBtnData.isShow == 'true' ? '' : 'translateY(-46%)',
}" }">
>
<router-view /> <router-view />
</div> </div>
<div class="general-footnote"> <div class="general-footnote">
<div <div class="back-home" v-show="$store.state.showBtnData.isShow == 'true'" @click="backHome">
class="back-home"
v-show="$store.state.showBtnData.isShow == 'true'"
@click="backHome"
>
<img src="@/assets/image/vxEwm/back.png" alt="" class="back-icon" /> <img src="@/assets/image/vxEwm/back.png" alt="" class="back-icon" />
<span> 返回{{ $store.state.showBtnData.text }}</span> <span> 返回{{ $store.state.showBtnData.text }}</span>
</div> </div>
@ -27,7 +20,7 @@
<div class="download-btn" @click="handlerDownload()"> <div class="download-btn" @click="handlerDownload()">
<span>></span> <span>></span>
<a>点击下载</a> <a>点击下载</a>
<span><</span> <span> &lt; </span>
</div> </div>
</div> </div>
<div class="footonte-bg"></div> <div class="footonte-bg"></div>
@ -53,6 +46,14 @@ export default {
path: '/park', path: '/park',
query: { id: this.$store.state.parkId }, query: { id: this.$store.state.parkId },
}) })
} else if (this.$store.state.showBtnData.text == '楼栋') {
this.$router.replace({
path: '/build',
query: {
buildingId: null,
parkId: null,
},
})
} else { } else {
this.$router.replace({ this.$router.replace({
path: '/enterpriseData/info', path: '/enterpriseData/info',
@ -126,6 +127,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
padding: 0.3rem 0.21rem 0 0.21rem; padding: 0.3rem 0.21rem 0 0.21rem;
} }
.footonte-bg { .footonte-bg {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
@ -136,6 +138,7 @@ export default {
background: url('~@/assets/image/vxEwm/bg2.png'); background: url('~@/assets/image/vxEwm/bg2.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
.general-view-two { .general-view-two {
position: absolute; position: absolute;
top: 37%; top: 37%;
@ -149,6 +152,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
padding: 0 0.21rem 0 0.21rem; padding: 0 0.21rem 0 0.21rem;
} }
.general-footnote { .general-footnote {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
@ -163,18 +167,21 @@ export default {
width: 1.85rem; width: 1.85rem;
height: 0.5rem; height: 0.5rem;
margin: auto; margin: auto;
.back-icon { .back-icon {
display: inline-block; display: inline-block;
height: 0.3rem; height: 0.3rem;
height: 0.25rem; height: 0.25rem;
margin-right: 0.05rem; margin-right: 0.05rem;
} }
color: #177fd4; color: #177fd4;
font-weight: bold; font-weight: bold;
font-size: 0.22rem; font-size: 0.22rem;
border-radius: 28px; border-radius: 28px;
background-image: linear-gradient(to right, #accbee, #e7f0fd); background-image: linear-gradient(to right, #accbee, #e7f0fd);
} }
.app-download-hint { .app-download-hint {
margin-top: 0.1rem; margin-top: 0.1rem;
font-size: 0.24rem; font-size: 0.24rem;
@ -183,6 +190,7 @@ export default {
font-weight: bold; font-weight: bold;
text-shadow: 0px 0px 0px #0e50b4; text-shadow: 0px 0px 0px #0e50b4;
} }
.download-btn { .download-btn {
margin-top: 0.1rem; margin-top: 0.1rem;
padding-bottom: 3vh; padding-bottom: 3vh;
@ -190,6 +198,7 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: #feffff; color: #feffff;
a { a {
margin: 0 0.1rem; margin: 0 0.1rem;
text-decoration: underline; text-decoration: underline;

@ -510,7 +510,7 @@ export default {
getIdInfo(id) { getIdInfo(id) {
xApi.getEnterInfo(id).then((res) => { xApi.getEnterInfo(id).then((res) => {
this.parkList = res.data this.parkList = res.data
console.log(this.parkList, '企业') // console.log(this.parkList, '')
document.title = this.parkList.name || '企业' // document.title = this.parkList.name || '企业' //
}) })
}, },

@ -59,7 +59,7 @@ export default {
created() { created() {
this.querParams.ParkID = this.parkProfileId this.querParams.ParkID = this.parkProfileId
console.log(this.querParams) // console.log(this.querParams)
}, },
methods: { methods: {
onLoad() { onLoad() {

@ -381,13 +381,13 @@ export default {
Status: state, Status: state,
} }
getTroublelist(querParams).then((res) => { getTroublelist(querParams).then((res) => {
console.log('sasa', res) // console.log('sasa', res)
this.parkData[key] = res.count this.parkData[key] = res.count
}) })
}, },
getParkInfo() { getParkInfo() {
getParkinfo(this.parkOrgId).then((res) => { getParkinfo(this.parkOrgId).then((res) => {
console.log('mlkkk', res) // console.log('mlkkk', res)
this.parkData.enterpriseNum = res.data.enterpriseCountSum this.parkData.enterpriseNum = res.data.enterpriseCountSum
}) })
}, },

@ -299,7 +299,7 @@ export default {
getFzr() { getFzr() {
listPrincipal(this.querParams).then((res) => { listPrincipal(this.querParams).then((res) => {
this.fuzeList = res.rows this.fuzeList = res.rows
console.log(this.fuzeList, '负责人') // console.log(this.fuzeList, '')
}) })
}, },

Loading…
Cancel
Save