参数项收集清单增加高级搜索
This commit is contained in:
@@ -161,6 +161,10 @@
|
|||||||
type: Object,
|
type: Object,
|
||||||
default: true
|
default: true
|
||||||
},
|
},
|
||||||
|
queryParamQuery: {
|
||||||
|
type: Object,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
currentPersonRole: {
|
currentPersonRole: {
|
||||||
type: String,
|
type: String,
|
||||||
default: true
|
default: true
|
||||||
@@ -591,7 +595,8 @@
|
|||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
userTypes: this.currentPersonRole || currentPersonRole,
|
userTypes: this.currentPersonRole || currentPersonRole,
|
||||||
paramsManifestId: paramsManifestid,
|
paramsManifestId: paramsManifestid,
|
||||||
...this.formInline
|
...this.formInline,
|
||||||
|
...currentPersonRole
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(url, params).then((res) => {
|
getAction(url, params).then((res) => {
|
||||||
|
|||||||
@@ -33,17 +33,17 @@
|
|||||||
v-model="formInline.paramsName"></a-input>
|
v-model="formInline.paramsName"></a-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<!-- <a-col :md="6" :sm="8">-->
|
||||||
<div class="box-title-text">
|
<!-- <div class="box-title-text">-->
|
||||||
<div class="title-text" :title="$t('certificationCategory')">
|
<!-- <div class="title-text" :title="$t('certificationCategory')">-->
|
||||||
<span>{{$t('certificationCategory')}}</span>
|
<!-- <span>{{$t('certificationCategory')}}</span>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<j-dict-select-tag class="box-input" v-model="formInline.certCategory"
|
<!-- <j-dict-select-tag class="box-input" v-model="formInline.certCategory"-->
|
||||||
:placeholder="$t('PleaseSelect')+$t('certificationCategory')"
|
<!-- :placeholder="$t('PleaseSelect')+$t('certificationCategory')"-->
|
||||||
:type="'select'"
|
<!-- :type="'select'"-->
|
||||||
:triggerChange="false" :dictCode="'cert_category'"/>
|
<!-- :triggerChange="false" :dictCode="'cert_category'"/>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</a-col>
|
<!-- </a-col>-->
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('areaOfResponsibility')">
|
<div class="title-text" :title="$t('areaOfResponsibility')">
|
||||||
@@ -64,29 +64,32 @@
|
|||||||
v-model="formInline.dre"></a-input>
|
v-model="formInline.dre"></a-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<!-- <a-col :md="6" :sm="8">-->
|
||||||
<div class="box-title-text">
|
<!-- <div class="box-title-text">-->
|
||||||
<div class="title-text" :title="$t('status')">
|
<!-- <div class="title-text" :title="$t('status')">-->
|
||||||
<span>{{$t('status')}}</span>
|
<!-- <span>{{$t('status')}}</span>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<a-select :placeholder="$t('PleaseSelect')+$t('status')"
|
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('status')"-->
|
||||||
class="box-input"
|
<!-- class="box-input"-->
|
||||||
allowClear
|
<!-- allowClear-->
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
<!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"-->
|
||||||
v-model="formInline.state">
|
<!-- v-model="formInline.state">-->
|
||||||
<a-select-option v-for="(item, key) in statusList"
|
<!-- <a-select-option v-for="(item, key) in statusList"-->
|
||||||
:key="key"
|
<!-- :key="key"-->
|
||||||
:value="item.value">
|
<!-- :value="item.value">-->
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.name ">
|
<!-- <span style="display: inline-block;width: 100%" :title=" item.name ">-->
|
||||||
{{ item.name}}
|
<!-- {{ item.name}}-->
|
||||||
</span>
|
<!-- </span>-->
|
||||||
</a-select-option>
|
<!-- </a-select-option>-->
|
||||||
</a-select>
|
<!-- </a-select>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</a-col>
|
<!-- </a-col>-->
|
||||||
<span style="float: right;overflow: hidden;margin-right: 11px"
|
<span style="float: right;overflow: hidden;margin-right: 11px"
|
||||||
class="table-page-search-submitButtons">
|
class="table-page-search-submitButtons">
|
||||||
<a-col :md="6" :sm="24">
|
<a-col :md="6" :sm="24">
|
||||||
|
<globalAdvancedQuery ref="globalAdvancedQueryRef"
|
||||||
|
@handleSuperQuery="handleSuperQuery"
|
||||||
|
:fieldList="fieldList"/>
|
||||||
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
|
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
|
||||||
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
|
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -187,7 +190,7 @@
|
|||||||
<div style="width: 100%">
|
<div style="width: 100%">
|
||||||
<!-- 表格-10控件-->
|
<!-- 表格-10控件-->
|
||||||
<table-collection ref="CollectionTabel" :url='url' :paramsManifest='paramsManifest' @rowValue='rowValue'
|
<table-collection ref="CollectionTabel" :url='url' :paramsManifest='paramsManifest' @rowValue='rowValue'
|
||||||
:formInline='formInline' :currentPersonRole='currentPersonRole'
|
:formInline='formInline' :queryParamQuery='queryParamQuery' :currentPersonRole='currentPersonRole'
|
||||||
@getDataSource="getDataSource"
|
@getDataSource="getDataSource"
|
||||||
@handlePreservation="handlePreservation"
|
@handlePreservation="handlePreservation"
|
||||||
@value='value'
|
@value='value'
|
||||||
@@ -391,6 +394,7 @@
|
|||||||
import TableCollection from '@/components/tableCollection/index'
|
import TableCollection from '@/components/tableCollection/index'
|
||||||
import { getAction, postAction } from '../../../api/manage'
|
import { getAction, postAction } from '../../../api/manage'
|
||||||
import ParameterLibraryAdd from '@/components/ParameterLibraryAdd/index'
|
import ParameterLibraryAdd from '@/components/ParameterLibraryAdd/index'
|
||||||
|
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
||||||
import SynchronousSubmissionLibrary from '@/components/SynchronousSubmissionLibrary/index'
|
import SynchronousSubmissionLibrary from '@/components/SynchronousSubmissionLibrary/index'
|
||||||
import TaskCutOffTime from '@/components/TaskCutOffTime/index'
|
import TaskCutOffTime from '@/components/TaskCutOffTime/index'
|
||||||
import ReferenceParameter from '@/components/ReferenceParameter/index'
|
import ReferenceParameter from '@/components/ReferenceParameter/index'
|
||||||
@@ -408,45 +412,55 @@
|
|||||||
AssignedBy,
|
AssignedBy,
|
||||||
TaskCutOffTime,
|
TaskCutOffTime,
|
||||||
ReferenceParameter,
|
ReferenceParameter,
|
||||||
SynchronousSubmissionLibrary
|
SynchronousSubmissionLibrary,
|
||||||
|
globalAdvancedQuery
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
this.statusList = [
|
this.statusList = [
|
||||||
{
|
{
|
||||||
value: '1',
|
value: '1',
|
||||||
name: this.$t('CollectionInitiated')
|
title: this.$t('CollectionInitiated'),
|
||||||
|
key:'1',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '2',
|
value: '2',
|
||||||
name: this.$t('handledInterface')
|
title: this.$t('handledInterface'),
|
||||||
|
key:'2',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '3',
|
value: '3',
|
||||||
name: this.$t('ReturnedPerson')
|
title: this.$t('ReturnedPerson'),
|
||||||
|
key:'3',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '4',
|
value: '4',
|
||||||
name: this.$t('completed')
|
title: this.$t('completed'),
|
||||||
|
key:'4',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '5',
|
value: '5',
|
||||||
name: this.$t('Filledreturn')
|
title: this.$t('Filledreturn'),
|
||||||
|
key:'5',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '6',
|
value: '6',
|
||||||
name: this.$t('Submitted')
|
title: this.$t('Submitted'),
|
||||||
|
key:'6',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '7',
|
value: '7',
|
||||||
name: this.$t('ReturnedEngineer')
|
title: this.$t('ReturnedEngineer'),
|
||||||
|
key:'7',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '8',
|
value: '8',
|
||||||
name: this.$t('SynchronizedLibrary')
|
title: this.$t('SynchronizedLibrary'),
|
||||||
|
key:'8',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '9',
|
value: '9',
|
||||||
name: this.$t('alteration')
|
title: this.$t('alteration'),
|
||||||
|
key:'9',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
return {
|
return {
|
||||||
@@ -502,9 +516,24 @@
|
|||||||
scopedSlots: { customRender: 'operation' }
|
scopedSlots: { customRender: 'operation' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
fieldList: [
|
||||||
|
{
|
||||||
|
type: '',
|
||||||
|
value: 'attestationType',
|
||||||
|
text: this.$t('certificationCategory'),
|
||||||
|
dictCode: 'cert_category'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: '',
|
||||||
|
value: 'attestationRank',
|
||||||
|
text: this.$t('status'),
|
||||||
|
options: this.statusList//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||||
|
},
|
||||||
|
],
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
textLoading: false,
|
textLoading: false,
|
||||||
formInline: {},
|
formInline: {},
|
||||||
|
queryParamQuery:{},
|
||||||
url: {
|
url: {
|
||||||
tableHeader: 'params/collectManifest/getHeader',
|
tableHeader: 'params/collectManifest/getHeader',
|
||||||
tableList: 'params/collectManifest/list',
|
tableList: 'params/collectManifest/list',
|
||||||
@@ -740,6 +769,20 @@
|
|||||||
return flag
|
return flag
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 高级搜索
|
||||||
|
handleSuperQuery(params, matchType) {
|
||||||
|
let sqp = {}
|
||||||
|
if (!params || (params && params.length == 0)) {
|
||||||
|
sqp['superQueryParams'] = ''
|
||||||
|
this.$refs.globalAdvancedQueryRef.superQueryFlag = false
|
||||||
|
} else {
|
||||||
|
this.$refs.globalAdvancedQueryRef.superQueryFlag = true
|
||||||
|
sqp['superQueryParams'] = encodeURI(JSON.stringify(params))
|
||||||
|
sqp['superQueryMatchType'] = matchType
|
||||||
|
}
|
||||||
|
this.queryParamQuery = sqp
|
||||||
|
this.$refs.CollectionTabel.getTableList(this.queryParamQuery)
|
||||||
|
},
|
||||||
// 认证工程师 批量删除 权限
|
// 认证工程师 批量删除 权限
|
||||||
// 仅仅状态为 待发起收集 工程接口人退回 变更 可以批量删除
|
// 仅仅状态为 待发起收集 工程接口人退回 变更 可以批量删除
|
||||||
homoJurisdictionBatchdelete() {
|
homoJurisdictionBatchdelete() {
|
||||||
@@ -1392,6 +1435,8 @@
|
|||||||
},
|
},
|
||||||
searchReset() {
|
searchReset() {
|
||||||
this.$refs.CollectionTabel.getTableListReset()
|
this.$refs.CollectionTabel.getTableListReset()
|
||||||
|
this.$refs.globalAdvancedQueryRef.resetLine()
|
||||||
|
this.$refs.globalAdvancedQueryRef.emitCallback()
|
||||||
},
|
},
|
||||||
// 批量删除 -- 与下发收集一致
|
// 批量删除 -- 与下发收集一致
|
||||||
handleDelJurisdiction() {
|
handleDelJurisdiction() {
|
||||||
|
|||||||
Reference in New Issue
Block a user