[update] 修改企标库搜索条件bug
This commit is contained in:
@@ -11,7 +11,7 @@ const getEnterpriseStandardInfoById = (params) => getAction('/laws/standard/ente
|
|||||||
// 配置标准
|
// 配置标准
|
||||||
const allocationStandard = (params) => getAction('', params)
|
const allocationStandard = (params) => getAction('', params)
|
||||||
// 移出标准
|
// 移出标准
|
||||||
const shiftStandard = (params) => getAction('', params)
|
const shiftStandard = (params) => getAction('/laws/standard/enterprise/removeStandard', params)
|
||||||
// 获取左侧树列表
|
// 获取左侧树列表
|
||||||
const getTreeList = (params) => getAction('/laws/standard/lawsTreeNode/enterprise', params)
|
const getTreeList = (params) => getAction('/laws/standard/lawsTreeNode/enterprise', params)
|
||||||
// 左侧树删除
|
// 左侧树删除
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :md="(24 / (minLength + 1))" :sm="(24 / minLength)" v-for="(item,index) in searchList.slice(0, minLength)" :key="index" style="line-height: 48px">
|
<a-col :md="(24 / (minLength + 1))" :sm="(24 / minLength)" v-for="(item) in searchList.slice(0, minLength)" :key="item.id" style="line-height: 48px">
|
||||||
<!-- 树形选择器 -->
|
<!-- 树形选择器 -->
|
||||||
<!-- <template v-if="item.fieldShowType === FieldType.TREE.value">-->
|
<!-- <template v-if="item.fieldShowType === FieldType.TREE.value">-->
|
||||||
<!-- <a-form-item :label="item.dbFieldTxt" :labelCol="labelCol" :wrapperCol="wrapperCol">-->
|
<!-- <a-form-item :label="item.dbFieldTxt" :labelCol="labelCol" :wrapperCol="wrapperCol">-->
|
||||||
@@ -19,7 +19,8 @@
|
|||||||
<!-- 输入框 -->
|
<!-- 输入框 -->
|
||||||
<template
|
<template
|
||||||
v-if="[FieldType.TEXT_BOX.value, FieldType.TEXTAREA.value,FieldType.USER_SINGLE.value,
|
v-if="[FieldType.TEXT_BOX.value, FieldType.TEXTAREA.value,FieldType.USER_SINGLE.value,
|
||||||
FieldType.ORGAN_SINGLE.value, FieldType.STANDARD_MORE.value, FieldType.ORGAN_MORE.value]
|
FieldType.ORGAN_SINGLE.value, FieldType.STANDARD_MORE.value, FieldType.ORGAN_MORE.value,
|
||||||
|
FieldType.YEAR_PICKER.value]
|
||||||
.includes(item.fieldShowType)">
|
.includes(item.fieldShowType)">
|
||||||
<a-form-item :label="item.dbFieldTxt" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item :label="item.dbFieldTxt" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-input :placeholder="$t('pleaseEnter')+item.dbFieldTxt"
|
<a-input :placeholder="$t('pleaseEnter')+item.dbFieldTxt"
|
||||||
@@ -56,12 +57,28 @@
|
|||||||
<j-dict-select-tag v-model="queryParam[item.dbFieldName]"
|
<j-dict-select-tag v-model="queryParam[item.dbFieldName]"
|
||||||
:placeholder="$t('pleaseSelect')+item.dbFieldTxt"
|
:placeholder="$t('pleaseSelect')+item.dbFieldTxt"
|
||||||
:type="'select'"
|
:type="'select'"
|
||||||
:triggerChange="false" :dictCode="item.dict_field"/>
|
:triggerChange="false" :dictCode="item.dictField"/>
|
||||||
|
</a-form-item>
|
||||||
|
</template>
|
||||||
|
<!-- 组织机构选择 -->
|
||||||
|
<template v-else-if="[FieldType.ORGAN_SINGLE.value, FieldType.ORGAN_MORE.value].includes(item.fieldShowType)">
|
||||||
|
<a-form-item :label="item.dbFieldTxt" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
|
<a-tree-select
|
||||||
|
tree-node-filter-prop="title"
|
||||||
|
v-model="queryParam[item.dbFieldName]"
|
||||||
|
:maxTagCount="1"
|
||||||
|
:show-search="true"
|
||||||
|
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||||
|
class="box-input"
|
||||||
|
style="width: 100%"
|
||||||
|
:tree-data="categoryTreeList"
|
||||||
|
:placeholder="$t('pleaseSelect') + item.dbFieldTxt"
|
||||||
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</template>
|
</template>
|
||||||
</a-col>
|
</a-col>
|
||||||
<template v-if="searchList.length > minLength && toggleSearchStatus">
|
<template v-if="searchList.length > minLength && toggleSearchStatus">
|
||||||
<a-col :md="(24 / (minLength + 1))" :sm="(24 / minLength)" v-for="(item,index) in searchList.slice(minLength)" :key="index" style="line-height: 48px">
|
<a-col :md="(24 / (minLength + 1))" :sm="(24 / minLength)" v-for="(item) in searchList.slice(minLength)" :key="item.id" style="line-height: 48px">
|
||||||
<!-- 树形选择器 -->
|
<!-- 树形选择器 -->
|
||||||
<template v-if="item.fieldShowType === FieldType.TREE.value">
|
<template v-if="item.fieldShowType === FieldType.TREE.value">
|
||||||
<a-form-item :label="item.dbFieldTxt" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item :label="item.dbFieldTxt" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
@@ -86,7 +103,7 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</template>
|
</template>
|
||||||
<!-- 组织机构选择 -->
|
<!-- 组织机构选择 -->
|
||||||
<template v-if="[FieldType.ORGAN_SINGLE.value, FieldType.ORGAN_MORE.value].includes(item.fieldShowType)">
|
<template v-else-if="[FieldType.ORGAN_SINGLE.value, FieldType.ORGAN_MORE.value].includes(item.fieldShowType)">
|
||||||
<a-form-item :label="item.dbFieldTxt" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item :label="item.dbFieldTxt" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-tree-select
|
<a-tree-select
|
||||||
tree-node-filter-prop="title"
|
tree-node-filter-prop="title"
|
||||||
@@ -115,7 +132,7 @@
|
|||||||
<j-dict-select-tag v-model="queryParam[item.dbFieldName]"
|
<j-dict-select-tag v-model="queryParam[item.dbFieldName]"
|
||||||
:placeholder="$t('pleaseSelect')+item.dbFieldTxt"
|
:placeholder="$t('pleaseSelect')+item.dbFieldTxt"
|
||||||
:type="'select'"
|
:type="'select'"
|
||||||
:triggerChange="false" :dictCode="item.dict_field" />
|
:triggerChange="false" :dictCode="item.dictField" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</template>
|
</template>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -223,6 +240,7 @@ export default {
|
|||||||
this.getQueryConditionFunc(params).then((res) => {
|
this.getQueryConditionFunc(params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.searchList = res.result
|
this.searchList = res.result
|
||||||
|
console.log(this.searchList)
|
||||||
// if (this.searchQueryList && this.searchQueryList.length > 0) {
|
// if (this.searchQueryList && this.searchQueryList.length > 0) {
|
||||||
// for (let i = 0; i < this.searchList.length; i++) {
|
// for (let i = 0; i < this.searchList.length; i++) {
|
||||||
// // 是要去掉这个字段的搜索??
|
// // 是要去掉这个字段的搜索??
|
||||||
|
|||||||
@@ -89,6 +89,13 @@
|
|||||||
<div class="table-text">{{ text || text === 0 ? text : global.emptyLine }}</div>
|
<div class="table-text">{{ text || text === 0 ? text : global.emptyLine }}</div>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</template>
|
</template>
|
||||||
|
<!-- 主起草单位: 为了去掉横向滚动条 -->
|
||||||
|
<template slot="mainDraftingUnit" slot-scope="{record}">
|
||||||
|
<a-tooltip overlay-class-name="tooltip-style">
|
||||||
|
<template slot="title">{{ record.mainDraftingUnit || record.mainDraftingUnit === 0 ? record.mainDraftingUnit : global.emptyLine }}</template>
|
||||||
|
<div class="table-text">{{ record.mainDraftingUnit || record.mainDraftingUnit === 0 ? record.mainDraftingUnit : global.emptyLine }}</div>
|
||||||
|
</a-tooltip>
|
||||||
|
</template>
|
||||||
|
|
||||||
</j-table>
|
</j-table>
|
||||||
</div>
|
</div>
|
||||||
@@ -163,8 +170,7 @@ export default {
|
|||||||
title: this.$t('enterpriseStandardLibrary.reviewPlan.mainDraftingUnit'),
|
title: this.$t('enterpriseStandardLibrary.reviewPlan.mainDraftingUnit'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'mainDraftingUnit',
|
scopedSlots: { customRender: 'mainDraftingUnit' }
|
||||||
scopedSlots: { customRender: 'text' }
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
labelCol: {
|
labelCol: {
|
||||||
|
|||||||
@@ -114,11 +114,20 @@
|
|||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- 详情-->
|
<!-- 企标编号 -->
|
||||||
<template slot="detailClick" slot-scope="{text, record}">
|
<template v-slot:standard_no="{text, record}">
|
||||||
<a-tooltip overlay-class-name="tooltip-style">
|
<a-tooltip overlay-class-name="tooltip-style">
|
||||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||||
<a class="table-text textName" @click="detailClick(record)" v-if="text || text === 0">{{ text }}</a>
|
<a class="table-text can-click-table-text" @click="detailClick(record)" v-if="text || text === 0">{{ text }}</a>
|
||||||
|
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
||||||
|
</a-tooltip>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<!-- 企标名称 -->
|
||||||
|
<template v-slot:standard_name="{text, record}">
|
||||||
|
<a-tooltip overlay-class-name="tooltip-style">
|
||||||
|
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||||
|
<a class="table-text can-click-table-text" @click="detailClick(record)" v-if="text || text === 0">{{ text }}</a>
|
||||||
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</template>
|
</template>
|
||||||
@@ -202,6 +211,7 @@ export default {
|
|||||||
loading: false,
|
loading: false,
|
||||||
getTableHeaderFunc: getEnterpriseStandardTableHeader,
|
getTableHeaderFunc: getEnterpriseStandardTableHeader,
|
||||||
getQueryConditionFunc: getEnterpriseStandardSearchForm,
|
getQueryConditionFunc: getEnterpriseStandardSearchForm,
|
||||||
|
tableSlotField: ['standard_no', 'standard_name'], // 表格中需要插槽的字段
|
||||||
// url传参严格按照当前命名
|
// url传参严格按照当前命名
|
||||||
url: {
|
url: {
|
||||||
list: '/laws/standard/enterprise/getCommonPage', // 表格数据
|
list: '/laws/standard/enterprise/getCommonPage', // 表格数据
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<a-spin :spinning="confirmLoading" style="width: 100%;height:100%">
|
<a-spin :spinning="confirmLoading" style="width: 100%;height:100%">
|
||||||
<div class="custom-drawer-style-scroll">
|
<div class="custom-drawer-style-scroll">
|
||||||
<add-form ref="addForm"
|
<add-form ref="addForm"
|
||||||
:defaultValue="{year_number: new Date().getFullYear()}"
|
:defaultValue="{year_number: new Date().getFullYear() + ''}"
|
||||||
:disabledFieldList="['replaced_stand_num', 'referenced_standard']"
|
:disabledFieldList="['replaced_stand_num', 'referenced_standard']"
|
||||||
:get-form-func="getFormFunc"
|
:get-form-func="getFormFunc"
|
||||||
:get-document-info-func="getDocumentInfoFunc"
|
:get-document-info-func="getDocumentInfoFunc"
|
||||||
|
|||||||
Reference in New Issue
Block a user