|
@@ -58,7 +58,7 @@
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip keys="archives_tuning_btn_disassemble">
|
|
<HcTooltip keys="archives_tuning_btn_disassemble">
|
|
- <el-button hc-btn :disabled="tableCheckedKeys.length <= 0" @click="tunModalClick">
|
|
|
|
|
|
+ <el-button hc-btn :disabled="tableCheckedKeys.length <= 0" @click="tunModalClick" >
|
|
<HcIcon name="archive-drawer"/>
|
|
<HcIcon name="archive-drawer"/>
|
|
<span>拆卷</span>
|
|
<span>拆卷</span>
|
|
</el-button>
|
|
</el-button>
|
|
@@ -144,7 +144,7 @@
|
|
<el-scrollbar>
|
|
<el-scrollbar>
|
|
<el-checkbox-group v-model="checkedMoves" @change="handleCheckedMovesChange">
|
|
<el-checkbox-group v-model="checkedMoves" @change="handleCheckedMovesChange">
|
|
<div class="hc-file-checkbox" v-for="item in tableCheckedKeys" :key="item.id">
|
|
<div class="hc-file-checkbox" v-for="item in tableCheckedKeys" :key="item.id">
|
|
- <el-checkbox class="size-xl space" :label="item.id">{{item.fileName}}</el-checkbox>
|
|
|
|
|
|
+ <el-checkbox class="size-xl space" :label="item.id">{{item.name}}</el-checkbox>
|
|
</div>
|
|
</div>
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
@@ -161,7 +161,7 @@
|
|
<div class="panel-header">选择移动目录</div>
|
|
<div class="panel-header">选择移动目录</div>
|
|
<div class="panel-body">
|
|
<div class="panel-body">
|
|
<el-scrollbar>
|
|
<el-scrollbar>
|
|
- <HcTree idPrefix="hc-tree-moves-" :projectId="projectId" :contractId="contractId" isRadio/>
|
|
|
|
|
|
+ <HcTree idPrefix="hc-tree-moves-" :projectId="projectId" :contractId="contractId" isRadio @noderadio="nodeRadio"/>
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -291,6 +291,12 @@ const nodeElTreeClick = ({node, data, keys, key}) => {
|
|
searchForm.value.nodeIds = data.id || '';
|
|
searchForm.value.nodeIds = data.id || '';
|
|
getTableData()
|
|
getTableData()
|
|
}
|
|
}
|
|
|
|
+const nodeRadio= ({node, data, keys, key}) => {
|
|
|
|
+ console.log(data,'data33333');
|
|
|
|
+ chnodeId.value = data.id || '';
|
|
|
|
+ console.log( chnodeId.value,' chnodeId.value');
|
|
|
|
+
|
|
|
|
+}
|
|
//搜索表单
|
|
//搜索表单
|
|
const searchForm = ref({
|
|
const searchForm = ref({
|
|
contractId: null, type: null, approval: null,
|
|
contractId: null, type: null, approval: null,
|
|
@@ -393,32 +399,59 @@ const intableSelection = (rows) => {
|
|
}
|
|
}
|
|
//删除
|
|
//删除
|
|
const delModalClick = () => {
|
|
const delModalClick = () => {
|
|
- // delMessage(() => {
|
|
|
|
-
|
|
|
|
- // })
|
|
|
|
|
|
+
|
|
|
|
+ let ids=''
|
|
|
|
+ const rows = tableCheckedKeys.value;
|
|
|
|
+ ids= rowsToId(rows)
|
|
window?.$messageBox?.alert('请谨慎考虑是否要批量删除卷内文件?', '删除文件', {
|
|
window?.$messageBox?.alert('请谨慎考虑是否要批量删除卷内文件?', '删除文件', {
|
|
showCancelButton: true,
|
|
showCancelButton: true,
|
|
confirmButtonText: '确认删除',
|
|
confirmButtonText: '确认删除',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
- callback: (action) => {
|
|
|
|
|
|
+ callback: async(action, ctx, close) => {
|
|
|
|
+ ctx.confirmButtonLoading = true;
|
|
if (action === 'confirm') {
|
|
if (action === 'confirm') {
|
|
- console.log(1111);
|
|
|
|
- // cbk()
|
|
|
|
|
|
+ const { error, code, data,msg } = await tuningApi.removeFiles({
|
|
|
|
+ ids:ids,
|
|
|
|
+ })
|
|
|
|
+ ctx.confirmButtonLoading = false;
|
|
|
|
+ if (!error && code === 200) {
|
|
|
|
+ window.$message?.success(msg)
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ window.$message?.warning(msg)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+const splitLoad=ref(false)
|
|
const tunModalClick=()=>{
|
|
const tunModalClick=()=>{
|
|
|
|
+ splitLoad.value=true
|
|
window?.$messageBox?.alert('请谨慎考虑是否要批量拆除已经案卷及卷内文件?', '拆除案卷', {
|
|
window?.$messageBox?.alert('请谨慎考虑是否要批量拆除已经案卷及卷内文件?', '拆除案卷', {
|
|
showCancelButton: true,
|
|
showCancelButton: true,
|
|
confirmButtonText: '确认拆卷',
|
|
confirmButtonText: '确认拆卷',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
- callback: (action) => {
|
|
|
|
|
|
+ callback: async(action, ctx, close) => {
|
|
if (action === 'confirm') {
|
|
if (action === 'confirm') {
|
|
console.log(1111);
|
|
console.log(1111);
|
|
- // cbk()
|
|
|
|
|
|
+
|
|
|
|
+ ctx.confirmButtonLoading = true;
|
|
|
|
+
|
|
|
|
+ let ids=''
|
|
|
|
+ const rows = tableCheckedKeys.value;
|
|
|
|
+ ids= rowsToId(rows)
|
|
|
|
+ const { error, code, data,msg } = await tuningApi.splitArchive({
|
|
|
|
+ ids:ids
|
|
|
|
+ })
|
|
|
|
+ ctx.confirmButtonLoading = true;
|
|
|
|
+ if (!error && code === 200) {
|
|
|
|
+ window.$message?.success(msg)
|
|
|
|
+ getTableData()
|
|
|
|
+ } else {
|
|
|
|
+ window.$message?.warning(msg)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -459,6 +492,7 @@ const handleCheckAllChange = (val) => {
|
|
|
|
|
|
//勾选
|
|
//勾选
|
|
const handleCheckedMovesChange = (value) => {
|
|
const handleCheckedMovesChange = (value) => {
|
|
|
|
+
|
|
const keys = tableCheckedKeys.value
|
|
const keys = tableCheckedKeys.value
|
|
const checkedCount = value.length
|
|
const checkedCount = value.length
|
|
movesCheckAll.value = checkedCount === keys.length
|
|
movesCheckAll.value = checkedCount === keys.length
|
|
@@ -467,7 +501,24 @@ const handleCheckedMovesChange = (value) => {
|
|
|
|
|
|
//保存
|
|
//保存
|
|
const movesModalLoading = ref(false)
|
|
const movesModalLoading = ref(false)
|
|
-const movesModalSave = () => {
|
|
|
|
|
|
+const chnodeId=ref('')
|
|
|
|
+const movesModalSave = async() => {
|
|
|
|
+ movesModalLoading.value = true
|
|
|
|
+ console.log(checkedMoves.value,'checkedMoves.value');
|
|
|
|
+ let ids=checkedMoves.value.join(',')
|
|
|
|
+
|
|
|
|
+ const { error, code, data,msg } = await tuningApi.moveArchive({
|
|
|
|
+ ids:ids,
|
|
|
|
+ nodeId:chnodeId.value
|
|
|
|
+ })
|
|
|
|
+ movesModalLoading.value = false
|
|
|
|
+ if (!error && code === 200) {
|
|
|
|
+ console.log(msg,'msg');
|
|
|
|
+ window.$message?.success(msg)
|
|
|
|
+ getTableData()
|
|
|
|
+ } else {
|
|
|
|
+ window.$message?.warning(msg)
|
|
|
|
+ }
|
|
movesModal.value = false
|
|
movesModal.value = false
|
|
}
|
|
}
|
|
|
|
|