|
@@ -20,6 +20,7 @@
|
|
|
<script setup>
|
|
|
import { nextTick, ref, watch } from 'vue'
|
|
|
import archiveFileApi from '~api/archiveFile/archiveFile'
|
|
|
+import earlyApi from '~api/custody/early'
|
|
|
import { getArrValue } from 'js-fast-way'
|
|
|
|
|
|
//参数
|
|
@@ -119,26 +120,47 @@ const tableData = ref([])
|
|
|
//获取数据
|
|
|
const tableLoading = ref(false)
|
|
|
const getTableData = async () => {
|
|
|
+ if (tabKey.value !== '1') {
|
|
|
if (nodeData.value.id) {
|
|
|
tableLoading.value = true
|
|
|
const { error, code, data } = await archiveFileApi.getarchiveFilePage({
|
|
|
- ...searchForm.value,
|
|
|
- nodeIds: nodeData.value.id,
|
|
|
- projectId: projectId.value,
|
|
|
- contractId: contractId.value,
|
|
|
- rectification:tabKey.value,
|
|
|
- })
|
|
|
- tableLoading.value = false
|
|
|
- if (!error && code === 200) {
|
|
|
- tableData.value = getArrValue(data['records'])
|
|
|
- searchForm.value.total = data['total'] || 0
|
|
|
- } else {
|
|
|
- tableData.value = []
|
|
|
- searchForm.value.total = 0
|
|
|
+ ...searchForm.value,
|
|
|
+ nodeIds: nodeData.value.id,
|
|
|
+ projectId: projectId.value,
|
|
|
+ contractId: contractId.value,
|
|
|
+ rectification:tabKey.value,
|
|
|
+ })
|
|
|
+ tableLoading.value = false
|
|
|
+ if (!error && code === 200) {
|
|
|
+ tableData.value = getArrValue(data['records'])
|
|
|
+ searchForm.value.total = data['total'] || 0
|
|
|
+ } else {
|
|
|
+ tableData.value = []
|
|
|
+ searchForm.value.total = 0
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ tableLoading.value = true
|
|
|
+ const { error, code, data } = await earlyApi.warningPage({
|
|
|
+ ...searchForm.value,
|
|
|
+ nodeIds: nodeData.value.id,
|
|
|
+ projectId: projectId.value,
|
|
|
+ contractId: contractId.value,
|
|
|
+ rectification:tabKey.value,
|
|
|
+ })
|
|
|
+ tableLoading.value = false
|
|
|
+ if (!error && code === 200) {
|
|
|
+ tableData.value = getArrValue(data['records'])
|
|
|
+ searchForm.value.total = data['total'] || 0
|
|
|
+ } else {
|
|
|
+ tableData.value = []
|
|
|
+ searchForm.value.total = 0
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
|
|
|
-}
|
|
|
// 暴露出去
|
|
|
defineExpose({
|
|
|
getTableData,
|