File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -19,32 +19,32 @@ export interface PluginConfigVO {
19
19
20
20
// IoT 插件配置 API
21
21
export const PluginConfigApi = {
22
- // 查询IoT 插件配置分页
22
+ // 查询插件配置分页
23
23
getPluginConfigPage : async ( params : any ) => {
24
24
return await request . get ( { url : `/iot/plugin-config/page` , params } )
25
25
} ,
26
26
27
- // 查询IoT 插件配置详情
27
+ // 查询插件配置详情
28
28
getPluginConfig : async ( id : number ) => {
29
29
return await request . get ( { url : `/iot/plugin-config/get?id=` + id } )
30
30
} ,
31
31
32
- // 新增IoT 插件配置
32
+ // 新增插件配置
33
33
createPluginConfig : async ( data : PluginConfigVO ) => {
34
34
return await request . post ( { url : `/iot/plugin-config/create` , data } )
35
35
} ,
36
36
37
- // 修改IoT 插件配置
37
+ // 修改插件配置
38
38
updatePluginConfig : async ( data : PluginConfigVO ) => {
39
39
return await request . put ( { url : `/iot/plugin-config/update` , data } )
40
40
} ,
41
41
42
- // 删除IoT 插件配置
42
+ // 删除插件配置
43
43
deletePluginConfig : async ( id : number ) => {
44
44
return await request . delete ( { url : `/iot/plugin-config/delete?id=` + id } )
45
45
} ,
46
46
47
- // 修改IoT 插件状态
47
+ // 修改插件状态
48
48
updatePluginStatus : async ( data : any ) => {
49
49
return await request . put ( { url : `/iot/plugin-config/update-status` , data } )
50
50
}
Original file line number Diff line number Diff line change 4
4
<div >
5
5
<el-col >
6
6
<el-row >
7
- <span class =" text-xl font-bold" >插件详情 </span >
7
+ <span class =" text-xl font-bold" >插件配置 </span >
8
8
</el-row >
9
9
</el-col >
10
10
</div >
42
42
</ContentWrap >
43
43
</div >
44
44
<!-- TODO @haohao:待完成:配置管理 -->
45
- <!-- TODO @haohao:待完成:script 管理 -->
45
+ <!-- TODO @haohao:待完成:script 管理;可以最后搞 -->
46
46
<!-- TODO @haohao:插件实例的前端展示:底部要不要加个分页,展示运行中的实力?默认勾选,只展示 state 为在线的 -->
47
47
48
48
<!-- 插件导入对话框 -->
@@ -77,7 +77,7 @@ const pluginConfig = ref<PluginConfigVO>({
77
77
script: ' '
78
78
})
79
79
80
- /** 获取插件详情 */
80
+ /** 获取插件配置 */
81
81
const getPluginConfig = async (id : number ) => {
82
82
pluginConfig .value = await PluginConfigApi .getPluginConfig (id )
83
83
}
@@ -96,7 +96,7 @@ const handleStatusChange = async (status: number) => {
96
96
status
97
97
})
98
98
message .success (' 更新状态成功' )
99
- // 获取详情
99
+ // 获取配置
100
100
await getPluginConfig (pluginConfig .value .id )
101
101
} catch (error ) {
102
102
pluginConfig .value .status = status === 1 ? 0 : 1
@@ -110,7 +110,7 @@ const handleImport = () => {
110
110
importFormRef .value .open ()
111
111
}
112
112
113
- /** 初始化插件详情 */
113
+ /** 初始化插件配置 */
114
114
onMounted (() => {
115
115
const id = Number (route .params .id )
116
116
if (id ) {
You can’t perform that action at this time.
0 commit comments