档案分类

main
JiilingLee 1 year ago
parent 25c8971d31
commit 340bb633cf

@ -103,7 +103,14 @@
prop="categoryCode" prop="categoryCode"
/> />
<!-- <el-table-column label="档案类型父id" align="center" prop="parentId" /> --> <!-- <el-table-column label="档案类型父id" align="center" prop="parentId" /> -->
<el-table-column label="类型名称" align="center" prop="typeName" /> <el-table-column label="类型名称" align="center" prop="typeName" >
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ARCHIVES_FILE_TYPE"
:value="scope.row.typeName"
/>
</template>
</el-table-column>
<el-table-column label="目录号" align="center" prop="catalogNumber" /> <el-table-column label="目录号" align="center" prop="catalogNumber" />
<el-table-column <el-table-column
label="二级类别号" label="二级类别号"
@ -193,7 +200,15 @@
</el-col> --> </el-col> -->
<el-col :span="8"> <el-col :span="8">
<el-form-item label="类型名称" prop="typeName"> <el-form-item label="类型名称" prop="typeName">
<el-input v-model="form.typeName" placeholder="请输入类型名称" /> <el-select v-model="form.typeName" placeholder="请选择档案类型">
<el-option
v-for="item in fileTypeOptions"
:key="item.id"
:value="item.value"
:label="item.label"
>
</el-option>
</el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
@ -250,6 +265,7 @@ import {
} from "@/api/setting/fileCategory"; } from "@/api/setting/fileCategory";
import { listData } from "@/api/system/dict/data"; import { listData } from "@/api/system/dict/data";
export default { export default {
name: "FileCategory", name: "FileCategory",
components: {}, components: {},
@ -269,6 +285,7 @@ export default {
title: "", title: "",
// //
open: false, open: false,
fileTypeOptions: [], //
// //
queryParams: { queryParams: {
pageNo: 1, pageNo: 1,
@ -294,6 +311,17 @@ export default {
this.handleInitList(); this.handleInitList();
}, },
methods: { methods: {
//
handleInitList() {
//
listData({
pageNo: 1,
pageSize: 100,
dictType: "archives_file_type",
}).then((res) => {
this.fileTypeOptions = res.data.list || [];
});
},
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
this.loading = true; this.loading = true;

Loading…
Cancel
Save