1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
| <template>
| <el-bus-crud v-bind="tableConfig" />
| </template>
|
| <script>
| import { getSortConfig } from '@/utils/form-item-config'
| export default {
| data() {
| return {
| tableConfig: {
| url: 'flower/api/flower/param/list/items',
| extraQuery: {
| id: this.$route.params.id,
| },
| extraBody: {
| paramId: this.$route.params.id,
| },
| hasPagination: false,
| columns: [
| { label: '参数名称', prop: 'name' },
| { label: '参数值', prop: 'content' },
| ],
| form: [
| {
| label: '参数名称:',
| id: 'name',
| type: 'input',
| rules: {
| required: true,
| message: '请输入参数名称',
| trigger: 'blur',
| },
| },
| {
| label: '参数值:',
| id: 'content',
| type: 'input',
| rules: {
| required: true,
| message: '请输入参数值',
| trigger: 'blur',
| },
| },
| {
| ...getSortConfig(),
| },
| ],
| },
| }
| },
| head() {
| return {
| title: '参数列表',
| }
| },
| }
| </script>
|
| <style lang="scss" scoped></style>
|
|