[update] 修改企标库搜索条件bug

This commit is contained in:
lideqin
2023-09-18 14:26:38 +08:00
parent 929fb3b737
commit 41b7cd15c6
5 changed files with 47 additions and 13 deletions
@@ -89,6 +89,13 @@
<div class="table-text">{{ text || text === 0 ? text : global.emptyLine }}</div>
</a-tooltip>
</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>
</div>
@@ -163,8 +170,7 @@ export default {
title: this.$t('enterpriseStandardLibrary.reviewPlan.mainDraftingUnit'),
align: 'center',
width: 180,
dataIndex: 'mainDraftingUnit',
scopedSlots: { customRender: 'text' }
scopedSlots: { customRender: 'mainDraftingUnit' }
}
],
labelCol: {
@@ -114,11 +114,20 @@
</a-dropdown>
</template>
<!-- 详情-->
<template slot="detailClick" slot-scope="{text, record}">
<!-- 企标编号 -->
<template v-slot:standard_no="{text, record}">
<a-tooltip overlay-class-name="tooltip-style">
<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>
</a-tooltip>
</template>
@@ -202,6 +211,7 @@ export default {
loading: false,
getTableHeaderFunc: getEnterpriseStandardTableHeader,
getQueryConditionFunc: getEnterpriseStandardSearchForm,
tableSlotField: ['standard_no', 'standard_name'], // 表格中需要插槽的字段
// url传参严格按照当前命名
url: {
list: '/laws/standard/enterprise/getCommonPage', // 表格数据
@@ -12,7 +12,7 @@
<a-spin :spinning="confirmLoading" style="width: 100%;height:100%">
<div class="custom-drawer-style-scroll">
<add-form ref="addForm"
:defaultValue="{year_number: new Date().getFullYear()}"
:defaultValue="{year_number: new Date().getFullYear() + ''}"
:disabledFieldList="['replaced_stand_num', 'referenced_standard']"
:get-form-func="getFormFunc"
:get-document-info-func="getDocumentInfoFunc"