xuhuajiao
2 years ago
7 changed files with 325 additions and 122 deletions
-
46src/api/archivesManage/fileImport.js
-
1src/assets/styles/archives-manage.scss
-
24src/views/archivesManage/archivesList/index.vue
-
89src/views/archivesManage/archivesList/module/oneClickDelete/index.vue
-
242src/views/archivesManage/fileImport/dataImport/index.vue
-
1src/views/archivesManage/fileImport/index.vue
-
44src/views/archivesManage/fileImport/module/detail.vue
@ -0,0 +1,46 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
import axios from 'axios' |
|||
import { getToken } from '@/utils/auth' |
|||
|
|||
// 预览上传zip信息
|
|||
export function zipUpload(api, file) { |
|||
var data = new FormData() |
|||
data.append('multipartFile', file) |
|||
const config = { |
|||
headers: { 'Authorization': getToken() } |
|||
} |
|||
return axios.post(api, data, config) |
|||
} |
|||
|
|||
// 导入预览
|
|||
export function FetchInitImportPreview(params) { |
|||
return request({ |
|||
url: 'api/unzip/initImportPreview' + '?' + qs.stringify(params, { indices: false }), |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 导入
|
|||
export function FetchImportZip(parameter) { |
|||
return request({ |
|||
url: 'api/unzip/importZip', |
|||
method: 'post', |
|||
data: parameter |
|||
}) |
|||
} |
|||
|
|||
// 导入日志
|
|||
export function FetchInitImportLog(params) { |
|||
return request({ |
|||
url: 'api/unzip/initImportLog' + '?' + qs.stringify(params, { indices: false }), |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { |
|||
zipUpload, |
|||
FetchInitImportPreview, |
|||
FetchImportZip, |
|||
FetchInitImportLog |
|||
} |
@ -0,0 +1,89 @@ |
|||
<template> |
|||
<!-- 一键删除 --> |
|||
<el-dialog class="oneClick" title="一键删除" :visible.sync="oneClickVisible" :close-on-click-modal="false" :before-close="handleClose"> |
|||
<span class="dialog-right-top" /> |
|||
<span class="dialog-left-bottom" /> |
|||
<div class="setting-dialog"> |
|||
{{ getCategory }} |
|||
<el-form ref="form" :inline="true" :model="form" :rules="rules" size="small" label-width="80px"> |
|||
<el-form-item label="门类" prop="categoryId"> |
|||
<el-input v-model="form.categoryId" disabled /> |
|||
</el-form-item> |
|||
<el-form-item label="年度" prop="archiveYear"> |
|||
<el-select v-model="form.archiveYear" placeholder="请选择"> |
|||
<el-option v-for="item in roles" :key="item.name" /> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="保管期限" prop="retention"> |
|||
<el-select v-model="form.retention" placeholder="请选择"> |
|||
<el-option v-for="item in roles" :key="item.name" /> |
|||
</el-select> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div slot="footer" class="dialog-footer"> |
|||
<el-button type="primary" @click.native="handleDeltConfirm">确定</el-button> |
|||
</div> |
|||
</div> |
|||
</el-dialog> |
|||
</template> |
|||
|
|||
<script> |
|||
// import { del, FetchCompletelyDelete } from '@/api/archivesManage/archivesList' |
|||
import { header, form } from '@crud/crud' |
|||
const defaultForm = { id: null, categoryId: null, archiveYear: null, retention: null } |
|||
export default { |
|||
name: 'OneClickDelt', |
|||
components: { }, |
|||
mixins: [ |
|||
header(), |
|||
form(defaultForm) |
|||
], |
|||
props: { |
|||
}, |
|||
inject: ['recycleMain'], |
|||
data() { |
|||
return { |
|||
getCategory: null, |
|||
roles: [], |
|||
oneClickVisible: false, |
|||
rules: { |
|||
'categoryId': [ |
|||
{ required: true, trigger: 'blur' } |
|||
], |
|||
'archiveYear': [ |
|||
{ required: true, trigger: 'change' } |
|||
], |
|||
'retention': [ |
|||
{ required: true, trigger: 'change' } |
|||
] |
|||
} |
|||
} |
|||
}, |
|||
watch: { |
|||
}, |
|||
created() { |
|||
}, |
|||
mounted() { |
|||
console.log(this.getCategory) |
|||
this.form.categoryId = this.getCategory.cnName |
|||
}, |
|||
methods: { |
|||
handleDeltConfirm() { |
|||
}, |
|||
// 删除 - 关闭 |
|||
handleClose(done) { |
|||
this.oneClickVisible = false |
|||
done() |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style rel="stylesheet/scss" lang="scss" scoped> |
|||
@import "~@/assets/styles/archives-manage.scss"; |
|||
.oneClick{ |
|||
::v-deep .el-dialog{ |
|||
width: 940px; |
|||
} |
|||
} |
|||
</style> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue