|
@@ -36,75 +36,75 @@
|
|
|
<template v-slot:card-item>
|
|
|
<div style="height: 100%">
|
|
|
<el-table
|
|
|
+ border
|
|
|
+ id="ftable"
|
|
|
+ :row-style="{backgroundColor:' #e7f2ff'}"
|
|
|
default-expand-all
|
|
|
v-loading="loading"
|
|
|
:show-header="false"
|
|
|
:data="data_map"
|
|
|
- :header-cell-style="{backgroundColor:' #e2f0ff',color: '#636a6e'}"
|
|
|
>
|
|
|
<el-table-column type="expand">
|
|
|
<template #default="props">
|
|
|
- <el-row :gutter="20">
|
|
|
- <!-- <el-col :span="1"></el-col>-->
|
|
|
- <el-col :span="22" :push="2">
|
|
|
- <el-table
|
|
|
- :show-header="false"
|
|
|
- ref="tableRef"
|
|
|
- :data="props.row.child">
|
|
|
- <el-table-column
|
|
|
- width="150">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- type="selection"
|
|
|
- width="55">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column>
|
|
|
- <template #default="{ row }">
|
|
|
- <!-- 通过布局分隔-->
|
|
|
- <el-row>
|
|
|
- <el-col :span="16">
|
|
|
- <!-- 展开内容第一列图片-->
|
|
|
- <div class="center" style="justify-content: left">
|
|
|
- <!-- <img :src="row.SLT_URL"/>-->
|
|
|
- <img src="../../../../../assets/imgs/1720750327521.jpg"/>
|
|
|
- <div style="padding-left: 20px">
|
|
|
- <p>
|
|
|
- <span class="title-font">{{ row.RESOURCE_NAME }}</span><br>
|
|
|
- <span class="content-font">{{ row.RELEASE_REMARKS }}</span>
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- <div class="center expand-column-middle">
|
|
|
- <p>
|
|
|
- <span class="title-font">最近更新时间</span><br>
|
|
|
- <span class="content-font">{{ row.INSERT_TIME }}</span>
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- <el-col :span="3" :push="1">
|
|
|
- <div class="center" style="justify-content: left">
|
|
|
- <i class="iconfont icon-shoucang" style="padding-right: 20px"
|
|
|
- v-if="row.COLLECTION_FLAG == '-1'" @click="collection(row)"></i>
|
|
|
- <i class="iconfont icon-shoucang1" @click="canceltCollection(row.COLLECTION_FLAG)"
|
|
|
- v-else
|
|
|
- style="color: #edd25b;padding-right: 20px"></i>
|
|
|
- <el-button class="button-font" type="primary" plain disabled>在线测试</el-button>
|
|
|
- <el-button class="button-font" type="primary" @click="getDetails(row)" plain>查看详情
|
|
|
- </el-button>
|
|
|
- <el-button class="button-font" type="primary" @click="jumpTool(row)" plain>申请资源
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <template #empty>
|
|
|
- <el-empty
|
|
|
- description="暂无数据"></el-empty>
|
|
|
- </template>
|
|
|
- </el-table>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <el-table
|
|
|
+ id="stable"
|
|
|
+ border
|
|
|
+ :row-style="{backgroundColor:' #f2faff'}"
|
|
|
+ :show-header="false"
|
|
|
+ ref="tableRef"
|
|
|
+ :span-method="objectSpanMethod"
|
|
|
+ :data="props.row.child">
|
|
|
+ <el-table-column
|
|
|
+ min-width="62">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ type="selection"
|
|
|
+ width="35">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column min-width="220">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <div class="center" style="justify-content: left">
|
|
|
+ <!-- <img :src="row.SLT_URL"/>-->
|
|
|
+ <img :src="row.SLT_URL"/>
|
|
|
+ <div style="padding-left: 10px">
|
|
|
+ <p>
|
|
|
+ <span class="title-font">{{ row.RESOURCE_NAME }}</span><br>
|
|
|
+ <span class="content-font">{{ row.RELEASE_REMARKS }}</span>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column min-width="80px">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <p>
|
|
|
+ <span class="title-font">最近更新时间</span><br>
|
|
|
+ <span class="content-font">{{ row.INSERT_TIME }}</span>
|
|
|
+ </p>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column min-width="120px">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <div class="center" style="justify-content: left">
|
|
|
+ <i class="iconfont icon-shoucang" style="padding-right: 20px"
|
|
|
+ v-if="row.COLLECTION_FLAG == '-1'" @click="collection(row)"></i>
|
|
|
+ <i class="iconfont icon-shoucang1" @click="canceltCollection(row.COLLECTION_FLAG)"
|
|
|
+ v-else
|
|
|
+ style="color: #edd25b;padding-right: 20px"></i>
|
|
|
+ <el-button class="button-font" type="primary" plain disabled>在线测试</el-button>
|
|
|
+ <el-button class="button-font" type="primary" @click="getDetails(row)" plain>查看详情
|
|
|
+ </el-button>
|
|
|
+ <el-button class="button-font" type="primary" @click="jumpTool(row)" plain>申请资源
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <template #empty>
|
|
|
+ <el-empty
|
|
|
+ description="暂无数据"></el-empty>
|
|
|
+ </template>
|
|
|
+ </el-table>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- 表格的表头-->
|
|
@@ -114,26 +114,31 @@
|
|
|
height="100"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="">
|
|
|
+
|
|
|
+ <el-table-column min-width="190">
|
|
|
<template #default="{ row }">
|
|
|
- <el-row>
|
|
|
- <el-col :span="12"><br>
|
|
|
- <p class="title-font" style=" display: flex;justify-content: center; /* 水平居中 */">{{
|
|
|
- row.REMARKS
|
|
|
- }}</p></el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <p class="">
|
|
|
- <br>
|
|
|
- <span class="title-font">最近更新时间</span><br>
|
|
|
- <span class="content-font" style="font-size: 16px">{{ row.INSERT_TIME }}</span>
|
|
|
- </p>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <p class="title-font" style=" display: flex;justify-content: left; /* 水平居中 */">{{
|
|
|
+ row.REMARKS
|
|
|
+ }}</p>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column min-width="185" style=" display: flex;justify-content: left; /* 水平居中 */">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <p class="title-font">
|
|
|
+ <span class="title-font">最近更新时间</span>
|
|
|
+ </p>
|
|
|
+ <p class="title-font">
|
|
|
+ <span class="content-font" style="font-size: 16px">{{ row.INSERT_TIME }}</span>
|
|
|
+ </p>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <template #empty>
|
|
|
+ <el-empty
|
|
|
+ description="暂无数据"></el-empty>
|
|
|
+ </template>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
- <div class="content">
|
|
|
+ <div class="content" style="padding-top: 20px">
|
|
|
<el-pagination
|
|
|
class="content"
|
|
|
@size-change="handleSizeChange"
|
|
@@ -494,6 +499,24 @@ function loadInterfaceKoolkitNewMainPageList(response) {
|
|
|
loading.value = false;
|
|
|
}
|
|
|
|
|
|
+// 合并列
|
|
|
+function objectSpanMethod({row, column, rowIndex, columnIndex}) {
|
|
|
+ console.log(rowIndex, 123132)
|
|
|
+ if (columnIndex === 0) {
|
|
|
+ if (rowIndex == 0) {
|
|
|
+ return {
|
|
|
+ rowspan: data_map.value[0].child.length,
|
|
|
+ colspan: 1
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ return {
|
|
|
+ rowspan: 0,
|
|
|
+ colspan: 0
|
|
|
+ };
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
@@ -567,7 +590,9 @@ function loadInterfaceKoolkitNewMainPageList(response) {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
-//:deep .el-table .el-table__cel{
|
|
|
-// padding-top: 0;
|
|
|
-//}
|
|
|
+:deep .el-table .el-table__cell {
|
|
|
+ padding-top: 0;
|
|
|
+ padding-bottom: 0;
|
|
|
+}
|
|
|
+
|
|
|
</style>
|