|
|
|
@ -70,18 +70,6 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="创建日期" prop="createTime">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="queryParams.createTime"
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
type="daterange"
|
|
|
|
|
range-separator="-"
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
:default-time="['00:00:00', '23:59:59']"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery"
|
|
|
|
|
>搜索</el-button
|
|
|
|
@ -272,7 +260,14 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="部门名称" prop="deptName">
|
|
|
|
|
<el-input v-model="form.deptName" placeholder="请输入部门名称" />
|
|
|
|
|
<treeselect
|
|
|
|
|
v-model="form.deptId"
|
|
|
|
|
:options="deptOptions"
|
|
|
|
|
:show-count="true"
|
|
|
|
|
:clearable="true"
|
|
|
|
|
placeholder="请选择归属部门"
|
|
|
|
|
:normalizer="normalizer"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
@ -439,11 +434,16 @@ import Editor from "@/components/Editor";
|
|
|
|
|
import { getOrganizationPage } from "@/api/setting/organization";
|
|
|
|
|
import { getSiteTree } from "@/api/setting/organization";
|
|
|
|
|
import { listData } from "@/api/system/dict/data";
|
|
|
|
|
import { listSimpleDepts } from "@/api/system/dept";
|
|
|
|
|
import { listSimplePosts } from "@/api/system/post";
|
|
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "ElectronicAssets",
|
|
|
|
|
components: {
|
|
|
|
|
Editor,
|
|
|
|
|
Treeselect,
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -452,6 +452,8 @@ export default {
|
|
|
|
|
value: "pId",
|
|
|
|
|
multiple: false,
|
|
|
|
|
},
|
|
|
|
|
// 部门树选项
|
|
|
|
|
deptOptions: undefined,
|
|
|
|
|
// 遮罩层
|
|
|
|
|
loading: true,
|
|
|
|
|
optType: undefined,
|
|
|
|
@ -511,6 +513,7 @@ export default {
|
|
|
|
|
this.getSiteList();
|
|
|
|
|
this.getOrganizationList();
|
|
|
|
|
this.handleInitList();
|
|
|
|
|
this.getTreeselect();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
/** 查询列表 */
|
|
|
|
@ -534,6 +537,27 @@ export default {
|
|
|
|
|
this.typeOptions = res.data.list || [];
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 查询部门下拉树结构 + 岗位下拉 */
|
|
|
|
|
getTreeselect() {
|
|
|
|
|
listSimpleDepts().then((response) => {
|
|
|
|
|
// 处理 deptOptions 参数
|
|
|
|
|
this.deptOptions = [];
|
|
|
|
|
this.deptOptions.push(...this.handleTree(response.data, "id"));
|
|
|
|
|
});
|
|
|
|
|
listSimplePosts().then((response) => {
|
|
|
|
|
// 处理 postOptions 参数
|
|
|
|
|
this.postOptions = [];
|
|
|
|
|
this.postOptions.push(...response.data);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 格式化部门的下拉框
|
|
|
|
|
normalizer(node) {
|
|
|
|
|
return {
|
|
|
|
|
id: node.id,
|
|
|
|
|
label: node.name,
|
|
|
|
|
children: node.children,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
//获取归档位置
|
|
|
|
|
getSiteList() {
|
|
|
|
|
getSiteTree().then((response) => {
|
|
|
|
|