This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
@upload-success="handleUploadSuccess"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="类型" prop="type">
|
||||
<el-input v-model.trim="form.type" placeholder="请输入类型" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否启用" prop="isEnabled">
|
||||
<el-switch v-model="form.isEnabled" active-text="启用" :active-value="true" inactive-text="禁用" :inactive-value="false" />
|
||||
</el-form-item>
|
||||
@@ -33,6 +36,7 @@
|
||||
id: '',
|
||||
form: {
|
||||
imageUrl: '',
|
||||
type: '',
|
||||
isEnabled: true,
|
||||
},
|
||||
rules: {
|
||||
@@ -60,6 +64,7 @@
|
||||
this.title = '编辑'
|
||||
this.form = {
|
||||
imageUrl: row.imageUrl,
|
||||
type: row.type,
|
||||
isEnabled: row.isEnabled,
|
||||
}
|
||||
this.id = row.id
|
||||
|
||||
Reference in New Issue
Block a user