软件列表接口对接
This commit is contained in:
@@ -51,6 +51,8 @@ const toggleColumnList = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.column-list {
|
.column-list {
|
||||||
|
max-height: 400px;
|
||||||
|
overflow: auto;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 40px;
|
top: 40px;
|
||||||
left: -222px;
|
left: -222px;
|
||||||
|
|||||||
@@ -2,21 +2,19 @@
|
|||||||
<div class="secret-container">
|
<div class="secret-container">
|
||||||
<div class="search-form">
|
<div class="search-form">
|
||||||
<AdvanceSearch v-model="newFormData" class="px-20">
|
<AdvanceSearch v-model="newFormData" class="px-20">
|
||||||
<template #operation>
|
<template #operation><div></div></template>
|
||||||
<gc-form-operation class="jyh-form-operation">
|
|
||||||
<d-button class="mr-2" variant="solid">搜索</d-button>
|
|
||||||
<d-button variant="solid" color="secondary">清空</d-button>
|
|
||||||
</gc-form-operation>
|
|
||||||
<div class="left-btn">
|
|
||||||
<d-button v-if="isLogin" class="output-btn" icon="icon-share" variant="text">导出</d-button>
|
|
||||||
<span v-if="isLogin" style="height: 14px" class="split"></span>
|
|
||||||
<TableSetting :columns="columns" :show-column-list="showColumnList" @update:show-column-list="updateShowColumnList"/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</template>
|
|
||||||
</AdvanceSearch>
|
</AdvanceSearch>
|
||||||
|
<div class="jyh-form-operation">
|
||||||
|
<d-button @click="getReleaseList" class="mr-2" variant="solid">搜索</d-button>
|
||||||
|
<d-button variant="solid" color="secondary">清空</d-button>
|
||||||
|
</div>
|
||||||
|
<div class="left-btn">
|
||||||
|
<d-button v-if="isLogin" class="output-btn" icon="icon-share" variant="text">导出</d-button>
|
||||||
|
<span v-if="isLogin" style="height: 14px" class="split"></span>
|
||||||
|
<TableSetting :columns="columns" :show-column-list="showColumnList" @update:show-column-list="updateShowColumnList"/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-3 px-20 min-h-[600px]">
|
<div class="mt-3 px-20">
|
||||||
<d-table :key="tableKey" class="jyh-table" v-if="tableData.length" :striped="false" :data="tableData" table-layout="auto">
|
<d-table :key="tableKey" class="jyh-table" v-if="tableData.length" :striped="false" :data="tableData" table-layout="auto">
|
||||||
<!-- 索引列 -->
|
<!-- 索引列 -->
|
||||||
<d-column type="index" width="40"></d-column>
|
<d-column type="index" width="40"></d-column>
|
||||||
@@ -138,9 +136,10 @@ const riskOptions = reactive(['低', '中', '高']);
|
|||||||
const useTypeOptions = reactive(['软件', '文档', '文档+软件']);
|
const useTypeOptions = reactive(['软件', '文档', '文档+软件']);
|
||||||
const isUseOptions = reactive(['是', '否']);
|
const isUseOptions = reactive(['是', '否']);
|
||||||
const newFormData = ref({
|
const newFormData = ref({
|
||||||
license: '',
|
licenseName: '',
|
||||||
|
searchType: 'software',
|
||||||
searchWord: '',
|
searchWord: '',
|
||||||
version: '',
|
softwareVersion: '',
|
||||||
dependentSoftware: '',
|
dependentSoftware: '',
|
||||||
programmingLanguage: '',
|
programmingLanguage: '',
|
||||||
dateRange: ['', '']
|
dateRange: ['', '']
|
||||||
@@ -301,9 +300,12 @@ const signCla = (row: any) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const getReleaseList = async() => {
|
const getReleaseList = async() => {
|
||||||
const { data, error } = await releasePage({ ...newFormData.value, current: pager.value.pageIndex,size: pager.value.pageSize });
|
const { data, error } = await releasePage({
|
||||||
|
...newFormData.value,
|
||||||
|
releaseDateStart: newFormData.value.dateRange&&newFormData.value.dateRange.length>0?newFormData.value.dateRange[0]:'',
|
||||||
|
releaseDateEnd: newFormData.value.dateRange&&newFormData.value.dateRange.length>0?newFormData.value.dateRange[1]:'',
|
||||||
|
current: pager.value.pageIndex,size: pager.value.pageSize });
|
||||||
if (!error && data) {
|
if (!error && data) {
|
||||||
debugger
|
|
||||||
tableData.value = data.data.records;
|
tableData.value = data.data.records;
|
||||||
pager.value.total = data.data.total;
|
pager.value.total = data.data.total;
|
||||||
}
|
}
|
||||||
@@ -326,6 +328,7 @@ onMounted(() => {
|
|||||||
|
|
||||||
.secret-container {
|
.secret-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
min-height: 600px;
|
||||||
|
|
||||||
.secret-op {
|
.secret-op {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -394,7 +397,10 @@ onMounted(() => {
|
|||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
letter-spacing: 0px;
|
letter-spacing: 0px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.jyh-form-operation {
|
||||||
|
margin-left: 20px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user