|
@@ -6,7 +6,7 @@
|
|
|
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;"
|
|
|
|
|
|
|
+ style="width: 260px; display: inline-block"
|
|
|
>
|
|
>
|
|
|
<el-form-item label="文档名称" label-width="80px">
|
|
<el-form-item label="文档名称" label-width="80px">
|
|
|
<el-input
|
|
<el-input
|
|
@@ -42,12 +42,14 @@
|
|
|
>
|
|
>
|
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="文档名称" label-width="80px">
|
|
|
|
|
|
|
+ <el-form-item label="创建人" label-width="80px">
|
|
|
<el-input
|
|
<el-input
|
|
|
clearable
|
|
clearable
|
|
|
size="small"
|
|
size="small"
|
|
|
- v-model.trim="where.name"
|
|
|
|
|
- placeholder="请输入文档名称"
|
|
|
|
|
|
|
+ v-model="where.createUserName"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ @click.native="$refs.addRef.open()"
|
|
|
|
|
+ readonly
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -89,76 +91,30 @@
|
|
|
icon="el-icon-search"
|
|
icon="el-icon-search"
|
|
|
class="ele-btn-icon"
|
|
class="ele-btn-icon"
|
|
|
slot="reference"
|
|
slot="reference"
|
|
|
- style="margin-left: 5px;"
|
|
|
|
|
|
|
+ style="margin-left: 5px"
|
|
|
@click="visible = !visible"
|
|
@click="visible = !visible"
|
|
|
>
|
|
>
|
|
|
更多查询
|
|
更多查询
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</el-popover>
|
|
</el-popover>
|
|
|
|
|
+ <Add ref="addRef" @success="success" :isSearch="true" />
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
- <!-- <div>
|
|
|
|
|
- <ele-modal
|
|
|
|
|
- custom-class="ele-dialog-form long-dialog-form"
|
|
|
|
|
- :centered="true"
|
|
|
|
|
- :visible.sync="visible"
|
|
|
|
|
- :title="title"
|
|
|
|
|
- width="600px"
|
|
|
|
|
- :maxable="true"
|
|
|
|
|
- :resizable="true"
|
|
|
|
|
- >
|
|
|
|
|
- <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.trim="where.name"
|
|
|
|
|
- placeholder="请输入文档名称"
|
|
|
|
|
- />
|
|
|
|
|
- </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-row>
|
|
|
|
|
- </el-form>
|
|
|
|
|
- </ele-modal>
|
|
|
|
|
- <el-button
|
|
|
|
|
- size="small"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- icon="el-icon-search"
|
|
|
|
|
- class="ele-btn-icon"
|
|
|
|
|
- @click="visible = true"
|
|
|
|
|
- style="margin-left: 5px"
|
|
|
|
|
- >
|
|
|
|
|
- 查询
|
|
|
|
|
- </el-button>
|
|
|
|
|
- </div> -->
|
|
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+ import Add from '@/views/doc/components/power/add.vue';
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ components: {
|
|
|
|
|
+ Add
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
// 默认表单数据
|
|
// 默认表单数据
|
|
|
const defaultWhere = {
|
|
const defaultWhere = {
|
|
|
- jobNumber: '',
|
|
|
|
|
- loginName: '',
|
|
|
|
|
- name: ''
|
|
|
|
|
|
|
+ name: '',
|
|
|
|
|
+ code: '',
|
|
|
|
|
+ createUserName: '',
|
|
|
|
|
+ createUserIds: []
|
|
|
};
|
|
};
|
|
|
return {
|
|
return {
|
|
|
// 表单数据
|
|
// 表单数据
|
|
@@ -173,6 +129,11 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ success(data) {
|
|
|
|
|
+ console.log(data, 'data');
|
|
|
|
|
+ this.where.createUserIds = data.map((item) => item.id);
|
|
|
|
|
+ this.where.createUserName = data.map((item) => item.name).toString();
|
|
|
|
|
+ },
|
|
|
/* 搜索 */
|
|
/* 搜索 */
|
|
|
search() {
|
|
search() {
|
|
|
this.$emit('search', this.where);
|
|
this.$emit('search', this.where);
|