[update] 法规符合性评估库适用市场查询条件改成树形
This commit is contained in:
+25
-3
@@ -25,10 +25,22 @@
|
|||||||
<!-- 适用市场 -->
|
<!-- 适用市场 -->
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<a-form-item :label="$t('regulatoryComplianceAssessmentDatabase.assessmentLibrary.applicableMarket')">
|
<a-form-item :label="$t('regulatoryComplianceAssessmentDatabase.assessmentLibrary.applicableMarket')">
|
||||||
<j-multi-select-tag
|
<!-- <j-multi-select-tag-->
|
||||||
:placeholder="$t('pleaseSelect') + $t('regulatoryComplianceAssessmentDatabase.assessmentLibrary.applicableMarket')"
|
<!-- :placeholder="$t('pleaseSelect') + $t('regulatoryComplianceAssessmentDatabase.assessmentLibrary.applicableMarket')"-->
|
||||||
|
<!-- v-model="queryParam.applicableMarket"-->
|
||||||
|
<!-- dict-code="market_state"></j-multi-select-tag>-->
|
||||||
|
<a-tree-select
|
||||||
|
tree-node-filter-prop="title"
|
||||||
v-model="queryParam.applicableMarket"
|
v-model="queryParam.applicableMarket"
|
||||||
dict-code="market_state"></j-multi-select-tag>
|
:maxTagCount="1"
|
||||||
|
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||||
|
:tree-data="countryOptions"
|
||||||
|
:placeholder="$t('pleaseSelect')+$t('regulatoryComplianceAssessmentDatabase.assessmentLibrary.applicableMarket')"
|
||||||
|
show-search
|
||||||
|
allowClear
|
||||||
|
:replaceFields="{title: isChinese() ? 'title' : 'enTitle'}"
|
||||||
|
:filterTreeNode="filterTreeOption"
|
||||||
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
@@ -103,6 +115,7 @@
|
|||||||
import JTable from '@/components/jero/JTable'
|
import JTable from '@/components/jero/JTable'
|
||||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||||
import AssessmentLookModal from './modules/AssessmentLookModal'
|
import AssessmentLookModal from './modules/AssessmentLookModal'
|
||||||
|
import { getFormDictTreeList } from '../../../api/api'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'RegulatoryComplianceAssessmentList',
|
name: 'RegulatoryComplianceAssessmentList',
|
||||||
@@ -110,6 +123,7 @@ export default {
|
|||||||
mixins: [JeroListMixin],
|
mixins: [JeroListMixin],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
countryOptions: [], // 国家下拉选择
|
||||||
columns: [
|
columns: [
|
||||||
{ // 标准编号
|
{ // 标准编号
|
||||||
title: this.$t('standardNumber'),
|
title: this.$t('standardNumber'),
|
||||||
@@ -164,6 +178,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
|
this.getCountryOption()
|
||||||
// 标准主计划跳转进来携带标准+适用市场
|
// 标准主计划跳转进来携带标准+适用市场
|
||||||
this.$set(this.queryParam, 'applicableMarket', this.$route.query.applicableMarket)
|
this.$set(this.queryParam, 'applicableMarket', this.$route.query.applicableMarket)
|
||||||
this.$set(this.queryParam, 'standardName', this.$route.query.standardName)
|
this.$set(this.queryParam, 'standardName', this.$route.query.standardName)
|
||||||
@@ -171,6 +186,13 @@ export default {
|
|||||||
this.loadData()
|
this.loadData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getCountryOption () {
|
||||||
|
getFormDictTreeList({ dictId: '1801130851452059649' }).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.countryOptions = res.result
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
toDetail (record) {
|
toDetail (record) {
|
||||||
const path = '/standardRegulationLibrary/foreignStandardDetailPage'
|
const path = '/standardRegulationLibrary/foreignStandardDetailPage'
|
||||||
this.$openPageNewSheet({
|
this.$openPageNewSheet({
|
||||||
|
|||||||
Reference in New Issue
Block a user