flx:修改入场承包商配置

This commit is contained in:
X_Rian 2024-09-21 09:18:50 +08:00
parent 2c76196632
commit e9f5c7b005
2 changed files with 19 additions and 13 deletions

View File

@ -66,21 +66,21 @@ export default new Vuex.Store({
// WORKFLOWURL: "http://192.168.34.138:88/#/workspace/forms", //坤工作流地址(本地)
// WORKFLOWURL: "http://192.168.34.129:88/#/workspace/forms", //罗峰工作流地址(本地)
CONTRACTORURL: process.env.NODE_ENV == "development" ? "http://192.168.34.129:5174/#/contractorApply" : `${window.location.protocol}//${window.location.host}/contractorApply/index.html#/contractorApply`, //罗峰承包商入场地址(本地)
CONTRACTORURL2: process.env.NODE_ENV == "development" ? "http://192.168.34.175:88/#/workspace/contractorApply" : `http://42.180.188.17:19998/#/workspace/contractorApply`, //罗峰承包商入场地址(本地)
CONTRACTORURL2: process.env.NODE_ENV == "development" ? "http://192.168.34.175:88/#/workspace/contractorApply" : `${window.location.protocol}//${window.location.host}/contractorApply/index.html#/workspace/contractorApply`, //罗峰承包商入场地址(本地)
// UPLOADURL:'http://182.90.224.237:51234/upload/image/',// 郭圣雄远程
// FILEURL:'http://182.90.224.237:51234/image/',//郭圣雄远程
// UPLOADURL: 'http://42.180.188.17:11211/upload/image', //测试
// FILEURL: 'http://42.180.188.17:11211/image/', //测试
BASEURL: baseUrl ?
baseUrl : window.location.protocol + "//" + window.location.host + "/", //正式环境
UPLOADURL: window.location.protocol + "//" + window.location.host + "/upload/image", //正式环境
FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境
UPLOADURL: 'http://42.180.188.17:11211/upload/image', //测试
FILEURL: 'http://42.180.188.17:11211/image/', //测试
// BASEURL: baseUrl ?
// baseUrl : window.location.protocol + "//" + window.location.host + "/", //正式环境
// UPLOADURL: window.location.protocol + "//" + window.location.host + "/upload/image", //正式环境
// FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境
// // WORKFLOWURL: 'http://47.93.215.234:19998/#/workspace/forms',//鞍钢平台工作流地址(弃用)
// // WORKFLOWURL: 'http://47.93.215.234:19098/#/workspace/forms',//鞍钢测试平台工作流地址(弃用)
// WORKFLOWURL: 'http://42.180.188.17:19998/#/workspace/forms', //鞍钢平台工作流地址
// WORKFLOWURL: "http://42.180.188.17:19098/#/workspace/forms", //鞍钢测试平台工作流地址
WORKFLOWURL: "http://42.180.188.17:19098/#/workspace/forms", //鞍钢测试平台工作流地址
WORKFLOWURL: "http://jxj.zhgdyun.com:33982/#/workspace/forms", //演示平台工作流
// WORKFLOWURL: "http://jxj.zhgdyun.com:33982/#/workspace/forms", //演示平台工作流
// UPLOADURL: 'http://jxj.zhgdyun.com:18000' + "/upload/image", //包头化工
// FILEURL: 'http://jxj.zhgdyun.com:18000' + "/image/", //包头化工
// WORKFLOWURL: 'http://jxj.zhgdyun.com:18003/#/workspace/forms', //包头化工工作流地址

View File

@ -602,7 +602,7 @@
<div>邀请时间: {{ selectNowDate() }}</div>
<div>点击链接进入承包商入场申请:</div>
<div>
<a :href="inviteCBSUrl" target="_blank">{{ inviteCBSUrl }}</a>
<a :href="inviteCBSUrl1" target="_blank">{{ inviteCBSUrl1 }}</a>
</div>
</div>
<template #footer>
@ -625,7 +625,7 @@ import {
auditQualificationApplyPassApi,
auditQualificationApplyRefuseApi,
} from "@/assets/js/api/supplier.js";
import { getComapnyStatisticsListApi } from "@/assets/js/api/company/project";
import { getComapnyStatisticsListApi, getContractorFlowPageApi } from "@/assets/js/api/company/project";
import { getEnterpriseTypeList } from "@/assets/js/api/laborPerson";
import { getDictionaryItemApi } from "@/assets/js/api/companyDiagram";
import moment from "moment";
@ -710,6 +710,7 @@ export default {
replyData: {},
inviteCBSDialog: false,
inviteCBSUrl: "",
inviteCBSUrl1: "",
companyTypeList: [],
};
},
@ -760,11 +761,16 @@ export default {
//
inviteCBS() {
console.log(this.inviteCBSDialog);
this.inviteCBSUrl = `${this.$store.state.CONTRACTORURL}?sn=${this.$store.state.projectSn}`;
getContractorFlowPageApi({}).then((res) => {
console.log(res, "邀请新承包商入场");
this.inviteCBSUrl1 = `${this.$store.state.CONTRACTORURL2}?token=${res.result}&projectSn=${this.$store.state.projectSn}`;
});
// this.inviteCBSUrl = `${this.$store.state.CONTRACTORURL}?sn=${this.$store.state.projectSn}`;
this.inviteCBSDialog = true;
},
onCopy() {
const resultUrl = `${this.$store.state.userInfo.account}邀请您加入${this.$store.state.currentProDetail.name}\n邀请时间${this.selectNowDate()}\n点击链接进入承包商入场申请:\n${this.inviteCBSUrl}`;
const resultUrl = `${this.$store.state.userInfo.account}邀请您加入${this.$store.state.currentProDetail.name}\n邀请时间${this.selectNowDate()}\n点击链接进入承包商入场申请:\n${this.inviteCBSUrl1}`;
if (navigator.clipboard && window.isSecureContext) {
navigator.clipboard.writeText(resultUrl);
} else {