diff --git a/src/views/archiveKeeping/inventoryCheck/index.vue b/src/views/archiveKeeping/inventoryCheck/index.vue index de0e7c6..9e74281 100644 --- a/src/views/archiveKeeping/inventoryCheck/index.vue +++ b/src/views/archiveKeeping/inventoryCheck/index.vue @@ -1,7 +1,7 @@ + + diff --git a/src/views/archiveKeeping/inventoryCheck/module/form.vue b/src/views/archiveKeeping/inventoryCheck/module/form.vue new file mode 100644 index 0000000..faf8229 --- /dev/null +++ b/src/views/archiveKeeping/inventoryCheck/module/form.vue @@ -0,0 +1,571 @@ + + + + + diff --git a/src/views/archiveUtilize/archiveEditing/form.vue b/src/views/archiveUtilize/archiveEditing/form.vue new file mode 100644 index 0000000..ad8372d --- /dev/null +++ b/src/views/archiveUtilize/archiveEditing/form.vue @@ -0,0 +1,406 @@ + + + + + diff --git a/src/views/archiveUtilize/archiveEditing/index.vue b/src/views/archiveUtilize/archiveEditing/index.vue index 0deca8e..1c6ea26 100644 --- a/src/views/archiveUtilize/archiveEditing/index.vue +++ b/src/views/archiveUtilize/archiveEditing/index.vue @@ -1,5 +1,5 @@ @@ -56,15 +57,16 @@ import CRUD, { presenter, crud } from '@crud/crud' import pagination from '@crud/Pagination' import DateRangePicker from '@/components/DateRangePicker' import crudOperation from '@crud/CRUD.operation' +import eForm from './form' import EditingDetail from './module/detail' export default { name: 'ArchiveEditing', - components: { pagination, DateRangePicker, crudOperation, EditingDetail }, + components: { pagination, DateRangePicker, crudOperation, EditingDetail, eForm }, mixins: [presenter(), crud()], cruds() { return CRUD({ - url: 'api/log/initLog', + url: 'api/archivesUtilize/initResearchList', title: '档案编研', optShow: { add: true, @@ -95,17 +97,40 @@ export default { { value: 'account', label: '利用事由' } ], optionVal: '', - burryTime: null, - myEditing: false + blurryTime: null, + participants: false } }, mounted() { }, methods: { + resetQuery() { + this.blurryTime = [] + this.crud.query.startTime = null + this.crud.query.endTime = null + this.crud.toQuery() + }, [CRUD.HOOK.beforeRefresh]() { + this.crud.query.search = this.keyWord + this.crud.query.participants = this.participants + if (this.blurryTime) { + this.crud.query.startTime = this.blurryTime[0] + this.crud.query.endTime = this.blurryTime[1] + } else { + this.crud.query.startTime = null + this.crud.query.endTime = null + } }, - resetQuery() { - + // 新增 - 判断当前节点类型 + [CRUD.HOOK.beforeToAdd](crud, form, btn) { + this.$refs.eform.crud.title = '编研主题' + }, + // 编辑前 + [CRUD.HOOK.beforeToEdit](crud, form, btn) { + this.$refs.eform.crud.title = '编研主题' + }, + // 新增/编辑后 + [CRUD.HOOK.afterSubmit](crud, addedCategory) { }, clickRowHandler(row) { // this.$refs.table.clearSelection() diff --git a/src/views/archivesManage/openInventory/index.vue b/src/views/archivesManage/openInventory/index.vue index f1ef441..4e55120 100644 --- a/src/views/archivesManage/openInventory/index.vue +++ b/src/views/archivesManage/openInventory/index.vue @@ -176,7 +176,7 @@ export default { tableData: [], selections: [], page: { - page: 0, + page: 1, size: 10, total: 0 } @@ -203,7 +203,7 @@ export default { 'status': this.status, 'search': this.search, 'businessType': this.businessType, - 'page': this.page.page, + 'page': this.page.page - 1, 'size': this.page.size } FetchBusinessFlowHistory(params).then((res) => { @@ -228,9 +228,11 @@ export default { handleSizeChange(size) { this.page.size = size this.page.page = 1 + this.getBusinessFlowHistory() }, handleCurrentPage(val) { this.page.page = val + this.getBusinessFlowHistory() }, selectionChangeHandler(val) { this.selections = val