Compare commits

..

No commits in common. "bca204a187b17ab385949146825fce8e8ba02df7" and "1729fb026e0fe7f0403447602ff293442cd312de" have entirely different histories.

3 changed files with 16 additions and 36 deletions

View File

@ -75,9 +75,9 @@
border
default-expand-all:false
:tree-props="{
children: 'children',
hasChildren: 'hasChildren',
}"
children: 'children',
hasChildren: 'hasChildren',
}"
>
<el-table-column prop="name" label="参数名称">
</el-table-column>
@ -85,8 +85,8 @@
</el-table-column>
<el-table-column prop="type" label="请求类型">
</el-table-column>
<!-- <el-table-column prop="isRequired" label="是否必须">-->
<!-- </el-table-column>-->
<el-table-column prop="isRequired" label="是否必须">
</el-table-column>
<el-table-column prop="dataType" label="数据类型">
</el-table-column>
<el-table-column prop="schema" label="schema">
@ -104,11 +104,7 @@
<div class="list">
<div class="title">响应状态</div>
<div class="main">
<el-table
border
:data="item.responseStatus"
style="width: 100%"
>
<el-table border :data="item.responseStatus" style="width: 100%">
<el-table-column prop="statusCode" label="状态码">
</el-table-column>
<el-table-column prop="illustrate" label="说明">
@ -136,9 +132,9 @@
row-key="enumerateNames"
border
:tree-props="{
children: 'children',
hasChildren: 'hasChildren',
}"
children: 'children',
hasChildren: 'hasChildren',
}"
default-expand-all:false
>
<el-table-column
@ -155,7 +151,7 @@
</div>
</template>
<template v-else>
<div v-html="item.htmlStr" />
<div v-html="item.htmlStr"/>
</template>
</div>
</div>
@ -429,6 +425,7 @@ const contentList = ref([
{
parentIndex: 1,
childrenIndex: 1,
title: "请求加密方式",
isHTML: true,
htmlStr: `
<div style="background: #ffffff;margin-bottom: 5px;border-bottom: 10px solid #f9f9f9;">

View File

@ -1,16 +1,10 @@
<template>
<div>
<app-search v-model="searchForm" :options @submit="resetPagination">
<template #button>
<el-button type="primary" @click="fnPush('')"></el-button>
</template>
</app-search>
<app-search v-model="searchForm" :options @submit="resetPagination" />
<app-table
ref="tableRef"
v-model:pagination="pagination"
:data="list"
show-selection
row-key="id"
@get-data="getData"
>
<el-table-column prop="serviceName" label="服务平台名称" />
@ -143,19 +137,9 @@ const fnDelete = async (id) => {
resetPagination();
};
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) }];
}
await ElMessageBox.confirm(id ? "确定要重新推送吗?" : "确认要批量推送吗?", {
//
const records =[{ id: id, dataType: Number(route.query.dataType) }];
await ElMessageBox.confirm("确定要重新推送吗?", {
type: "warning",
});
await setRecordDataPush(records);

View File

@ -51,7 +51,6 @@ export const reqMapArr = [
{ key: "taskName", label: "任务名称" },
{ key: "planId", label: "清单ID" },
{ key: "dataId", label: "数据ID" },
{ key: "checkTime", label: "排查时间" },
],
reqMap: {
@ -60,7 +59,7 @@ export const reqMapArr = [
taskName: "",
planId: "",
dataId: "",
checkTime: "",
},
},
{