77 lines
1.5 KiB
Vue
Raw Normal View History

<template>
2025-08-29 01:27:54 +08:00
<BasicLayout>
<view class="p-15">
<view class="info-card">
<view class="card-header">
<text class="card-title">重新提交请假申请</text>
</view>
<view class="card-content">
<text class="info-text">您的请假申请已被驳回请修改后重新提交</text>
</view>
</view>
<!-- 使用请假申请组件 -->
<JsQjEdit :data="qjData" />
</view>
</BasicLayout>
</template>
<script setup lang="ts">
2025-07-27 23:37:02 +08:00
import { findQjById } from "@/api/base/jsQjApi";
import { onLoad } from "@dcloudio/uni-app";
2025-08-29 01:27:54 +08:00
import { ref } from "vue";
2025-07-27 23:37:02 +08:00
import JsQjEdit from "./components/jsQjEdit.vue";
2025-08-02 14:23:51 +08:00
2025-08-29 01:27:54 +08:00
const qjId = ref<string>();
const qjData = ref<any>({});
2025-08-29 01:27:54 +08:00
// 加载请假信息
const loadQjData = async () => {
try {
const result = await findQjById({ id: qjId.value });
if (result.code === 1) {
qjData.value = result.data;
2025-07-27 23:37:02 +08:00
}
2025-08-29 01:27:54 +08:00
} catch (error) {
console.error('获取请假信息失败:', error);
}
};
onLoad((options) => {
if (options.qjId) {
qjId.value = options.qjId;
loadQjData();
}
});
</script>
<style lang="scss" scoped>
2025-08-29 01:27:54 +08:00
.info-card {
background: white;
border-radius: 8px;
margin-bottom: 15px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.card-header {
padding: 15px;
border-bottom: 1px solid #eee;
.card-title {
font-size: 16px;
font-weight: bold;
color: #333;
}
}
.card-content {
padding: 15px;
.info-text {
font-size: 14px;
color: #666;
line-height: 1.5;
}
}
2025-07-27 23:37:02 +08:00
</style>