应征入伍保留学籍申请表-附件上传

This commit is contained in:
2025-11-17 17:45:23 +08:00
parent 7292888c7f
commit dcef075410
5 changed files with 243 additions and 70 deletions

View File

@@ -26,6 +26,15 @@ export function addEnlistmentReserveAttach(data) {
}) })
} }
// 批量新增保留学籍申请附件(入伍通知书等)
export function batchAddEnlistmentReserveAttach(data) {
return request({
url: '/routine/enlistmentReserveAttach/batchAdd',
method: 'post',
data: data
})
}
// 修改保留学籍申请附件(入伍通知书等) // 修改保留学籍申请附件(入伍通知书等)
export function updateEnlistmentReserveAttach(data) { export function updateEnlistmentReserveAttach(data) {
return request({ return request({

View File

@@ -132,14 +132,23 @@ export default {
console.log(res.savePath) console.log(res.savePath)
if(item.name == res.trueName && item.status == 1){ if(item.name == res.trueName && item.status == 1){
this.fileList[i].id = res.id this.fileList[i].id = res.id
this.fileList[i].status = 2 this.fileList[i].status = 2
this.fileList[i].savePath = this.baseurl + res.savePath this.fileList[i].savePath = this.baseurl + res.savePath
if(this.isImageURL(res.savePath)){ if(this.isImageURL(res.savePath)){
this.previewList.push( this.fileList[i].savePath) this.previewList.push( this.fileList[i].savePath)
} }
// this.fileList[i].savePaths =[this.baseurl + res.savePath]; // this.fileList[i].savePaths =[this.baseurl + res.savePath];
// 上传成功后向外传递当前文件的完整信息包含后端返回的res数据
this.$emit('fileUploaded', {
fileId: res.id, // 文件ID
fileName: res.trueName, // 文件名
filePath: res.savePath, // 文件相对路径不含baseurl
fullPath: this.fileList[i].savePath, // 完整路径含baseurl
fileType: this.getFileType(res.trueName), // 文件类型
originalFile: file.file // 原始文件对象(可选)
});
} }
@@ -153,6 +162,12 @@ export default {
this.uploadCnt-- this.uploadCnt--
}) })
}, },
// 获取文件类型的方法Affix组件中新增
getFileType(fileName) {
if (!fileName) return '';
const lastDotIndex = fileName.lastIndexOf('.');
return lastDotIndex > -1 ? fileName.substring(lastDotIndex + 1).toLowerCase() : '';
},
handleBeforeUpload(file) { handleBeforeUpload(file) {
if (this.affixId == null || this.affixId === '') { if (this.affixId == null || this.affixId === '') {

View File

@@ -1,5 +1,5 @@
<template> <template>
<div class="application-form-container"> <div class="application-form-container" v-loading="loading">
<h2 class="form-title">广西水利电力职业技术学院</h2> <h2 class="form-title">广西水利电力职业技术学院</h2>
<h3 class="form-subtitle">应征入伍保留学籍申请表</h3> <h3 class="form-subtitle">应征入伍保留学籍申请表</h3>
@@ -88,17 +88,23 @@
<tr> <tr>
<td class="label" rowspan="4">申请<br />理由</td> <td class="label" rowspan="4">申请<br />理由</td>
<td class="input-cell" colspan="8" rowspan="4"> <td class="input-cell" colspan="8" rowspan="4">
<el-form-item prop="applyReason" class="form-item-custom"> <!-- <el-form-item prop="applyReason" class="form-item-custom">
<el-input v-model="formData.applyReason" type="textarea" :rows="3" placeholder="请填写申请理由..." <el-input v-model="formData.applyReason" type="textarea" :rows="3" placeholder="请填写申请理由..."
class="opinion-textarea"></el-input> class="opinion-textarea"></el-input>
</el-form-item> </el-form-item> -->
<p class="reason-text">本人应征入伍申请保留学籍从 <p class="reason-text">本人应征入伍申请保留学籍从
<el-form-item prop="reserveStartDate" class="form-item-custom inline-item"> <el-form-item prop="reserveStartDate" class="form-item-custom inline-item">
<el-date-picker v-model="formData.reserveStartDate" type="date" placeholder="选择日期" format="yyyy-MM-dd" <el-date-picker v-model="formData.reserveStartDate" type="date" placeholder="选择日期" format="yyyy-MM-dd"
value-format="yyyy-MM-dd" class="date-picker"></el-date-picker> value-format="yyyy-MM-dd" class="date-picker"></el-date-picker>
</el-form-item> 日至退役后两年 </el-form-item> 日至退役后两年
</p> </p>
<p class="attachment-tip">设上传入伍通知书等佐证材料区域</p> <el-form-item prop="affixId">
<p class="attachment-tip">
<span style="color: red">请上传:入伍通知书等佐证材料.</span>
<Affix v-model="formData.affixId" @input="handleAffix" @fileUploaded="handleAffix"/>
</p>
</el-form-item>
<div class="applicant-info right-align"> <div class="applicant-info right-align">
<span>申请人</span> <span>申请人</span>
<el-input v-model="formData.studentName" readonly class="applicant-input"></el-input> <el-input v-model="formData.studentName" readonly class="applicant-input"></el-input>
@@ -115,31 +121,37 @@
<tr></tr> <tr></tr>
<!-- 辅导员意见行 --> <!-- 辅导员意见行 -->
<tr v-if="!roleGroup.includes('学生')"> <template v-for="item in formData.enlistmentReserveApprovalList">
<td class="label" rowspan="4">辅导员<br />意见</td> <tr v-if="!roleGroup.includes('学生')">
<td class="input-cell" colspan="8" rowspan="4"> <td class="label" rowspan="4">{{ item.opinionType }}</td>
<el-input v-model="counselorApproval.approvalOpinion" type="textarea" :rows="3" placeholder="请填写辅导员意见..." <td class="input-cell" colspan="8" rowspan="4">
class="opinion-textarea"></el-input> <!-- <el-input v-model="counselorApproval.approvalOpinion" type="textarea" :rows="3" placeholder="请填写辅导员意见..."
<div class="signature-area right-align"> class="opinion-textarea"></el-input> -->
<span>审批结果</span> <div>{{ item.approvalOpinion || "暂无意见" }}</div>
<el-select v-model="counselorApproval.approvalResult" placeholder="请选择" class="short-select"> <div class="signature-area right-align">
<el-option label="通过" value="1"></el-option> <span>
<el-option label="驳回" value="2"></el-option> 审批结果
</el-select> <el-tag v-if="item.approvalResult == 1" type="success">通过</el-tag>
<span class="date-label">签名</span> <el-tag v-else type="danger">驳回</el-tag>
<el-input v-model="counselorApproval.approverName" placeholder="请输入姓名" class="signature-input"></el-input> </span>
<span class="date-label">日期</span> <!-- <el-select v-model="counselorApproval.approvalResult" placeholder="请选择" class="short-select">
<el-date-picker v-model="counselorApproval.approvalTime" type="date" placeholder="选择日期" <el-option label="通过" value="1"></el-option>
format="yyyy-MM-dd" value-format="yyyy-MM-dd" class="date-picker full-date"></el-date-picker> <el-option label="驳回" value="2"></el-option>
</div> </el-select> -->
</td> <span class="date-label">签名 {{ item.approverName }}</span>
</tr> <!-- <el-input v-model="counselorApproval.approverName" placeholder="请输入姓名" class="signature-input"></el-input> -->
<tr></tr> <span class="date-label">日期 {{ item.approvalTime }}</span>
<tr></tr> <!-- <el-date-picker v-model="counselorApproval.approvalTime" type="date" placeholder="选择日期"
<tr></tr> format="yyyy-MM-dd" value-format="yyyy-MM-dd" class="date-picker full-date"></el-date-picker> -->
</div>
</td>
</tr>
<tr></tr>
<tr></tr>
<tr></tr>
</template>
<!-- 学务意见行 --> <!-- 学务意见行 -->
<tr v-if="!roleGroup.includes('学生')"> <!-- <tr v-if="!roleGroup.includes('学生')">
<td class="label" rowspan="4">学务<br />意见</td> <td class="label" rowspan="4">学务<br />意见</td>
<td class="input-cell" colspan="8" rowspan="4"> <td class="input-cell" colspan="8" rowspan="4">
<el-input v-model="academicApproval.approvalOpinion" type="textarea" :rows="3" placeholder="请填写学务意见..." <el-input v-model="academicApproval.approvalOpinion" type="textarea" :rows="3" placeholder="请填写学务意见..."
@@ -160,10 +172,10 @@
</tr> </tr>
<tr></tr> <tr></tr>
<tr></tr> <tr></tr>
<tr></tr> <tr></tr> -->
<!-- 二级学院意见行 --> <!-- 二级学院意见行 -->
<tr v-if="!roleGroup.includes('学生')"> <!-- <tr v-if="!roleGroup.includes('学生')">
<td class="label" rowspan="4">二级学院意见</td> <td class="label" rowspan="4">二级学院意见</td>
<td class="input-cell" colspan="8" rowspan="4"> <td class="input-cell" colspan="8" rowspan="4">
<el-input v-model="collegeApproval.approvalOpinion" type="textarea" :rows="3" placeholder="请填写二级学院意见..." <el-input v-model="collegeApproval.approvalOpinion" type="textarea" :rows="3" placeholder="请填写二级学院意见..."
@@ -184,10 +196,10 @@
</tr> </tr>
<tr></tr> <tr></tr>
<tr></tr> <tr></tr>
<tr></tr> <tr></tr> -->
<!-- 学籍管理科意见行 --> <!-- 学籍管理科意见行 -->
<tr v-if="!roleGroup.includes('学生')"> <!-- <tr v-if="!roleGroup.includes('学生')">
<td class="label" rowspan="5">学籍管理科<br />意见</td> <td class="label" rowspan="5">学籍管理科<br />意见</td>
<td class="input-cell" colspan="8" rowspan="5"> <td class="input-cell" colspan="8" rowspan="5">
<el-input v-model="studentStatusApproval.approvalOpinion" type="textarea" :rows="3" <el-input v-model="studentStatusApproval.approvalOpinion" type="textarea" :rows="3"
@@ -210,10 +222,10 @@
<tr></tr> <tr></tr>
<tr></tr> <tr></tr>
<tr></tr> <tr></tr>
<tr></tr> <tr></tr> -->
<!-- 教务处主管领导意见行 --> <!-- 教务处主管领导意见行 -->
<tr v-if="!roleGroup.includes('学生')"> <!-- <tr v-if="!roleGroup.includes('学生')">
<td class="label" rowspan="4">教务处<br />主管领导意见</td> <td class="label" rowspan="4">教务处<br />主管领导意见</td>
<td class="input-cell" colspan="8" rowspan="4"> <td class="input-cell" colspan="8" rowspan="4">
<el-input v-model="deanApproval.approvalOpinion" type="textarea" :rows="3" placeholder="请填写教务处主管领导意见..." <el-input v-model="deanApproval.approvalOpinion" type="textarea" :rows="3" placeholder="请填写教务处主管领导意见..."
@@ -234,7 +246,7 @@
</tr> </tr>
<tr></tr> <tr></tr>
<tr></tr> <tr></tr>
<tr></tr> <tr></tr> -->
<!-- 备注行 --> <!-- 备注行 -->
<tr> <tr>
@@ -276,12 +288,15 @@
<script> <script>
import { getOwnInfo, getEnlistmentReserve, delEnlistmentReserve, addEnlistmentReserve, updateEnlistmentReserve } from "@/api/routine/enlistmentReserve/enlistmentReserve"; import { getOwnInfo, getEnlistmentReserve, delEnlistmentReserve, addEnlistmentReserve, updateEnlistmentReserve } from "@/api/routine/enlistmentReserve/enlistmentReserve";
import { batchAddEnlistmentReserveAttach } from "@/api/routine/enlistmentReserve/enlistmentReserveAttach";
import { getUserProfile } from '@/api/system/user' // 获取当前登录用户 import { getUserProfile } from '@/api/system/user' // 获取当前登录用户
export default { export default {
name: 'EnlistmentReserveForm', name: 'EnlistmentReserveForm',
dicts: ['rt_nation'], dicts: ['rt_nation'],
data() { data() {
return { return {
// 遮罩层
loading: false,
formData: { formData: {
id: null, id: null,
applyNo: '', applyNo: '',
@@ -305,8 +320,10 @@ export default {
approvalNo: '', approvalNo: '',
createTime: '', createTime: '',
updateTime: '', updateTime: '',
remark: '' remark: '',
affixId: null
}, },
enlistmentReserveAttachList: [],
formRules: { formRules: {
studentName: [ studentName: [
{ required: true, message: '请输入姓名', trigger: 'blur' } { required: true, message: '请输入姓名', trigger: 'blur' }
@@ -336,10 +353,7 @@ export default {
{ required: true, message: '请输入家长联系电话', trigger: 'blur' }, { required: true, message: '请输入家长联系电话', trigger: 'blur' },
{ pattern: /^1[3-9]\d{9}$/, message: '请输入有效的手机号码', trigger: 'blur' } { pattern: /^1[3-9]\d{9}$/, message: '请输入有效的手机号码', trigger: 'blur' }
], ],
applyReason: [ affixId: [{ required: true, message: '请上传入伍材料', trigger: 'blur' }],
{ required: true, message: '请输入申请理由', trigger: 'blur' },
{ min: 20, message: '申请理由长度不能少于20字', trigger: 'blur' }
],
reserveStartDate: [ reserveStartDate: [
{ required: true, message: '请选择保留学籍起始时间', trigger: 'change' } { required: true, message: '请选择保留学籍起始时间', trigger: 'change' }
], ],
@@ -408,7 +422,8 @@ export default {
approvalTime: '' approvalTime: ''
}, },
roleGroup: '', roleGroup: '',
user: null user: null,
currentId: null // 用于存储当前接收的 id
}; };
}, },
watch: { watch: {
@@ -420,10 +435,48 @@ export default {
} else { } else {
this.formData.reserveEndDate = ''; this.formData.reserveEndDate = '';
} }
},
// 监听路由参数变化,只要有新的 id 就更新
"$route.query.id": {
immediate: true, // 初始化时立即执行一次
handler(newId, oldId) {
if (newId) {
this.currentId = newId;
// 调用接口加载数据
getEnlistmentReserve(this.currentId).then(res => {
this.formData = res.data
// 处理审批意见列表,添加意见类型
if (this.formData?.enlistmentReserveApprovalList) {
// 定义意见类型数组与索引对应0=辅导员1=学务2=二级学院3=学籍管理科4=教务处主管领导)
const opinionTypes = [
"辅导员意见",
"学务意见",
"二级学院意见",
"学籍管理科意见",
"教务处主管领导意见"
];
// 遍历审批列表,为每条数据添加 opinionType 字段
this.formData.enlistmentReserveApprovalList.forEach((item, index) => {
// 只处理前5条数据超出部分不添加或可根据实际需求调整
if (index < opinionTypes.length) {
item.opinionType = opinionTypes[index];
} else {
// 若超过5条可设置默认值或不设置
item.opinionType = "其他意见";
}
});
}
})
} else {
// 若 id 为空,可做清空处理
this.currentId = null;
this.getUser()
}
}
} }
}, },
mounted() { mounted() {
this.getUser() // this.getUser()
}, },
methods: { methods: {
// 获取当前登录信息 // 获取当前登录信息
@@ -432,24 +485,25 @@ export default {
this.user = response.data this.user = response.data
this.roleGroup = response.roleGroup; this.roleGroup = response.roleGroup;
// this.postGroup = response.postGroup; // this.postGroup = response.postGroup;
console.log(this.user);
if (this.user) { if (this.user) {
this.formData.studentName = this.user.nickName this.formData.studentName = this.user.nickName
this.formData.gender = this.user.sex this.formData.gender = this.user.sex
getOwnInfo().then(res => { getOwnInfo().then(res => {
console.log(res); if (res.data) {
this.formData.studentId = res.data.stuId this.formData.studentId = res.data.stuId
this.formData.studentNo = res.data.stuNo this.formData.studentNo = res.data.stuNo
this.formData.major = res.data.majorName this.formData.major = res.data.majorName
this.formData.className = res.data.className this.formData.className = res.data.className
this.formData.grade = res.data.gradeName this.formData.grade = res.data.gradeName
this.formData.teacherName = res.data.teacherName this.formData.teacherName = res.data.teacherName
}
}) })
} }
}) })
}, },
submitForm(applyStatus) { submitForm(applyStatus) {
this.$refs.formRef.validate((valid) => { this.$refs.formRef.validate((valid) => {
this.loading = true;
if (valid) { if (valid) {
if (!this.formData.applyNo) { if (!this.formData.applyNo) {
const year = new Date().getFullYear(); const year = new Date().getFullYear();
@@ -459,6 +513,8 @@ export default {
} }
this.formData.applyStatus = applyStatus; this.formData.applyStatus = applyStatus;
this.formData.updateTime = new Date().toISOString().split('T')[0]; this.formData.updateTime = new Date().toISOString().split('T')[0];
this.formData.applyReason = "本人应征入伍,申请保留学籍从 " + this.formData.reserveStartDate + " 至退役后两年。"
const submitData = { const submitData = {
formData: this.formData, formData: this.formData,
@@ -475,15 +531,27 @@ export default {
if (this.formData.id != null) { if (this.formData.id != null) {
updateEnlistmentReserve(submitData.formData).then(response => { updateEnlistmentReserve(submitData.formData).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.loading = false;
}); });
} else { } else {
addEnlistmentReserve(submitData.formData).then(response => { addEnlistmentReserve(submitData.formData).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
// 申请表新增成功之后,进行附件的添加
if (response.code == 200) {
// 填写附件里面的申请编号
this.enlistmentReserveAttachList.forEach(element => {
element.applyNo = this.formData.applyNo
element.applyId = response.data.id
})
batchAddEnlistmentReserveAttach(this.enlistmentReserveAttachList)
this.loading = false;
}
}); });
} }
// this.$message.success('提交成功!'); // this.$message.success('提交成功!');
} else { } else {
this.$message.error('表单填写不完整,请检查!'); this.$message.error('表单填写不完整,请检查!');
this.loading = false;
return false; return false;
} }
}); });
@@ -515,6 +583,41 @@ export default {
}, },
printForm() { printForm() {
window.print(); window.print();
},
handleAffix(affixId) {
this.affixId = affixId
},
// 处理组件传递的文件信息
handleAffix(fileInfo) {
if (!fileInfo || !fileInfo.fileName || !fileInfo.filePath) {
console.warn("无效的文件信息,跳过添加");
return; // 不添加空数据
}
// 构建与后端实体匹配的data对象
let data = {
// id: null, // 主键(后端自增)
applyId: this.formData.id || null, // 关联申请表ID从主表单获取
fileName: fileInfo.fileName, // 文件名(从组件传递的信息中获取)
filePath: fileInfo.filePath, // 文件路径相对路径关联sys_file表
fileSize: fileInfo.originalFile?.size || 0, // 若需要可从fileInfo.originalFile.size获取单位字节
fileType: fileInfo.fileType, // 文件类型如docx、pdf
applyNo: this.formData.applyNo || '', // 申请编号(从主表单获取)
studentName: this.formData.studentName || '', // 学生姓名(从主表单获取)
studentNo: this.formData.studentNo || '' // 学号(从主表单获取)
};
// 避免重复添加根据filePath去重
const isDuplicate = this.enlistmentReserveAttachList.some(
item => item.filePath === data.filePath
);
if (!isDuplicate) {
this.enlistmentReserveAttachList.push(data);
console.log('附件添加成功:', this.enlistmentReserveAttachList);
} else {
this.$message.warning('该文件已添加,请勿重复上传');
}
console.log(this.enlistmentReserveAttachList);
} }
} }
}; };

View File

@@ -38,10 +38,23 @@
<el-table v-loading="loading" :data="enlistmentReserveAttachList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="enlistmentReserveAttachList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="主键" align="center" prop="id" /> <el-table-column label="申请表编号" align="center" prop="applyNo" />
<el-table-column label="申请表ID" align="center" prop="applyId" /> <el-table-column label="学生姓名" align="center" prop="studentName" />
<el-table-column label="文件名" align="center" prop="fileName" /> <el-table-column label="学号" align="center" prop="studentNo" />
<el-table-column label="文件路径" align="center" prop="filePath" /> <el-table-column label="文件" align="center" prop="fileName">
<template slot-scope="scope">
<el-tooltip class="item" effect="dark" :content="scope.row.fileName" placement="top">
<div class="text-ellipsis">{{ scope.row.fileName }}</div>
</el-tooltip>
</template>
</el-table-column>
<el-table-column label="文件路径" align="center" prop="filePath">
<template slot-scope="scope">
<el-tooltip class="item" effect="dark" :content="scope.row.filePath" placement="top">
<div class="text-ellipsis">{{ scope.row.filePath }}</div>
</el-tooltip>
</template>
</el-table-column>
<el-table-column label="文件大小" align="center" prop="fileSize" /> <el-table-column label="文件大小" align="center" prop="fileSize" />
<el-table-column label="文件类型" align="center" prop="fileType" /> <el-table-column label="文件类型" align="center" prop="fileType" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@@ -60,8 +73,8 @@
<!-- 添加或修改保留学籍申请附件入伍通知书等对话框 --> <!-- 添加或修改保留学籍申请附件入伍通知书等对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="申请表ID" prop="applyId"> <el-form-item label="申请表编号" prop="applyNo">
<el-input v-model="form.applyId" placeholder="请输入申请表ID" /> <el-input v-model="form.applyNo" placeholder="申请表编号" />
</el-form-item> </el-form-item>
<el-form-item label="文件名" prop="fileName"> <el-form-item label="文件名" prop="fileName">
<el-input v-model="form.fileName" placeholder="请输入文件名" /> <el-input v-model="form.fileName" placeholder="请输入文件名" />
@@ -243,3 +256,11 @@ export default {
} }
}; };
</script> </script>
<style scoped>
.text-ellipsis {
white-space: nowrap; /* 防止文本换行 */
overflow: hidden; /* 隐藏溢出的内容 */
text-overflow: ellipsis; /* 显示省略号 */
}
</style>

View File

@@ -86,9 +86,21 @@
<el-table-column label="班级" align="center" prop="className"> <el-table-column label="班级" align="center" prop="className">
</el-table-column> </el-table-column>
<el-table-column label="专业名称" align="center" prop="major" /> <el-table-column label="专业名称" align="center" prop="major" />
<el-table-column label="家庭地址" align="center" prop="familyAddress" /> <el-table-column label="家庭地址" align="center" prop="familyAddress">
<template slot-scope="scope">
<el-tooltip class="item" effect="dark" :content="scope.row.familyAddress" placement="top">
<div class="text-ellipsis">{{ scope.row.familyAddress }}</div>
</el-tooltip>
</template>
</el-table-column>
<el-table-column label="家长电话" align="center" prop="parentPhone" /> <el-table-column label="家长电话" align="center" prop="parentPhone" />
<el-table-column label="申请理由" align="center" prop="applyReason" /> <el-table-column label="申请理由" align="center" prop="applyReason">
<template slot-scope="scope">
<el-tooltip class="item" effect="dark" :content="scope.row.applyReason" placement="top">
<div class="text-ellipsis">{{ scope.row.applyReason }}</div>
</el-tooltip>
</template>
</el-table-column>
<el-table-column label="申请状态" align="center" prop="applyStatus"> <el-table-column label="申请状态" align="center" prop="applyStatus">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.applyStatus == 0" type="info">待提交</el-tag> <el-tag v-if="scope.row.applyStatus == 0" type="info">待提交</el-tag>
@@ -368,11 +380,16 @@ export default {
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const id = row.id || this.ids // const id = row.id || this.ids
getEnlistmentReserve(id).then(response => { // getEnlistmentReserve(id).then(response => {
this.form = response.data; // this.form = response.data;
this.open = true; // this.open = true;
this.title = "修改应征入伍保留学籍申请"; // this.title = "修改应征入伍保留学籍申请";
// });
// 跳转时携带 row.id 作为路由参数
this.$router.push({
path: "/routine/enlistmentReserve/applicationForm",
query: { id: row.id } // 将 row.id 放在 query 中
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@@ -418,3 +435,11 @@ export default {
} }
}; };
</script> </script>
<style scoped>
.text-ellipsis {
white-space: nowrap; /* 防止文本换行 */
overflow: hidden; /* 隐藏溢出的内容 */
text-overflow: ellipsis; /* 显示省略号 */
}
</style>