diff --git a/sf-ui/src/api/gateway/interface.js b/sf-ui/src/api/gateway/interface.js index d3c849a..f310d1f 100644 --- a/sf-ui/src/api/gateway/interface.js +++ b/sf-ui/src/api/gateway/interface.js @@ -42,3 +42,12 @@ export function delInterface(id) { method: 'delete' }) } + +// 禁用/启用接口管理 +export function changeInterfaceStatus(data) { + return request({ + url: '/gateway/interface/status', + method: 'put', + data: data + }) +} diff --git a/sf-ui/src/api/gateway/server.js b/sf-ui/src/api/gateway/server.js index 8a716da..5f3a940 100644 --- a/sf-ui/src/api/gateway/server.js +++ b/sf-ui/src/api/gateway/server.js @@ -42,3 +42,12 @@ export function delServer(id) { method: 'delete' }) } + +// 启用/停用接口信息(支持批量) +export function changeServerStatus(data) { + return request({ + url: '/gateway/server/status', + method: 'put', + data: data + }) +} diff --git a/sf-ui/src/api/gateway/strategy.js b/sf-ui/src/api/gateway/strategy.js index 3a5f3ee..f5b6fc0 100644 --- a/sf-ui/src/api/gateway/strategy.js +++ b/sf-ui/src/api/gateway/strategy.js @@ -42,3 +42,12 @@ export function delStrategy(id) { method: 'delete' }) } + +// 禁用/启用策略管理 +export function changeStrategyStatus(data) { + return request({ + url: '/gateway/strategy/status', + method: 'put', + data: data + }) +} \ No newline at end of file diff --git a/sf-ui/src/views/gateway/components/BaseSearch.vue b/sf-ui/src/views/gateway/components/BaseSearch.vue new file mode 100644 index 0000000..488f887 --- /dev/null +++ b/sf-ui/src/views/gateway/components/BaseSearch.vue @@ -0,0 +1,100 @@ + + + + + \ No newline at end of file diff --git a/sf-ui/src/views/gateway/components/BaseTable.vue b/sf-ui/src/views/gateway/components/BaseTable.vue new file mode 100644 index 0000000..a2ee2b0 --- /dev/null +++ b/sf-ui/src/views/gateway/components/BaseTable.vue @@ -0,0 +1,78 @@ + + + + + \ No newline at end of file diff --git a/sf-ui/src/views/gateway/interface/index.vue b/sf-ui/src/views/gateway/interface/index.vue index f2b5ace..d4f7e0b 100644 --- a/sf-ui/src/views/gateway/interface/index.vue +++ b/sf-ui/src/views/gateway/interface/index.vue @@ -53,10 +53,10 @@ plain icon="el-icon-edit" size="mini" - :disabled="single" - @click="handleUpdate" + :disabled="multiple" + @click="handleStatus()" v-hasPermi="['gateway:interface:edit']" - >修改 + >批量启用 删除 + >批量删除 - - - - + + + + + + - - - + + - - + + + \ No newline at end of file diff --git a/sf-ui/src/views/gateway/server/config/chooseDialog.vue b/sf-ui/src/views/gateway/server/config/chooseDialog.vue new file mode 100644 index 0000000..fa59af6 --- /dev/null +++ b/sf-ui/src/views/gateway/server/config/chooseDialog.vue @@ -0,0 +1,142 @@ + + + + + \ No newline at end of file diff --git a/sf-ui/src/views/gateway/server/config/index.vue b/sf-ui/src/views/gateway/server/config/index.vue index 95983d4..eaf0238 100644 --- a/sf-ui/src/views/gateway/server/config/index.vue +++ b/sf-ui/src/views/gateway/server/config/index.vue @@ -15,7 +15,12 @@
- + + + + + +
@@ -29,25 +34,31 @@ + + \ No newline at end of file diff --git a/sf-ui/src/views/gateway/server/config/routeConfig.vue b/sf-ui/src/views/gateway/server/config/routeConfig.vue index 273eb77..21b79ad 100644 --- a/sf-ui/src/views/gateway/server/config/routeConfig.vue +++ b/sf-ui/src/views/gateway/server/config/routeConfig.vue @@ -28,8 +28,8 @@ @@ -44,28 +44,24 @@ @pagination="getList" /> - - - - - - - 搜索 - 重置 - - - + diff --git a/sf-ui/src/views/gateway/server/config/strategyConfig.vue b/sf-ui/src/views/gateway/server/config/strategyConfig.vue new file mode 100644 index 0000000..34d07ed --- /dev/null +++ b/sf-ui/src/views/gateway/server/config/strategyConfig.vue @@ -0,0 +1,131 @@ + + + + + \ No newline at end of file diff --git a/sf-ui/src/views/gateway/server/index.vue b/sf-ui/src/views/gateway/server/index.vue index c6a5865..c71de3b 100644 --- a/sf-ui/src/views/gateway/server/index.vue +++ b/sf-ui/src/views/gateway/server/index.vue @@ -55,28 +55,16 @@ v-hasPermi="['gateway:server:add']" >新增
- - + 批量删除 @@ -103,23 +91,23 @@ - - - - - - + + + + + + - - + + - + @@ -129,21 +117,24 @@ 服务配置 - 修改 服务配置 + {{scope.row.status == '1' ? '停止' : '启用'}} + 删除 @@ -181,7 +172,7 @@