|
@@ -83,7 +83,7 @@
|
|
</template>
|
|
</template>
|
|
</HcCard>
|
|
</HcCard>
|
|
</div>
|
|
</div>
|
|
- <DestoryDialog :show="showdestorydialog" :length="tableCheckedKeys.length" @upshow="upshow"></DestoryDialog>
|
|
|
|
|
|
+ <DestoryDialog :show="showdestorydialog" :length="tableCheckedKeys.length" @upshow="upshow" @comfirmDestory="comfirmDestory" :isLoading="isLoading"></DestoryDialog>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</template>
|
|
</template>
|
|
@@ -97,7 +97,7 @@ import ProjectTree from "./components/ProjectTree.vue"
|
|
import DestoryDialog from './components/destory-dialog.vue'
|
|
import DestoryDialog from './components/destory-dialog.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 {downloadBlob, getArrValue, deepClone} from "js-fast-way"
|
|
|
|
|
|
+import {downloadBlob, getArrValue, arrToId} from "js-fast-way"
|
|
import appraialApi from "~api/archiveConfig/appraisal.js";
|
|
import appraialApi from "~api/archiveConfig/appraisal.js";
|
|
|
|
|
|
//变量
|
|
//变量
|
|
@@ -140,6 +140,27 @@ const upshow = (val) => {
|
|
showdestorydialog.value=val
|
|
showdestorydialog.value=val
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+const isLoading=ref(false)
|
|
|
|
+//确认销毁comfirmDestory
|
|
|
|
+const comfirmDestory = async() => {
|
|
|
|
+ const rows = tableCheckedKeys.value
|
|
|
|
+ if (rows.length > 0) {
|
|
|
|
+ isLoading.value = true
|
|
|
|
+ const ids = arrToId(rows)
|
|
|
|
+ const { error, code, msg } = await appraialApi.batchDestroyArchive({
|
|
|
|
+ nodeId: nodeId.value,
|
|
|
|
+ ids: ids
|
|
|
|
+ })
|
|
|
|
+ isLoading.value = false
|
|
|
|
+ //处理数据
|
|
|
|
+ if (!error && code === 200) {
|
|
|
|
+ window.$message?.success(msg)
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ showdestorydialog.value=false
|
|
|
|
+ getTableData()
|
|
|
|
+ }
|
|
|
|
+}
|
|
//日期时间被选择
|
|
//日期时间被选择
|
|
const betweenTime = ref(null)
|
|
const betweenTime = ref(null)
|
|
const betweenTimeUpdate = ({arr,query}) => {
|
|
const betweenTimeUpdate = ({arr,query}) => {
|
|
@@ -153,7 +174,6 @@ const searchClick = () => {
|
|
}
|
|
}
|
|
//打开弹窗
|
|
//打开弹窗
|
|
const showdialog = () => {
|
|
const showdialog = () => {
|
|
- console.log('销毁案件');
|
|
|
|
showdestorydialog.value= true;
|
|
showdestorydialog.value= true;
|
|
|
|
|
|
}
|
|
}
|
|
@@ -227,6 +247,7 @@ const getTableData = async () => {
|
|
tableData.value = []
|
|
tableData.value = []
|
|
searchForm.value.total = 0
|
|
searchForm.value.total = 0
|
|
}
|
|
}
|
|
|
|
+ tableRef.value?.clearSelection()
|
|
}
|
|
}
|
|
//获取立卷单位列表getFilingUnitList
|
|
//获取立卷单位列表getFilingUnitList
|
|
const getFilingUnitListdata=async()=>{
|
|
const getFilingUnitListdata=async()=>{
|
|
@@ -241,6 +262,7 @@ const getFilingUnitListdata=async()=>{
|
|
filingUnit.value = []
|
|
filingUnit.value = []
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
const showHistory=()=>{
|
|
const showHistory=()=>{
|
|
searchForm.value.isDeleted = 1
|
|
searchForm.value.isDeleted = 1
|