|
@@ -165,12 +165,11 @@ let cargoOwners = ref({
|
|
|
logoUrl: "",
|
|
logoUrl: "",
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- // 货主公司-物产
|
|
|
|
|
|
|
+ // 通用货主公司
|
|
|
cargo: {
|
|
cargo: {
|
|
|
- cargoOwner: "物产中大化工集团有限公司",
|
|
|
|
|
- cargoOwnerId: 7,
|
|
|
|
|
- logoUrl:
|
|
|
|
|
- "https://6875-huihenduo-2gx127w7f837b584-1255802371.tcb.qcloud.la/web-static/wuchan3.jpg",
|
|
|
|
|
|
|
+ cargoOwner: "汇很多智慧航运研发中心",
|
|
|
|
|
+ cargoOwnerId: 0,
|
|
|
|
|
+ logoUrl: "",
|
|
|
},
|
|
},
|
|
|
// 浙江粮海
|
|
// 浙江粮海
|
|
|
zjlh: {
|
|
zjlh: {
|
|
@@ -188,13 +187,11 @@ function login() {
|
|
|
let env = import.meta.env.VITE_PROJECT_ENV;
|
|
let env = import.meta.env.VITE_PROJECT_ENV;
|
|
|
let postData = {};
|
|
let postData = {};
|
|
|
if (env == "release") {
|
|
if (env == "release") {
|
|
|
- if (baseurl.value.indexOf("cargoowner.huihenduo.cc") == -1) {
|
|
|
|
|
- postData = {
|
|
|
|
|
- cargoOwnerId:
|
|
|
|
|
- cargoOwners.value[currentCompanyLevelTwo.value]?.cargoOwnerId ||
|
|
|
|
|
- cargoOwners.value["wuchan"]?.cargoOwnerId,
|
|
|
|
|
- };
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ postData = {
|
|
|
|
|
+ cargoOwnerId:
|
|
|
|
|
+ cargoOwners.value[currentCompanyLevelTwo.value]?.cargoOwnerId ||
|
|
|
|
|
+ cargoOwners.value["cargo"]?.cargoOwnerId,
|
|
|
|
|
+ };
|
|
|
}
|
|
}
|
|
|
let res = await api.staffLogin({
|
|
let res = await api.staffLogin({
|
|
|
phone,
|
|
phone,
|
|
@@ -234,8 +231,7 @@ function login() {
|
|
|
localStorage.setItem("loginAccountId", loginAccountId);
|
|
localStorage.setItem("loginAccountId", loginAccountId);
|
|
|
localStorage.setItem(
|
|
localStorage.setItem(
|
|
|
"logoUrl",
|
|
"logoUrl",
|
|
|
- cargoOwners.value[currentCompanyLevelTwo.value]?.logoUrl ||
|
|
|
|
|
- cargoOwners.value["wuchan"]?.logoUrl
|
|
|
|
|
|
|
+ cargoOwners.value[currentCompanyLevelTwo.value]?.logoUrl || ""
|
|
|
);
|
|
);
|
|
|
rolePermission = rolePermission || [];
|
|
rolePermission = rolePermission || [];
|
|
|
let arr = [...new Set([...rolePermission])];
|
|
let arr = [...new Set([...rolePermission])];
|
|
@@ -272,7 +268,7 @@ function getLevel2domain() {
|
|
|
baseurl.value = window.location.href;
|
|
baseurl.value = window.location.href;
|
|
|
let index0 = baseurl.value.indexOf("localhost");
|
|
let index0 = baseurl.value.indexOf("localhost");
|
|
|
if (index0 != -1) {
|
|
if (index0 != -1) {
|
|
|
- currentCompanyLevelTwo.value = "wuchan";
|
|
|
|
|
|
|
+ currentCompanyLevelTwo.value = "cargo";
|
|
|
} else {
|
|
} else {
|
|
|
let index1 = baseurl.value.indexOf("http://");
|
|
let index1 = baseurl.value.indexOf("http://");
|
|
|
let index2 = baseurl.value.indexOf(".");
|
|
let index2 = baseurl.value.indexOf(".");
|