Merge branch 'master' of http://139.9.66.234:18023/dhp/zhgdyun into dev-xiaomi
This commit is contained in:
commit
461a82ad2d
@ -129,7 +129,7 @@ export const safeEducationQuestionListApi = data => post('xmgl/safeEducationQues
|
|||||||
export const safeEducationQuestionAddApi = data => post('xmgl/safeEducationQuestion/addQuestionCourse', data);
|
export const safeEducationQuestionAddApi = data => post('xmgl/safeEducationQuestion/addQuestionCourse', data);
|
||||||
export const safeEducationQuestionDetailApi = data => post('xmgl/safeEducationQuestion/selectSafeEducationQuestionInfo', data);
|
export const safeEducationQuestionDetailApi = data => post('xmgl/safeEducationQuestion/selectSafeEducationQuestionInfo', data);
|
||||||
export const selectWorkerEducationPageApi = data => post('xmgl/safeEducationQuestion/selectWorkerEducationPage', data);
|
export const selectWorkerEducationPageApi = data => post('xmgl/safeEducationQuestion/selectWorkerEducationPage', data);
|
||||||
|
export const exportExcelWorkerEducationApi = data => post('xmgl/safeEducationQuestion/exportExcelWorkerEducation', data);
|
||||||
export const selectCompanyEducationCoursePageApi = data => post('xmgl/safeEducationQuestion/selectCompanyEducationCoursePage', data);
|
export const selectCompanyEducationCoursePageApi = data => post('xmgl/safeEducationQuestion/selectCompanyEducationCoursePage', data);
|
||||||
|
|
||||||
//安全教育 --- 课程分类
|
//安全教育 --- 课程分类
|
||||||
|
|||||||
@ -762,6 +762,7 @@ export default {
|
|||||||
sn: sn,
|
sn: sn,
|
||||||
projectName: this.formInline.projectName,
|
projectName: this.formInline.projectName,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
console.log('培训人数',res)
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
this.statictisData = res.result;
|
this.statictisData = res.result;
|
||||||
console.log(this.statictisData, '列表数据')
|
console.log(this.statictisData, '列表数据')
|
||||||
|
|||||||
@ -636,7 +636,7 @@ export default {
|
|||||||
btnList:[],
|
btnList:[],
|
||||||
moudleTypeArr:['企业模块','项目后台','企业后台','项目看板'],
|
moudleTypeArr:['企业模块','项目后台','企业后台','项目看板'],
|
||||||
searchModuleType: 2,
|
searchModuleType: 2,
|
||||||
styleTypeArr:['普通项目级版本','精益建造版本'],
|
styleTypeArr:['普通项目级版本','精益建造版本','衢州版'],
|
||||||
searchStyleType:1,
|
searchStyleType:1,
|
||||||
allMenuList:[]
|
allMenuList:[]
|
||||||
};
|
};
|
||||||
@ -794,9 +794,12 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
let params = this.addEditForm;
|
let params = this.addEditForm;
|
||||||
params.styleType=this.searchStyleType
|
params.styleType=this.searchStyleType
|
||||||
|
console.log("params", params);
|
||||||
console.log("添加信息", this.addEditForm);
|
console.log("添加信息", this.addEditForm);
|
||||||
if (this.Popup.type === "add") {
|
if (this.Popup.type === "add") {
|
||||||
|
console.log('添加成功的参数',params)
|
||||||
addModuleApi(params).then((result) => {
|
addModuleApi(params).then((result) => {
|
||||||
|
console.log('添加成功的返回值',result)
|
||||||
if (result.success) {
|
if (result.success) {
|
||||||
this.$message.success(result.message);
|
this.$message.success(result.message);
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|||||||
@ -38,7 +38,7 @@
|
|||||||
value="">
|
value="">
|
||||||
</el-option>
|
</el-option>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in $t('message.messageCenter.options')"
|
v-for="item in options"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value">
|
:value="item.value">
|
||||||
@ -130,54 +130,61 @@ export default {
|
|||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
tableData: [],
|
tableData: [],
|
||||||
options:[{
|
options:[{
|
||||||
label: "高空火警",
|
|
||||||
value: "8"
|
|
||||||
},{
|
|
||||||
label: "考勤提醒",
|
|
||||||
value: "1"
|
|
||||||
},{
|
|
||||||
label: "防疫人员通知",
|
label: "防疫人员通知",
|
||||||
value: "2"
|
value: "2"
|
||||||
},{
|
|
||||||
label: "防疫车辆通知",
|
|
||||||
value: "3"
|
|
||||||
},{
|
},{
|
||||||
label: "访客通知",
|
label: "访客通知",
|
||||||
value: "16"
|
value: "16"
|
||||||
},{
|
|
||||||
label: "混凝土监测",
|
|
||||||
value: "4"
|
|
||||||
},{
|
|
||||||
label: "卸料平台",
|
|
||||||
value: "5"
|
|
||||||
},{
|
|
||||||
label: "配电箱",
|
|
||||||
value: "6"
|
|
||||||
},{
|
|
||||||
label: "扬尘",
|
|
||||||
value: "7"
|
|
||||||
},{
|
|
||||||
label: "标养室",
|
|
||||||
value: "9"
|
|
||||||
},{
|
|
||||||
label: "安全检查",
|
|
||||||
value: "10"
|
|
||||||
},{
|
|
||||||
label: "质量检查",
|
|
||||||
value: "11"
|
|
||||||
},{
|
|
||||||
label: "塔吊",
|
|
||||||
value: "12"
|
|
||||||
},{
|
|
||||||
label: "升降机",
|
|
||||||
value: "13"
|
|
||||||
},{
|
|
||||||
label: "电表",
|
|
||||||
value: "14"
|
|
||||||
},{
|
|
||||||
label: "水表",
|
|
||||||
value: "15"
|
|
||||||
}],
|
}],
|
||||||
|
// options:[{
|
||||||
|
// label: "高空火警",
|
||||||
|
// value: "8"
|
||||||
|
// },{
|
||||||
|
// label: "考勤提醒",
|
||||||
|
// value: "1"
|
||||||
|
// },{
|
||||||
|
// label: "防疫人员通知",
|
||||||
|
// value: "2"
|
||||||
|
// },{
|
||||||
|
// label: "防疫车辆通知",
|
||||||
|
// value: "3"
|
||||||
|
// },{
|
||||||
|
// label: "访客通知",
|
||||||
|
// value: "16"
|
||||||
|
// },{
|
||||||
|
// label: "混凝土监测",
|
||||||
|
// value: "4"
|
||||||
|
// },{
|
||||||
|
// label: "卸料平台",
|
||||||
|
// value: "5"
|
||||||
|
// },{
|
||||||
|
// label: "配电箱",
|
||||||
|
// value: "6"
|
||||||
|
// },{
|
||||||
|
// label: "扬尘",
|
||||||
|
// value: "7"
|
||||||
|
// },{
|
||||||
|
// label: "标养室",
|
||||||
|
// value: "9"
|
||||||
|
// },{
|
||||||
|
// label: "安全检查",
|
||||||
|
// value: "10"
|
||||||
|
// },{
|
||||||
|
// label: "质量检查",
|
||||||
|
// value: "11"
|
||||||
|
// },{
|
||||||
|
// label: "塔吊",
|
||||||
|
// value: "12"
|
||||||
|
// },{
|
||||||
|
// label: "升降机",
|
||||||
|
// value: "13"
|
||||||
|
// },{
|
||||||
|
// label: "电表",
|
||||||
|
// value: "14"
|
||||||
|
// },{
|
||||||
|
// label: "水表",
|
||||||
|
// value: "15"
|
||||||
|
// }],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -281,7 +288,7 @@ export default {
|
|||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100px;
|
height: 200px;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@ -116,7 +116,6 @@ import {
|
|||||||
import {
|
import {
|
||||||
getDockingUrlApi
|
getDockingUrlApi
|
||||||
} from "@/assets/js/api/configManage";
|
} from "@/assets/js/api/configManage";
|
||||||
import Axios from "axios";
|
|
||||||
export default {
|
export default {
|
||||||
name: "projectIndex",
|
name: "projectIndex",
|
||||||
components: { vhead },
|
components: { vhead },
|
||||||
|
|||||||
@ -172,14 +172,19 @@
|
|||||||
<div class="dialog_content">
|
<div class="dialog_content">
|
||||||
<!-- default-expand-all -->
|
<!-- default-expand-all -->
|
||||||
<!-- <div>项目模块</div> -->
|
<!-- <div>项目模块</div> -->
|
||||||
<div>
|
<!-- <div>
|
||||||
<el-checkbox v-model="checkAll" @change="selectAll"></el-checkbox>全选
|
<el-checkbox
|
||||||
</div>
|
v-model="checkAll"
|
||||||
|
@change="selectAll">全选</el-checkbox>
|
||||||
|
</div> -->
|
||||||
|
<!-- :props="props" -->
|
||||||
<el-tree ref="tree"
|
<el-tree ref="tree"
|
||||||
|
v-bind="myTree"
|
||||||
node-key="authorityId"
|
node-key="authorityId"
|
||||||
:props="props"
|
|
||||||
:data="projectMenus"
|
:data="projectMenus"
|
||||||
show-checkbox
|
show-checkbox
|
||||||
|
:default-expand-all="isExpand"
|
||||||
|
:filter-node-method="filterNode"
|
||||||
@check-change="handleCheckChange"
|
@check-change="handleCheckChange"
|
||||||
>
|
>
|
||||||
<span class="custom-tree-node" slot-scope="{ node, data }">
|
<span class="custom-tree-node" slot-scope="{ node, data }">
|
||||||
@ -236,7 +241,15 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
myTree:{
|
||||||
|
data:[],
|
||||||
|
props: {
|
||||||
|
label: "name",
|
||||||
|
children: "menuList",
|
||||||
|
},
|
||||||
|
treeAllChildNode: [], // 数所有的可选择的子节点
|
||||||
checkAll:false, //是否全选
|
checkAll:false, //是否全选
|
||||||
|
},
|
||||||
addEditForm: {
|
addEditForm: {
|
||||||
roleName: "",
|
roleName: "",
|
||||||
roleDesc: "",
|
roleDesc: "",
|
||||||
@ -271,10 +284,6 @@ export default {
|
|||||||
// total: 0, //总条数
|
// total: 0, //总条数
|
||||||
// },
|
// },
|
||||||
// count: 0,
|
// count: 0,
|
||||||
props: {
|
|
||||||
label: "name",
|
|
||||||
children: "menuList",
|
|
||||||
},
|
|
||||||
projectMenus:[],
|
projectMenus:[],
|
||||||
selectRoleMenus:[],
|
selectRoleMenus:[],
|
||||||
allOperateList:[],
|
allOperateList:[],
|
||||||
@ -498,14 +507,15 @@ export default {
|
|||||||
// console.log('选择',this.$refs.tree.getCheckedKeys());
|
// console.log('选择',this.$refs.tree.getCheckedKeys());
|
||||||
},
|
},
|
||||||
// 全选反选
|
// 全选反选
|
||||||
selectAll(){
|
// selectAll(){
|
||||||
// if(this.checkAll){
|
// if(this.checkAll){
|
||||||
// // console.log('111111',this.$refs)
|
// // for(let i = 0;)
|
||||||
|
// console.log('111111',this.$refs)
|
||||||
// this.$refs.tree.setCheckedNodes(this.projectMenus);
|
// this.$refs.tree.setCheckedNodes(this.projectMenus);
|
||||||
// }else{
|
// }else{
|
||||||
// this.$refs.tree.setCheckedKeys([])
|
// this.$refs.tree.setCheckedKeys([])
|
||||||
// }
|
// }
|
||||||
},
|
// },
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -496,7 +496,7 @@ export default {
|
|||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
visitName: this.visitName,
|
visitName: this.visitName,
|
||||||
// enterDate:this.enterDate,
|
// enterDate:this.enterDate,
|
||||||
// userEnterpriseId: this.$store.state.userInfo.userEnterpriseId,
|
userId: this.$store.state.userInfo.userId,
|
||||||
codeState:this.codeState
|
codeState:this.codeState
|
||||||
};
|
};
|
||||||
visitorManageRecordApi(data).then((res) => {
|
visitorManageRecordApi(data).then((res) => {
|
||||||
|
|||||||
@ -260,7 +260,7 @@
|
|||||||
<el-form-item :label="$t('message.laborMange.workingState')">
|
<el-form-item :label="$t('message.laborMange.workingState')">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="tableParameter.inserviceType"
|
v-model="tableParameter.inserviceType"
|
||||||
style="width: 120px"
|
style="width: 100px"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
:label="$t('message.laborMange.all')"
|
:label="$t('message.laborMange.all')"
|
||||||
@ -282,7 +282,7 @@
|
|||||||
>
|
>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="tableParameter.codeState"
|
v-model="tableParameter.codeState"
|
||||||
style="width: 120px"
|
style="width: 80px"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
:label="$t('message.laborMange.all')"
|
:label="$t('message.laborMange.all')"
|
||||||
@ -308,14 +308,14 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('message.laborMange.compellation')">
|
<el-form-item :label="$t('message.laborMange.compellation')">
|
||||||
<el-input
|
<el-input
|
||||||
style="width: 120px"
|
style="width: 100px"
|
||||||
v-model="tableParameter.workerName"
|
v-model="tableParameter.workerName"
|
||||||
:placeholder="$t('message.laborMange.placeholder2')"
|
:placeholder="$t('message.laborMange.placeholder2')"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('message.laborMange.IdNumber')">
|
<el-form-item :label="$t('message.laborMange.IdNumber')">
|
||||||
<el-input
|
<el-input
|
||||||
style="width: 120px"
|
style="width: 80px"
|
||||||
v-model="tableParameter.idCard"
|
v-model="tableParameter.idCard"
|
||||||
:placeholder="$t('message.laborMange.placeholder2')"
|
:placeholder="$t('message.laborMange.placeholder2')"
|
||||||
></el-input>
|
></el-input>
|
||||||
@ -452,7 +452,7 @@
|
|||||||
<img src="@/assets/images/icon-edit.png" style="margin-right:5px" />
|
<img src="@/assets/images/icon-edit.png" style="margin-right:5px" />
|
||||||
<span>{{$t('message.laborMange.edit')}}</span>
|
<span>{{$t('message.laborMange.edit')}}</span>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
<!-- 再次进场 -->
|
||||||
<el-button
|
<el-button
|
||||||
class="operationText"
|
class="operationText"
|
||||||
type="text"
|
type="text"
|
||||||
@ -1684,6 +1684,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import axios from 'axios'
|
||||||
import {
|
import {
|
||||||
deleteTeamInfo,
|
deleteTeamInfo,
|
||||||
editTeamInfo,
|
editTeamInfo,
|
||||||
@ -1870,10 +1871,12 @@ export default {
|
|||||||
data.menuList.forEach((item)=>{
|
data.menuList.forEach((item)=>{
|
||||||
if(item.actionList){
|
if(item.actionList){
|
||||||
item.actionList.forEach((item2)=>{
|
item.actionList.forEach((item2)=>{
|
||||||
if(item2.actionCode = 'akey_issued' ){
|
if(item2.actionCode == 'akey_issued'){
|
||||||
this.key = true ;
|
this.key = false
|
||||||
// console.log('key',this.key)
|
} else {
|
||||||
|
this.key = true
|
||||||
}
|
}
|
||||||
|
console.log('this.key',this.key)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -2482,6 +2485,7 @@ export default {
|
|||||||
//编辑
|
//编辑
|
||||||
} else {
|
} else {
|
||||||
let data = this.personForm;
|
let data = this.personForm;
|
||||||
|
console.log('dadadaa',data)
|
||||||
if (this.personForm.ufaceDevId.length > 0) {
|
if (this.personForm.ufaceDevId.length > 0) {
|
||||||
data.ufaceDevId = this.personForm.ufaceDevId.join(",");
|
data.ufaceDevId = this.personForm.ufaceDevId.join(",");
|
||||||
} else {
|
} else {
|
||||||
@ -2513,7 +2517,6 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
//编辑 人员信息
|
//编辑 人员信息
|
||||||
editWorkerInfo(value, type) {
|
editWorkerInfo(value, type) {
|
||||||
this.personDialogTitle = this.$t(
|
this.personDialogTitle = this.$t(
|
||||||
@ -2552,6 +2555,7 @@ export default {
|
|||||||
personSerial: "",
|
personSerial: "",
|
||||||
};
|
};
|
||||||
this.getUfaceDevList();
|
this.getUfaceDevList();
|
||||||
|
this.goTwo();
|
||||||
this.addPersonDialog = true;
|
this.addPersonDialog = true;
|
||||||
this.personForm = JSON.parse(JSON.stringify(value));
|
this.personForm = JSON.parse(JSON.stringify(value));
|
||||||
this.personForm.sex = Number(value.sex);
|
this.personForm.sex = Number(value.sex);
|
||||||
@ -3384,6 +3388,7 @@ export default {
|
|||||||
isUploadHousing: value ? 1 : 0,
|
isUploadHousing: value ? 1 : 0,
|
||||||
id: id,
|
id: id,
|
||||||
};
|
};
|
||||||
|
console.log('data',json)
|
||||||
updateByIdWorkerInfo(json).then((res) => {
|
updateByIdWorkerInfo(json).then((res) => {
|
||||||
// if (res.code == 200) {
|
// if (res.code == 200) {
|
||||||
// this.$message.success(this.$t("message.laborMange.modifySuccess"));
|
// this.$message.success(this.$t("message.laborMange.modifySuccess"));
|
||||||
|
|||||||
@ -336,7 +336,7 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
:disabled="checkedWorker.length == 0"
|
:disabled="checkedWorker.length == 0"
|
||||||
@click="issuePersonFn"
|
@click="issuePersonFn"
|
||||||
v-if="!key"
|
v-if="key"
|
||||||
>{{ $t("message.laborMange.aKeyIssued") }}</el-button
|
>{{ $t("message.laborMange.aKeyIssued") }}</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -428,6 +428,7 @@
|
|||||||
<el-table-column prop="address" width="270px">
|
<el-table-column prop="address" width="270px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div class="tableBtns">
|
<div class="tableBtns">
|
||||||
|
<!-- 退场 -->
|
||||||
<el-button
|
<el-button
|
||||||
size="medium"
|
size="medium"
|
||||||
type="text"
|
type="text"
|
||||||
@ -448,6 +449,7 @@
|
|||||||
/>
|
/>
|
||||||
<span>{{ $t("message.laborMange.edit") }}</span>
|
<span>{{ $t("message.laborMange.edit") }}</span>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
<!-- 再次进场 -->
|
||||||
<el-button
|
<el-button
|
||||||
size="medium"
|
size="medium"
|
||||||
type="text"
|
type="text"
|
||||||
@ -477,7 +479,7 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="issuePersonOneFn(scope.row.id)"
|
@click="issuePersonOneFn(scope.row.id)"
|
||||||
v-if="!key"
|
v-if="key"
|
||||||
>{{ $t("message.laborMange.aKeyIssued") }}</el-button
|
>{{ $t("message.laborMange.aKeyIssued") }}</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
@ -497,7 +499,7 @@
|
|||||||
</div> -->
|
</div> -->
|
||||||
<div
|
<div
|
||||||
class="personItemBottom"
|
class="personItemBottom"
|
||||||
v-if="!key"
|
v-if="key"
|
||||||
>
|
>
|
||||||
<el-checkbox
|
<el-checkbox
|
||||||
v-model="scope.row.isUploadHousing"
|
v-model="scope.row.isUploadHousing"
|
||||||
@ -1892,6 +1894,7 @@
|
|||||||
size="medium"
|
size="medium"
|
||||||
>{{ $t("message.laborMange.cancel") }}</el-button
|
>{{ $t("message.laborMange.cancel") }}</el-button
|
||||||
>
|
>
|
||||||
|
<!-- 确定按钮 -->
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-circle-check"
|
icon="el-icon-circle-check"
|
||||||
@ -2260,6 +2263,7 @@ import {
|
|||||||
updateByIdWorkerInfo,
|
updateByIdWorkerInfo,
|
||||||
sendBatchWokerApi
|
sendBatchWokerApi
|
||||||
} from "@/assets/js/api/laborPerson";
|
} from "@/assets/js/api/laborPerson";
|
||||||
|
import axios from 'axios'
|
||||||
import {
|
import {
|
||||||
selectUserDevAuthorityByUserIdApi,
|
selectUserDevAuthorityByUserIdApi,
|
||||||
exporExcelWorkerTemplateApi,
|
exporExcelWorkerTemplateApi,
|
||||||
@ -2377,6 +2381,7 @@ export default {
|
|||||||
enterDate: "",
|
enterDate: "",
|
||||||
nation: "",
|
nation: "",
|
||||||
nativePlace: "",
|
nativePlace: "",
|
||||||
|
isUploadHousing:'',
|
||||||
issuingAuthorityForIdcard: "",
|
issuingAuthorityForIdcard: "",
|
||||||
idCardEndDate: "",
|
idCardEndDate: "",
|
||||||
longTerm: false,
|
longTerm: false,
|
||||||
@ -2461,9 +2466,12 @@ export default {
|
|||||||
data.menuList.forEach((item)=>{
|
data.menuList.forEach((item)=>{
|
||||||
if(item.actionList){
|
if(item.actionList){
|
||||||
item.actionList.forEach((item2)=>{
|
item.actionList.forEach((item2)=>{
|
||||||
if(item2.actionCode = 'akey_issued'){
|
if(item2.actionCode == 'akey_issued'){
|
||||||
this.key = true
|
this.key = true
|
||||||
|
} else {
|
||||||
|
this.key = false
|
||||||
}
|
}
|
||||||
|
console.log('this.key',this.key)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -3178,7 +3186,8 @@ export default {
|
|||||||
|
|
||||||
// 新增 || 编辑 人员录入 保存按钮
|
// 新增 || 编辑 人员录入 保存按钮
|
||||||
savePersonFn(formName) {
|
savePersonFn(formName) {
|
||||||
console.log(this.personForm);
|
this.personForm.isUploadHousing = this.personForm.isUploadHousing ? 1 : 0
|
||||||
|
console.log('进场确定参数',this.personForm);
|
||||||
if (!IdentityCodeValid(this.personForm.idCard)) {
|
if (!IdentityCodeValid(this.personForm.idCard)) {
|
||||||
this.$message.error(this.$t("message.laborMange.correctCellIdCard"));
|
this.$message.error(this.$t("message.laborMange.correctCellIdCard"));
|
||||||
return;
|
return;
|
||||||
@ -3265,8 +3274,11 @@ export default {
|
|||||||
let data = this.personForm;
|
let data = this.personForm;
|
||||||
data.longTerm = this.personForm.longTerm ? 1 : 0;
|
data.longTerm = this.personForm.longTerm ? 1 : 0;
|
||||||
data.registerType = 1;
|
data.registerType = 1;
|
||||||
|
// 跟杨珊对接需要再再次进场时多传入一个新的字段
|
||||||
|
data.reEntry = 1
|
||||||
data.userId = this.$store.state.userInfo.userId;
|
data.userId = this.$store.state.userInfo.userId;
|
||||||
if (this.personForm.ufaceDevId.length > 0) {
|
if (this.personForm.ufaceDevId.length > 0) {
|
||||||
|
console.log('this.personForm.ufaceDevId',this.personForm.ufaceDevId)
|
||||||
data.ufaceDevId = this.personForm.ufaceDevId.join(",");
|
data.ufaceDevId = this.personForm.ufaceDevId.join(",");
|
||||||
} else {
|
} else {
|
||||||
data.ufaceDevId = "";
|
data.ufaceDevId = "";
|
||||||
@ -3307,6 +3319,7 @@ export default {
|
|||||||
isUploadHousing: value ? 1 : 0,
|
isUploadHousing: value ? 1 : 0,
|
||||||
id: id,
|
id: id,
|
||||||
};
|
};
|
||||||
|
console.log('isUploadHousing',json)
|
||||||
updateByIdWorkerInfo(json).then((res) => {
|
updateByIdWorkerInfo(json).then((res) => {
|
||||||
// if (res.code == 200) {
|
// if (res.code == 200) {
|
||||||
// this.$message.success(this.$t("message.laborMange.modifySuccess"));
|
// this.$message.success(this.$t("message.laborMange.modifySuccess"));
|
||||||
@ -3323,6 +3336,12 @@ export default {
|
|||||||
},
|
},
|
||||||
//编辑 人员信息 按钮
|
//编辑 人员信息 按钮
|
||||||
editWorkerInfo(value, type) {
|
editWorkerInfo(value, type) {
|
||||||
|
console.log('当前行',value)
|
||||||
|
if(value.isUploadHousing){
|
||||||
|
this.personForm.isUploadHousing = 1
|
||||||
|
}else{
|
||||||
|
this.personForm.isUploadHousing = 0
|
||||||
|
}
|
||||||
this.personDialogTitle = this.$t("message.laborMange.editCrewInfo");
|
this.personDialogTitle = this.$t("message.laborMange.editCrewInfo");
|
||||||
this.titleType = "edit";
|
this.titleType = "edit";
|
||||||
this.personForm = {
|
this.personForm = {
|
||||||
@ -3339,7 +3358,7 @@ export default {
|
|||||||
phoneNumber: "",
|
phoneNumber: "",
|
||||||
emergentPerson: "",
|
emergentPerson: "",
|
||||||
emergentPhone: "",
|
emergentPhone: "",
|
||||||
inserviceType: 1,
|
inserviceType: 2,
|
||||||
politicsStatus: "",
|
politicsStatus: "",
|
||||||
marry: "",
|
marry: "",
|
||||||
payRollBankName: "",
|
payRollBankName: "",
|
||||||
|
|||||||
@ -652,7 +652,7 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
getRealTimeDataApi(data).then((res) => {
|
getRealTimeDataApi(data).then((res) => {
|
||||||
console.log(res);
|
console.log('查询结果',res);
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.crewRealTimeList = res.result;
|
this.crewRealTimeList = res.result;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|||||||
@ -55,6 +55,9 @@
|
|||||||
$t("message.deviceManage.query")
|
$t("message.deviceManage.query")
|
||||||
}}</el-button>
|
}}</el-button>
|
||||||
<el-button type="warning" size="medium" plain @click="refresh">{{$t('message.deviceManage.refresh')}}</el-button>
|
<el-button type="warning" size="medium" plain @click="refresh">{{$t('message.deviceManage.refresh')}}</el-button>
|
||||||
|
<el-button type="primary" size="medium" plain @click="exportBtn">
|
||||||
|
<a :href="printUrl" class="printUrl">导出</a>
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@ -106,12 +109,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { selectWorkerEducationPageApi } from "@/assets/js/api/laborPerson";
|
import { selectWorkerEducationPageApi,exportExcelWorkerEducationApi } from "@/assets/js/api/laborPerson";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "historyData",
|
name: "historyData",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
printUrl:'',
|
||||||
projectSn: "",
|
projectSn: "",
|
||||||
time: [],
|
time: [],
|
||||||
formInline: {
|
formInline: {
|
||||||
@ -154,6 +158,14 @@ export default {
|
|||||||
this.pageSize = 10;//条数
|
this.pageSize = 10;//条数
|
||||||
this.onSubmit();
|
this.onSubmit();
|
||||||
},
|
},
|
||||||
|
// 导出
|
||||||
|
exportBtn(){
|
||||||
|
console.log('导出')
|
||||||
|
this.printUrl = this.$http.defaults.baseURL + 'xmgl/safeEducationQuestion/exportExcelWorkerEducation?projectSn=' +
|
||||||
|
this.projectSn + '&eduType=' + this.formInline.eduType + '&eduCourseName=' + this.formInline.eduCourseName
|
||||||
|
+ '&workerName=' + this.formInline.workerName
|
||||||
|
console.log(this.printUrl)
|
||||||
|
},
|
||||||
//查询列表
|
//查询列表
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
if (this.time.length == 0 || this.time == null) {
|
if (this.time.length == 0 || this.time == null) {
|
||||||
@ -190,4 +202,7 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
.printUrl{
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Loading…
x
Reference in New Issue
Block a user