|
@@ -537,7 +537,7 @@ const deltag=(item)=>{
|
|
}
|
|
}
|
|
//搜索表单
|
|
//搜索表单
|
|
const searchForm = ref({
|
|
const searchForm = ref({
|
|
- current: 1, size: 20, total: 0,searchType:"1"
|
|
|
|
|
|
+ current: 1, size: 20, total: 0, searchType:"1", listType: 1, archiveType: '',
|
|
})
|
|
})
|
|
//卷内文件
|
|
//卷内文件
|
|
const InsearchForm = ref({
|
|
const InsearchForm = ref({
|
|
@@ -829,13 +829,17 @@ const searchCaseClick = (type) => {
|
|
|
|
|
|
|
|
|
|
//tab数据和相关处理
|
|
//tab数据和相关处理
|
|
-const tabKey = ref('tab2')
|
|
|
|
|
|
+const tabKey = ref('tab1')
|
|
const tabData = ref([
|
|
const tabData = ref([
|
|
{key:'tab1', name: '案卷列表'},
|
|
{key:'tab1', name: '案卷列表'},
|
|
{key:'tab2', name: '档案柜'},
|
|
{key:'tab2', name: '档案柜'},
|
|
]);
|
|
]);
|
|
const tabChange = (item) => {
|
|
const tabChange = (item) => {
|
|
tabKey.value = item?.key;
|
|
tabKey.value = item?.key;
|
|
|
|
+ searchForm.value.listType = item?.key === 'tab1' ? 1 : 2
|
|
|
|
+ searchForm.value.current = 1
|
|
|
|
+ searchForm.value.archiveType = item?.key === 'tab2' ? tabGuiKey.value : ''
|
|
|
|
+ getTableData()
|
|
}
|
|
}
|
|
|
|
|
|
//分页被点击
|
|
//分页被点击
|
|
@@ -873,42 +877,44 @@ const getTableData = async () => {
|
|
for (let key in searchForm.value) {
|
|
for (let key in searchForm.value) {
|
|
if(searchForm.value[key]==='all'||searchForm.value[key]==='所有'){
|
|
if(searchForm.value[key]==='all'||searchForm.value[key]==='所有'){
|
|
searchForm.value[key]=''
|
|
searchForm.value[key]=''
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
const { error, code, data } = await archiveQueryApi.getarchiveQueryPage({
|
|
const { error, code, data } = await archiveQueryApi.getarchiveQueryPage({
|
|
...searchForm.value,
|
|
...searchForm.value,
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
contractId:contractId.value
|
|
contractId:contractId.value
|
|
-
|
|
|
|
})
|
|
})
|
|
tableLoading.value = false
|
|
tableLoading.value = false
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
- tableData.value = getArrValue(data['records'])
|
|
|
|
- searchForm.value.total = data['total'] || 0
|
|
|
|
|
|
+ if (tabKey.value === 'tab1') {
|
|
|
|
+ tableData.value = getArrValue(data['records'])
|
|
|
|
+ searchForm.value.total = data['total'] || 0
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
- tableData.value = []
|
|
|
|
- searchForm.value.total = 0
|
|
|
|
|
|
+ if (tabKey.value === 'tab1') {
|
|
|
|
+ tableData.value = []
|
|
|
|
+ searchForm.value.total = 0
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- tableFileCloseClick()
|
|
|
|
- if(searchForm.value.searchType==='2'){
|
|
|
|
- if(tableData.value.length>0&&tableData.value[0]?.approvalFileList.length>0){
|
|
|
|
- // tableFileData.value =getArrValue( tableData.value[0]['approvalFileList'])
|
|
|
|
- let searchinput=searchForm.value.queryValue
|
|
|
|
- let allarr=getArrValue( tableData.value[0]['approvalFileList'])
|
|
|
|
- let filterarr=allarr.filter((item)=>{
|
|
|
|
- if(item.fileName.indexOf(searchinput)!=-1){
|
|
|
|
- return item
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- tableFileData.value =getArrValue( filterarr)
|
|
|
|
- tableAllShow.value = true;
|
|
|
|
- tableFileShow.value = true;
|
|
|
|
|
|
+ //案卷列表
|
|
|
|
+ if (tabKey.value === 'tab1') {
|
|
|
|
+ tableFileCloseClick()
|
|
|
|
+ if(searchForm.value.searchType==='2'){
|
|
|
|
+ if(tableData.value.length>0&&tableData.value[0]?.approvalFileList.length>0){
|
|
|
|
+ // tableFileData.value =getArrValue( tableData.value[0]['approvalFileList'])
|
|
|
|
+ let searchinput=searchForm.value.queryValue
|
|
|
|
+ let allarr=getArrValue( tableData.value[0]['approvalFileList'])
|
|
|
|
+ let filterarr=allarr.filter((item)=>{
|
|
|
|
+ if(item.fileName.indexOf(searchinput)!=-1){
|
|
|
|
+ return item
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ tableFileData.value =getArrValue( filterarr)
|
|
|
|
+ tableAllShow.value = true;
|
|
|
|
+ tableFileShow.value = true;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
//多选
|
|
//多选
|
|
const tableKeys = ref([]);
|
|
const tableKeys = ref([]);
|
|
@@ -1274,14 +1280,17 @@ const loadNode=(tree, resolve)=>{
|
|
|
|
|
|
|
|
|
|
//档案柜的tab数据和相关处理
|
|
//档案柜的tab数据和相关处理
|
|
-const tabGuiKey = ref('tab1')
|
|
|
|
|
|
+const tabGuiKey = ref('1')
|
|
const tabGuiData = ref([
|
|
const tabGuiData = ref([
|
|
- {key:'tab1', name: '业主档案'},
|
|
|
|
- {key:'tab2', name: '施工档案'},
|
|
|
|
- {key:'tab3', name: '监理档案'},
|
|
|
|
|
|
+ {key:'1', name: '业主档案'},
|
|
|
|
+ {key:'2', name: '施工档案'},
|
|
|
|
+ {key:'3', name: '监理档案'},
|
|
]);
|
|
]);
|
|
const tabGuiChange = (item) => {
|
|
const tabGuiChange = (item) => {
|
|
tabGuiKey.value = item?.key;
|
|
tabGuiKey.value = item?.key;
|
|
|
|
+ searchForm.value.current = 1
|
|
|
|
+ searchForm.value.archiveType = tabGuiKey.value
|
|
|
|
+ getTableData()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|