|
@@ -83,7 +83,7 @@
|
|
|
<!-- <el-input v-model="form.docPath" placeholder="请输入文件路径" /> -->
|
|
|
<file-upload v-model="form.docPath" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="文件目录" prop="dirId">
|
|
|
+ <el-form-item label="文件目录" prop="dirId">
|
|
|
<treeselect v-model="form.dirId" :options="dirList" :normalizer="normalizer" placeholder="请选择文件目录" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="文件名称" prop="docName">
|
|
@@ -93,7 +93,10 @@
|
|
|
<el-input v-model="form.docDesc" type="textarea" placeholder="请输入内容" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="文件级别" prop="docLevel">
|
|
|
- <el-input v-model="form.docLevel" placeholder="请输入文件级别" />
|
|
|
+ <el-select v-model="form.docLevel" placeholder="请选择文件级别">
|
|
|
+ <el-option v-for="item in levelOptions" :key="item.levelId" :label="item.levelName"
|
|
|
+ :value="item.levelId"></el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="文件标签" prop="docLevel">
|
|
|
<el-input v-model="form.docLevel" type="textarea" placeholder="请输入文件标签,多个标签以空格分隔,每个标签最好不超过四个字!" />
|
|
@@ -123,6 +126,9 @@
|
|
|
updateDir,
|
|
|
personalList
|
|
|
} from "@/api/doc/dir";
|
|
|
+ import {
|
|
|
+ listLevel
|
|
|
+ } from "@/api/doc/level";
|
|
|
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
@@ -152,6 +158,8 @@
|
|
|
dirId: undefined,
|
|
|
//目录数据
|
|
|
dirList: undefined,
|
|
|
+ //文件等级数据
|
|
|
+ levelOptions: undefined,
|
|
|
// 弹出层标题
|
|
|
title: "",
|
|
|
// 是否显示弹出层
|
|
@@ -302,8 +310,11 @@
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
this.reset();
|
|
|
- this.open = true;
|
|
|
- this.title = "添加文件基本信息";
|
|
|
+ listLevel().then(response => {
|
|
|
+ this.levelOptions = response.rows;
|
|
|
+ this.open = true;
|
|
|
+ this.title = "添加文件基本信息";
|
|
|
+ });
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|