flx:提交免登录到人员考勤
This commit is contained in:
parent
84ee3b6135
commit
41618e737e
@ -1404,6 +1404,17 @@ export default {
|
||||
this.$store.commit("setProjectSn", projectSn);
|
||||
return this.$router.push("/project/dataBoard/index");
|
||||
}
|
||||
if (window.location.href.indexOf("AttendanceType") != -1) {
|
||||
let attendanceType = this.GetParam("AttendanceType");
|
||||
console.log(11122333, attendanceType, data)
|
||||
this.$store.commit("setProjectSn", data.sn);
|
||||
this.$router.push("/projectIndex?attendanceType=" + attendanceType);
|
||||
return
|
||||
// if(attendanceType == 1) {
|
||||
// this.$router.push("/project/labor/attendanceManage");
|
||||
// return
|
||||
// }
|
||||
}
|
||||
var companyModule = [];
|
||||
var projectModule = [];
|
||||
if (
|
||||
|
||||
@ -144,13 +144,66 @@ export default {
|
||||
var arr = this.$store.state.userInfo.menuAuthority.moduleList;
|
||||
this.getAllModule(arr);
|
||||
this.getProjectNumber();
|
||||
|
||||
// }
|
||||
},
|
||||
activated() {
|
||||
this.$refs.artList.scrollTop = this.selfScrollTop;
|
||||
},
|
||||
methods: {
|
||||
toAssignRouter(router, routerPlugin){
|
||||
const find = this.list.find(item => item.plugin == routerPlugin);
|
||||
console.log(111111, this.list, find)
|
||||
if(find) {
|
||||
var arr = find.menuList,
|
||||
arr2 = [];
|
||||
arr.forEach((element) => {
|
||||
if (element.menuEquipment == 0) {
|
||||
arr2.push(element);
|
||||
}
|
||||
});
|
||||
this.$store.commit("setMenuList", arr2);
|
||||
this.$store.commit("setIsShowBackIndex", true);
|
||||
this.$store.commit("setMoudle", find);
|
||||
const findRouter = arr2.find(item => item.path == router)
|
||||
if (findRouter.target == "_blank") {
|
||||
let routeUrl = "";
|
||||
if (findRouter.path.indexOf("http") != -1) {
|
||||
routeUrl = findRouter.path;
|
||||
} else {
|
||||
let url = this.$router.resolve({
|
||||
path: findRouter.path,
|
||||
});
|
||||
routeUrl = url.href;
|
||||
}
|
||||
window.open(routeUrl, "_blank");
|
||||
} else {
|
||||
if (findRouter.path == "" || findRouter.path.indexOf("/") == -1) {
|
||||
this.$router.push(findRouter.menuList[0].path);
|
||||
} else {
|
||||
this.$router.push(findRouter.path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
GetParam(paraName) {
|
||||
var url = document.location.toString();
|
||||
console.log(url);
|
||||
var arrObj = url.split("?");
|
||||
if (arrObj.length > 1) {
|
||||
var arrPara = arrObj[1].split("&");
|
||||
var arr;
|
||||
for (var i = 0; i < arrPara.length; i++) {
|
||||
arr = arrPara[i].split("=");
|
||||
if (arr != null && arr[0] == paraName) {
|
||||
return arr[1];
|
||||
}
|
||||
}
|
||||
return "";
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
},
|
||||
scrollGet(e) {
|
||||
// console.log("滚动触发的事件", e.srcElement.scrollTop, e.target.scrollTop);
|
||||
this.selfScrollTop = this.$refs.artList.scrollTop;
|
||||
@ -267,6 +320,7 @@ export default {
|
||||
item.menuList.length > 0 &&
|
||||
item.moduleName != "全景成像测距"
|
||||
) {
|
||||
console.log("3334444, 进入11", item.menuList)
|
||||
var arr = item.menuList,
|
||||
arr2 = [];
|
||||
arr.forEach((element) => {
|
||||
@ -396,7 +450,13 @@ export default {
|
||||
}
|
||||
return prev
|
||||
},[])
|
||||
|
||||
if (window.location.href.indexOf("attendanceType") != -1) {
|
||||
let attendanceType = this.GetParam("attendanceType");
|
||||
console.log(11122333, attendanceType,)
|
||||
if(attendanceType == 1) {
|
||||
this.toAssignRouter("/project/labor/attendanceManage", "laborManage")
|
||||
}
|
||||
}
|
||||
console.log(this.list, 222)
|
||||
}
|
||||
});
|
||||
|
||||
@ -309,7 +309,7 @@
|
||||
:label="$t('message.laborMange.compellation')"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
<!-- <el-table-column
|
||||
prop="temperature"
|
||||
:label="$t('message.laborMange.temperature') + '(℃)'"
|
||||
align="center"
|
||||
@ -356,7 +356,7 @@
|
||||
<template slot-scope="scope">
|
||||
{{ vaccinationFrequencyltsList[scope.row.vaccinateState] || "无" }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column> -->
|
||||
|
||||
<el-table-column
|
||||
prop="passType"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user