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

This commit is contained in:
Rain 2024-11-15 15:58:01 +08:00
commit 674c16f7d2
6 changed files with 1062 additions and 236 deletions

1191
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -46,6 +46,12 @@ export default new Vuex.Store({
state: { state: {
PAGESIZRS: [10, 20, 30, 50], PAGESIZRS: [10, 20, 30, 50],
// UPLOADURL: 'http://192.168.0.12:9809/upload/image/', // 国维科技
// FILEURL: ' http://192.168.0.12:9809/image/', // 国维科技
// WORKFLOWURL: 'http://192.168.0.12:19998/#/workspace/forms', //国维科技工作流地址
// 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: 'https://zm.zhgdyun.com:11111/upload/image/', // 木垒-标准版 // UPLOADURL: 'https://zm.zhgdyun.com:11111/upload/image/', // 木垒-标准版
// FILEURL: 'https://zm.zhgdyun.com:11111/image/', // 木垒-标准版 // FILEURL: 'https://zm.zhgdyun.com:11111/image/', // 木垒-标准版
// WORKFLOWURL: "https://zm.zhgdyun.com:15000/#/workspace/forms", // 木垒-工作流-标准版 // WORKFLOWURL: "https://zm.zhgdyun.com:15000/#/workspace/forms", // 木垒-工作流-标准版
@ -59,6 +65,8 @@ export default new Vuex.Store({
// FILEURL: 'http://1.13.185.209:9820/image/', // 中科佳成 // FILEURL: 'http://1.13.185.209:9820/image/', // 中科佳成
// UPLOADURL: 'http://8.136.222.164:8808/upload/image/', // 中科安信 // UPLOADURL: 'http://8.136.222.164:8808/upload/image/', // 中科安信
// FILEURL: 'http://8.136.222.164:8808/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/', // 百色 UPLOADURL: 'http://101.43.164.214:11111/upload/image/', // 百色
FILEURL: 'http://101.43.164.214:11111/image/', // 百色 FILEURL: 'http://101.43.164.214:11111/image/', // 百色
WORKFLOWURL: "http://101.43.164.214:11129/#/workspace/forms", // 百色 WORKFLOWURL: "http://101.43.164.214:11129/#/workspace/forms", // 百色
@ -68,6 +76,7 @@ export default new Vuex.Store({
// 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://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", //罗峰工作流地址(本地)

View File

@ -1510,6 +1510,7 @@ export default {
// //
treeClick(data) { treeClick(data) {
this.selectVal = data.groupName; this.selectVal = data.groupName;
delete data.parentObj;
this.selectTreeData = data; this.selectTreeData = data;
this.addGroupForm.parentId = data.id; this.addGroupForm.parentId = data.id;
}, },

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() {
@ -728,7 +749,7 @@ export default {
// end: 50, // // end: 50, //
height: 10, // height: 10, //
startValue: xData.length - 1, startValue: xData.length - 1,
endValue: xData.length - 9, endValue: xData.length - 9,
bottom: 5, // bottom: 5, //
showDetail: false, // showDetail: false, //
showDataShadow: false, // showDataShadow: false, //
@ -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;