|
|
|
@ -19,49 +19,63 @@
|
|
|
|
|
<a-button class="add-instance" type="primary" :icon="h(PlusOutlined)" @click="changeAddModal(true)">新建算法实例</a-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="show-list-div">
|
|
|
|
|
<div class="show-list">
|
|
|
|
|
<div class="item-list" v-for="item in dataList">
|
|
|
|
|
<div class="image-div">
|
|
|
|
|
<img class="image-item" :src="`${VITE_GLOB_API_URL}/${item.cover}`">
|
|
|
|
|
<!--<div class="image-icon">盖板缺失</div> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="show-info-div">
|
|
|
|
|
<div class="info-title-div">
|
|
|
|
|
<div class="info-icon"></div>
|
|
|
|
|
<div class="info-title-inner">
|
|
|
|
|
<div class="info-title">{{ item.name }}</div>
|
|
|
|
|
<div style="display: flex;justify-content: space-between;">
|
|
|
|
|
<div class="info-subtitle">{{ item.description? item.description: '暂无描述' }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<template v-if="total !== 0">
|
|
|
|
|
<div class="show-list">
|
|
|
|
|
<div class="item-list" v-for="item in dataList">
|
|
|
|
|
<div class="image-div">
|
|
|
|
|
<img class="image-item" :src="`${VITE_GLOB_API_URL}/${item.cover}`">
|
|
|
|
|
<!--<div class="image-icon">盖板缺失</div> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info-content-div">
|
|
|
|
|
<div class="content-div">
|
|
|
|
|
<div style="width: 153px;margin-right: 14px;">
|
|
|
|
|
<div class="content-title-div">关联算法</div>
|
|
|
|
|
<div class="content-info" v-html="getContentStr(item.algoIds)"></div>
|
|
|
|
|
<div class="show-info-div">
|
|
|
|
|
<div class="info-title-div">
|
|
|
|
|
<div class="info-icon"></div>
|
|
|
|
|
<div class="info-title-inner">
|
|
|
|
|
<div class="info-title">{{ item.name }}</div>
|
|
|
|
|
<div style="display: flex;justify-content: space-between;">
|
|
|
|
|
<div class="info-subtitle">{{ item.description? item.description: '暂无描述' }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="button-div">
|
|
|
|
|
<a-button class="delete-button" @click="delData(item)">删除</a-button>
|
|
|
|
|
<a-button class="show-info-button" type="primary" @click="showInfo(item)">查看</a-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info-content-div">
|
|
|
|
|
<div class="content-div">
|
|
|
|
|
<div style="width: 153px;margin-right: 14px;">
|
|
|
|
|
<div class="content-title-div">关联算法</div>
|
|
|
|
|
<div class="content-info" v-html="getContentStr(item.algoIds)"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="button-div">
|
|
|
|
|
<a-button class="delete-button" @click="delData(item)">删除</a-button>
|
|
|
|
|
<a-button class="show-info-button" type="primary" @click="showInfo(item)">查看</a-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pagination-div">
|
|
|
|
|
<a-pagination
|
|
|
|
|
size="small"
|
|
|
|
|
:total="total"
|
|
|
|
|
v-model:current="page"
|
|
|
|
|
v-model:page-size="limit"
|
|
|
|
|
show-size-changer
|
|
|
|
|
show-quick-jumper
|
|
|
|
|
:show-total="total => `共 ${total} 条数据`"
|
|
|
|
|
@change="changePagination"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pagination-div">
|
|
|
|
|
<a-pagination
|
|
|
|
|
size="small"
|
|
|
|
|
:total="total"
|
|
|
|
|
v-model:current="page"
|
|
|
|
|
v-model:page-size="limit"
|
|
|
|
|
show-size-changer
|
|
|
|
|
show-quick-jumper
|
|
|
|
|
:show-total="total => `共 ${total} 条数据`"
|
|
|
|
|
@change="changePagination"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
|
|
|
|
<div class="empty-box">
|
|
|
|
|
<div class="empty-content-div">
|
|
|
|
|
<div class="empty-image"></div>
|
|
|
|
|
<div class="empty_title">暂无数据</div>
|
|
|
|
|
<div class="empty_subtitle">请先新建算法实例,没有搜索到相关的数据</div>
|
|
|
|
|
<div style="display: flex;justify-content: center;">
|
|
|
|
|
<a-button class="empty_add_instance" type="primary" :icon="h(PlusOutlined)" @click="changeAddModal(true)">新建算法实例</a-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</div>
|
|
|
|
|
<a-modal width="853px" v-model:open="addInstanceModal" :footer="false" :closable="false" :destroyOnClose="true" :maskClosable="false" :keyboard="false">
|
|
|
|
|
<AddInstanceModal :modalType="modalType" :showInfoData="showInfoData" :algorithmOptions="algorithmOptions" @changeAddModal="changeAddModal" @query="query"/>
|
|
|
|
@ -97,7 +111,7 @@ const addInstanceModal = ref(false)
|
|
|
|
|
const showInfoDrawer = ref(false)
|
|
|
|
|
const page = ref('1')
|
|
|
|
|
const limit = ref('10')
|
|
|
|
|
const total = ref('0')
|
|
|
|
|
const total = ref(0)
|
|
|
|
|
const dataList = ref<DataListType[]>([])
|
|
|
|
|
const loading = ref(false)
|
|
|
|
|
const algorithmOptions = ref([])
|
|
|
|
@ -445,6 +459,53 @@ const getContentStr = (listId: string) => {
|
|
|
|
|
margin-right: -26px;
|
|
|
|
|
padding-right: 45px;
|
|
|
|
|
}
|
|
|
|
|
.empty-box{
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
.empty-content-div{
|
|
|
|
|
width: 332px;
|
|
|
|
|
.empty-image{
|
|
|
|
|
width: 332px;
|
|
|
|
|
height: 289px;
|
|
|
|
|
background-image: url('/public/emptyTable/empty_table_1.png');
|
|
|
|
|
margin-bottom: 18px;
|
|
|
|
|
}
|
|
|
|
|
.empty_title{
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
font-family: PingFangSC-Medium;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: #000000;
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
margin-bottom: 3px;
|
|
|
|
|
}
|
|
|
|
|
.empty_subtitle{
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
font-family: PingFangSC-Regular;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: #393939;
|
|
|
|
|
line-height: 18px;
|
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
}
|
|
|
|
|
.empty_add_instance{
|
|
|
|
|
width: 167px;
|
|
|
|
|
height: 30px;
|
|
|
|
|
background: #0D68CB;
|
|
|
|
|
font-family: PingFangSC-Regular;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: #FFFFFF;
|
|
|
|
|
line-height: 18px;
|
|
|
|
|
border-radius: 0px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|