Merge branch 'bjxz-dev' of http://139.9.66.234:18023/dhp/zhgdyun into bjxz-dev

This commit is contained in:
Rain 2024-10-26 17:09:40 +08:00
commit dd7be313d5
17 changed files with 83 additions and 58 deletions

View File

@ -180,12 +180,12 @@ if (process.env.NODE_ENV == "development") {
// axios.defaults.baseURL = 'http://192.168.34.221:28890/' //郭圣雄本地
// axios.defaults.baseURL = "http://192.168.34.221:9111/"; //郭圣雄本地
// axios.defaults.baseURL = "http://192.168.34.221:19112/"; //郭圣雄本地
axios.defaults.baseURL = 'http://192.168.34.155:19111/' //彭洁本地
// axios.defaults.baseURL = 'http://192.168.34.155:19111/' //彭洁本地
// axios.defaults.baseURL = 'http://182.90.224.237:51234/' //郭圣雄远程
// axios.defaults.baseURL = 'http://jxj.zhgdyun.com:61212/' //彭洁远程
// axios.defaults.baseURL ='http://101.43.164.214:45020/' //沈阳和盈
// axios.defaults.baseURL ='http://183.249.224.118:9000/' //嘉兴王江泾公用码头
// axios.defaults.baseURL = 'http://101.43.164.214:11111/' // 百色三标段项目
axios.defaults.baseURL = 'http://101.43.164.214:11111/' // 百色三标段项目
// axios.defaults.baseURL = 'http://125.88.207.86:8088/'//中建四局线上(最新)地址
// axios.defaults.baseURL = 'http://125.88.207.86:8099/'//中建四局(沙湖)线上(最新)地址
// axios.defaults.baseURL = 'http://jxj.zhgdyun.com:15551/'//测试地址

View File

@ -154,7 +154,7 @@
</p>
<p
v-show="
$route.path.indexOf('projectIndex') != -1 &&
($route.path.indexOf('projectIndex') != -1 || $route.path.indexOf('equipmentCenter') != -1) &&
$store.state.userInfo.projectKanban == 0 &&
company != 'agjt'
"

View File

@ -91,15 +91,10 @@
<div class="wrapper" ref="wrapper">
<div class="cont" ref="cont">
<div
v-for="(item, index) in $store.state.menuList"
v-for="(item, index) in filterMenuList"
:key="index"
@click="clickItem(item)"
class="menuInnerBox"
v-if="
company != 'xingxuan' &&
item.target != '_blank' &&
(item.menuName != 'LED大屏显示器' || company != 'nanchang')
"
>
<el-menu-item
class="firstLevelMenu"
@ -199,6 +194,16 @@ export default {
console.log(this.$store.state.menuList,'7778888')
console.log(this.moduleData,'7778888')
},
computed: {
filterMenuList() {
return this.$store.state.menuList.filter(item => {
return this.company != 'xingxuan' &&
item.target != '_blank' &&
!item.menuEquipment &&
(item.menuName != 'LED大屏显示器' || this.company != 'nanchang');
});
}
},
mounted() {
console.log("mounted", this.$route);
this.$nextTick(() => {

View File

@ -360,14 +360,18 @@ export default {
// popover
this.visible = false;
}
const isEquipmentCenter = this.$route.path.indexOf("equipmentCenter") == -1
if (this.workSpaceShow) {
if (this.$route.path.indexOf("supplier") == -1) {
this.$router.push("/workSpace");
isEquipmentCenter ? this.$router.push("/workSpace") : window.open("/#/workSpace", "_self");
// this.$router.push("/workSpace")
} else {
this.$router.push("/supplierIndex");
isEquipmentCenter ? this.$router.push("/supplierIndex") : window.open("/#/supplierIndex", "_self");
// this.$router.push("/supplierIndex");
}
} else {
this.$router.push("/projectIndex");
isEquipmentCenter ? this.$router.push("/projectIndex") : window.open("/#/projectIndex", "_self");
// this.$router.push("/projectIndex");
}
},
filterNode(value, data) {

View File

@ -56,13 +56,13 @@ export default new Vuex.Store({
// FILEURL: 'http://1.13.185.209:9820/image/', // 中科佳成
// UPLOADURL: 'http://8.136.222.164:8808/upload/image/', // 中科安信
// FILEURL: 'http://8.136.222.164:8808/image/', // 中科安信
// UPLOADURL: 'http://101.43.164.214:11111/upload/image/', // 百色
// FILEURL: 'http://101.43.164.214:11111/image/', // 百色
UPLOADURL: 'http://101.43.164.214:11111/upload/image/', // 百色
FILEURL: 'http://101.43.164.214:11111/image/', // 百色
WORKFLOWURL: "http://101.43.164.214:11129/#/workspace/forms", // 百色
// UPLOADURL:'http://182.90.224.237:51234/upload/image/',
// FILEURL:'http://182.90.224.237:51234/image/',
UPLOADURL: "http://http://192.168.34.155:19111/upload/image/", // 洁本地
FILEURL: "http://http://192.168.34.155:19111/image/", //洁本地
// UPLOADURL: "http://http://192.168.34.155:19111/upload/image/", // 洁本地
// FILEURL: "http://http://192.168.34.155:19111/image/", //洁本地
// UPLOADURL: 'http://192.168.34.221:9111/upload/image/', // 郭圣雄本地
// FILEURL: 'http://192.168.34.221:9111/image/', //郭圣雄本地
// WORKFLOWURL: "http://192.168.34.216:88/#/workspace/forms", //jiayu工作流地址(本地)

View File

@ -143,7 +143,7 @@ export default {
if (localStorage.getItem("systemInfo")) {
this.systemInfo = JSON.parse(localStorage.getItem("systemInfo"));
}
document.title = "企业后台";
// document.title = "";
console.log("mounted", this.$route.path);
this.$nextTick(() => {
let timer = setTimeout(() => {

View File

@ -6,33 +6,39 @@
<div class="pageDataContainer">
<vue-scroll>
<div class="projectIndexBox">
<div class="module_title">{{$t('message.homeLayout.existingProducts')}}</div>
<!-- <div class="module_title">{{$t('message.homeLayout.existingProducts')}}</div> -->
<div class="projectIndex">
<div
class="module canclick"
:class="{hovers:item.operation}"
v-for="(item,index) in list"
:key="index"
@click="itemClick(item)"
v-if="item.operation&&item.moduleType==2&&item.moduleEquipment==1"
>
<img v-if="iconType == 1" :src="require('../../assets/images/menu/'+item.moduleIcon+'.png')" class="icon" />
<img
v-if="iconType == 2 && item.bigModuleIcon"
:src="
require('../../assets/images/menu/' +
item.bigModuleIcon +
'.png')
"
style="margin-bottom: 10px"
class="icon"
/>
<div class="title_wrap">
<div class="head1">{{item.moduleName}}</div>
<div class="subhead">{{item.moduleDesc}}</div>
<!-- {{$t('message.projectIndex.moudleName1')}} -->
<template v-for="(item, index) in filterList">
<div style="width: 100%;height: 1px;" v-if="index == 0 || item.operationFlag || (index > 0 && filterList[index - 1].labelName != item.labelName)"></div>
<div class="moduleBox" v-if="item.operation">
<div class="module_title" v-if="index == 0 || item.operationFlag || (index > 0 && filterList[index - 1].labelName != item.labelName)">
{{ item.labelName }}
</div>
<div
class="module canclick"
:class="{hovers:item.operation}"
:key="index"
@click="itemClick(item)"
>
<img v-if="iconType == 1" :src="require('../../assets/images/menu/'+item.moduleIcon+'.png')" class="icon" />
<img
v-if="iconType == 2 && item.bigModuleIcon"
:src="
require('../../assets/images/menu/' +
item.bigModuleIcon +
'.png')
"
style="margin-bottom: 10px"
class="icon"
/>
<div class="title_wrap">
<div class="head1">{{item.moduleName}}</div>
<div class="subhead">{{item.moduleDesc}}</div>
<!-- {{$t('message.projectIndex.moudleName1')}} -->
</div>
</div>
</div>
</div>
</template>
</div>
<div class="module_title" v-if="showNotBuyMoudle">{{$t('message.homeLayout.ununlockedProducts')}}</div>
<div class="projectIndex">
@ -314,6 +320,13 @@ export default {
iconType: '1'
};
},
computed: {
filterList: function () {
return this.list.filter((item) => {
return item.operation && item.moduleType==2 && item.moduleEquipment==1
});
},
},
mounted(){
if(localStorage.getItem('systemInfo')){
this.iconType = JSON.parse(localStorage.getItem('systemInfo')).iconType ? JSON.parse(localStorage.getItem('systemInfo')).iconType:'1'
@ -343,6 +356,7 @@ var arr = this.$store.state.userInfo.menuAuthority.moduleList
if (res.code == 200) {
this.projectName = res.result.projectName;
this.headerName += ' - ' + res.result.projectName
document.title = this.projectName;
this.$store.commit('setProDetail',res.result)
}
});
@ -459,10 +473,8 @@ var arr = this.$store.state.userInfo.menuAuthority.moduleList
width: 100%;
display: flex;
align-items: center;
// justify-content: space-around;
align-items: flex-end;
box-sizing: border-box;
// padding: 0 100px;
flex-wrap: wrap;
margin-bottom: 8px;
.module:nth-child(4n) {
@ -470,14 +482,16 @@ var arr = this.$store.state.userInfo.menuAuthority.moduleList
}
}
.module_title {
margin-left: -10px;
// margin-left: -10px;
margin-left: 0;
border-left: 2px solid #4a8bff;
padding-left: 8px;
margin-bottom: 20px;
font-size: 14px;
font-family: PingFang SC;
}
.module {
width: 320px;
width: 310px;
// height: 124px;
box-sizing: border-box;
// border-radius: 3px;

View File

@ -218,7 +218,7 @@ export default {
if (row.type == 11) {
//
path = "/project/quality/inspectionLedger";
const res = await getQualityNoticeStatusApi({ id: payLoadParams.data.id });
const res = await getQualityNoticeStatusApi({ id: payLoadParams?.data?.id });
if (!res.result || res.result.status == 6) {
this.$message({
type: "warning",
@ -229,7 +229,7 @@ export default {
} else if (row.type == 10) {
//
path = "/project/safeSame/inspectionLedger";
const res = await getNoticeStatusApi({ id: payLoadParams.data.id });
const res = await getNoticeStatusApi({ id: payLoadParams?.data?.id });
if (!res.result || res.result.status == 6) {
this.$message({
type: "warning",

View File

@ -122,7 +122,7 @@ export default {
if(localStorage.getItem('systemInfo')){
this.systemInfo=JSON.parse(localStorage.getItem('systemInfo'))
}
document.title='企业后台'
// document.title=''
console.log('mounted',this.$route.path)
},

View File

@ -191,7 +191,7 @@ export default {
}
},
created() {
document.title = '消息中心'
// document.title = ''
this.selectNowDate()
this.getListData()
},

View File

@ -177,7 +177,7 @@ export default {
},
created() {
// ''
document.title = this.$t('message.messageCenter.msgCenter')
// document.title = this.$t('message.messageCenter.msgCenter')
this.selectNowDate()
this.getListData()
},

View File

@ -147,7 +147,7 @@ export default {
this.loadWeather()
this.enabledProjectV2 = enabledProjectV2
// document.title = this.$store.state.currentProDetail.projectName + this.$t('message.dataBoard.dataBoard')
document.title = this.currentProDetail.projectName + this.$t('message.dataBoard.dataBoard')
// document.title = this.currentProDetail.projectName + this.$t('message.dataBoard.dataBoard')
this.getAllModule()
},
methods: {

View File

@ -96,7 +96,7 @@ export default {
this.getTime()
this.loadWeather()
this.enabledProjectV2=enabledProjectV2
document.title=this.$store.state.currentProDetail.projectName+this.$t('message.dataBoard.dataBoard')
// document.title=this.$store.state.currentProDetail.projectName+this.$t('message.dataBoard.dataBoard')
this.getAllModule()
},
methods:{

View File

@ -465,11 +465,13 @@ export default {
}
.module_title {
margin-left: -10px;
// margin-left: -10px;
margin-left: 0px;
border-left: 2px solid #4a8bff;
padding-left: 8px;
margin-bottom: 20px;
font-size: 14px;
font-family: PingFang SC;
// width: 1360px;
}

View File

@ -188,7 +188,7 @@ export default {
};
},
created() {
document.title='项目总览'
// document.title=''
this.userInfo = this.$store.state.userInfo;
this.getLayerCompany();
},

View File

@ -152,7 +152,7 @@ export default {
if(localStorage.getItem('systemInfo')){
this.systemInfo=JSON.parse(localStorage.getItem('systemInfo'))
}
document.title='企业后台'
// document.title=''
console.log('mounted',this.$route.path)
},

View File

@ -120,7 +120,7 @@ export default {
if(localStorage.getItem('systemInfo')){
this.systemInfo=JSON.parse(localStorage.getItem('systemInfo'))
}
document.title='企业后台'
// document.title=''
console.log('mounted',this.$route.path)
},
methods: {