diff --git a/src/views/prearchiveLibrary/index.vue b/src/views/prearchiveLibrary/index.vue
index a6a4a7a..8f575bb 100644
--- a/src/views/prearchiveLibrary/index.vue
+++ b/src/views/prearchiveLibrary/index.vue
@@ -30,13 +30,22 @@
+
+
+ 新增
+
+ 编辑
+
+ 删除
+
- 批量成件
- 合并成件
- 移动
+ 批量成件
+ 合并成件
+ 移动
+
+
+
+
+
+
此操作将删除当前所选预归档数据
+
你是否还要继续?
+
+
+
+
@@ -75,20 +95,23 @@ import crudCategory from '@/api/category/category'
import CRUD, { presenter, header } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
+import pagination from '@crud/Pagination'
import dataJson from './data.json'
+import tableJson from './table.json'
+import eForm from './module/form.vue'
export default {
name: 'PrearchiveLibrary',
- components: { rrOperation, crudOperation },
+ components: { eForm, rrOperation, crudOperation, pagination },
cruds() {
return [
CRUD({
title: '预归档库', url: 'api/archives-type/menu',
crudMethod: { ...crudCategory },
optShow: {
- add: true,
- edit: true,
- del: true,
+ add: false,
+ edit: false,
+ del: false,
download: true,
group: false,
reset: true
@@ -105,13 +128,20 @@ export default {
del: ['admin', 'prearchiveLibrary:del'],
sort: ['admin', 'prearchiveLibrary:sort']
},
- treeList: []
+ defaultProps: {
+ children: 'children',
+ label: 'label'
+ },
+ treeList: [],
+ table: [],
+ deleteVisible: false
}
},
computed: {
},
created() {
this.treeList = dataJson
+ this.table = tableJson
},
methods: {
// 展开选中的父级
@@ -144,6 +174,74 @@ export default {
},
// 选中门类后
handleNodeClick(val) {
+ },
+ // 著录界面-form/详情-api
+ handleForm(type) {
+ this.$refs.eform.formVisible = true
+ if (type === 'add') {
+ this.$refs.eform.formTitle = '新增文件'
+ } else if (type === 'edit') {
+ this.$refs.eform.formTitle = '编辑文件'
+ }
+ // 档案预编辑获取字段
+ const params = {
+ categoryId: this.categoryId,
+ archivesId: this.arcId
+ }
+ this.getFormInfo(params, type)
+ },
+ // 选择删除
+ toDelete(data) {
+ this.deleteVisible = true
+ },
+ // 确认删除
+ handleDelConfirm(data) {
+ this.deleteVisible = false
+ // const params = data.map(item => {
+ // return item.id
+ // })
+ // del(params).then(res => {
+ // if (res.doDel.length === 0) {
+ // this.$message.error('删除失败')
+ // } else {
+ // if (res.doDel.length === data.length) {
+ // this.$message.success('全部删除成功')
+ // } else {
+ // this.$message.success('部分删除成功')
+ // }
+ // }
+ // this.deleteVisible = false
+ // this.crud.refresh()
+ // })
+ },
+ getFormInfo(params, type, isAnOrJuan) {
+ // FetchFormDisplayFields(params).then(data => {
+ // this.formPreviewData = data.showFiled
+ // this.$nextTick(() => {
+ // if (type === 'edit') {
+ // this.$refs.previewForm.addOrUpdateForm = data.echo
+ // } else {
+ // if (this.recycleMain.selectedCategory.isType !== 5) {
+ // // 新增时拿到项目和案卷的相同的字段的值
+ // this.formPreviewData.forEach(item => {
+ // if (isAnOrJuan === 1) {
+ // if (this.recycleMain.selectedCategory.isType !== 3) {
+ // if (this.recycleMain.projectSelection[item.fieldName]) {
+ // this.$refs.previewForm.addOrUpdateForm = JSON.parse(JSON.stringify(this.recycleMain.projectSelection))
+ // }
+ // }
+ // } else if (isAnOrJuan === 2) {
+ // if (this.recycleMain.anjuanSelection[item.fieldName]) {
+ // this.$refs.previewForm.addOrUpdateForm = JSON.parse(JSON.stringify(this.recycleMain.anjuanSelection))
+ // }
+ // }
+ // })
+ // }
+ // }
+ // this.isDesFormType = 'arcives'
+ // this.$refs.previewForm.FetchNoFormatField(this.categoryId)
+ // })
+ // })
}
}
}
diff --git a/src/views/prearchiveLibrary/module/form.vue b/src/views/prearchiveLibrary/module/form.vue
new file mode 100644
index 0000000..381ead6
--- /dev/null
+++ b/src/views/prearchiveLibrary/module/form.vue
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/prearchiveLibrary/table.json b/src/views/prearchiveLibrary/table.json
new file mode 100644
index 0000000..b3d42c1
--- /dev/null
+++ b/src/views/prearchiveLibrary/table.json
@@ -0,0 +1,46 @@
+[
+ {
+ "id": 1,
+ "title": "归档文件标题1",
+ "number": "[2020] 1号",
+ "date": "2020-10-01",
+ "problem": "档案室",
+ "officialIdent": "-",
+ "recordType": "决议",
+ "seClassification": "机密",
+ "period": "永久"
+ },
+ {
+ "id": 2,
+ "title": "归档文件标题2",
+ "number": "[2020] 2号",
+ "date": "2020-10-01",
+ "problem": "档案室",
+ "officialIdent": "-",
+ "recordType": "决议",
+ "seClassification": "机密",
+ "period": "永久"
+ },
+ {
+ "id": 3,
+ "title": "归档文件标题3",
+ "number": "[2020] 3号",
+ "date": "2020-10-01",
+ "problem": "档案室",
+ "officialIdent": "-",
+ "recordType": "决议",
+ "seClassification": "机密",
+ "period": "永久"
+ },
+ {
+ "id": 4,
+ "title": "归档文件标题4",
+ "number": "[2020] 4号",
+ "date": "2020-10-01",
+ "problem": "档案室",
+ "officialIdent": "-",
+ "recordType": "决议",
+ "seClassification": "机密",
+ "period": "永久"
+ }
+]