|
@@ -109,7 +109,6 @@
|
|
|
<template #action="{row,index}">
|
|
|
<el-button type="primary" size="small" @click.stop="consultFileClick(row,1)">查阅案卷</el-button>
|
|
|
</template>
|
|
|
-
|
|
|
</HcTable>
|
|
|
<template #action>
|
|
|
<HcPages :pages="searchForm" @change="pageChange"/>
|
|
@@ -137,8 +136,8 @@
|
|
|
|
|
|
<!--档案柜-->
|
|
|
<div class="hc-gather-card-box">
|
|
|
- <HcCardItem ui="hc-card-item-main" v-if="tabKey === 'tab2'">
|
|
|
- <el-carousel class="hc-file-cabinet" :autoplay="false" :loop="false" indicator-position="none">
|
|
|
+ <HcCardItem ui="hc-card-item-main" v-loading="tableLoading" v-if="tabKey === 'tab2'">
|
|
|
+ <el-carousel class="hc-file-cabinet" :autoplay="false" :loop="false" indicator-position="none" v-if="guiItemData.length > 0">
|
|
|
<el-carousel-item v-for="item in guiItemData">
|
|
|
<div class="hc-file-cabinet-gui">
|
|
|
<div class="gui-item" v-for="items in item.children">
|
|
@@ -155,6 +154,7 @@
|
|
|
</div>
|
|
|
</el-carousel-item>
|
|
|
</el-carousel>
|
|
|
+ <HcNoData v-else/>
|
|
|
</HcCardItem>
|
|
|
</div>
|
|
|
|
|
@@ -417,6 +417,7 @@ const useAppState = useAppStore()
|
|
|
const projectId = ref(useAppState.getProjectId);
|
|
|
const contractId = ref(useAppState.getContractId);
|
|
|
const projectInfo = ref(useAppState.getProjectInfo);
|
|
|
+const contractInfo = ref(useAppState.getContractInfo);
|
|
|
const isBubble = ref(useAppState.getBubble);
|
|
|
const userRoleId = ref(useAppState.getRoleId);
|
|
|
const hoverHand = ref(true)
|
|
@@ -841,11 +842,27 @@ const tabData = ref([
|
|
|
{key:'tab1', name: '案卷列表'},
|
|
|
{key:'tab2', name: '档案柜'},
|
|
|
]);
|
|
|
-const tabChange = (item) => {
|
|
|
- tabKey.value = item?.key;
|
|
|
- searchForm.value.listType = item?.key === 'tab1' ? 1 : 2
|
|
|
+const tabChange = ({key}) => {
|
|
|
+ tabKey.value = key;
|
|
|
searchForm.value.current = 1
|
|
|
- searchForm.value.archiveType = item?.key === 'tab2' ? tabGuiKey.value : ''
|
|
|
+ const { contractType } = contractInfo.value
|
|
|
+ if (key === 'tab1') {
|
|
|
+ searchForm.value.listType = 1
|
|
|
+ searchForm.value.archiveType = ''
|
|
|
+ }
|
|
|
+ //档案柜
|
|
|
+ if (key === 'tab2') {
|
|
|
+ searchForm.value.listType = 2
|
|
|
+ //1 施工,2监理,3业主
|
|
|
+ if (Number(contractType) === 1) {
|
|
|
+ tabGuiKey.value = '2';
|
|
|
+ } else if (Number(contractType) === 2) {
|
|
|
+ tabGuiKey.value = '3';
|
|
|
+ } else if (Number(contractType) === 3) {
|
|
|
+ tabGuiKey.value = '1';
|
|
|
+ }
|
|
|
+ searchForm.value.archiveType = tabGuiKey.value
|
|
|
+ }
|
|
|
getTableData()
|
|
|
}
|
|
|
|
|
@@ -879,6 +896,7 @@ const pdfUrl=ref('')
|
|
|
const pdfLoading=ref(false)
|
|
|
const tableLoading = ref(false)
|
|
|
const getTableData = async () => {
|
|
|
+ guiItemData.value = []
|
|
|
tableLoading.value = true
|
|
|
searchForm.value.queryValue=searchInput.value
|
|
|
for (let key in searchForm.value) {
|
|
@@ -1297,8 +1315,8 @@ const tabGuiData = ref([
|
|
|
{key:'2', name: '施工档案'},
|
|
|
{key:'3', name: '监理档案'},
|
|
|
]);
|
|
|
-const tabGuiChange = (item) => {
|
|
|
- tabGuiKey.value = item?.key;
|
|
|
+const tabGuiChange = ({key}) => {
|
|
|
+ tabGuiKey.value = key;
|
|
|
searchForm.value.current = 1
|
|
|
searchForm.value.archiveType = tabGuiKey.value
|
|
|
getTableData()
|