Commit 5617c011 authored by ww-xxy's avatar ww-xxy

修改子段

parent be164640
...@@ -3,13 +3,7 @@ ...@@ -3,13 +3,7 @@
<div class="content"> <div class="content">
<div class="top"> <div class="top">
<h1 class="title_text">{{ detailsForm.interfaceName }}</h1> <h1 class="title_text">{{ detailsForm.interfaceName }}</h1>
<a-button <a-button type="primary" class="addclass" @click="$router.go(-1)" style="margin-bottom: 1rem">返回上一级</a-button>
type="primary"
class="addclass"
@click="$router.go(-1)"
style="margin-bottom: 1rem"
>返回上一级</a-button
>
</div> </div>
<a-card title="接口信息" :bordered="false" class="card_box"> <a-card title="接口信息" :bordered="false" class="card_box">
<a-descriptions> <a-descriptions>
...@@ -28,21 +22,12 @@ ...@@ -28,21 +22,12 @@
<a-descriptions-item label="content-type">{{ <a-descriptions-item label="content-type">{{
detailsForm.contentType detailsForm.contentType
}}</a-descriptions-item> }}</a-descriptions-item>
<a-descriptions-item label="超时时长" <a-descriptions-item label="超时时长">{{ detailsForm.timeoutValue }}</a-descriptions-item>
>{{ detailsForm.timeoutValue }}</a-descriptions-item
>
<a-descriptions-item label="限流策略">{{ <a-descriptions-item label="限流策略">{{
detailsForm.limitStrategy == 1 ? "分钟" : "小时" detailsForm.limitStrategy == 1 ? "分钟" : "小时"
}}</a-descriptions-item> }}</a-descriptions-item>
<a-descriptions-item <a-descriptions-item label="访问网络" v-if="detailsForm && detailsForm.network">
label="访问网络" <span v-for="(item, idx) of dict.network" v-show="detailsForm.network.indexOf(idx) != -1" :key="idx">
v-if="detailsForm && detailsForm.network"
>
<span
v-for="(item, idx) of dict.network"
v-show="detailsForm.network.indexOf(idx) != -1"
:key="idx"
>
{{ item }} {{ item }}
</span> </span>
</a-descriptions-item> </a-descriptions-item>
...@@ -55,7 +40,8 @@ ...@@ -55,7 +40,8 @@
<a-descriptions-item label="请求路径">{{ <a-descriptions-item label="请求路径">{{
detailsForm.requestUrl detailsForm.requestUrl
}}</a-descriptions-item> }}</a-descriptions-item>
<br /> <a-descriptions-item label="流控信息">--</a-descriptions-item>
<a-descriptions-item label="授权信息">--</a-descriptions-item>
<a-descriptions-item label="描述" span="{3}">{{ <a-descriptions-item label="描述" span="{3}">{{
detailsForm.description detailsForm.description
}}</a-descriptions-item> }}</a-descriptions-item>
...@@ -63,11 +49,7 @@ ...@@ -63,11 +49,7 @@
</a-card> </a-card>
<a-card title="请求参数" :bordered="false" class="card_box"> <a-card title="请求参数" :bordered="false" class="card_box">
<div class="flex aic jcb mb10"> <div class="flex aic jcb mb10">
<a-radio-group <a-radio-group v-model="requestPam.type" button-style="solid" disabled>
v-model="requestPam.type"
button-style="solid"
disabled
>
<a-radio-button value="path"> 路径参数 </a-radio-button> <a-radio-button value="path"> 路径参数 </a-radio-button>
<a-radio-button value="headers"> headers </a-radio-button> <a-radio-button value="headers"> headers </a-radio-button>
<a-radio-button value="query"> query </a-radio-button> <a-radio-button value="query"> query </a-radio-button>
...@@ -78,15 +60,8 @@ ...@@ -78,15 +60,8 @@
<div>{{ detailsForm.inEncrypt == 1 ? "加密" : "不加密" }}</div> <div>{{ detailsForm.inEncrypt == 1 ? "加密" : "不加密" }}</div>
</div> </div>
</div> </div>
<a-table <a-table size="middle" bordered :row-key="(record) => record.id" :locale="{ emptyText: '无' }" :pagination="false"
size="middle" :columns="table_columns" :dataSource="requestPam.table">
bordered
:row-key="(record) => record.id"
:locale="{ emptyText: '无' }"
:pagination="false"
:columns="table_columns"
:dataSource="requestPam.table"
>
</a-table> </a-table>
</a-card> </a-card>
...@@ -97,15 +72,8 @@ ...@@ -97,15 +72,8 @@
<div>{{ detailsForm.outEncrypt == 1 ? "加密" : "不加密" }}</div> <div>{{ detailsForm.outEncrypt == 1 ? "加密" : "不加密" }}</div>
</div> </div>
</div> </div>
<a-table <a-table size="middle" bordered :row-key="(record) => record.id" :locale="{ emptyText: '无' }" :pagination="false"
size="middle" :columns="table_columns" :dataSource="responsePam.table">
bordered
:row-key="(record) => record.id"
:locale="{ emptyText: '无' }"
:pagination="false"
:columns="table_columns"
:dataSource="responsePam.table"
>
</a-table> </a-table>
</a-card> </a-card>
...@@ -123,6 +91,11 @@ ...@@ -123,6 +91,11 @@
</pre> </pre>
</div> </div>
</a-card> </a-card>
<a-card title="变更记录" :bordered="false" class="card_box">
<a-table size="middle" bordered :row-key="(record) => record.id" :locale="{ emptyText: '无' }" :pagination="false"
:columns="table_columns_gb" :dataSource="[]">
</a-table>
</a-card>
</div> </div>
</div> </div>
</template> </template>
...@@ -175,6 +148,23 @@ export default { ...@@ -175,6 +148,23 @@ export default {
width: 200, width: 200,
}, },
], ],
table_columns_gb: [
{
title: "版本号",
align: "center",
dataIndex: "name",
},
{
title: "变更说明",
align: "center",
dataIndex: "name",
},
{
title: "变更时间",
align: "center",
dataIndex: "name",
},
],
allResData: null, allResData: null,
errJson: { msg: "请选择待查看产品接口信息", code: -1 }, errJson: { msg: "请选择待查看产品接口信息", code: -1 },
}; };
...@@ -286,7 +276,7 @@ export default { ...@@ -286,7 +276,7 @@ export default {
margin-bottom: 1rem; margin-bottom: 1rem;
} }
& + .card_box { &+.card_box {
margin-top: 1rem; margin-top: 1rem;
} }
} }
...@@ -298,21 +288,15 @@ export default { ...@@ -298,21 +288,15 @@ export default {
width: 100%; width: 100%;
height: @headerH; height: @headerH;
background: rgb(59, 135, 255); background: rgb(59, 135, 255);
background: -moz-linear-gradient( background: -moz-linear-gradient(174deg,
174deg, rgba(59, 135, 255, 1) 24%,
rgba(59, 135, 255, 1) 24%, rgba(108, 53, 247, 1) 85%);
rgba(108, 53, 247, 1) 85% background: -webkit-linear-gradient(174deg,
); rgba(59, 135, 255, 1) 24%,
background: -webkit-linear-gradient( rgba(108, 53, 247, 1) 85%);
174deg, background: linear-gradient(174deg,
rgba(59, 135, 255, 1) 24%, rgba(59, 135, 255, 1) 24%,
rgba(108, 53, 247, 1) 85% rgba(108, 53, 247, 1) 85%);
);
background: linear-gradient(
174deg,
rgba(59, 135, 255, 1) 24%,
rgba(108, 53, 247, 1) 85%
);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#3b87ff", endColorstr="#6c35f7", GradientType=1); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#3b87ff", endColorstr="#6c35f7", GradientType=1);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment