Compare commits
No commits in common. "bca204a187b17ab385949146825fce8e8ba02df7" and "1729fb026e0fe7f0403447602ff293442cd312de" have entirely different histories.
bca204a187
...
1729fb026e
|
|
@ -85,8 +85,8 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="type" label="请求类型">
|
<el-table-column prop="type" label="请求类型">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column prop="isRequired" label="是否必须">-->
|
<el-table-column prop="isRequired" label="是否必须">
|
||||||
<!-- </el-table-column>-->
|
</el-table-column>
|
||||||
<el-table-column prop="dataType" label="数据类型">
|
<el-table-column prop="dataType" label="数据类型">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="schema" label="schema">
|
<el-table-column prop="schema" label="schema">
|
||||||
|
|
@ -104,11 +104,7 @@
|
||||||
<div class="list">
|
<div class="list">
|
||||||
<div class="title">响应状态</div>
|
<div class="title">响应状态</div>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<el-table
|
<el-table border :data="item.responseStatus" style="width: 100%">
|
||||||
border
|
|
||||||
:data="item.responseStatus"
|
|
||||||
style="width: 100%"
|
|
||||||
>
|
|
||||||
<el-table-column prop="statusCode" label="状态码">
|
<el-table-column prop="statusCode" label="状态码">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="illustrate" label="说明">
|
<el-table-column prop="illustrate" label="说明">
|
||||||
|
|
@ -155,7 +151,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div v-html="item.htmlStr" />
|
<div v-html="item.htmlStr"/>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -429,6 +425,7 @@ const contentList = ref([
|
||||||
{
|
{
|
||||||
parentIndex: 1,
|
parentIndex: 1,
|
||||||
childrenIndex: 1,
|
childrenIndex: 1,
|
||||||
|
title: "请求加密方式",
|
||||||
isHTML: true,
|
isHTML: true,
|
||||||
htmlStr: `
|
htmlStr: `
|
||||||
<div style="background: #ffffff;margin-bottom: 5px;border-bottom: 10px solid #f9f9f9;">
|
<div style="background: #ffffff;margin-bottom: 5px;border-bottom: 10px solid #f9f9f9;">
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<app-search v-model="searchForm" :options @submit="resetPagination">
|
<app-search v-model="searchForm" :options @submit="resetPagination" />
|
||||||
<template #button>
|
|
||||||
<el-button type="primary" @click="fnPush('')">批量推送</el-button>
|
|
||||||
</template>
|
|
||||||
</app-search>
|
|
||||||
<app-table
|
<app-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
v-model:pagination="pagination"
|
v-model:pagination="pagination"
|
||||||
:data="list"
|
:data="list"
|
||||||
show-selection
|
|
||||||
row-key="id"
|
|
||||||
@get-data="getData"
|
@get-data="getData"
|
||||||
>
|
>
|
||||||
<el-table-column prop="serviceName" label="服务平台名称" />
|
<el-table-column prop="serviceName" label="服务平台名称" />
|
||||||
|
|
@ -143,19 +137,9 @@ const fnDelete = async (id) => {
|
||||||
resetPagination();
|
resetPagination();
|
||||||
};
|
};
|
||||||
const fnPush = async (id) => {
|
const fnPush = async (id) => {
|
||||||
let records = []
|
|
||||||
if(!id){
|
|
||||||
records = tableRef.value.getSelectionRows().map(item => ({ id: item.id, dataType: Number(route.query.dataType) }))
|
|
||||||
console.log(records)
|
|
||||||
if(records.length === 0){
|
|
||||||
ElMessage.warning("请选择要推送的数据");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}else {
|
|
||||||
// 检查参数类型,如果是字符串或数字,则转换为单元素数组
|
// 检查参数类型,如果是字符串或数字,则转换为单元素数组
|
||||||
records =[{ id: id, dataType: Number(route.query.dataType) }];
|
const records =[{ id: id, dataType: Number(route.query.dataType) }];
|
||||||
}
|
await ElMessageBox.confirm("确定要重新推送吗?", {
|
||||||
await ElMessageBox.confirm(id ? "确定要重新推送吗?" : "确认要批量推送吗?", {
|
|
||||||
type: "warning",
|
type: "warning",
|
||||||
});
|
});
|
||||||
await setRecordDataPush(records);
|
await setRecordDataPush(records);
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,6 @@ export const reqMapArr = [
|
||||||
{ key: "taskName", label: "任务名称" },
|
{ key: "taskName", label: "任务名称" },
|
||||||
{ key: "planId", label: "清单ID" },
|
{ key: "planId", label: "清单ID" },
|
||||||
{ key: "dataId", label: "数据ID" },
|
{ key: "dataId", label: "数据ID" },
|
||||||
{ key: "checkTime", label: "排查时间" },
|
|
||||||
|
|
||||||
],
|
],
|
||||||
reqMap: {
|
reqMap: {
|
||||||
|
|
@ -60,7 +59,7 @@ export const reqMapArr = [
|
||||||
taskName: "",
|
taskName: "",
|
||||||
planId: "",
|
planId: "",
|
||||||
dataId: "",
|
dataId: "",
|
||||||
checkTime: "",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue