修改项目库的查询条件
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="box-title-text">
|
||||
<div class="box-title-text" v-if="!isInput">
|
||||
<a-input class="box-input" :value="value" @input="indexclick($event)"
|
||||
:disabled="true"
|
||||
:placeholder="$t('PleaseSelect')+query.db_field_txt"/>
|
||||
@@ -8,6 +8,12 @@
|
||||
{{this.$t('PersonnelSelection')}}
|
||||
</a-button>
|
||||
</div>
|
||||
<div class="box-title-text" v-if="isInput">
|
||||
<a-input class="box-input" :value="value"
|
||||
readonly
|
||||
@click.native="standardClick"
|
||||
:placeholder="$t('PleaseSelect')+query.db_field_txt"/>
|
||||
</div>
|
||||
<a-drawer
|
||||
:title="$t('PersonnelSelection')"
|
||||
:maskClosable="false"
|
||||
@@ -47,7 +53,7 @@
|
||||
|
||||
export default {
|
||||
name: 'index',
|
||||
props: ['query', 'value', 'personneQuery','isSingleChoice'],
|
||||
props: ['query', 'value', 'personneQuery', 'isSingleChoice', 'isInput'],
|
||||
data() {
|
||||
return {
|
||||
loading: true,
|
||||
@@ -96,11 +102,11 @@
|
||||
},
|
||||
handleSubmit() {
|
||||
if (this.userIds && this.userIds.length > 0) {
|
||||
if (this.isSingleChoice){
|
||||
if (this.userIds.length > 1){
|
||||
this.$message.warning(this.$t('onlyOnePersonCanBeSelected'))
|
||||
}
|
||||
}
|
||||
if (this.isSingleChoice) {
|
||||
if (this.userIds.length > 1) {
|
||||
this.$message.warning(this.$t('onlyOnePersonCanBeSelected'))
|
||||
}
|
||||
}
|
||||
let userIds = JSON.parse(JSON.stringify(this.userIds))
|
||||
let userName = JSON.parse(JSON.stringify(this.userName))
|
||||
this.$emit('input', userName.join(','))
|
||||
|
||||
Reference in New Issue
Block a user