加班管理

This commit is contained in:
XaoLi717 2024-11-08 08:25:51 +08:00
parent e69abd3cca
commit c4a522b8b6
3 changed files with 20 additions and 23 deletions

View File

@ -358,7 +358,7 @@ const total = ref(0) // 列表的总页数
const pageNo = ref<number>(1)
const calendar = ref<CalendarInstance>()
const selectDate = (val: CalendarDateType) => {
const selectDate = async (val: CalendarDateType) => {
if (!calendar.value) return
calendar.value.selectDate(val)
}
@ -389,8 +389,8 @@ const more = async () => {
}
/** 处理审批按钮 */
const handleAudit = (row: any) => {
push({
const handleAudit =async (row: any) => {
await push({
name: 'BpmProcessInstanceDetail',
query: {
id: row.processInstance.id
@ -398,8 +398,8 @@ const handleAudit = (row: any) => {
})
}
/** 处理审批按钮 */
const handleAudit2 = (row: any) => {
push({
const handleAudit2 =async (row: any) => {
await push({
name: 'BpmProcessInstanceDetail',
query: {
id: row.processInstanceId
@ -497,13 +497,13 @@ const dialogTitle = ref('') // 弹窗的标题
const openDialog = async (type:number,id?:number) => {
dialogVisible.value = true
dialogTitle.value = type===1?'公告':'通知'
resetForm()
await resetForm()
if (id) {
formData.value = await imgApi.getimg(id)
}
}
/** 重置表单 */
const resetForm = () => {
const resetForm = async () => {
formData.value = {
Id: undefined,
newsName: undefined,
@ -595,23 +595,14 @@ const getAllApi = async () => {
loading.value = false
}
getAllApi()
/** 初始化 **/
onMounted(() => {
getList()
onMounted(async () => {
await getAllApi()
await getList()
})
</script>
<style scoped>
.el-carousel__item h3 {
opacity: 0.75;
line-height: 200px;
margin: 0;
text-align: center;
}
</style>
<style lang="scss">
.el-table .warning-row {
@ -620,6 +611,12 @@ onMounted(() => {
</style>
<style scoped>
.el-carousel__item h3 {
opacity: 0.75;
line-height: 200px;
margin: 0;
text-align: center;
}
.SystemThem {
background-color: var(--el-color-primary);
}

View File

@ -284,7 +284,7 @@ const handleExport = async () => {
}
/** 初始化 **/
onMounted(() => {
getList()
onMounted(async () => {
await getList()
})
</script>

View File

@ -288,8 +288,8 @@ const handleExport = async () => {
}
}
/** 初始化 **/
onMounted(() => {
getList()
onMounted(async () => {
await getList()
// const dataT = ref(null)
// getConfigKey("test4").then((res) => {
// if (!res || res.length === 0){