Commit 5ac1609e authored by 李鹏 's avatar 李鹏

bugfix

parent e2989c11
...@@ -17,6 +17,7 @@ import bgBreadcrumb from "@/components/bg-breadcrumb.vue"; ...@@ -17,6 +17,7 @@ import bgBreadcrumb from "@/components/bg-breadcrumb.vue";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import axios from "@/request/http.js"; import axios from "@/request/http.js";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import { dateStringTransform } from "@/services/helper.js";
const route = useRoute(); const route = useRoute();
...@@ -113,6 +114,10 @@ const getApproveInfo = () => { ...@@ -113,6 +114,10 @@ const getApproveInfo = () => {
item.value = ["待审批", "通过", "驳回"][result[item.key]]; item.value = ["待审批", "通过", "驳回"][result[item.key]];
return; return;
} }
if (item.key === "approval_time") {
item.value = dateStringTransform(result[item.key]);
return;
}
item.value = result[item.key]; item.value = result[item.key];
}); });
} else { } else {
......
...@@ -3,7 +3,22 @@ ...@@ -3,7 +3,22 @@
<bg-breadcrumb></bg-breadcrumb> <bg-breadcrumb></bg-breadcrumb>
<div class="page_content"> <div class="page_content">
<bg-form-gap title="详情"></bg-form-gap> <bg-form-gap title="详情"></bg-form-gap>
<bg-detail-table2 class="detail_info" :list="instanceData.detailInfo"> </bg-detail-table2> <bg-detail-table2 class="detail_info" :list="instanceData.detailInfo">
<template #req_url_value="{ data }">
<el-popover placement="top-start" :width="600" trigger="hover" :content="data.value">
<template #reference>
<p class="show_in_line">{{ data.value }}</p>
</template>
</el-popover>
</template>
<template #res_fields_value="{ data }">
<el-popover placement="bottom-start" :width="800" trigger="hover" :content="data.value">
<template #reference>
<p class="show_in_line">{{ data.value }}</p>
</template>
</el-popover>
</template>
</bg-detail-table2>
</div> </div>
</div> </div>
</template> </template>
...@@ -81,6 +96,7 @@ const instanceData = reactive({ ...@@ -81,6 +96,7 @@ const instanceData = reactive({
label: "请求地址", label: "请求地址",
value: "", value: "",
width: "100%", width: "100%",
childSlot: "req_url_value",
}, },
{ {
key: "req_param", key: "req_param",
...@@ -96,6 +112,7 @@ const instanceData = reactive({ ...@@ -96,6 +112,7 @@ const instanceData = reactive({
key: "res_fields", key: "res_fields",
label: "返回参数", label: "返回参数",
value: "", value: "",
childSlot: "res_fields_value",
}, },
], ],
}); });
...@@ -130,5 +147,11 @@ const getDetailInfo = () => { ...@@ -130,5 +147,11 @@ const getDetailInfo = () => {
margin-bottom: 24px; margin-bottom: 24px;
width: 960px; width: 960px;
} }
.show_in_line {
overflow: hidden;
width: 824px;
text-overflow: ellipsis;
white-space: nowrap;
}
} }
</style> </style>
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