This commit is contained in:
parent
d74279bf26
commit
feeed01a9f
|
|
@ -90,7 +90,7 @@
|
|||
<el-card shadow="never" class="content-box">
|
||||
<el-row :gutter="10" class="mb8" style="display: flex; justify-content: flex-end">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" size="mini" @click="handleAdd" style="background: #2CBAB2;">新增装备</el-button>
|
||||
<el-button type="primary" size="mini" @click="handleAdd" style="background: #2CBAB2;">租赁登记</el-button>
|
||||
</el-col>
|
||||
<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" /> -->
|
||||
</el-row>
|
||||
|
|
@ -533,13 +533,13 @@ export default {
|
|||
this.$refs.addOrEditFormRef?.resetFields()
|
||||
// 2. 先判断是新增还是编辑,设置标题和标识
|
||||
if (row.id) {
|
||||
this.dialogTitle = '外租装备编辑' // 用新的标题变量
|
||||
this.dialogTitle = '租赁登记' // 用新的标题变量
|
||||
// 编辑:赋值表单(深拷贝避免修改原数据)
|
||||
this.addOrEditForm = {
|
||||
...row,
|
||||
}
|
||||
} else {
|
||||
this.dialogTitle = '外租装备新建' // 用新的标题变量
|
||||
this.dialogTitle = '租赁登记' // 用新的标题变量
|
||||
// 新增:重置表单默认值
|
||||
this.addOrEditForm = {
|
||||
id: null,
|
||||
|
|
|
|||
Loading…
Reference in New Issue