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

@ -392,4 +392,4 @@ function startLoading() {
function endLoading() {
loading.close();
}
}

View File

@ -46,6 +46,12 @@ export default new Vuex.Store({
state: {
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/', // 木垒-标准版
// FILEURL: 'https://zm.zhgdyun.com:11111/image/', // 木垒-标准版
// 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/', // 中科佳成
// UPLOADURL: 'http://8.136.222.164:8808/upload/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/', // 百色
FILEURL: 'http://101.43.164.214:11111/image/', // 百色
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/", //洁本地
// UPLOADURL: 'http://192.168.34.221:9111/upload/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.138:88/#/workspace/forms", //坤工作流地址(本地)
// WORKFLOWURL: "http://192.168.34.129:88/#/workspace/forms", //罗峰工作流地址(本地)
@ -401,4 +410,4 @@ export default new Vuex.Store({
// sideMenu,
// imgReview
},
});
});

View File

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

View File

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

View File

@ -25,7 +25,25 @@
</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 class="manager_wrap whiteBlock">
<div class="title_wrap">
@ -558,6 +576,9 @@ export default {
teamListData: [],
departmentListData: [],
safeData: {},
searchForm: {
enterpriseId: "",
},
};
},
mounted() {
@ -728,7 +749,7 @@ export default {
// end: 50, //
height: 10, //
startValue: xData.length - 1,
endValue: xData.length - 9,
endValue: xData.length - 9,
bottom: 5, //
showDetail: false, //
showDataShadow: false, //
@ -899,11 +920,14 @@ export default {
that.safeWorkList = res.result.list || [];
});
},
searchFormChange(){
this.selectPersonTypeAndEduStatistics();
},
//
selectPersonTypeAndEduStatistics() {
getPersonTypeAndEduStatisticsApi({
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) => {
console.log(res);
this.totalPersonNum = res.result.personType.toaltPerson.totalPerson; //
@ -1587,6 +1611,9 @@ export default {
display: flex;
align-items: center;
}
.headSelect {
margin-left: 20px;
}
.personnelOverview {
width: 100%;
height: 100%;
@ -1682,6 +1709,9 @@ export default {
width: 100%;
height: calc(100% - 50px);
}
.headSelectEcharts {
height: calc(100% - 80px);
}
.scroll {
width: 100%;
padding: 15px 0 0;