Browse Source

文件柜优化

master
xuhuajiao 5 days ago
parent
commit
db78da166f
  1. 14
      src/views/archivesMIOD/‌filingCabinet/index.vue

14
src/views/archivesMIOD/‌filingCabinet/index.vue

@ -99,7 +99,7 @@
</div>
<el-table
ref="table"
v-loading="crud.loading"
v-loading="tableLoading"
class="archives-table"
:data="miodData"
style="width: 100%;"
@ -206,6 +206,7 @@ export default {
},
data() {
return {
tableLoading: false,
categoryId: null,
parentInfo: null,
pageType: 'miodRecord',
@ -358,19 +359,22 @@ export default {
})
},
getDocumentCirculationCabinetById() {
this.tableLoading = true
this.miodData = []
const params = {
id: this.selectedCellInfo.originalData.id
}
FetchDocumentCirculationCabinetById(params).then((res) => {
console.log('res', res)
if (res.code !== 500) {
this.miodData = res.detailsList || []
} else {
this.$message({ message: '获取文件流转柜详情失败', type: 'error', offset: 8 })
}
this.tableLoading = false
}).catch(err => {
console.log(err)
this.$message({ message: '获取文件流转柜详情失败', type: 'error', offset: 8 })
this.tableLoading = false
})
},
handleBindCell(index, item) {
@ -386,9 +390,7 @@ export default {
borrowType: null,
id: this.selectedCellInfo.originalData.id
}
console.log('params', params)
FetchCabinetBingBorrower(params).then((res) => {
console.log('res', res)
if (res.code !== 500) {
this.$message({ message: '绑定成功', type: 'success', offset: 8 })
this.lastSelectedCellId = this.selectedCellInfo.id
@ -434,7 +436,6 @@ export default {
})
},
tableDoubleClick(row) {
console.log('row', row)
this.parentInfo = row
this.$nextTick(() => {
this.$refs.archivesInfo.archivesInfoVisible = true
@ -484,7 +485,6 @@ export default {
this.getBorrowerList()
},
handleBatchDel(index, data) {
console.log('data', data)
this.$set(this.removalLoaing, index, true)
this.$confirm('此操作将下架当前公文' + '<span>你是否还要继续?</span>', '提示', {
confirmButtonText: '继续',
@ -495,9 +495,7 @@ export default {
const params = {
'documentTid': data.regNo
}
console.log(params)
FetchUnpublish(params).then((res) => {
console.log('res', res)
if (res.code !== 500) {
this.$message({ message: '手动下架成功', type: 'success', offset: 8 })
this.crud.refresh()

Loading…
Cancel
Save