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

Loading…
Cancel
Save