|
|
@ -286,18 +286,38 @@
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="借阅档案" prop="filesNum">
|
|
|
|
<el-form-item label="借阅档案" prop="recordId">
|
|
|
|
<el-select v-model="form.filesNum" placeholder="请选择借阅档案">
|
|
|
|
<el-select v-model="form.recordId" placeholder="请选择借阅档案">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in filesNumOptions"
|
|
|
|
v-for="item in filesNumOptions"
|
|
|
|
:key="item.id"
|
|
|
|
:key="item.id"
|
|
|
|
:value="item.filesNum"
|
|
|
|
:value="item.id"
|
|
|
|
:label="item.filesNum"
|
|
|
|
:label="item.filesNum"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8" v-if="optType == 'edit'">
|
|
|
|
|
|
|
|
<el-form-item label="档案类型" prop="recordId">
|
|
|
|
|
|
|
|
<el-select v-model="form.fileType" placeholder="" clearable>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in fileTypeOptions"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
:value="item.value"
|
|
|
|
|
|
|
|
:label="item.label"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="8" v-if="optType == 'edit'">
|
|
|
|
|
|
|
|
<el-form-item label="位置" prop="site">
|
|
|
|
|
|
|
|
<el-input v-model="form.site" placeholder="" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-col :span="24">
|
|
|
@ -374,6 +394,7 @@ export default {
|
|
|
|
remark: null,
|
|
|
|
remark: null,
|
|
|
|
createTime: [],
|
|
|
|
createTime: [],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
optType: null,
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
|
form: {},
|
|
|
|
form: {},
|
|
|
|
// 表单校验
|
|
|
|
// 表单校验
|
|
|
@ -383,6 +404,7 @@ export default {
|
|
|
|
mediaOptions: [],
|
|
|
|
mediaOptions: [],
|
|
|
|
userOptions: [], //用户数据
|
|
|
|
userOptions: [], //用户数据
|
|
|
|
filesNumOptions: [], //借阅档案数据
|
|
|
|
filesNumOptions: [], //借阅档案数据
|
|
|
|
|
|
|
|
fileTypeOptions: [], //档案类型
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
@ -434,6 +456,14 @@ export default {
|
|
|
|
}).then((res) => {
|
|
|
|
}).then((res) => {
|
|
|
|
this.mediaOptions = res.data.list || [];
|
|
|
|
this.mediaOptions = res.data.list || [];
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
// 获取档案类型
|
|
|
|
|
|
|
|
listData({
|
|
|
|
|
|
|
|
pageNo: 1,
|
|
|
|
|
|
|
|
pageSize: 100,
|
|
|
|
|
|
|
|
dictType: "archives_file_type",
|
|
|
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
|
|
|
this.fileTypeOptions = res.data.list || [];
|
|
|
|
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//获取用户
|
|
|
|
//获取用户
|
|
|
|
getUserList() {
|
|
|
|
getUserList() {
|
|
|
@ -480,12 +510,14 @@ export default {
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
handleAdd() {
|
|
|
|
handleAdd() {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
|
|
|
|
this.optType = "add";
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "添加档案借阅申请";
|
|
|
|
this.title = "添加档案借阅申请";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
handleUpdate(row) {
|
|
|
|
handleUpdate(row) {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
|
|
|
|
this.optType = "edit";
|
|
|
|
const id = row.id;
|
|
|
|
const id = row.id;
|
|
|
|
getBorrowApply(id).then((response) => {
|
|
|
|
getBorrowApply(id).then((response) => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|