mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
完善ai调用日志页面代码
This commit is contained in:
@@ -73,7 +73,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="pa" style="display: flex; justify-content: flex-end; padding: 0 38px">
|
<div class="pa" style="display: flex; justify-content: flex-end; padding: 0 38px">
|
||||||
<a-pagination show-quick-jumper :pageSize="pageSize" :current="pageIndex" :total="total" class="pagination"
|
<a-pagination show-quick-jumper :pageSize="pageSize" :current="pageIndex" :total="total" class="pagination"
|
||||||
@change="handelChangePage" show-size-changer />
|
@change="handelChangePage" :max-tag-count="1" show-size-changer />
|
||||||
</div>
|
</div>
|
||||||
<a-modal v-model:visible="markShow" :footer="null" width="40%" title="查看详细报文">
|
<a-modal v-model:visible="markShow" :footer="null" width="40%" title="查看详细报文">
|
||||||
<div class="markContent">
|
<div class="markContent">
|
||||||
@@ -136,6 +136,7 @@ export default defineComponent({
|
|||||||
key: "requestUrl",
|
key: "requestUrl",
|
||||||
width: "10%",
|
width: "10%",
|
||||||
className: "h",
|
className: "h",
|
||||||
|
ellipsis: true,
|
||||||
customRender: ({ text }) => {
|
customRender: ({ text }) => {
|
||||||
return text ? text : "-";
|
return text ? text : "-";
|
||||||
},
|
},
|
||||||
@@ -144,6 +145,7 @@ export default defineComponent({
|
|||||||
title: "调用时间",
|
title: "调用时间",
|
||||||
dataIndex: "optTime",
|
dataIndex: "optTime",
|
||||||
key: "optTime",
|
key: "optTime",
|
||||||
|
ellipsis: true,
|
||||||
width: "15%",
|
width: "15%",
|
||||||
className: "h",
|
className: "h",
|
||||||
customRender: ({ text }) => {
|
customRender: ({ text }) => {
|
||||||
@@ -155,6 +157,7 @@ export default defineComponent({
|
|||||||
dataIndex: "requestBody",
|
dataIndex: "requestBody",
|
||||||
key: "requestBody",
|
key: "requestBody",
|
||||||
width: "25%",
|
width: "25%",
|
||||||
|
ellipsis: true,
|
||||||
className: "h",
|
className: "h",
|
||||||
customRender: ({ text }) => {
|
customRender: ({ text }) => {
|
||||||
return text ? text : "-";
|
return text ? text : "-";
|
||||||
@@ -165,6 +168,7 @@ export default defineComponent({
|
|||||||
dataIndex: "responseBody",
|
dataIndex: "responseBody",
|
||||||
key: "responseBody",
|
key: "responseBody",
|
||||||
width: "25%",
|
width: "25%",
|
||||||
|
ellipsis: true,
|
||||||
className: "h",
|
className: "h",
|
||||||
customRender: ({ text }) => {
|
customRender: ({ text }) => {
|
||||||
return text ? text : "-";
|
return text ? text : "-";
|
||||||
@@ -227,13 +231,8 @@ export default defineComponent({
|
|||||||
optTimeStart: state.searchData.callTimeList && state.searchData.callTimeList[0] ? state.searchData.callTimeList[0] + ' 00:00:00' : '',
|
optTimeStart: state.searchData.callTimeList && state.searchData.callTimeList[0] ? state.searchData.callTimeList[0] + ' 00:00:00' : '',
|
||||||
optTimeEnd: state.searchData.callTimeList && state.searchData.callTimeList[1] ? state.searchData.callTimeList[1] + ' 00:00:00' : '',
|
optTimeEnd: state.searchData.callTimeList && state.searchData.callTimeList[1] ? state.searchData.callTimeList[1] + ' 00:00:00' : '',
|
||||||
});
|
});
|
||||||
console.log(res);
|
|
||||||
|
|
||||||
// const { records, totalPages } = res.data.result.list;
|
|
||||||
const { count } = res.data.result
|
|
||||||
state.count = count
|
|
||||||
state.tableData = res.data.result.list;
|
state.tableData = res.data.result.list;
|
||||||
state.total = res.data.result.totalPages;
|
state.total = res.data.result.count;
|
||||||
}
|
}
|
||||||
getTableDate()
|
getTableDate()
|
||||||
// 搜索
|
// 搜索
|
||||||
|
|||||||
Reference in New Issue
Block a user