木垒配置、修复bug

This commit is contained in:
jiayu 2024-09-05 17:11:30 +08:00
parent 0e80445d8b
commit d961c59029
7 changed files with 126 additions and 20 deletions

View File

@ -1,5 +1,5 @@
//-------项目配置标识------- //-------项目配置标识-------
var COMPANY = ""; //通用 // var COMPANY = ""; //通用
// var COMPANY='zhongjian'; //中建,和沃尔对接的插件版用这个企业 // var COMPANY='zhongjian'; //中建,和沃尔对接的插件版用这个企业
// var COMPANY='hezhan'; //合展-宿迁 // var COMPANY='hezhan'; //合展-宿迁
// var COMPANY='nanchang'; //南昌地铁、衢州 // var COMPANY='nanchang'; //南昌地铁、衢州
@ -21,7 +21,7 @@ var COMPANY = ""; //通用
// COMPANY = "agjt"; //鞍钢集团 // COMPANY = "agjt"; //鞍钢集团
// COMPANY = 'zkax' //中科安信 // COMPANY = 'zkax' //中科安信
// COMPANY = 'hfqc' //乌丹站舍(合肥启程) // COMPANY = 'hfqc' //乌丹站舍(合肥启程)
// COMPANY = 'mulei' //木垒 COMPANY = 'mulei' //木垒
var PROJECT = { var PROJECT = {
local_test: "common", // 普通版 local_test: "common", // 普通版

View File

@ -195,6 +195,7 @@ if (process.env.NODE_ENV == "development") {
// axios.defaults.baseURL = 'http://192.168.110.220:9809/' //同济正式地址 // axios.defaults.baseURL = 'http://192.168.110.220:9809/' //同济正式地址
// axios.defaults.baseURL = 'http://192.168.100.4:9809/' //乌丹(合肥启程)新正式地址 // axios.defaults.baseURL = 'http://192.168.100.4:9809/' //乌丹(合肥启程)新正式地址
// axios.defaults.baseURL = "http://jxj.zhgdyun.com:18000"; //包头化工 // axios.defaults.baseURL = "http://jxj.zhgdyun.com:18000"; //包头化工
// axios.defaults.baseURL = "http://222.80.185.228:6090"; //木垒
} else if (process.env.NODE_ENV == "debug") { } else if (process.env.NODE_ENV == "debug") {
axios.defaults.baseURL = "https://www.ceshi.com"; axios.defaults.baseURL = "https://www.ceshi.com";
} else if (process.env.NODE_ENV == "production") { } else if (process.env.NODE_ENV == "production") {

View File

@ -148,7 +148,7 @@
<div <div
class="width_100" class="width_100"
@click="goto3" @click="goto3"
v-if="$store.state.userInfo.systemLogoConfig.showFileCenter == 1" v-if="$store.state.userInfo.systemLogoConfig?.showFileCenter == 1"
:title="dataCenter" :title="dataCenter"
> >
<!-- <img src="@/assets/images/zlzx.png" width="15px" height="15px" /> --> <!-- <img src="@/assets/images/zlzx.png" width="15px" height="15px" /> -->

View File

@ -46,8 +46,8 @@ export default new Vuex.Store({
state: { state: {
PAGESIZRS: [10, 20, 30, 50], PAGESIZRS: [10, 20, 30, 50],
// UPLOADURL: "http://10.11.13.202:6080/upload/image/", // 木垒 UPLOADURL: "http://222.80.185.228:6090/upload/image/", // 木垒
// FILEURL: "http://10.11.13.202:6080/image/", //木垒 FILEURL: "http://222.80.185.228:6090/image/", //木垒
// UPLOADURL: 'http://192.168.9.249:9820/upload/image/', // 四川网城 // UPLOADURL: 'http://192.168.9.249:9820/upload/image/', // 四川网城
// FILEURL: ' http://192.168.9.249:9820/image/', // 四川网城 // FILEURL: ' http://192.168.9.249:9820/image/', // 四川网城
// UPLOADURL: 'http://192.168.9.249:9809/upload/image/', // 同济 // UPLOADURL: 'http://192.168.9.249:9809/upload/image/', // 同济
@ -60,8 +60,8 @@ export default new Vuex.Store({
// FILEURL: ' http://101.43.164.214:11111/image/', // 百色 // FILEURL: ' http://101.43.164.214:11111/image/', // 百色
// UPLOADURL:'http://182.90.224.237:51234/upload/image/', // UPLOADURL:'http://182.90.224.237:51234/upload/image/',
// FILEURL:'http://182.90.224.237:51234/image/', // FILEURL:'http://182.90.224.237:51234/image/',
UPLOADURL: "http://http://192.168.34.155:19111/upload/image/", // 洁本地 // UPLOADURL: "http://http://192.168.34.155:19111/upload/image/", // 洁本地
FILEURL: "http://http://192.168.34.155:19111/image/", //洁本地 // FILEURL: "http://http://192.168.34.155:19111/image/", //洁本地
// UPLOADURL: 'http://192.168.34.221:9111/upload/image/', // 郭圣雄本地 // UPLOADURL: 'http://192.168.34.221:9111/upload/image/', // 郭圣雄本地
// FILEURL: 'http://192.168.34.221:9111/image/', //郭圣雄本地 // FILEURL: 'http://192.168.34.221:9111/image/', //郭圣雄本地
WORKFLOWURL: "http://192.168.34.216:88/#/workspace/forms", //jiayu工作流地址(本地) WORKFLOWURL: "http://192.168.34.216:88/#/workspace/forms", //jiayu工作流地址(本地)

View File

@ -310,7 +310,7 @@ export default {
grid: { grid: {
top: 40, top: 40,
left: 0, left: 0,
bottom: 20, bottom: 45,
right: 20, right: 20,
containLabel: true, containLabel: true,
}, },
@ -347,10 +347,36 @@ export default {
axisLabel: { axisLabel: {
color: "#9fa2ad", color: "#9fa2ad",
fontSize: 12, fontSize: 12,
}, interval:0,
// rotate: -10 //
triggerEvent: true,
formatter: function(value) {
// 4
if (value.length > 4) {
return value.slice(0, 4) + '...';
} else {
return value;
}
}
}
},
],
dataZoom: [
{
id: 'dataZoomX',
type: 'inside',
xAxisIndex: [0],
filterMode: 'filter',
height: 6,
},
{
id: 'dataZoomY',
type: 'slider',
xAxisIndex: [0],
filterMode: 'empty',
height: 6,
}, },
], ],
yAxis: { yAxis: {
name: that.$t("message.firmEnviron.realTimeAlarmDistribution"), name: that.$t("message.firmEnviron.realTimeAlarmDistribution"),
type: "value", type: "value",
@ -407,7 +433,7 @@ export default {
grid: { grid: {
top: 40, top: 40,
left: 0, left: 0,
bottom: 20, bottom: 45,
right: 20, right: 20,
containLabel: true, containLabel: true,
}, },
@ -444,7 +470,34 @@ export default {
axisLabel: { axisLabel: {
color: "#9fa2ad", color: "#9fa2ad",
fontSize: 12, fontSize: 12,
}, interval:0,
// rotate: -10 //
triggerEvent: true,
formatter: function(value) {
// 4
if (value.length > 4) {
return value.slice(0, 4) + '...';
} else {
return value;
}
}
}
},
],
dataZoom: [
{
id: 'dataZoomX',
type: 'inside',
xAxisIndex: [0],
filterMode: 'filter',
height: 6,
},
{
id: 'dataZoomY',
type: 'slider',
xAxisIndex: [0],
filterMode: 'empty',
height: 6,
}, },
], ],
yAxis: { yAxis: {
@ -499,7 +552,7 @@ export default {
grid: { grid: {
top: 30, top: 30,
left: 0, left: 0,
bottom: 0, bottom: 45,
right: 20, right: 20,
containLabel: true, containLabel: true,
}, },
@ -524,7 +577,34 @@ export default {
axisLabel: { axisLabel: {
color: "#9fa2ad", color: "#9fa2ad",
fontSize: 12, fontSize: 12,
}, interval:0,
// rotate: -10 //
triggerEvent: true,
formatter: function(value) {
// 4
if (value.length > 4) {
return value.slice(0, 4) + '...';
} else {
return value;
}
}
}
},
],
dataZoom: [
{
id: 'dataZoomX',
type: 'inside',
xAxisIndex: [0],
filterMode: 'filter',
height: 6,
},
{
id: 'dataZoomY',
type: 'slider',
xAxisIndex: [0],
filterMode: 'empty',
height: 6,
}, },
], ],
yAxis: { yAxis: {

View File

@ -265,8 +265,8 @@
<div class="value" style="color: #f27373"> <div class="value" style="color: #f27373">
{{ {{
( (
(statictisData.workercount.blacklistPersonTotal / (statictisData.workercount.blacklistPersonTotal || 0 /
statictisData.workercount.totalPerson) * statictisData.workercount.totalPerson || 0) *
100 100
).toFixed(2) ).toFixed(2)
}}% }}%

View File

@ -586,7 +586,7 @@ export default {
// debugger; // debugger;
this.$store.commit("setUid", true); this.$store.commit("setUid", true);
// let str = window.location.href.split("UID=")[1]; // let str = window.location.href.split("UID=")[1];
let uid = window.location.href.split("UID=")[1]; let uid = this.GetParam("UID");
// let uid = str.substring(0, str.length - 7); // let uid = str.substring(0, str.length - 7);
let data = { let data = {
uid, uid,
@ -601,12 +601,13 @@ export default {
} }
}); });
} else if (window.location.href.indexOf("token") != -1) { } else if (window.location.href.indexOf("token") != -1) {
const newToken = window.location.href.split("token=")[1]; const newToken = this.GetParam("token");
let projectSn = this.GetParam("projectSn");
const data = { token: newToken }; const data = { token: newToken };
jumpLargeUserInfoApi(data).then((res) => { jumpLargeUserInfoApi(data).then((res) => {
if (res.code == 200) { if (res.code == 200) {
// //
this.parseLoginData(res.result, true); this.parseLoginData(res.result, true, projectSn);
} else { } else {
this.$message.error(res.message); this.$message.error(res.message);
} }
@ -691,6 +692,24 @@ export default {
// } // }
// }, // },
methods: { methods: {
GetParam(paraName) {
var url = document.location.toString();
console.log(url);
var arrObj = url.split("?");
if (arrObj.length > 1) {
var arrPara = arrObj[1].split("&");
var arr;
for (var i = 0; i < arrPara.length; i++) {
arr = arrPara[i].split("=");
if (arr != null && arr[0] == paraName) {
return arr[1];
}
}
return "";
} else {
return "";
}
},
// //
goLogin() { goLogin() {
this.loginType = this.registerType; this.loginType = this.registerType;
@ -1076,7 +1095,7 @@ export default {
}); });
}); });
}, },
parseLoginData(data, isOutside) { parseLoginData(data, isOutside, projectSn) {
// debugger; // debugger;
if (this.projectType == "zjsj") { if (this.projectType == "zjsj") {
this.$store.commit("setProjectSn", data.sn); this.$store.commit("setProjectSn", data.sn);
@ -1094,6 +1113,12 @@ export default {
var moduleList = data.menuAuthority.moduleList var moduleList = data.menuAuthority.moduleList
? data.menuAuthority.moduleList ? data.menuAuthority.moduleList
: []; : [];
// ,
if(projectSn) {
console.info('进来了')
this.$store.commit("setProjectSn", projectSn);
return this.$router.push('/project/dataBoard/index')
}
var companyModule = []; var companyModule = [];
var projectModule = []; var projectModule = [];
if ( if (