Browse Source

档案管理-详情修改

master
xuhuajiao 3 years ago
parent
commit
4cc035c541
  1. 14
      src/assets/styles/archives-manage.scss
  2. 2
      src/views/archivesManage/archivesList/archivesAnjuan/index.vue
  3. 2
      src/views/archivesManage/archivesList/archivesJuannei/index.vue
  4. 2
      src/views/archivesManage/archivesList/archivesProject/index.vue
  5. 29
      src/views/archivesManage/archivesList/module/archivesInfo/index.vue
  6. 6
      src/views/archivesManage/lendManage/components/lendArchivesList.vue

14
src/assets/styles/archives-manage.scss

@ -157,7 +157,8 @@ $arcCyan: #0FBED9;
}
}
.archives-table{
.archives-table,
.base-info{
::v-deep td.el-table__cell .row-state{
display: block;
height: 26px;
@ -206,6 +207,17 @@ $arcCyan: #0FBED9;
max-height: calc(100vh - 434px) !important;
}
}
.base-info .row-state{
width: 68px;
height: 26px;
line-height: 24px;
text-align: center;
margin-top: -6px;
border-width: 1px;
border-style: solid;
border-radius: 26px;
}
::v-deep .archives-table.el-table .el-table__fixed-right{
background-color: #031435 !important;
box-shadow: -5px 5px 10px 1px rgba(15,164,222,0.16);

2
src/views/archivesManage/archivesList/archivesAnjuan/index.vue

@ -332,6 +332,8 @@ export default {
} else {
this.$refs.archivesInfo.isHasFile = true
}
this.$refs.archivesInfo.isDetailsInfo = true
this.$refs.archivesInfo.isTidOrBorrow = true
this.arcId = row.id
this.$refs.archivesInfo.detailTitle = '档案详情'
this.$refs.archivesInfo.archivesInfoVisible = true

2
src/views/archivesManage/archivesList/archivesJuannei/index.vue

@ -248,6 +248,8 @@ export default {
tableDoubleClick(row) {
this.$refs.archivesInfo.isHasFile = true
this.arcId = row.id
this.$refs.archivesInfo.isDetailsInfo = true
this.$refs.archivesInfo.isTidOrBorrow = false
this.$refs.archivesInfo.detailTitle = '档案详情'
this.$refs.archivesInfo.archivesInfoVisible = true
this.$refs.archivesInfo.archivesTabIndex = 0

2
src/views/archivesManage/archivesList/archivesProject/index.vue

@ -193,6 +193,8 @@ export default {
// table -
tableDoubleClick(row) {
this.$refs.archivesInfo.isHasFile = false
this.$refs.archivesInfo.isDetailsInfo = false
this.$refs.archivesInfo.isTidOrBorrow = false
this.arcId = row.id
this.$refs.archivesInfo.detailTitle = '项目详情'
this.$refs.archivesInfo.archivesInfoVisible = true

29
src/views/archivesManage/archivesList/module/archivesInfo/index.vue

@ -18,10 +18,10 @@
<p :style="{ width: item.editLength+'px'}">{{ item.context }}</p>
</el-col>
</el-row>
<el-row>
<el-row v-if="isDetailsInfo">
<el-col v-for="(item,index) in archivesDetailsData.slice(archivesDetailsData.length-5,archivesDetailsData.length)" :key="'last'+index" :span=" 12" class="base-info-item">
<span>{{ item.fieldCnName }}</span>
<p :style="{ width: item.editLength+'px'}">{{ item.context }}</p>
<p :style="{ width: item.editLength+'px'}" :class="[ (item.fieldName === 'borrow_type') ? 'row-state row-lending' : '' ]">{{ item.context }}</p>
</el-col>
</el-row>
</div>
@ -69,7 +69,9 @@ export default {
data() {
return {
detailTitle: '',
isHasFile: false,
isHasFile: false, // /
isDetailsInfo: false, // 5
isTidOrBorrow: true, // tid/
archivesInfoVisible: false,
archivesTabIndex: 0,
archivesDetailsData: [],
@ -87,6 +89,27 @@ export default {
}
FetchArchivesDetails(params).then(data => {
this.archivesDetailsData = data
// /
this.archivesDetailsData.forEach(item => {
if (item.fieldName === 'borrow_type') {
if (item.context === 1) {
item.context = '待登记'
} else if (item.context === 2) {
item.context = '待借阅'
} else if (item.context === 3) {
item.context = '待归还'
} else if (item.context === 4 || item.context === '') {
item.context = '-'
}
}
})
// - tid/''
if (!this.isTidOrBorrow) {
const indexBorrow = this.archivesDetailsData.findIndex(item => item.fieldName === 'borrow_type')
const indexTid = this.archivesDetailsData.findIndex(item => item.fieldName === 'tid')
this.archivesDetailsData.splice(indexBorrow, 1)
this.archivesDetailsData.splice(indexTid, 1)
}
})
FetchArchivesMetadata(params).then(data => {
this.archivesDetailsMetadata = data

6
src/views/archivesManage/lendManage/components/lendArchivesList.vue

@ -21,7 +21,11 @@
<span class="cell-lend no-lend" style="width:76px">{{ scope.row.borrowType | borrowStatus }}</span>
</template>
</el-table-column>
<el-table-column prop="operationTime" align="center" label="操作时间" min-width="120" />
<el-table-column prop="createTime" align="center" label="操作时间" min-width="120">
<template slot-scope="scope">
<div>{{ scope.row.createTime | parseTime }}</div>
</template>
</el-table-column>
</el-table>
</div>
</template>

Loading…
Cancel
Save