|
@@ -61,7 +61,7 @@
|
|
|
<el-table-column prop="action" label="操作" width="280" align="center">
|
|
|
<template #default="scope">
|
|
|
<el-button type="primary" plain size="small">
|
|
|
- <HcIcon name="add-circle"/>
|
|
|
+ <HcIcon name="add-box"/>
|
|
|
<span>添加同级</span>
|
|
|
</el-button>
|
|
|
<el-button type="primary" plain size="small">
|
|
@@ -78,20 +78,20 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="http-form-res">
|
|
|
- <div class="title-box">返回数据</div>
|
|
|
- res
|
|
|
+ <div class="title-box">
|
|
|
+ <div class="title">返回数据</div>
|
|
|
+ <div class="extra">
|
|
|
+ <el-button type="primary" hc-btn>
|
|
|
+ <HcIcon name="database"/>
|
|
|
+ <span>查看整体JSON数据</span>
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="http-form-res-box">
|
|
|
+ <HcCodeEditor :data="httpForm"/>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <template #action>
|
|
|
- <el-button type="primary" hc-btn>
|
|
|
- <HcIcon name="add-circle"/>
|
|
|
- <span>新增</span>
|
|
|
- </el-button>
|
|
|
- <el-button hc-btn>
|
|
|
- <HcIcon name="edit"/>
|
|
|
- <span>编辑</span>
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
</HcCard>
|
|
|
|
|
|
</div>
|
|
@@ -101,6 +101,7 @@
|
|
|
import {ref,watch,onMounted} from "vue";
|
|
|
import {useRouter, useRoute} from 'vue-router'
|
|
|
import {useAppStore} from "~src/store";
|
|
|
+import HcCodeEditor from "./components/HcCodeEditor.vue";
|
|
|
|
|
|
//初始变量
|
|
|
const router = useRouter()
|
|
@@ -193,6 +194,10 @@ const formDataTable = ref([
|
|
|
position: relative;
|
|
|
padding-left: 24px;
|
|
|
border-left: 1px solid #e4e7ed;
|
|
|
+ .http-form-res-box {
|
|
|
+ position: relative;
|
|
|
+ height: calc(100% - 60px);
|
|
|
+ }
|
|
|
}
|
|
|
.http-form-config, .http-form-data, .http-form-res {
|
|
|
.title-box {
|