修改项目库的查询条件

This commit is contained in:
qq787203167
2022-04-18 15:40:59 +08:00
parent 898065e34b
commit fbc66fb129
2 changed files with 32 additions and 12 deletions
@@ -39,8 +39,12 @@
<div class="title-text" :title="$t('StudioEngineer')">
<span>{{$t('StudioEngineer')}}</span>
</div>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('StudioEngineer')"
v-model="queryParam.studioEngineerName"></a-input>
<PersonnelSelection class="box-input"
:query="{db_field_name:'studioEngineer',db_field_txt:$t('StudioEngineer')}"
:isInput="true"
:personneQuery="queryParam"
@change="PersonnelSelectionChange"
v-model="queryParam.studioEngineerName"/>
</div>
</a-col>
<a-col :md="6" :sm="8">
@@ -48,8 +52,12 @@
<div class="title-text" :title="$t('certifiedEngineer')">
<span>{{$t('certifiedEngineer')}}</span>
</div>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('certifiedEngineer')"
v-model="queryParam.certificationEngineerName"></a-input>
<PersonnelSelection :query="{db_field_name:'certificationEngineer',db_field_txt:$t('certifiedEngineer')}"
:isInput="true"
class="box-input"
:personneQuery="queryParam"
@change="PersonnelSelectionChange"
v-model="queryParam.certificationEngineerName"/>
</div>
</a-col>
<a-col :md="6" :sm="8">
@@ -137,11 +145,13 @@
<script>
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
import addModel from '../components/addModel'
import PersonnelSelection from '@/components/PersonnelSelection/index'
export default {
name: 'index',
components: {
addModel
addModel,
PersonnelSelection
},
data() {
return {
@@ -300,6 +310,10 @@
this.pageNo = 1
this.getList()
},
PersonnelSelectionChange(value, id) {
this.queryParam[value] = id
this.queryParam = { ...this.queryParam }
},
getList() {
let query = {
pageNo: this.pageNo,