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

bugfix

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