1
1
<template >
2
2
<content-wrap >
3
3
<!-- 搜索工作栏 -->
4
- <el-form
5
- :model =" queryParams"
6
- ref =" queryFormRef"
7
- :inline =" true"
8
- v-show =" showSearch"
9
- label-width =" 68px"
10
- >
4
+ <el-form :model =" queryParams" ref =" queryFormRef" :inline =" true" label-width =" 68px" >
11
5
<el-form-item label =" 参数名称" prop =" name" >
12
6
<el-input
13
7
v-model =" queryParams.name"
14
8
placeholder =" 请输入参数名称"
15
9
clearable
16
- style =" width : 240px "
17
10
@keyup.enter =" handleQuery"
18
11
/>
19
12
</el-form-item >
22
15
v-model =" queryParams.key"
23
16
placeholder =" 请输入参数键名"
24
17
clearable
25
- style =" width : 240px "
26
18
@keyup.enter =" handleQuery"
27
19
/>
28
20
</el-form-item >
39
31
<el-form-item label =" 创建时间" prop =" createTime" >
40
32
<el-date-picker
41
33
v-model =" queryParams.createTime"
42
- style =" width : 240px "
43
34
value-format =" YYYY-MM-DD HH:mm:ss"
44
35
type =" daterange"
45
36
range-separator =" -"
49
40
/>
50
41
</el-form-item >
51
42
<el-form-item >
52
- <el-button type =" primary" @click =" handleQuery" >
53
- <Icon icon =" ep:search" class =" mr-5px" /> 搜索
54
- </el-button >
43
+ <el-button @click =" handleQuery" ><Icon icon =" ep:search" class =" mr-5px" /> 搜索</el-button >
55
44
<el-button @click =" resetQuery" ><Icon icon =" ep:refresh" class =" mr-5px" /> 重置</el-button >
56
- </el-form-item >
57
- </el-form >
58
-
59
- <!-- 操作栏 -->
60
- <!-- TODO 间隔貌似有点问题 没发现 -->
61
- <el-row :gutter =" 10" class =" mb8" >
62
- <el-col :span =" 1.5" >
63
- <el-button
64
- type =" primary"
65
- plain
66
- @click =" openModal('create')"
67
- v-hasPermi =" ['infra:config:create']"
68
- >
45
+ <el-button type =" primary" @click =" openModal('create')" v-hasPermi =" ['infra:config:create']" >
69
46
<Icon icon =" ep:plus" class =" mr-5px" /> 新增
70
47
</el-button >
71
- </el-col >
72
- <el-col :span =" 1.5" >
73
48
<el-button
74
49
type =" success"
75
50
plain
79
54
>
80
55
<Icon icon =" ep:download" class =" mr-5px" /> 导出
81
56
</el-button >
82
- <el-button text @click =" showSearch = !showSearch" >
83
- <Icon :icon =" showSearch ? 'ep:arrow-up' : 'ep:arrow-down'" />
84
- </el-button >
85
- </el-col >
86
- <!-- TODO 芋艿:右侧导航 -->
87
- <right-toolbar v-model:showSearch =" showSearch" @queryTable =" getList" />
88
- </el-row >
57
+ </el-form-item >
58
+ </el-form >
89
59
90
60
<!-- 列表 -->
91
61
<el-table v-loading =" loading" :data =" list" align =" center" >
112
82
width =" 180"
113
83
:formatter =" dateFormatter"
114
84
/>
115
- <el-table-column label =" 操作" align =" center" width = " 140 " >
85
+ <el-table-column label =" 操作" align =" center" >
116
86
<template #default =" scope " >
117
87
<el-button
118
88
link
119
89
type =" primary"
120
90
@click =" openModal('update', scope.row.id)"
121
91
v-hasPermi =" ['infra:config:update']"
122
92
>
123
- < Icon icon = " ep:edit " /> 修改
93
+ 编辑
124
94
</el-button >
125
95
<el-button
126
96
link
127
- type =" primary "
97
+ type =" danger "
128
98
@click =" handleDelete(scope.row.id)"
129
99
v-hasPermi =" ['infra:config:delete']"
130
100
>
131
- < Icon icon = " ep:delete " /> 删除
101
+ 删除
132
102
</el-button >
133
103
</template >
134
104
</el-table-column >
@@ -147,7 +117,6 @@ import ConfigForm from './form.vue'
147
117
const message = useMessage () // 消息弹窗
148
118
const { t } = useI18n () // 国际化
149
119
150
- const showSearch = ref (true ) // 搜索框的是否展示
151
120
const loading = ref (true ) // 列表的加载中
152
121
const total = ref (0 ) // 列表的总页数
153
122
const list = ref ([]) // 列表的数据
0 commit comments