@@ -164,7 +164,7 @@ export default {
mixins: [presenter(), crud()],
cruds() {
return CRUD({
- url: 'api/log/initLog',
+ url: 'api/archivesUtilize/initborrowLog',
title: '借阅记录',
optShow: {
add: false,
@@ -187,8 +187,8 @@ export default {
selections: [],
keyWord: null,
options: [
- { value: 'username', label: '利用人' },
- { value: 'account', label: '利用事由' }
+ { value: 'createBy', label: '利用人' },
+ { value: 'borrowReason', label: '利用事由' }
],
optionVal: '',
startTime: null,
@@ -207,8 +207,11 @@ export default {
},
watch: {
activeIndex: function(newValue, oldValue) {
- console.log('newValue', newValue)
- this.crud.query.isType = newValue
+ if (newValue === 0) {
+ this.crud.query.isExpire = 2
+ } else {
+ this.crud.query.isExpire = 1
+ }
this.crud.toQuery()
}
},
@@ -216,7 +219,11 @@ export default {
},
methods: {
[CRUD.HOOK.beforeRefresh]() {
- this.crud.query.isType = this.activeIndex
+ if (this.activeIndex === 0) {
+ this.crud.query.isExpire = 2
+ } else {
+ this.crud.query.isExpire = 1
+ }
},
resetQuery() {
diff --git a/src/views/archivesManage/managementLibrary/index.vue b/src/views/archivesManage/managementLibrary/index.vue
index 26c44ea..a6cbf97 100644
--- a/src/views/archivesManage/managementLibrary/index.vue
+++ b/src/views/archivesManage/managementLibrary/index.vue
@@ -282,7 +282,7 @@ export default {
FetchInitSearchFonds().then(res => {
const allFondsIds = res.map(item => item.fondsId)
this.$refs.classifyTree.setCheckedKeys(allFondsIds)
- this.smartQuery.fonds_no = res.map(item => item.fondsNo).join(',')
+ this.smartQuery.fonds_no = allFondsIds.join(',')
})
this.handlePageList()
// Promise.all(this.user.roles.map(item => this.getRole(item.id)))
@@ -408,10 +408,10 @@ export default {
// const isFondsTop = res.some(obj => obj.fondsName === '全宗')
// if (isFondsTop) {
// this.smartQuery.fonds_no = null
- const fondsGroup = res.filter(item => item.fondsId).map(item => item.fondsNo)
+ const fondsGroup = res.filter(item => item.fondsId).map(item => item.fondsId)
if (fondsGroup.length === 0) {
FetchInitSearchFonds().then(res => {
- this.smartQuery.fonds_no = res.map(item => item.fondsNo).join(',')
+ this.smartQuery.fonds_no = res.map(item => item.fondsId).join(',')
this.$nextTick(() => {
this.handlePageList('quickFilter')
})
diff --git a/src/views/archivesManage/managementLibrary/module/collectHeader.vue b/src/views/archivesManage/managementLibrary/module/collectHeader.vue
index 373de62..b026d23 100644
--- a/src/views/archivesManage/managementLibrary/module/collectHeader.vue
+++ b/src/views/archivesManage/managementLibrary/module/collectHeader.vue
@@ -82,7 +82,7 @@
mode="horizontal"
@select="handleSelect"
>
-
+
常规
@@ -91,7 +91,7 @@
编辑
-
+
整理
@@ -114,7 +114,7 @@
销毁鉴定
-
+
整理
@@ -123,7 +123,7 @@
标签绑定
-
+
更多
@@ -247,6 +247,11 @@ export default {
inject: ['parentsData'],
data() {
return {
+ permission: {
+ convention: ['admin', 'archives:convention'],
+ arrange: ['admin', 'archives:arrange'],
+ more: ['admin', 'archives:more']
+ },
value: null,
statusOptions: [
{
diff --git a/src/views/collectReorganizi/collectionLibrary/index.vue b/src/views/collectReorganizi/collectionLibrary/index.vue
index 5523145..0593274 100644
--- a/src/views/collectReorganizi/collectionLibrary/index.vue
+++ b/src/views/collectReorganizi/collectionLibrary/index.vue
@@ -286,7 +286,7 @@ export default {
FetchInitSearchFonds().then(res => {
const allFondsIds = res.map(item => item.fondsId)
this.$refs.classifyTree.setCheckedKeys(allFondsIds)
- this.smartQuery.fonds_no = res.map(item => item.fondsNo).join(',')
+ this.smartQuery.fonds_no = allFondsIds.join(',')
})
this.handlePageList()
// Promise.all(this.user.roles.map(item => this.getRole(item.id)))
@@ -417,10 +417,10 @@ export default {
// const isFondsTop = res.some(obj => obj.fondsName === '全宗')
// if (isFondsTop) {
// this.smartQuery.fonds_no = null
- const fondsGroup = res.filter(item => item.fondsId).map(item => item.fondsNo)
+ const fondsGroup = res.filter(item => item.fondsId).map(item => item.fondsId)
if (fondsGroup.length === 0) {
FetchInitSearchFonds().then(res => {
- this.smartQuery.fonds_no = res.map(item => item.fondsNo).join(',')
+ this.smartQuery.fonds_no = res.map(item => item.fondsId).join(',')
this.$nextTick(() => {
this.handlePageList('quickFilter')
})
diff --git a/src/views/components/category/PreviewForm.vue b/src/views/components/category/PreviewForm.vue
index b7e0e15..d03e6f1 100644
--- a/src/views/components/category/PreviewForm.vue
+++ b/src/views/components/category/PreviewForm.vue
@@ -133,7 +133,7 @@ import draggable from 'vuedraggable'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import { FetchSonDictionaryList, FetchDictionaryTree } from '@/api/system/dict'
-import { FetchFondsAll } from '@/api/system/fonds'
+import { FetchInitSearchFonds } from '@/api/archiveUtilize/archiveUtilize'
import { FetchArchivesClassTree, FetchSonArchivesClass } from '@/api/system/archivesClass'
import { parseTime, getCurrentTime } from '@/utils/index'
import { reDocumentUpload } from '@/utils/upload'
@@ -363,7 +363,7 @@ export default {
})
}
if (fieldInfo.mateData === 1) {
- await FetchFondsAll().then(res => {
+ await FetchInitSearchFonds().then(res => {
const option = this.getFondsNode(res, this.addOrUpdateForm[val.fieldName])
if (option) {
const obj = {}
@@ -460,7 +460,7 @@ export default {
parent.fondsName = '全宗选择'
this.isTableType = 1
this.tableTitle = '全宗列表'
- FetchFondsAll().then(res => {
+ FetchInitSearchFonds().then(res => {
if (item.isInputClass === 'select') {
this.$set(item, 'options', res)
} else if (item.isInputClass === 'popover') {
diff --git a/src/views/system/user/cart.vue b/src/views/system/user/cart.vue
index dbfb35c..d0b3933 100644
--- a/src/views/system/user/cart.vue
+++ b/src/views/system/user/cart.vue
@@ -17,7 +17,7 @@
-
+
利用
@@ -40,18 +40,23 @@
@selection-change="crud.selectionChangeHandler"
>
-
-
-
-
-
-
+
+
+
+
+
- {{ scope.row.startTime | parseTime }}
+ {{ scope.row.categoryLevel === 3 ? '文件' : '其他' }}
+
+
+
+
+ {{ scope.row.createTime | parseTime }}
+
@@ -59,10 +64,11 @@
import CRUD, { presenter, crud } from '@crud/crud'
import pagination from '@crud/Pagination'
import crudOperation from '@crud/CRUD.operation'
+import LendForm from '@/views/archiveUtilize/utillizeRecord/module/utilizationProcess'
import { mapGetters } from 'vuex'
export default {
name: 'Cart',
- components: { pagination, crudOperation },
+ components: { pagination, crudOperation, LendForm },
mixins: [presenter(), crud()],
cruds() {
return CRUD({
@@ -129,6 +135,33 @@ export default {
}).catch(() => {
})
},
+ handleLend(data) {
+ this.$refs.lendFormRef.lendFormVisible = true
+ this.$nextTick(() => {
+ this.$refs.lendFormRef.detailArcData = []
+ data.forEach(item => {
+ item.checkedId = [1]
+ item.childMenu = [{
+ value: 1,
+ label: '电子查看'
+ },
+ {
+ value: 2,
+ label: '下载'
+ },
+ {
+ value: 3,
+ label: '打印'
+ },
+ {
+ value: 4,
+ label: '实体借阅'
+ }]
+ })
+ console.log(data)
+ this.$refs.lendFormRef.detailArcData = data
+ })
+ },
clickRowHandler(row) {
this.$refs.table.toggleRowSelection(row)
},
@@ -137,6 +170,10 @@ export default {
// this.$refs.editingDetail.archivesTabIndex = 0
// this.$refs.editingDetail.getDetail(row)
// this.$refs.editingDetail.editingDetailVisible = true
+ },
+ closeDialog() {
+ this.keyWord = null
+ this.crud.toQuery()
}
}
}