|
@@ -7,19 +7,19 @@
|
|
/>
|
|
/>
|
|
</template>
|
|
</template>
|
|
<hc-new-card title="已形成的案卷">
|
|
<hc-new-card title="已形成的案卷">
|
|
- <!-- <template #header>
|
|
|
|
- <div class="hc-card-header-table-title">
|
|
|
|
- 已形成的案卷
|
|
|
|
- </div>
|
|
|
|
- </template> -->
|
|
|
|
<template #extra>
|
|
<template #extra>
|
|
- <div v-if="propercent < 100 && propercent > 0" class="demo-progress">
|
|
|
|
|
|
+ <div v-if="propercent > 0 && propercent < 100" class="demo-progress">
|
|
<el-progress :percentage="propercent" :stroke-width="30" :text-inside="true" status="success" />
|
|
<el-progress :percentage="propercent" :stroke-width="30" :text-inside="true" status="success" />
|
|
</div>
|
|
</div>
|
|
<HcTooltip keys="archives_rolling_btn_update">
|
|
<HcTooltip keys="archives_rolling_btn_update">
|
|
<el-button :disabled="propercent > 0 && propercent < 100" :loading="updateArchiveLoad" hc-btn type="primary" @click="updateArchive">立即更新立卷</el-button>
|
|
<el-button :disabled="propercent > 0 && propercent < 100" :loading="updateArchiveLoad" hc-btn type="primary" @click="updateArchive">立即更新立卷</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
</template>
|
|
</template>
|
|
|
|
+ <template #search>
|
|
|
|
+ <div class="flex-1 text-right text-12px text-red-5">
|
|
|
|
+ 请勿重复点击【自动立卷】,正在组卷中,重复点击会导致组卷失败,影响正在组卷的程序!组卷完成会有进度条提示。
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
<HcTable
|
|
<HcTable
|
|
ref="tableRef" :check-style="{ width: 29 }" :column="tableColumn" :datas="tableData"
|
|
ref="tableRef" :check-style="{ width: 29 }" :column="tableColumn" :datas="tableData"
|
|
:index-style="{ width: 60 }" :loading="tableLoading" is-check is-new
|
|
:index-style="{ width: 60 }" :loading="tableLoading" is-check is-new
|
|
@@ -43,7 +43,7 @@ import { useAppStore } from '~src/store'
|
|
import HcTree from '~src/components/tree/hc-tree.vue'
|
|
import HcTree from '~src/components/tree/hc-tree.vue'
|
|
import projectScanningApi from '~api/other-file/projectScanning'
|
|
import projectScanningApi from '~api/other-file/projectScanning'
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
-import { getArrValue } from 'js-fast-way'
|
|
|
|
|
|
+import { getArrValue, useClick } from 'js-fast-way'
|
|
import tuningApi from '~api/archiveConfig/tuning.js'
|
|
import tuningApi from '~api/archiveConfig/tuning.js'
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
//变量
|
|
//变量
|
|
@@ -61,7 +61,8 @@ watch(() => useAppState.getCollapse, (Collapse) => {
|
|
//渲染完成
|
|
//渲染完成
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
getClassIfyList()
|
|
getClassIfyList()
|
|
- // Verification()
|
|
|
|
|
|
+ updateArchiveprogress()
|
|
|
|
+ Verification()
|
|
})
|
|
})
|
|
|
|
|
|
//树加载
|
|
//树加载
|
|
@@ -202,6 +203,7 @@ const updateArchiveLoad = ref(false)
|
|
const propercent = ref(0)
|
|
const propercent = ref(0)
|
|
|
|
|
|
const updateArchive = async () => {
|
|
const updateArchive = async () => {
|
|
|
|
+ await useClick()
|
|
await updateArchiveprogress()
|
|
await updateArchiveprogress()
|
|
if (propercent.value > 0 && propercent.value < 100) {
|
|
if (propercent.value > 0 && propercent.value < 100) {
|
|
window.$message.warning('正在组卷中,请不要重复点击')
|
|
window.$message.warning('正在组卷中,请不要重复点击')
|
|
@@ -217,24 +219,21 @@ const updateArchive = async () => {
|
|
window.$message?.success(data)
|
|
window.$message?.success(data)
|
|
count.value = 0
|
|
count.value = 0
|
|
Verification()
|
|
Verification()
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
//更新立卷进度
|
|
//更新立卷进度
|
|
const updateArchiveprogress = async () => {
|
|
const updateArchiveprogress = async () => {
|
|
- const { error, code, data, msg } = await tuningApi.archiveAutoPercentComplete({
|
|
|
|
|
|
+ const { error, code, data } = await tuningApi.archiveAutoPercentComplete({
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
contractId: contractId.value,
|
|
contractId: contractId.value,
|
|
})
|
|
})
|
|
-
|
|
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
if (data == 100) {
|
|
if (data == 100) {
|
|
count.value = 100
|
|
count.value = 100
|
|
}
|
|
}
|
|
propercent.value = data
|
|
propercent.value = data
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const timer = ref(null)
|
|
const timer = ref(null)
|
|
@@ -243,14 +242,11 @@ let count = ref(0) // 倒计时
|
|
const Verification = () => {
|
|
const Verification = () => {
|
|
timer.value = setInterval(() => {
|
|
timer.value = setInterval(() => {
|
|
if (count.value == 100) {
|
|
if (count.value == 100) {
|
|
- console.log('停着')
|
|
|
|
window.$message.success('更新成功')
|
|
window.$message.success('更新成功')
|
|
clearInterval(timer.value)
|
|
clearInterval(timer.value)
|
|
} else {
|
|
} else {
|
|
updateArchiveprogress()// 请求数据
|
|
updateArchiveprogress()// 请求数据
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
}, 5000)
|
|
}, 5000)
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -261,9 +257,7 @@ const Verification = () => {
|
|
line-height: 1.75rem;
|
|
line-height: 1.75rem;
|
|
}
|
|
}
|
|
.demo-progress .el-progress--line {
|
|
.demo-progress .el-progress--line {
|
|
- margin-bottom: 15px;
|
|
|
|
width: 350px;
|
|
width: 350px;
|
|
- margin-top: 15px;
|
|
|
|
margin-right: 15px;
|
|
margin-right: 15px;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|