|
@@ -1,102 +1,139 @@
|
|
|
<!-- 搜索表单 -->
|
|
<!-- 搜索表单 -->
|
|
|
<template>
|
|
<template>
|
|
|
- <div style="display: flex; align-items: center">
|
|
|
|
|
|
|
+ <div>
|
|
|
<el-form
|
|
<el-form
|
|
|
|
|
+ :inline="true"
|
|
|
size="small"
|
|
size="small"
|
|
|
class="ele-form-search"
|
|
class="ele-form-search"
|
|
|
@keyup.enter.native="search"
|
|
@keyup.enter.native="search"
|
|
|
@submit.native.prevent
|
|
@submit.native.prevent
|
|
|
- style="width: 260px; display: inline-block"
|
|
|
|
|
>
|
|
>
|
|
|
- <el-form-item label="文档名称" label-width="80px">
|
|
|
|
|
|
|
+ <el-form-item label="文档名称">
|
|
|
<el-input
|
|
<el-input
|
|
|
|
|
+ style="width: 100%"
|
|
|
clearable
|
|
clearable
|
|
|
size="small"
|
|
size="small"
|
|
|
v-model.trim="where.name"
|
|
v-model.trim="where.name"
|
|
|
placeholder="请输入文档名称"
|
|
placeholder="请输入文档名称"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="文档编码">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ v-model.trim="where.code"
|
|
|
|
|
+ placeholder="请输入文档编码"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="创建人">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ v-model="where.createUserName"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ @click.native="$refs.addRef.open()"
|
|
|
|
|
+ readonly
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item style="width: 300px" label="创建时间">
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ style="width: 230px"
|
|
|
|
|
+ v-model="where.createTime"
|
|
|
|
|
+ type="daterange"
|
|
|
|
|
+ range-separator="至"
|
|
|
|
|
+ start-placeholder="开始日期"
|
|
|
|
|
+ end-placeholder="结束日期"
|
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-date-picker>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-search"
|
|
|
|
|
+ class="ele-btn-icon"
|
|
|
|
|
+ @click="search"
|
|
|
|
|
+ >
|
|
|
|
|
+ 查询
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-button size="small" @click="reset" style="margin-left: 5px">
|
|
|
|
|
+ 重置
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <!-- <el-popover
|
|
|
|
|
+ placement="bottom"
|
|
|
|
|
+ title="查询"
|
|
|
|
|
+ width="600"
|
|
|
|
|
+ trigger="manual"
|
|
|
|
|
+ v-model="visible"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-form
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ class="ele-form-search"
|
|
|
|
|
+ @keyup.enter.native="search"
|
|
|
|
|
+ @submit.native.prevent
|
|
|
|
|
+ style="width: 500px; display: inline-block"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-row :gutter="24">
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-form-item label="创建人" label-width="80px">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ v-model="where.createUserName"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ @click.native="$refs.addRef.open()"
|
|
|
|
|
+ readonly
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-form-item label="文档编码" label-width="80px">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ v-model.trim="where.code"
|
|
|
|
|
+ placeholder="请输入文档编码"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <div style="justify-content: flex-end; display: flex">
|
|
|
|
|
+ <el-button size="small" @click="visible = false">
|
|
|
|
|
+ 关闭
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-search"
|
|
|
|
|
+ class="ele-btn-icon"
|
|
|
|
|
+ @click="search"
|
|
|
|
|
+ style="margin-left: 5px"
|
|
|
|
|
+ >
|
|
|
|
|
+ 查询
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-button size="small" @click="reset" style="margin-left: 5px">
|
|
|
|
|
+ 重置
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-search"
|
|
|
|
|
+ class="ele-btn-icon"
|
|
|
|
|
+ slot="reference"
|
|
|
|
|
+ style="margin-left: 5px"
|
|
|
|
|
+ @click="visible = !visible"
|
|
|
|
|
+ >
|
|
|
|
|
+ 更多查询
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </el-popover> -->
|
|
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
- <el-button
|
|
|
|
|
- size="small"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- icon="el-icon-search"
|
|
|
|
|
- class="ele-btn-icon"
|
|
|
|
|
- @click="search"
|
|
|
|
|
- >
|
|
|
|
|
- 查询
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-popover
|
|
|
|
|
- placement="bottom"
|
|
|
|
|
- title="查询"
|
|
|
|
|
- width="600"
|
|
|
|
|
- trigger="manual"
|
|
|
|
|
- v-model="visible"
|
|
|
|
|
- >
|
|
|
|
|
- <el-form
|
|
|
|
|
- size="small"
|
|
|
|
|
- class="ele-form-search"
|
|
|
|
|
- @keyup.enter.native="search"
|
|
|
|
|
- @submit.native.prevent
|
|
|
|
|
- style="width: 500px; display: inline-block"
|
|
|
|
|
- >
|
|
|
|
|
- <el-row :gutter="24">
|
|
|
|
|
- <el-col :span="24">
|
|
|
|
|
- <el-form-item label="创建人" label-width="80px">
|
|
|
|
|
- <el-input
|
|
|
|
|
- clearable
|
|
|
|
|
- size="small"
|
|
|
|
|
- v-model="where.createUserName"
|
|
|
|
|
- placeholder="请选择"
|
|
|
|
|
- @click.native="$refs.addRef.open()"
|
|
|
|
|
- readonly
|
|
|
|
|
- />
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-col>
|
|
|
|
|
- <el-col :span="24">
|
|
|
|
|
- <el-form-item label="文档编码" label-width="80px">
|
|
|
|
|
- <el-input
|
|
|
|
|
- clearable
|
|
|
|
|
- size="small"
|
|
|
|
|
- v-model.trim="where.code"
|
|
|
|
|
- placeholder="请输入文档编码"
|
|
|
|
|
- />
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-col>
|
|
|
|
|
- <el-col :span="24">
|
|
|
|
|
- <div style="justify-content: flex-end; display: flex">
|
|
|
|
|
- <el-button size="small" @click="visible = false">
|
|
|
|
|
- 关闭
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button
|
|
|
|
|
- size="small"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- icon="el-icon-search"
|
|
|
|
|
- class="ele-btn-icon"
|
|
|
|
|
- @click="search"
|
|
|
|
|
- style="margin-left: 5px"
|
|
|
|
|
- >
|
|
|
|
|
- 查询
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button size="small" @click="reset" style="margin-left: 5px">
|
|
|
|
|
- 重置
|
|
|
|
|
- </el-button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </el-col>
|
|
|
|
|
- </el-row>
|
|
|
|
|
- </el-form>
|
|
|
|
|
- <el-button
|
|
|
|
|
- size="small"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- icon="el-icon-search"
|
|
|
|
|
- class="ele-btn-icon"
|
|
|
|
|
- slot="reference"
|
|
|
|
|
- style="margin-left: 5px"
|
|
|
|
|
- @click="visible = !visible"
|
|
|
|
|
- >
|
|
|
|
|
- 更多查询
|
|
|
|
|
- </el-button>
|
|
|
|
|
- </el-popover>
|
|
|
|
|
|
|
+
|
|
|
<Add ref="addRef" @success="success" :isSearch="true" />
|
|
<Add ref="addRef" @success="success" :isSearch="true" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -114,7 +151,10 @@
|
|
|
name: '',
|
|
name: '',
|
|
|
code: '',
|
|
code: '',
|
|
|
createUserName: '',
|
|
createUserName: '',
|
|
|
- createUserIds: []
|
|
|
|
|
|
|
+ createUserIds: [],
|
|
|
|
|
+ createTime: [],
|
|
|
|
|
+ createTimeStart: '',
|
|
|
|
|
+ createTimeEnd: ''
|
|
|
};
|
|
};
|
|
|
return {
|
|
return {
|
|
|
// 表单数据
|
|
// 表单数据
|
|
@@ -136,6 +176,11 @@
|
|
|
},
|
|
},
|
|
|
/* 搜索 */
|
|
/* 搜索 */
|
|
|
search() {
|
|
search() {
|
|
|
|
|
+ if (this.where.createTime?.length > 0) {
|
|
|
|
|
+ this.where.createTimeStart = this.where.createTime[0] + ' 00:00:00';
|
|
|
|
|
+ this.where.createTimeEnd = this.where.createTime[1] + ' 23:59:59';
|
|
|
|
|
+ }
|
|
|
|
|
+ delete this.where.createTime;
|
|
|
this.$emit('search', this.where);
|
|
this.$emit('search', this.where);
|
|
|
this.visible = false;
|
|
this.visible = false;
|
|
|
},
|
|
},
|