人员管理 添加 下发通行设备 以及修复了设备中台跳转 骆乐

This commit is contained in:
骆乐 2022-06-21 17:38:52 +08:00
parent c51e0d347e
commit f1d3b8879c
6 changed files with 72 additions and 36 deletions

View File

@ -20,6 +20,7 @@ export const updateByIdWorkerInfo = data => put('xmgl/workerInfo/updateById', da
export const updateWorkerExit = data => post('xmgl/workerInfo/updateWorkerExit', data); //人员 退场 && 批量 退场 export const updateWorkerExit = data => post('xmgl/workerInfo/updateWorkerExit', data); //人员 退场 && 批量 退场
export const updateWorkerTeam = data => post('xmgl/workerInfo/updateWorkerTeam', data); //人员批量移动 export const updateWorkerTeam = data => post('xmgl/workerInfo/updateWorkerTeam', data); //人员批量移动
export const deleteWorkerInfo = data => post('xmgl/workerInfo/delete', data); //删除 人员 信息 export const deleteWorkerInfo = data => post('xmgl/workerInfo/delete', data); //删除 人员 信息
export const sendBatchWokerApi = data => post('xmgl/ufaceDev/sendBatchWokerDev', data); // 下发通行人员
//详情 //详情
export const getWorkerInfoData = data => post('xmgl/workerInfo/viewWorkerInfoDetail', data); //获取 人员 详细所有信息 export const getWorkerInfoData = data => post('xmgl/workerInfo/viewWorkerInfoDetail', data); //获取 人员 详细所有信息
export const addContractApi = data => post('xmgl/workerContract/add', data); //新增合同信息 export const addContractApi = data => post('xmgl/workerContract/add', data); //新增合同信息

View File

@ -259,26 +259,33 @@ export default {
window.open(routeUrl.href, "_self"); window.open(routeUrl.href, "_self");
window._paq.push(['trackEvent', '点击', '项目后台','进入项目后台' ]) window._paq.push(['trackEvent', '点击', '项目后台','进入项目后台' ])
}, },
// //
goDevcenter(){ goDevcenter(value) {
var url = window.location.href; this.$store.commit("setProjectSn", value.projectSn);
let routeUrl = ''; window.open("/equipmentCenter.html#/equipmentCenterIndx", "_self");
//
if (url.indexOf("equipmentCenter.html") != -1) {
// /index.html#/
if(COMPANY == 'nanchang') {
window.open("/index.html#/equipmentCenterIndx", "_self");
}else{
window.open("/#/equipmentCenterIndx", "_self");
}
} else {
routeUrl = this.$router.resolve({
path: "/equipmentCenterIndx",
});
}
window.open(routeUrl.href, "_self");
window._paq.push(['trackEvent', '点击', '设备中台','进入设备中台' ]) window._paq.push(['trackEvent', '点击', '设备中台','进入设备中台' ])
} },
//
// goDevcenter(){
// window.open('/equipmentCenter.html#/equipmentCenterIndx', "_self");
// var url = window.location.href;
// let routeUrl = '';
// //
// if (url.indexOf("equipmentCenter.html") != -1) {
// // /index.html#/
// if(COMPANY == 'nanchang') {
// window.open("/index.html#/equipmentCenterIndx", "_self");
// }else{
// window.open("/#/equipmentCenterIndx", "_self");
// }
// } else {
// routeUrl = this.$router.resolve({
// path: "/equipmentCenterIndx",
// });
// }
// window.open(routeUrl.href, "_self");
// window._paq.push(['trackEvent', '', '','' ])
// }
}, },
}; };
</script> </script>

View File

@ -1293,11 +1293,11 @@ const routes2 = [
name: 'projectIndex', name: 'projectIndex',
component: () => import('../views/projectAdmin/projectIndex.vue'), component: () => import('../views/projectAdmin/projectIndex.vue'),
}, },
{ // {
path: '/equipmentCenterIndx', // path: '/equipmentCenterIndx',
name: 'equipmentCenterIndx', // name: 'equipmentCenterIndx',
component: () => import('../views/equipmentCenter/equipmentCenterIndex.vue'), // component: () => import('../views/equipmentCenter/equipmentCenterIndex.vue'),
}, // },
{ {
path: '/project/panoramicOverview', path: '/project/panoramicOverview',
name: 'panoramicView', name: 'panoramicView',

View File

@ -130,7 +130,7 @@
>{{$t('message.companyDiagram.goProjectBackEnd')}}</div> >{{$t('message.companyDiagram.goProjectBackEnd')}}</div>
<div v-if="$store.state.userInfo.styleType==1" <div v-if="$store.state.userInfo.styleType==1"
class="operationText" class="operationText"
@click="goToDevCenter(scope.row)" @click="goDevCenter(scope.row)"
>{{$t('message.companyDiagram.goDevCenter')}}</div> >{{$t('message.companyDiagram.goDevCenter')}}</div>
</template> </template>
</el-table-column> </el-table-column>
@ -364,13 +364,11 @@ export default {
sessionStorage.setItem('messageA',this.messageA) sessionStorage.setItem('messageA',this.messageA)
}, },
// //
goToDevCenter(value) { goDevCenter(value) {
console.log('跳跳跳')
this.$store.commit("setProjectSn", value.projectSn); this.$store.commit("setProjectSn", value.projectSn);
let routeUrl = this.$router.resolve({ window.open("/equipmentCenter.html#/equipmentCenterIndx", "_self");
path: '/equipmentCenterIndx' window._paq.push(['trackEvent', '点击', '设备中台','进入设备中台' ])
});
window.open(routeUrl.href, "_self");
window._paq.push(['trackEvent', '点击', '设备中台','进入设备中台' ]);
}, },
}, },
}; };

View File

@ -248,6 +248,8 @@
$t("message.laborMange.bulkImport") $t("message.laborMange.bulkImport")
}}</el-button> }}</el-button>
</el-upload> </el-upload>
<el-button size="medium" @click="passEquipment()" type="primary" style="margin-left:15px">下发通行设备</el-button>
<br/>
<el-form <el-form
style="margin-top: 15px" style="margin-top: 15px"
:inline="true" :inline="true"
@ -1708,7 +1710,8 @@ import {
checkImgLibraryApi, checkImgLibraryApi,
batchSendWorkerInfoApi, batchSendWorkerInfoApi,
sendWorkerInfoByIdApi, sendWorkerInfoByIdApi,
updateByIdWorkerInfo updateByIdWorkerInfo,
sendBatchWokerApi
} from "@/assets/js/api/laborPerson"; } from "@/assets/js/api/laborPerson";
import { selectUserDevAuthorityByUserIdApi } from "@/assets/js/api/configManage"; import { selectUserDevAuthorityByUserIdApi } from "@/assets/js/api/configManage";
import { getProjectConfigListApi } from "@/assets/js/api/project.js"; import { getProjectConfigListApi } from "@/assets/js/api/project.js";
@ -1941,6 +1944,18 @@ export default {
"xmgl/download/exporExcelWorkerTemplate?projectSn=" + "xmgl/download/exporExcelWorkerTemplate?projectSn=" +
this.projectSn; this.projectSn;
}, },
//
passEquipment(){
sendBatchWokerApi({projectSn: this.projectSn,personType:'2',userId: this.$store.state.userInfo.userId,enterpriseId: this.checkedId}).then((res)=>{
// console.log('',res)
if(res.code == 200 ){
this.$message({
message: '操作成功,已在后台下发,请稍后查看!',
type: 'success'
});
}
})
},
handleChangeE(file, fileList) { handleChangeE(file, fileList) {
// console.log(file) // console.log(file)
this.fileTemp = file.raw; this.fileTemp = file.raw;

View File

@ -240,6 +240,8 @@
$t("message.laborMange.bulkImport") $t("message.laborMange.bulkImport")
}}</el-button> }}</el-button>
</el-upload> </el-upload>
<el-button size="medium" @click="passEquipment()" type="primary" style="margin-left:10px">下发通行设备</el-button>
<br/>
<el-form <el-form
style="margin-top: 15px" style="margin-top: 15px"
:inline="true" :inline="true"
@ -2255,7 +2257,8 @@ import {
selectHierarchyEnterpriseListApi, selectHierarchyEnterpriseListApi,
ufaceDevList, ufaceDevList,
checkImgLibraryApi, checkImgLibraryApi,
updateByIdWorkerInfo updateByIdWorkerInfo,
sendBatchWokerApi
} from "@/assets/js/api/laborPerson"; } from "@/assets/js/api/laborPerson";
import { import {
selectUserDevAuthorityByUserIdApi, selectUserDevAuthorityByUserIdApi,
@ -2516,6 +2519,18 @@ export default {
"xmgl/download/exporExcelWorkerTemplate?projectSn=" + "xmgl/download/exporExcelWorkerTemplate?projectSn=" +
this.projectSn; this.projectSn;
}, },
//
passEquipment(){
sendBatchWokerApi({projectSn: this.projectSn,personType:'1',userId: this.$store.state.userInfo.userId,enterpriseId: this.checkedId}).then((res)=>{
// console.log('',res)
if(res.code == 200 ){
this.$message({
message: '操作成功,已在后台下发,请稍后查看!',
type: 'success'
});
}
})
},
handleChangeE(file, fileList) { handleChangeE(file, fileList) {
// console.log(file) // console.log(file)
this.fileTemp = file.raw; this.fileTemp = file.raw;