新增临时角色页面
This commit is contained in:
@@ -575,7 +575,6 @@ export default {
|
||||
this.loading = true;
|
||||
listOaAttendance(this.queryParams).then(res => {
|
||||
this.userList = res.rows;
|
||||
console.log(this.userList);
|
||||
this.dateLength = res.total;
|
||||
this.loading = false;
|
||||
});
|
||||
|
||||
@@ -251,7 +251,7 @@ export default {
|
||||
})
|
||||
},
|
||||
co(){
|
||||
console.log(this.files)
|
||||
|
||||
},
|
||||
|
||||
// 添加新的一行
|
||||
|
||||
@@ -403,7 +403,6 @@ export default {
|
||||
getOaClaim(this.$route.params.claimId).then(res => {
|
||||
this.form = res.data;
|
||||
this.detailList = res.data.detailList
|
||||
console.log(this.detailList)
|
||||
this.initData();
|
||||
this.loading=false
|
||||
})
|
||||
|
||||
@@ -237,7 +237,6 @@ export default {
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listOaClaim(this.queryParams).then(response => {
|
||||
console.log(response.rows)
|
||||
this.oaClaimList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
|
||||
@@ -89,7 +89,6 @@ export default {
|
||||
//排序
|
||||
this.stepsList = res.data.data.taskList.sort((a, b) => parseInt(a.dictValue) - parseInt(b.dictValue));
|
||||
this.active = res.data.data.active;
|
||||
console.log(this.stepsList)
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
@@ -891,7 +891,7 @@ export default {
|
||||
|
||||
//核算弹出层
|
||||
handleCheck(row) {
|
||||
console.log(3333, row)
|
||||
|
||||
this.openCheck = true;
|
||||
this.titleCheck = "项目核算";
|
||||
this.projectName = row.projectName;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<div v-loading="loading">
|
||||
<el-tabs v-model="activeName" style="margin-left: 10px;">
|
||||
<el-tab-pane label="休假日历" name="first">
|
||||
<el-tab-pane label="休假日历" name="first" >
|
||||
<el-calendar>
|
||||
<template slot="dateCell" slot-scope="{date, data}">
|
||||
<div :class="{'is-selected': data.isSelected, 'blue-background': isHoliday(data.day)}" style="height: 100%"
|
||||
@@ -99,6 +99,7 @@
|
||||
|
||||
<script>
|
||||
import {listOaHoliday, updateOaHoliday,queryListHoliday} from "@/api/oa/oaHoliday";
|
||||
import {currentRole} from "@/api/system/role";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -135,6 +136,7 @@ export default {
|
||||
holidayTime: undefined,
|
||||
name: undefined,
|
||||
},
|
||||
currentRole:{},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
@@ -161,6 +163,11 @@ export default {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
getCurrentUserRole() {
|
||||
currentRole().then(res => {
|
||||
this.currentRole = res.data;
|
||||
})
|
||||
},
|
||||
fetchHolidayData() {
|
||||
this.loading = true;
|
||||
listOaHoliday({}).then(response => {
|
||||
@@ -172,7 +179,6 @@ export default {
|
||||
}));
|
||||
this.loading = false;
|
||||
}).catch(error => {
|
||||
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
@@ -185,11 +191,11 @@ export default {
|
||||
return holiday ? holiday.name : '';
|
||||
},
|
||||
handleCellClick(data) {
|
||||
|
||||
const holiday = this.holidays.find(holiday => holiday.date === data.day);
|
||||
this.currentHoliday = {...holiday.fullData, type: holiday.type};
|
||||
this.dialogVisible = true;
|
||||
|
||||
if (this.currentRole.roleKey==='doctor'){
|
||||
const holiday = this.holidays.find(holiday => holiday.date === data.day);
|
||||
this.currentHoliday = {...holiday.fullData, type: holiday.type};
|
||||
this.dialogVisible = true;
|
||||
}
|
||||
},
|
||||
updateHoliday() {
|
||||
updateOaHoliday(this.currentHoliday).then(response => {
|
||||
@@ -198,7 +204,6 @@ export default {
|
||||
this.$message.success("假期类型更新成功");
|
||||
|
||||
}).catch(error => {
|
||||
console.error("Error updating holiday data:", error);
|
||||
this.$message.error("更新失败");
|
||||
});
|
||||
},
|
||||
@@ -314,6 +319,7 @@ export default {
|
||||
|
||||
},
|
||||
created() {
|
||||
this.getCurrentUserRole();
|
||||
this.fetchHolidayData();
|
||||
this.getList();
|
||||
}
|
||||
|
||||
@@ -334,7 +334,7 @@ export default {
|
||||
this.loading = true;
|
||||
listOnboarding(this.queryParams).then(response => {
|
||||
this.onboardingList = response.rows;
|
||||
console.log(this.onboardingList)
|
||||
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
|
||||
@@ -822,7 +822,7 @@ export default {
|
||||
}
|
||||
listProject(this.queryParams).then(response => {
|
||||
this.projectList = response.rows;
|
||||
console.log(this.projectList)
|
||||
|
||||
//项目周期
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
|
||||
@@ -1390,7 +1390,7 @@ export default {
|
||||
getTaskByDictType(pid).then(res => {
|
||||
//排序
|
||||
this.stepsList = res.data.data.taskList.sort((a, b) => parseInt(b.dictValue) - parseInt(a.dictValue));
|
||||
console.log(this.stepsList)
|
||||
|
||||
this.active = res.data.data.active;
|
||||
})
|
||||
},
|
||||
@@ -1576,7 +1576,7 @@ export default {
|
||||
getProject(projectId).then(response => {
|
||||
this.loading = false;
|
||||
this.form = response.data;
|
||||
console.log(this.form)
|
||||
|
||||
this.bail = response.data.bail == null ? this.bail : JSON.parse(response.data.bail);
|
||||
let period = [];
|
||||
period.push(response.data.beginTime);
|
||||
|
||||
Reference in New Issue
Block a user