提交代码
This commit is contained in:
1 parent
29e8981cc6
commit
6d3ffdb0f6
1 file changed
+25
-7
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<el-dialog :title="dialog.title" v-model="dialog.visible" width="1000px" append-to-body destroy-on-close>
|
||||
<el-form ref="disciplineRecordFormRef" :model="form" :rules="rules" label-width="120px" :disabled="dialog.title === '查看'">
|
||||
<el-form ref="disciplineRecordFormRef" :model="form" :rules="rules" label-width="120px">
|
||||
<el-row :gutter="20">
|
||||
<!-- 左列:学生选择和违纪处分信息 -->
|
||||
<el-col :span="12">
|
||||
@@ -32,7 +32,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- 查看模式下直接显示学生姓名 -->
|
||||
<el-form-item label="学生姓名" v-else>
|
||||
<el-form-item label="学生选择" v-else>
|
||||
<div class="student-display">
|
||||
<span class="student-name-text">{{ form.studentName }}</span>
|
||||
<span class="student-no-text" v-if="form.studentNo">({{ form.studentNo }})</span>
|
||||
@@ -46,6 +46,7 @@
|
||||
clearable
|
||||
@change="handleDisciplineTypeChange"
|
||||
style="width: 100%"
|
||||
:disabled="dialog.title === '查看'"
|
||||
>
|
||||
<el-option v-for="type in disciplineTypeOptions" :key="type.id" :label="type.typeName" :value="type.id" />
|
||||
</el-select>
|
||||
@@ -57,6 +58,7 @@
|
||||
placeholder="请选择违纪处分日期"
|
||||
style="width: 100%"
|
||||
value-format="YYYY-MM-DD"
|
||||
:disabled="dialog.title === '查看'"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="扣分分值" prop="scoreDeduction">
|
||||
@@ -68,10 +70,11 @@
|
||||
:step="1"
|
||||
placeholder="请输入扣分分值"
|
||||
style="width: 100%"
|
||||
:disabled="dialog.title === '查看'"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="状态" prop="status">
|
||||
<el-radio-group v-model="form.status">
|
||||
<el-radio-group v-model="form.status" :disabled="dialog.title === '查看'">
|
||||
<el-radio v-for="dict in student_discipline_status" :key="dict.value" :value="dict.value">{{ dict.label }}</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
@@ -101,7 +104,13 @@
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="违纪处分原因" prop="disciplineReason">
|
||||
<el-input v-model="form.disciplineReason" type="textarea" placeholder="请输入违纪处分原因" :rows="3" />
|
||||
<el-input
|
||||
v-model="form.disciplineReason"
|
||||
type="textarea"
|
||||
placeholder="请输入违纪处分原因"
|
||||
:rows="3"
|
||||
:disabled="dialog.title === '查看'"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -109,7 +118,13 @@
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="违纪处分内容" prop="disciplineContent">
|
||||
<el-input v-model="form.disciplineContent" type="textarea" placeholder="请输入违纪处分内容" :rows="3" />
|
||||
<el-input
|
||||
v-model="form.disciplineContent"
|
||||
type="textarea"
|
||||
placeholder="请输入违纪处分内容"
|
||||
:rows="3"
|
||||
:disabled="dialog.title === '查看'"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -181,7 +196,7 @@
|
||||
<el-button type="success" @click.stop="handleDownloadAttachment(file)" title="下载" :disabled="file.status !== 'success'">
|
||||
<el-icon><Download /></el-icon>
|
||||
</el-button>
|
||||
<el-button type="danger" @click.stop="handleRemoveAttachmentConfirm(file)" title="删除">
|
||||
<el-button type="danger" @click.stop="handleRemoveAttachmentConfirm(file)" title="删除" :disabled="dialog.title === '查看'">
|
||||
<el-icon><Delete /></el-icon>
|
||||
</el-button>
|
||||
</el-button-group>
|
||||
@@ -947,11 +962,14 @@ defineExpose({
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 12px;
|
||||
padding: 0 11px;
|
||||
background: #f8f9fa;
|
||||
border: 1px solid #e4e7ed;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
height: 32px;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.student-name-text {
|
||||
|
||||
Reference in new issue
Block a user