|
@ -19,13 +19,13 @@ |
|
|
slot="option-label" |
|
|
slot="option-label" |
|
|
slot-scope="{node}" |
|
|
slot-scope="{node}" |
|
|
style="display:flex; justify-content: space-between ;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; width: 90%;" |
|
|
style="display:flex; justify-content: space-between ;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; width: 90%;" |
|
|
:title="node.label" |
|
|
|
|
|
|
|
|
:title="node.label" |
|
|
> |
|
|
> |
|
|
<template> {{ node.label }} </template> |
|
|
<template> {{ node.label }} </template> |
|
|
</p> |
|
|
</p> |
|
|
</treeselect> |
|
|
</treeselect> |
|
|
<treeselect |
|
|
<treeselect |
|
|
v-if="isTitleType !== 6" |
|
|
|
|
|
|
|
|
v-if="isTitleType !== 6 && isTitleType !== 2" |
|
|
v-model="query.archive_ctg_no" |
|
|
v-model="query.archive_ctg_no" |
|
|
:options="classifyOptions" |
|
|
:options="classifyOptions" |
|
|
style="width: 180px;" |
|
|
style="width: 180px;" |
|
@ -40,7 +40,7 @@ |
|
|
slot="option-label" |
|
|
slot="option-label" |
|
|
slot-scope="{node}" |
|
|
slot-scope="{node}" |
|
|
style="display:flex; justify-content: space-between ;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; width: 90%;" |
|
|
style="display:flex; justify-content: space-between ;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; width: 90%;" |
|
|
:title="node.label" |
|
|
|
|
|
|
|
|
:title="node.label" |
|
|
> |
|
|
> |
|
|
<template> {{ node.label }} </template> |
|
|
<template> {{ node.label }} </template> |
|
|
</p> |
|
|
</p> |
|
@ -126,7 +126,7 @@ |
|
|
</el-menu> |
|
|
</el-menu> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div v-if="isRecycle && (isTitleType === 2 || (isTitleType === 3 && selectedCategory.arrangeType !== 3))" class="collect-menu"> |
|
|
|
|
|
|
|
|
<div v-if="isRecycle && (isTitleType === 2 || isTitleType === 3)" class="collect-menu"> |
|
|
<el-button class="filter-item" size="mini" type="success" @click="toRecover"><i class="iconfont icon-huifu" />恢复</el-button> |
|
|
<el-button class="filter-item" size="mini" type="success" @click="toRecover"><i class="iconfont icon-huifu" />恢复</el-button> |
|
|
<el-button class="filter-item" size="mini" type="success" @click="toCompletelyDelete"><i class="iconfont icon-shanchu" />彻底删除</el-button> |
|
|
<el-button class="filter-item" size="mini" type="success" @click="toCompletelyDelete"><i class="iconfont icon-shanchu" />彻底删除</el-button> |
|
|
</div> |
|
|
</div> |
|
@ -156,20 +156,6 @@ |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!--删除对话框组件--> |
|
|
|
|
|
<el-dialog class="tip-dialog" title="提示" :close-on-click-modal="false" :modal-append-to-body="false" append-to-body :visible.sync="deleteVisible"> |
|
|
|
|
|
<div class="setting-dialog"> |
|
|
|
|
|
<div class="tip-content"> |
|
|
|
|
|
<p class="tipMsg">此删除将把会所选条目与其子集放入回收站</p> |
|
|
|
|
|
<span>你是否还要继续?</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
|
|
<el-button type="text" @click="deleteVisible = false">取消</el-button> |
|
|
|
|
|
<el-button type="primary" @click.native="handleDelConfirm">确定</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<!--卷内移出 组件--> |
|
|
<!--卷内移出 组件--> |
|
|
<el-dialog class="tip-dialog" title="提示" :close-on-click-modal="false" :modal-append-to-body="false" append-to-body :visible.sync="moveVisible"> |
|
|
<el-dialog class="tip-dialog" title="提示" :close-on-click-modal="false" :modal-append-to-body="false" append-to-body :visible.sync="moveVisible"> |
|
|
<div class="setting-dialog"> |
|
|
<div class="setting-dialog"> |
|
@ -297,11 +283,8 @@ export default { |
|
|
formPreviewData: [], // 预览界面data |
|
|
formPreviewData: [], // 预览界面data |
|
|
projectOptions: [], |
|
|
projectOptions: [], |
|
|
classifyOptions: [], |
|
|
classifyOptions: [], |
|
|
delAllLoading: false, |
|
|
|
|
|
deleteVisible: false, |
|
|
|
|
|
moveVisible: false, |
|
|
moveVisible: false, |
|
|
recoverVisible: false, |
|
|
recoverVisible: false, |
|
|
completelyDeleteVisible: false, |
|
|
|
|
|
isDesFormType: 'arcives', // 区分是门类得还是档案得 |
|
|
isDesFormType: 'arcives', // 区分是门类得还是档案得 |
|
|
arcId: null, |
|
|
arcId: null, |
|
|
quickPaper: false, |
|
|
quickPaper: false, |
|
@ -454,9 +437,37 @@ export default { |
|
|
let filteredItems = JSON.parse(JSON.stringify(res)).filter(item => filterCodes.includes(item.dictionaryCode)) |
|
|
let filteredItems = JSON.parse(JSON.stringify(res)).filter(item => filterCodes.includes(item.dictionaryCode)) |
|
|
filteredItems = this.addLevelToDictionaryList(filteredItems, 1) |
|
|
filteredItems = this.addLevelToDictionaryList(filteredItems, 1) |
|
|
if (this.selectedCategory.arrangeType === 3 && this.isTitleType === 3) { |
|
|
if (this.selectedCategory.arrangeType === 3 && this.isTitleType === 3) { |
|
|
this.projectOptions = filteredItems |
|
|
|
|
|
|
|
|
console.log('项目下的案卷') |
|
|
|
|
|
let fiterData = [] |
|
|
|
|
|
fiterData = filteredItems.flatMap(item => { |
|
|
|
|
|
const level2Childs = item.childDictionarys.filter(child => { |
|
|
|
|
|
return child.dictionaryParents === item.id && child.level === 2 |
|
|
|
|
|
}) |
|
|
|
|
|
return level2Childs |
|
|
|
|
|
}) |
|
|
|
|
|
if (this.parentsData.parentsProjectRow) { |
|
|
|
|
|
if (this.parentsData.parentsProjectRow.project_class !== null || this.parentsData.parentsProjectRow.project_class !== '') { |
|
|
|
|
|
console.log('project_class', this.parentsData.parentsProjectRow.project_class) |
|
|
|
|
|
const findDic = fiterData.find(item => item.dictionaryName === this.parentsData.parentsProjectRow.project_class) |
|
|
|
|
|
console.log('findDic', findDic) |
|
|
|
|
|
this.projectOptions.push(findDic) |
|
|
|
|
|
console.log('444', this.projectOptions) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.projectOptions = fiterData |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
this.projectOptions = this.filterData(filteredItems, filteredItems[0].id) |
|
|
|
|
|
|
|
|
// this.projectOptions = this.filterData(filteredItems, filteredItems[0].id) |
|
|
|
|
|
this.projectOptions = filteredItems.flatMap(item => { |
|
|
|
|
|
const level2Childs = item.childDictionarys.filter(child => { |
|
|
|
|
|
return child.dictionaryParents === item.id && child.level === 2 |
|
|
|
|
|
}) |
|
|
|
|
|
// 将满足条件的子项目的childDictionarys设置为空数组,因为项目页不需要 |
|
|
|
|
|
level2Childs.forEach(child => { |
|
|
|
|
|
child.childDictionarys = [] |
|
|
|
|
|
}) |
|
|
|
|
|
return level2Childs |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
console.log(err) |
|
|
console.log(err) |
|
@ -490,7 +501,7 @@ export default { |
|
|
} |
|
|
} |
|
|
return { |
|
|
return { |
|
|
id: node.dictionaryName, |
|
|
id: node.dictionaryName, |
|
|
label: node.level !== 1 ? `${node.dictionaryName} - ${node.dictionaryCode}` : `${node.dictionaryName}`, |
|
|
|
|
|
|
|
|
label: `${node.dictionaryName} - ${node.dictionaryCode}`, |
|
|
children: node.childDictionarys, |
|
|
children: node.childDictionarys, |
|
|
isDisabled: this.isTitleType === 3 ? node.level !== 3 : node.level === 1 |
|
|
isDisabled: this.isTitleType === 3 ? node.level !== 3 : node.level === 1 |
|
|
} |
|
|
} |
|
@ -501,10 +512,17 @@ export default { |
|
|
// 著录界面-form/详情-api |
|
|
// 著录界面-form/详情-api |
|
|
handleForm(type, isPaper) { |
|
|
handleForm(type, isPaper) { |
|
|
if (type === 'add') { |
|
|
if (type === 'add') { |
|
|
if (this.parentsData.parentsAnjuanRow && this.parentsData.parentsAnjuanRow.collect_formal === 2) { |
|
|
|
|
|
this.$message({ message: '当前档案处于归档流程中,不可操作新增,请先确认!', offset: 8 }) |
|
|
|
|
|
return false |
|
|
|
|
|
|
|
|
console.log('parentsProjectId', this.parentsData.parentsProjectId) |
|
|
|
|
|
console.log(this.parentsData.parentsAnjuanRow) |
|
|
|
|
|
if (this.parentsData.parentsProjectId && this.isTitleType === 3) { |
|
|
|
|
|
console.log('项目下的案卷') |
|
|
|
|
|
} else { |
|
|
|
|
|
if (this.parentsData.parentsAnjuanRow && this.parentsData.parentsAnjuanRow.collect_formal === 2) { |
|
|
|
|
|
this.$message({ message: '当前档案处于归档流程中,不可操作新增,请先确认!', offset: 8 }) |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.arcId = null |
|
|
this.arcId = null |
|
|
if (isPaper) { |
|
|
if (isPaper) { |
|
|
this.quickPaper = true |
|
|
this.quickPaper = true |
|
@ -600,7 +618,21 @@ export default { |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
this.deleteVisible = true |
|
|
|
|
|
|
|
|
let messageTip |
|
|
|
|
|
if (this.activeIndex === 1) { |
|
|
|
|
|
messageTip = '此删除将把会所选条目与其子集彻底删除' |
|
|
|
|
|
} else { |
|
|
|
|
|
messageTip = '此删除将把会所选条目与其子集放入回收站' |
|
|
|
|
|
} |
|
|
|
|
|
this.$confirm(messageTip + '<span>你是否还要继续?</span>', '提示', { |
|
|
|
|
|
confirmButtonText: '继续', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning', |
|
|
|
|
|
dangerouslyUseHTMLString: true |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
this.handleDelConfirm() |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 卷内 - 移除 |
|
|
// 卷内 - 移除 |
|
|
toMove() { |
|
|
toMove() { |
|
@ -617,7 +649,6 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 删除 - 确认 |
|
|
// 删除 - 确认 |
|
|
handleDelConfirm() { |
|
|
handleDelConfirm() { |
|
|
this.delAllLoading = true |
|
|
|
|
|
if (this.collectLevel === 4) { |
|
|
if (this.collectLevel === 4) { |
|
|
const params = this.selections.map((item) => { |
|
|
const params = this.selections.map((item) => { |
|
|
const json = {} |
|
|
const json = {} |
|
@ -631,14 +662,11 @@ export default { |
|
|
FetchDeleteArchivesFile(params).then((res) => { |
|
|
FetchDeleteArchivesFile(params).then((res) => { |
|
|
if (res === 'SUCCESS') { |
|
|
if (res === 'SUCCESS') { |
|
|
this.$message({ message: '删除成功', type: 'success', offset: 8 }) |
|
|
this.$message({ message: '删除成功', type: 'success', offset: 8 }) |
|
|
this.delAllLoading = false |
|
|
|
|
|
this.deleteVisible = false |
|
|
|
|
|
this.handleSearch(this.collectLevel) |
|
|
this.handleSearch(this.collectLevel) |
|
|
} else { |
|
|
} else { |
|
|
this.$message({ message: '删除所选电子原文失败', type: 'error', offset: 8 }) |
|
|
this.$message({ message: '删除所选电子原文失败', type: 'error', offset: 8 }) |
|
|
} |
|
|
} |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
this.delAllLoading = false |
|
|
|
|
|
console.log(err) |
|
|
console.log(err) |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
@ -654,14 +682,11 @@ export default { |
|
|
collectDel(params).then((res) => { |
|
|
collectDel(params).then((res) => { |
|
|
if (res.includes('成功')) { |
|
|
if (res.includes('成功')) { |
|
|
this.$message({ message: '删除成功', type: 'success', offset: 8 }) |
|
|
this.$message({ message: '删除成功', type: 'success', offset: 8 }) |
|
|
this.delAllLoading = false |
|
|
|
|
|
this.deleteVisible = false |
|
|
|
|
|
this.handleSearch(this.collectLevel) |
|
|
this.handleSearch(this.collectLevel) |
|
|
} else { |
|
|
} else { |
|
|
this.$message({ message: '删除所选档案失败', type: 'error', offset: 8 }) |
|
|
|
|
|
|
|
|
this.$message({ message: res, type: 'error', offset: 8 }) |
|
|
} |
|
|
} |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
this.delAllLoading = false |
|
|
|
|
|
console.log(err) |
|
|
console.log(err) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
@ -1129,15 +1154,20 @@ export default { |
|
|
const params = { |
|
|
const params = { |
|
|
'categoryId': this.selectedCategory.id, |
|
|
'categoryId': this.selectedCategory.id, |
|
|
'categoryLevel': this.collectLevel, |
|
|
'categoryLevel': this.collectLevel, |
|
|
'archivesIds': archivesIds |
|
|
|
|
|
|
|
|
'archivesIds': archivesIds, |
|
|
|
|
|
'collectFormal': this.isTitleType === 2 ? 1 : null |
|
|
} |
|
|
} |
|
|
FetchRestoreArchives(params).then((res) => { |
|
|
FetchRestoreArchives(params).then((res) => { |
|
|
if (res.code !== 500) { |
|
|
if (res.code !== 500) { |
|
|
console.log(res) |
|
|
console.log(res) |
|
|
this.$message({ message: res, type: 'success', offset: 8 }) |
|
|
|
|
|
|
|
|
if (res.includes('成功')) { |
|
|
|
|
|
this.$message({ message: res, type: 'success', offset: 8 }) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message({ message: res, type: 'error', offset: 8 }) |
|
|
|
|
|
} |
|
|
this.handleSearch(this.collectLevel) |
|
|
this.handleSearch(this.collectLevel) |
|
|
} else { |
|
|
} else { |
|
|
this.$message({ message: '回复所选档案失败', type: 'error', offset: 8 }) |
|
|
|
|
|
|
|
|
this.$message({ message: '恢复所选档案失败', type: 'error', offset: 8 }) |
|
|
} |
|
|
} |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
console.log(err) |
|
|
console.log(err) |
|
@ -1192,6 +1222,6 @@ export default { |
|
|
|
|
|
|
|
|
<style lang='scss' scoped> |
|
|
<style lang='scss' scoped> |
|
|
::v-deep .vue-treeselect__list-item{ |
|
|
::v-deep .vue-treeselect__list-item{ |
|
|
width: 220px; |
|
|
|
|
|
|
|
|
width: 200px; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |