Browse Source

层位管理disabled-btn/档案管理去掉filter

master
xuhuajiao 3 years ago
parent
commit
5a47ba8cfb
  1. 41
      src/views/archivesManage/archivesList/mixins/archives.js
  2. 3
      src/views/storeManage/levelManage/index.vue

41
src/views/archivesManage/archivesList/mixins/archives.js

@ -2,46 +2,6 @@ import qs from 'qs'
import { exportFile } from '@/utils/index' import { exportFile } from '@/utils/index'
import { FetchTableDisplayFields, FetchInitArchivesView, FetchFormDisplayFields } from '@/api/archivesManage/archivesList' import { FetchTableDisplayFields, FetchInitArchivesView, FetchFormDisplayFields } from '@/api/archivesManage/archivesList'
export const archivesCrud = { export const archivesCrud = {
filters: {
archivesborrowStatus(val) {
// switch (val) {
// case 1:
// return '-'
// case 2:
// return '待借'
// case 3:
// return '已借'
// case 4:
// return '在库'
// case '':
// return '-'
// }
if (val === 1) {
return '-'
} else if (val === 2) {
return '待借'
} else if (val === 3) {
return '已借'
} else if (val === '') {
return '-'
}
},
archivesStorageStatus(val) {
switch (val) {
case 0:
return '未入'
case 1:
return '待入'
case 2:
return '已入'
case 3:
return '待出'
case '':
return '未入'
}
}
},
// 组件共用属性 // 组件共用属性
data() { data() {
return { return {
@ -226,6 +186,7 @@ export const archivesCrud = {
this.borrowTxt[index] = '-' this.borrowTxt[index] = '-'
} }
} }
// 借阅状态 // 借阅状态
if (item.is_borrow === 1) { if (item.is_borrow === 1) {
this.borrowTxt[index] = '待借' this.borrowTxt[index] = '待借'

3
src/views/storeManage/levelManage/index.vue

@ -132,7 +132,8 @@ export default {
background-color: #1aae93; background-color: #1aae93;
border: none; border: none;
&:disabled { &:disabled {
background-color: #666666;
background-color: #0D5649;
color: #666;
} }
&::before { &::before {
padding-right: 5px; padding-right: 5px;

Loading…
Cancel
Save