14 changed files with 543 additions and 319 deletions
-
12src/api/system/archivesClass.js
-
43src/api/system/category.js
-
108src/api/system/category/category.js
-
21src/api/system/category/filter.js
-
4src/views/collectReorganizi/collectionLibrary/index.vue
-
256src/views/system/archivesCategory/archiveSealSetting/index.vue
-
154src/views/system/archivesCategory/archiveSealSetting/module/form.vue
-
19src/views/system/archivesCategory/baseInfo/index.vue
-
5src/views/system/archivesCategory/form.vue
-
18src/views/system/archivesCategory/index.vue
-
47src/views/system/archivesCategory/publicScreening/index.vue
-
4src/views/system/archivesCategory/sortDialog.vue
-
169src/views/system/archivesClassify/index.vue
-
2src/views/system/groupManage/index.vue
@ -0,0 +1,12 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 获取档案分类列表
|
|||
export function FetchInitArchivesClass(params) { |
|||
return request({ |
|||
url: 'api/archivesClass/initArchivesClass', |
|||
method: 'get', |
|||
params |
|||
}) |
|||
} |
|||
|
|||
export default { FetchInitArchivesClass } |
@ -1,43 +0,0 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 获取门类树状菜单
|
|||
export function FetchCategoryMenu() { |
|||
return request({ |
|||
url: 'api/category/menu', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 获取门类下的子门类
|
|||
export function FetchCategoryMenuChildren(cid) { |
|||
return request({ |
|||
url: 'api/category/getChildren?categoryId=' + cid, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/category/editCategory', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/category/editCategory', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/category/delete', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, FetchCategoryMenu } |
@ -0,0 +1,108 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 获取门类树状菜单
|
|||
export function FetchCategoryMenu() { |
|||
return request({ |
|||
url: 'api/category/menu', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 获取门类下的子门类
|
|||
export function FetchCategoryMenuChildren(cid) { |
|||
return request({ |
|||
url: 'api/category/getChildren?categoryId=' + cid, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增门类
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/category/editCategory', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
// 编辑门类
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/category/editCategory', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
// 删除门类
|
|||
export function del(ids) { |
|||
const params = { id: ids[0] } |
|||
return request({ |
|||
url: 'api/category/delete', |
|||
method: 'delete', |
|||
params |
|||
}) |
|||
} |
|||
|
|||
// 修改门类树状菜单
|
|||
export function sort(data) { |
|||
return request({ |
|||
url: 'api/category/sort', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
// 获取归档章版式
|
|||
export function FetchGetFilingsealFormat() { |
|||
return request({ |
|||
url: 'api/category/getFilingsealFormat', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 获取归档章详情
|
|||
export function FetchGetFilingsealFormatDtails(filingId) { |
|||
return request({ |
|||
url: 'api/category/getFilingsealFormatDtails?filingId=' + filingId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 保存归档章
|
|||
export function FetchEditCategoryFilingseal(data) { |
|||
return request({ |
|||
url: 'api/category/editCategoryFilingseal', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
// 启用 / 关闭归档章
|
|||
export function FetchEnabledFilingseal(data) { |
|||
return request({ |
|||
url: 'api/category/enabledFilingseal', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
// 新增公共筛选
|
|||
export function FetchAddCategoryScreen(data) { |
|||
return request({ |
|||
url: 'api/category/addCategoryScreen', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
// 删除公共筛选
|
|||
export function FetchDelCategoryScreen(data) { |
|||
return request({ |
|||
url: 'api/category/delCategoryScreen', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, FetchCategoryMenu } |
@ -0,0 +1,21 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 新增公共筛选
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/category/addCategoryScreen', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
// 删除公共筛选
|
|||
export function del(data) { |
|||
return request({ |
|||
url: 'api/category/delCategoryScreen', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, del } |
@ -1,154 +0,0 @@ |
|||
<template> |
|||
<el-dialog :close-on-click-modal="false" :modal-append-to-body="false" append-to-body :visible.sync="cuDialogVisible" :title="title"> |
|||
<div class="setting-dialog"> |
|||
<el-form ref="formData" :model="form" size="small" label-width="100px"> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<el-form-item label="归档章版式"> |
|||
<el-select v-model="form.format"> |
|||
<el-option v-for="option in formatOptions" :key="option.value" :label="option.label" :value="option.value" /> |
|||
</el-select> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="归档章位置"> |
|||
<el-select v-model="form.position"> |
|||
<el-option v-for="option in positionOptions" :key="option.value" :label="option.label" :value="option.value" /> |
|||
</el-select> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
</el-form> |
|||
<div class="format-style"> |
|||
<span v-for="item in formatData" :key="item.id">{{ item.value }}</span> |
|||
</div> |
|||
</div> |
|||
<div slot="footer" class="dialog-footer"> |
|||
<el-button @click="cuDialogVisible = false">取消</el-button> |
|||
<el-button type="primary" :loading="loading" @click="save">确定</el-button> |
|||
</div> |
|||
</el-dialog> |
|||
</template> |
|||
|
|||
<script> |
|||
import { form } from '@crud/crud' |
|||
const defaultForm = { |
|||
id: null, |
|||
format: '默认版式', |
|||
position: '顶部居左' |
|||
} |
|||
export default { |
|||
mixins: [form(defaultForm)], |
|||
data() { |
|||
return { |
|||
title: '编辑归档章', |
|||
cuDialogVisible: false, |
|||
loading: false, |
|||
formatOptions: [{ |
|||
label: '默认版式', |
|||
value: '0' |
|||
}], |
|||
formatData: [ |
|||
{ |
|||
id: 1, |
|||
value: '全宗号' |
|||
}, |
|||
{ |
|||
id: 2, |
|||
value: '年度' |
|||
}, |
|||
{ |
|||
id: 3, |
|||
value: '件号' |
|||
}, |
|||
{ |
|||
id: 4, |
|||
value: '机构(问题)' |
|||
}, |
|||
{ |
|||
id: 5, |
|||
value: '保管期限' |
|||
}, |
|||
{ |
|||
id: 6, |
|||
value: '页数' |
|||
} |
|||
], |
|||
positionOptions: [ |
|||
{ |
|||
label: '顶部居左', |
|||
value: 'topLeft' |
|||
}, |
|||
{ |
|||
label: '顶部居中', |
|||
value: 'topCenter' |
|||
}, |
|||
{ |
|||
label: '顶部居右', |
|||
value: 'topRight' |
|||
}, |
|||
{ |
|||
label: '中部居左', |
|||
value: 'centerLeft' |
|||
}, |
|||
{ |
|||
label: '中部居中', |
|||
value: 'center' |
|||
}, |
|||
{ |
|||
label: '中部居右', |
|||
value: 'centerRight' |
|||
}, |
|||
{ |
|||
label: '底部居左', |
|||
value: 'bottomLeft' |
|||
}, |
|||
{ |
|||
label: '底部居中', |
|||
value: 'bottomCenter' |
|||
}, |
|||
{ |
|||
label: '底部居右', |
|||
value: 'bottomRight' |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
methods: { |
|||
save() { |
|||
this.$refs['formData'].validate((valid) => { |
|||
if (valid) { |
|||
this.loading = true |
|||
// edit(this.formData.fields).then((res) => { |
|||
// this.$message({ |
|||
// message: '保存成功', |
|||
// type: 'success', |
|||
// duration: 2500 |
|||
// }) |
|||
// this.cuDialogVisible = false |
|||
// this.loading = false |
|||
// this.$emit('refresh') |
|||
// }) |
|||
this.cuDialogVisible = false |
|||
this.loading = false |
|||
this.$emit('refresh') |
|||
} else { |
|||
return false |
|||
} |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
::v-deep .el-dialog .el-dialog__body{ |
|||
padding-bottom: 0; |
|||
} |
|||
.dialog-footer{ |
|||
margin-top: 20px; |
|||
} |
|||
.format-style{ |
|||
margin-left: 100px; |
|||
} |
|||
</style> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue