|
@@ -32,28 +32,31 @@
|
|
|
</el-button>
|
|
|
</HcTooltip>
|
|
|
</template>
|
|
|
- <div class="hc-card-table-title">建设单位归档资料(1200卷)</div>
|
|
|
- <HcCardItem ui="h-half">
|
|
|
- <template #header>
|
|
|
- <span>一、立项审批</span>
|
|
|
- <span class="text-gray">(238卷)</span>
|
|
|
- </template>
|
|
|
- <HcTable
|
|
|
- ref="tableRef" :column="tableColumn" :datas="tableData" :loading="tableLoading"
|
|
|
- heights="auto" is-new :index-style="{ width: 60 }"
|
|
|
- />
|
|
|
- </HcCardItem>
|
|
|
-
|
|
|
- <HcCardItem ui="h-half">
|
|
|
- <template #header>
|
|
|
- <span>二、勘察设计文件</span>
|
|
|
- <span class="text-gray">(95卷)</span>
|
|
|
- </template>
|
|
|
- <HcTable
|
|
|
- ref="tableFileRef" :column="tableFileColumn" :datas="tableFileData" :loading="tableFileLoading"
|
|
|
- heights="auto" is-new :index-style="{ width: 60 }"
|
|
|
- />
|
|
|
- </HcCardItem>
|
|
|
+
|
|
|
+ <div v-if="totalData.length > 0" v-loading="totalLoaing" class="h-screen">
|
|
|
+ <div v-for="(item, index) in totalData" :key="index">
|
|
|
+ <div class="hc-card-table-title">{{ item?.unitInfo }}</div>
|
|
|
+ <template v-for="(item1, index1) in item?.nodeLists" :key="index1">
|
|
|
+ <HcCardItem v-if="item1.list !== null" ui="h-half">
|
|
|
+ <template #header>
|
|
|
+ <span>{{ item1.nodeInfo }}</span>
|
|
|
+ <!-- <span class="text-gray">(238卷)</span> -->
|
|
|
+ </template>
|
|
|
+ <div :style="`height: ${item1.list !== null ? '300px' : 'auto'};`">
|
|
|
+ <HcTable
|
|
|
+ ref="tableRef" :column="tableColumn" :datas="item1.list" :loading="tableLoading"
|
|
|
+ is-new :index-style="{ width: 60 }" is-check :check-style="{ width: 29 }"
|
|
|
+ @selection-change="tableSelection"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </HcCardItem>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div v-else class=" h-screen">
|
|
|
+ <HcNoData />
|
|
|
+ </div>
|
|
|
</hc-new-card>
|
|
|
|
|
|
<!-- 历史报告 -->
|
|
@@ -86,7 +89,8 @@
|
|
|
import { onMounted, ref } from 'vue'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
-
|
|
|
+import initialgApi from '~api/initial/initial'
|
|
|
+import { getArrValue, getObjValue } from 'js-fast-way'
|
|
|
//变量
|
|
|
const router = useRouter()
|
|
|
const useAppState = useAppStore()
|
|
@@ -96,21 +100,45 @@ const projectInfo = ref(useAppState.getProjectInfo)
|
|
|
|
|
|
//渲染完成
|
|
|
onMounted(() => {
|
|
|
-
|
|
|
+ getTotalData()
|
|
|
})
|
|
|
|
|
|
+
|
|
|
//tab数据和相关处理
|
|
|
-const tabKey = ref('tab1')
|
|
|
+const tabKey = ref('1')
|
|
|
const tabData = ref([
|
|
|
- { key: 'tab1', name: '建设单位归档资料' },
|
|
|
- { key: 'tab2', name: '监理单位归档资料' },
|
|
|
- { key: 'tab3', name: '施工单位归档资料' },
|
|
|
- { key: 'tab4', name: '科研、新技术资料' },
|
|
|
+ { key: '1', name: '建设单位归档资料' },
|
|
|
+ { key: '2', name: '监理单位归档资料' },
|
|
|
+ { key: '3', name: '施工单位归档资料' },
|
|
|
+ { key: '4', name: '科研、新技术资料' },
|
|
|
])
|
|
|
const tabChange = (item) => {
|
|
|
tabKey.value = item?.key
|
|
|
+ getTotalData()
|
|
|
+}
|
|
|
+const totalData = ref([])
|
|
|
+const totalLoaing = ref(false)
|
|
|
+const getTotalData = async ()=>{
|
|
|
+ totalLoaing.value = true
|
|
|
+ const { error, code, data } = await initialgApi.getUnitArchivesAutoView({
|
|
|
+ projectId: projectId.value,
|
|
|
+ unitType:tabKey.value,
|
|
|
+ })
|
|
|
+ totalLoaing.value = false
|
|
|
+ if (!error && code === 200) {
|
|
|
+ console.log(data, 'data')
|
|
|
+ if (data !== null) {
|
|
|
+ totalData.value = [data]
|
|
|
+ } else {
|
|
|
+ totalData.value = []
|
|
|
+ }
|
|
|
+
|
|
|
+ console.log(totalData.value, 'totalData.value')
|
|
|
+ } else {
|
|
|
+ totalData.value = []
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
|
|
|
//------立项审批
|
|
|
|
|
@@ -129,11 +157,11 @@ const pageChange = ({ current, size }) => {
|
|
|
//表头
|
|
|
const tableRef = ref(null)
|
|
|
const tableColumn = ref([
|
|
|
- { key: 'key1', name: '档号', width: 180 },
|
|
|
- { key: 'key2', name: '案卷题名' },
|
|
|
- { key: 'key3', name: '总页数', width: 120 },
|
|
|
- { key: 'key4', name: '保管期限', width: 120 },
|
|
|
- { key: 'key5', name: '备注' },
|
|
|
+ { key:'fileNumber', name: '档号', width: 180 },
|
|
|
+ { key:'name', name: '案卷题名' },
|
|
|
+ { key:'pageN', name: '总页数', width: 120 },
|
|
|
+ { key:'storageTimeValue', name: '保管期限', width: 120 },
|
|
|
+ { key:'remark', name: '备注' },
|
|
|
])
|
|
|
const tableData = ref([
|
|
|
{
|