[update 高级搜索] 条款增加适用市场(前端写死),条款增加译文标题列
This commit is contained in:
@@ -141,6 +141,25 @@
|
||||
</template>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!-- 条款搜索,前端写死加一个适用市场 -->
|
||||
<a-col :md="(24 / (minLength + 1))"
|
||||
:sm="(24 / minLength)"
|
||||
:key="-1"
|
||||
v-if="currStandardType === '4'"
|
||||
style="line-height: 48px">
|
||||
<!-- 适用市场 -->
|
||||
<a-form-item :label="$t('applicableMarket')" :labelCol="labelCol" :wrapperCol="wrapperCol" :colon="false">
|
||||
<s-tree-select v-model="queryParam.country"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
style="width: 100%"
|
||||
:tree-data="applicableMarketList"
|
||||
tree-checkable
|
||||
treeCheckStrictly
|
||||
:replaceFields="{title: isChinese() ? 'title' : 'enTitle'}"
|
||||
:placeholder="$t('pleaseSelect') + $t('applicableMarket')"/>
|
||||
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
<div class="table-page-search-submitButtons">
|
||||
@@ -255,10 +274,11 @@ import { previewPdf } from '../../../utils/previewPdf'
|
||||
import { kkFilePreview } from '../../../utils/kkFilePreview'
|
||||
import JDatePicker from '@comp/JDatePicker'
|
||||
import SplitClauseDetail from '@views/documentTool/documentSplit/modules/SplitClauseDetail'
|
||||
import STreeSelect from '@comp/STreeSelect'
|
||||
|
||||
export default {
|
||||
name: 'AdvancedSearch',
|
||||
components: { SplitClauseDetail, JDatePicker, JTable },
|
||||
components: { STreeSelect, SplitClauseDetail, JDatePicker, JTable },
|
||||
data () {
|
||||
return {
|
||||
FieldType,
|
||||
@@ -394,6 +414,13 @@ export default {
|
||||
dataIndex: 'item_title',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 标题译文
|
||||
title: this.$t('clauseTitleTranslation'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'title_translation',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 条款内容
|
||||
title: this.$t('dashboard.advancedSearch.termContent'),
|
||||
align: 'center',
|
||||
@@ -522,7 +549,8 @@ export default {
|
||||
// 国标和外标的默认标准状态
|
||||
defaultStandardStatus: ``,
|
||||
// 企标的默认标准状态
|
||||
defaultEnStandardStatus: `${EnterpriseStandardStatus.CURRENTLY_EFFECTIVE.value}`
|
||||
defaultEnStandardStatus: `${EnterpriseStandardStatus.CURRENTLY_EFFECTIVE.value}`,
|
||||
applicableMarketList: [] // 条款增加适用市场字段,前端写死
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -570,9 +598,18 @@ export default {
|
||||
this.getQueryConditionFunc = getDomesticStandardQuery
|
||||
this.getSearch()
|
||||
this.getSysCategoryTree()
|
||||
this.getCountryOption()
|
||||
this.queryParam.standard_state = this.defaultStandardStatus
|
||||
},
|
||||
methods: {
|
||||
// 获取适用市场下拉数据
|
||||
getCountryOption () {
|
||||
getFormDictTreeList({ dictId: '1801130851452059649' }).then(res => {
|
||||
if (res.success) {
|
||||
this.applicableMarketList = res.result || []
|
||||
}
|
||||
})
|
||||
},
|
||||
// 显示条款内容弹框
|
||||
showContent (val) {
|
||||
this.$refs.splitClauseDetail.open(val)
|
||||
|
||||
Reference in New Issue
Block a user