This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
<template>
|
||||
<el-dialog :title="title" :visible.sync="dialogFormVisible" width="500px" @close="close">
|
||||
<el-form ref="form" label-width="80px" :model="form" :rules="rules">
|
||||
<el-form-item label="类型" prop="type">
|
||||
<el-input v-model.trim="form.type" placeholder="请输入类型" />
|
||||
</el-form-item>
|
||||
<el-form-item label="头像框" prop="imageUrl">
|
||||
<single-upload
|
||||
v-model="form.imageUrl"
|
||||
@@ -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
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
<el-table v-loading="listLoading" :data="list" :element-loading-text="elementLoadingText">
|
||||
<el-table-column align="center" label="排序" prop="sort" show-overflow-tooltip />
|
||||
<el-table-column align="center" label="类型" prop="type" show-overflow-tooltip />
|
||||
|
||||
<el-table-column align="center" label="头像框" width="100">
|
||||
<template slot-scope="scope">
|
||||
@@ -55,7 +56,7 @@
|
||||
@size-change="handleSizeChange"
|
||||
/>
|
||||
<edit ref="edit" @fetch-data="fetchData" />
|
||||
<batch-image-add ref="batchAdd" :do-add="doAdd" @fetch-data="fetchData" />
|
||||
<batch-image-add ref="batchAdd" :do-add="doAdd" has-type @fetch-data="fetchData" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user