|
|
@@ -8,10 +8,10 @@
|
|
|
|
|
|
<el-form :model="queryForm" inline size="small">
|
|
|
<el-form-item label="字段编码">
|
|
|
- <el-input v-model="queryForm.fieldKey" placeholder="字段编码" />
|
|
|
+ <el-input v-model="queryForm.fieldKey" placeholder="字段编码"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="字段名称">
|
|
|
- <el-input v-model="queryForm.fieldLabel" placeholder="字段名称" />
|
|
|
+ <el-input v-model="queryForm.fieldLabel" placeholder="字段名称"/>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<el-row class="action-bar-container" type="flex" justify="end">
|
|
|
@@ -33,11 +33,11 @@
|
|
|
highlight-current-row
|
|
|
@selection-change="selectionChange"
|
|
|
>
|
|
|
- <el-table-column type="selection" width="55" />
|
|
|
- <el-table-column label="字段编码" prop="fieldKey" width="200" />
|
|
|
- <el-table-column label="字段名称" prop="fieldLabel" width="200" />
|
|
|
- <el-table-column label="字段类型" prop="fieldType" width="100" />
|
|
|
- <el-table-column label="默认值" prop="defaultValue" min-width="300" />
|
|
|
+ <el-table-column type="selection" width="55"/>
|
|
|
+ <el-table-column label="字段编码" prop="fieldKey" width="200"/>
|
|
|
+ <el-table-column label="字段名称" prop="fieldLabel" width="200"/>
|
|
|
+ <el-table-column label="字段类型" prop="fieldType" width="100"/>
|
|
|
+ <el-table-column label="默认值" prop="defaultValue" min-width="300"/>
|
|
|
<el-table-column label="操作" width="80" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button v-permission="['place.category.extend.column.edit']" type="text" @click.native="$refs.extendColumnDialogForm.open(scope.row)">编辑</el-button>
|
|
|
@@ -55,14 +55,14 @@
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="visible = false">关闭</el-button>
|
|
|
</div>
|
|
|
- <extend-column-dialog-form ref="extendColumnDialogForm" @ok="fetchData" />
|
|
|
+ <extend-column-dialog-form ref="extendColumnDialogForm" @ok="fetchData"/>
|
|
|
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
|
|
|
-import { findPage, deleteByIds } from '@/api/place/category_extend_column'
|
|
|
+import { deleteByIds, findPage } from '@/api/place/category_extend_column'
|
|
|
import ExtendColumnDialogForm from './ExtendColumnDialogForm'
|
|
|
|
|
|
export default {
|
|
|
@@ -111,7 +111,7 @@ export default {
|
|
|
},
|
|
|
fetchData() {
|
|
|
this.isLoading = true
|
|
|
- findPage({ ...this.queryForm, current: this.currentPage })
|
|
|
+ findPage({ ...this.queryForm, current: this.currentPage, categoryId: this.baseInfo.id })
|
|
|
.then((response) => {
|
|
|
this.pageData = response
|
|
|
})
|