flx:提交多选 和 新能源智慧基建配置

This commit is contained in:
X_Rian 2024-11-11 14:34:13 +08:00
parent c0465426a2
commit ad83d1accd
5 changed files with 97 additions and 21 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'; //南昌地铁、衢州
@ -18,7 +18,7 @@ var COMPANY = ""; //通用
// COMPANY = 'jlw'//金林湾 // COMPANY = 'jlw'//金林湾
// COMPANY = 'shzj' //上海张江 // COMPANY = 'shzj' //上海张江
// COMPANY = 'shjg'//上海优益(上海建工) // COMPANY = 'shjg'//上海优益(上海建工)
// COMPANY = "agjt"; //鞍钢集团 COMPANY = "agjt"; //鞍钢集团
// COMPANY = 'zkax' //中科安信 // COMPANY = 'zkax' //中科安信
// COMPANY = 'hfqc' //乌丹站舍(合肥启程) // COMPANY = 'hfqc' //乌丹站舍(合肥启程)
// COMPANY = 'mulei' //木垒 // COMPANY = 'mulei' //木垒

View File

@ -179,8 +179,8 @@ if (process.env.NODE_ENV == "development") {
// axios.defaults.baseURL = 'http://192.168.34.221:28889/' //郭圣雄本地 // axios.defaults.baseURL = 'http://192.168.34.221:28889/' //郭圣雄本地
// axios.defaults.baseURL = 'http://192.168.34.221:28890/' //郭圣雄本地 // 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:9111/"; //郭圣雄本地
// axios.defaults.baseURL = "http://192.168.34.221:19112/"; //郭圣雄本地 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://182.90.224.237:51234/' //郭圣雄远程
// axios.defaults.baseURL = 'http://jxj.zhgdyun.com:61212/' //彭洁远程 // axios.defaults.baseURL = 'http://jxj.zhgdyun.com:61212/' //彭洁远程
// axios.defaults.baseURL ='http://101.43.164.214:45020/' //沈阳和盈 // axios.defaults.baseURL ='http://101.43.164.214:45020/' //沈阳和盈

View File

@ -46,6 +46,9 @@ export default new Vuex.Store({
state: { state: {
PAGESIZRS: [10, 20, 30, 50], PAGESIZRS: [10, 20, 30, 50],
// UPLOADURL: "http://121.37.106.37:9809/upload/image/", // 新能源智慧基建
// FILEURL: "http://121.37.106.37:9809/image/", //新能源智慧基建
// WORKFLOWURL: 'http://121.37.106.37:19998/#/workspace/forms', //鞍钢平台工作流地址
// UPLOADURL: "http://222.80.185.228:6090/upload/image/", // 木垒 // UPLOADURL: "http://222.80.185.228:6090/upload/image/", // 木垒
// FILEURL: "http://222.80.185.228:6090/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/', // 四川网城
@ -62,22 +65,22 @@ export default new Vuex.Store({
// 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://101.43.164.214:11129/#/workspace/forms", //jiayu工作流地址(本地) // WORKFLOWURL: "http://101.43.164.214:11129/#/workspace/forms", //jiayu工作流地址(本地)
// WORKFLOWURL: "http://192.168.34.216:88/#/workspace/forms", //jiayu工作流地址(本地) // WORKFLOWURL: "http://192.168.34.216:88/#/workspace/forms", //jiayu工作流地址(本地)
// WORKFLOWURL: "http://192.168.34.138:88/#/workspace/forms", //坤工作流地址(本地) // WORKFLOWURL: "http://192.168.34.138:88/#/workspace/forms", //坤工作流地址(本地)
// WORKFLOWURL: "http://192.168.34.129: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`, //罗峰承包商入场地址(本地) 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" : `${window.location.protocol}//${window.location.host}/contractorApply/index.html#/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/',// 郭圣雄远程 // 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://42.180.188.17:11211/upload/image', //测试 // UPLOADURL: 'http://42.180.188.17:11211/upload/image', //测试
// FILEURL: 'http://42.180.188.17:11211/image/', //测试 // FILEURL: 'http://42.180.188.17:11211/image/', //测试
BASEURL: baseUrl ? // BASEURL: baseUrl ?
baseUrl : window.location.protocol + "//" + window.location.host + "/", //正式环境 // baseUrl : window.location.protocol + "//" + window.location.host + "/", //正式环境
UPLOADURL: window.location.protocol + "//" + window.location.host + "/upload/image", //正式环境 // UPLOADURL: window.location.protocol + "//" + window.location.host + "/upload/image", //正式环境
FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境 // FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境
// // WORKFLOWURL: 'http://47.93.215.234:19998/#/workspace/forms',//鞍钢平台工作流地址(弃用) // // WORKFLOWURL: 'http://47.93.215.234:19998/#/workspace/forms',//鞍钢平台工作流地址(弃用)
// // WORKFLOWURL: 'http://47.93.215.234:19098/#/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:19998/#/workspace/forms', //鞍钢平台工作流地址

View File

@ -320,6 +320,23 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="选择企业" prop="enterpriseId">
<el-select
v-model="addEditForm.enterpriseId"
:placeholder="$t('message.laborDev.allCompany')"
filterable
clearable
@change="selectValFn"
>
<el-option
:label="item.enterpriseName"
:value="item.id"
v-for="(item, index) in enterpriseListData"
:key="index"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item <el-form-item
:label="$t('message.personnelAccess.Labname')" :label="$t('message.personnelAccess.Labname')"
prop="workerId" prop="workerId"
@ -574,7 +591,7 @@ export default {
this.getRoleList(); this.getRoleList();
this.getMachineList(); this.getMachineList();
this.getAllVideo(); this.getAllVideo();
this.loadPersonList(); // this.loadPersonList();
this.getList(); this.getList();
this.getProjectList(); this.getProjectList();
this.getTreeList(); this.getTreeList();
@ -606,6 +623,8 @@ export default {
roleId: "", roleId: "",
userId: "", userId: "",
externalAccount: "", externalAccount: "",
enterpriseId: "",
workerId: "",
}, },
screen: [ screen: [
// {id:0,name:" "}, // {id:0,name:" "},
@ -680,6 +699,13 @@ export default {
trigger: "change", trigger: "change",
}, },
], ],
enterpriseId: [
{
required: true,
message: this.$t("message.personnelPosition.required"),
trigger: "change",
},
],
workerId: [ workerId: [
{ {
required: true, required: true,
@ -780,7 +806,8 @@ export default {
hasUncheckedNodes(treeData) { hasUncheckedNodes(treeData) {
const tree = this.$refs.treeRef; const tree = this.$refs.treeRef;
return treeData.some((node) => { return treeData.some((node) => {
const isUnchecked = !tree.getNode(node).checked && !tree.getNode(node).indeterminate; const isUnchecked =
!tree.getNode(node).checked && !tree.getNode(node).indeterminate;
if (isUnchecked) return true; if (isUnchecked) return true;
if (node.children && node.children.length) { if (node.children && node.children.length) {
return this.hasUncheckedNodes(node.children); return this.hasUncheckedNodes(node.children);
@ -823,10 +850,10 @@ export default {
if (hasUnchecked && hasChecked) { if (hasUnchecked && hasChecked) {
this.checkAll = false; this.checkAll = false;
this.isIndeterminate = true; this.isIndeterminate = true;
} else if(!hasUnchecked && hasChecked){ } else if (!hasUnchecked && hasChecked) {
this.checkAll = true; this.checkAll = true;
this.isIndeterminate = false; this.isIndeterminate = false;
} else if(!hasChecked){ } else if (!hasChecked) {
this.checkAll = false; this.checkAll = false;
this.isIndeterminate = false; this.isIndeterminate = false;
} }
@ -875,6 +902,7 @@ export default {
let findItem = this.personList.find((item) => { let findItem = this.personList.find((item) => {
return item.id == this.addEditForm.workerId; return item.id == this.addEditForm.workerId;
}); });
console.log(findItem);
if (findItem) { if (findItem) {
this.addEditForm.personMail = findItem.personMail; this.addEditForm.personMail = findItem.personMail;
} else { } else {
@ -1138,9 +1166,14 @@ export default {
} }
); );
}, },
loadPersonList() { selectValFn() {
this.loadPersonList(this.addEditForm.enterpriseId);
},
loadPersonList(val) {
console.log("val", val);
getLaborManagementInfoListApi({ getLaborManagementInfoListApi({
projectSn: this.$store.state.projectSn, projectSn: this.$store.state.projectSn,
userEnterpriseId: val,
}).then((res) => { }).then((res) => {
this.personList = res.result; this.personList = res.result;
}); });
@ -1168,6 +1201,7 @@ export default {
add() { add() {
this.handle("add", true); this.handle("add", true);
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['addEditForm'].resetFields();
this.selectTreeData = {}; this.selectTreeData = {};
this.selectVal = ""; this.selectVal = "";
this.defaultExpandArr = []; this.defaultExpandArr = [];
@ -1194,7 +1228,7 @@ export default {
this.selectVal = ""; this.selectVal = "";
this.defaultExpandArr = []; this.defaultExpandArr = [];
} }
this.addEditForm.roleId = obj.roleId.split(','); this.addEditForm.roleId = obj.roleId.split(",");
this.handle("edit", true); this.handle("edit", true);
this.$nextTick(() => { this.$nextTick(() => {
if (this.addEditForm.xzProjectOrgObj) { if (this.addEditForm.xzProjectOrgObj) {
@ -1283,7 +1317,16 @@ export default {
}); });
}, },
close() { close() {
this.addEditForm = {}; this.addEditForm = {
account: "",
password: "",
xzProjectOrgId: "",
roleId: "",
userId: "",
externalAccount: "",
enterpriseId: "",
workerId: "",
};
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.addEditForm.clearValidate(); this.$refs.addEditForm.clearValidate();
}); });

View File

@ -25,7 +25,25 @@
</div> </div>
</div> </div>
</div> </div>
<div class="echarts" ref="personnelType"></div> <el-select
v-model="searchForm.enterpriseId"
class="headSelect"
size="mini"
:placeholder="$t('message.laborDev.allCompany')"
filterable
clearable
@change="searchFormChange"
>
<el-option
:label="item.enterpriseName"
:value="item.id"
v-for="(item, index) in enterpriseListData"
:key="index"
>
</el-option>
</el-select>
<div class="echarts headSelectEcharts" ref="personnelType"></div>
</div> </div>
<div class="manager_wrap whiteBlock"> <div class="manager_wrap whiteBlock">
<div class="title_wrap"> <div class="title_wrap">
@ -558,6 +576,9 @@ export default {
teamListData: [], teamListData: [],
departmentListData: [], departmentListData: [],
safeData: {}, safeData: {},
searchForm: {
enterpriseId: "",
},
}; };
}, },
mounted() { mounted() {
@ -899,11 +920,14 @@ export default {
that.safeWorkList = res.result.list || []; that.safeWorkList = res.result.list || [];
}); });
}, },
searchFormChange(){
this.selectPersonTypeAndEduStatistics();
},
// //
selectPersonTypeAndEduStatistics() { selectPersonTypeAndEduStatistics() {
getPersonTypeAndEduStatisticsApi({ getPersonTypeAndEduStatisticsApi({
projectSn: this.$store.state.projectSn, projectSn: this.$store.state.projectSn,
userEnterpriseId: this.$store.state.userInfo.userEnterpriseId, userEnterpriseId: this.searchForm.enterpriseId ? this.searchForm.enterpriseId : this.$store.state.userInfo.userEnterpriseId,
}).then((res) => { }).then((res) => {
console.log(res); console.log(res);
this.totalPersonNum = res.result.personType.toaltPerson.totalPerson; // this.totalPersonNum = res.result.personType.toaltPerson.totalPerson; //
@ -1587,6 +1611,9 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.headSelect {
margin-left: 20px;
}
.personnelOverview { .personnelOverview {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -1682,6 +1709,9 @@ export default {
width: 100%; width: 100%;
height: calc(100% - 50px); height: calc(100% - 50px);
} }
.headSelectEcharts {
height: calc(100% - 80px);
}
.scroll { .scroll {
width: 100%; width: 100%;
padding: 15px 0 0; padding: 15px 0 0;