This commit is contained in:
itcast 2025-12-04 10:15:29 +08:00
parent 938cdece67
commit 8e731712e5
1 changed files with 8 additions and 8 deletions

View File

@ -104,7 +104,7 @@
class="primary-lease" class="primary-lease"
@click="handleOpenDetailDialog(row)" @click="handleOpenDetailDialog(row)"
> >
装备质检记录 维保记录
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -125,13 +125,13 @@
<el-dialog <el-dialog
:title="dialogTitle" :title="dialogTitle"
:visible.sync="addOrEditDialogVisible" :visible.sync="addOrEditDialogVisible"
:width="dialogTitle === '质检新增' ? '40%' : '60%'" :width="dialogTitle === '维保操作' ? '40%' : '60%'"
align-center align-center
destroy-on-close destroy-on-close
@close="onClose" @close="onClose"
> >
<!-- 新增质检表单 --> <!-- 新增质检表单 -->
<template v-if="dialogTitle === '质检新增'"> <template v-if="dialogTitle === '维保操作'">
<el-form <el-form
v-if="addOrEditDialogVisible" v-if="addOrEditDialogVisible"
ref="addOrEditFormRef" ref="addOrEditFormRef"
@ -209,7 +209,7 @@
</template> </template>
<!-- 质检记录详情 --> <!-- 质检记录详情 -->
<template v-if="dialogTitle === '质检记录'"> <template v-if="dialogTitle === '维保记录'">
<el-row style="padding-bottom: 20px"> <el-row style="padding-bottom: 20px">
<el-col :span="6"> <el-col :span="6">
<span>装备编号</span> <span>装备编号</span>
@ -347,7 +347,7 @@
</template> </template>
<!-- 对话框底部按钮 --> <!-- 对话框底部按钮 -->
<template #footer v-if="dialogTitle === '质检新增'"> <template #footer v-if="dialogTitle === '维保操作'">
<div class="dialog-footer"> <div class="dialog-footer">
<el-button type="primary" class="primary-lease" @click="onCancel">取消</el-button> <el-button type="primary" class="primary-lease" @click="onCancel">取消</el-button>
<el-button type="primary" class="primary-lease" @click="onSubmit">提交</el-button> <el-button type="primary" class="primary-lease" @click="onSubmit">提交</el-button>
@ -553,7 +553,7 @@ export default {
// //
handleOpenAddDialog(row) { handleOpenAddDialog(row) {
this.isRepublish = true this.isRepublish = true
this.dialogTitle = '质检新增' this.dialogTitle = '维保操作'
this.addOrEditDialogVisible = true this.addOrEditDialogVisible = true
// //
this.addOrEditForm = { this.addOrEditForm = {
@ -579,7 +579,7 @@ export default {
this.searchParamsInDialog.qcEndTime = '' this.searchParamsInDialog.qcEndTime = ''
this.searchParamsInDialog.createStartTime = '' this.searchParamsInDialog.createStartTime = ''
this.searchParamsInDialog.createEndTime = '' this.searchParamsInDialog.createEndTime = ''
this.dialogTitle = '质检记录' this.dialogTitle = '维保记录'
this.addOrEditDialogVisible = true this.addOrEditDialogVisible = true
this.getLeaseListDataInDialog() this.getLeaseListDataInDialog()
}, },
@ -672,7 +672,7 @@ export default {
// //
onClose() { onClose() {
if (this.dialogTitle !== '质检记录') { if (this.dialogTitle !== '维保记录') {
this.$refs.addOrEditFormRef.resetFields() this.$refs.addOrEditFormRef.resetFields()
this.fileList = [] this.fileList = []
this.addOrEditForm.fileInfoList = [] this.addOrEditForm.fileInfoList = []