[update] 首页标准预警
This commit is contained in:
@@ -55,7 +55,12 @@
|
||||
<script>
|
||||
import { StandardSource } from '@/enums/commonEnums'
|
||||
import { getMarketRegulationsList } from '../../../api/api'
|
||||
import { getHomeNewStandard } from '@api/dashboard'
|
||||
import {
|
||||
getHomeNewStandard,
|
||||
getNewestEnterStandard,
|
||||
getNewestEnterEnStandard,
|
||||
getWillImplementStandards
|
||||
} from '@api/dashboard'
|
||||
import StandardResolutionSheetModal
|
||||
from '@views/standardRegulationLibrary/foreignStandard/detail/modules/StandardResolutionSheetModal'
|
||||
|
||||
@@ -79,19 +84,6 @@ export default {
|
||||
warningTab: '', // 预警当前tab
|
||||
loading: false,
|
||||
columns: [
|
||||
{ // 来源
|
||||
title: this.$t('dashboard.tableList.source'),
|
||||
align: 'left',
|
||||
dataIndex: 'source_dictText',
|
||||
width: 60,
|
||||
scopedSlots: { customRender: 'text' },
|
||||
show: () => {
|
||||
return [
|
||||
this.tabList[0].key,
|
||||
this.tabList[4].key
|
||||
].includes(this.warningTab)
|
||||
}
|
||||
},
|
||||
{ // 标准编号
|
||||
title: this.$t('standardNumber'),
|
||||
align: 'left',
|
||||
@@ -137,7 +129,7 @@ export default {
|
||||
{ // 新生产车实施日期
|
||||
title: this.$t('dashboard.advancedSearch.newProduceMaterialDate'),
|
||||
align: 'left',
|
||||
dataIndex: 'newProduceModelImplementationDate',
|
||||
dataIndex: 'newProductImplDate',
|
||||
width: 140,
|
||||
scopedSlots: { customRender: 'text' },
|
||||
show: () => {
|
||||
@@ -149,7 +141,7 @@ export default {
|
||||
{ // 新认证车实施日期
|
||||
title: this.$t('dashboard.advancedSearch.newAttestationMaterialDate'),
|
||||
align: 'left',
|
||||
dataIndex: 'newAuthenticationModelImplementationDate',
|
||||
dataIndex: 'newAuthImplDate',
|
||||
width: 140,
|
||||
scopedSlots: { customRender: 'text' },
|
||||
show: () => {
|
||||
@@ -186,7 +178,7 @@ export default {
|
||||
{ // 标准状态
|
||||
title: this.$t('standardState'),
|
||||
align: 'left',
|
||||
dataIndex: 'status_dictText',
|
||||
dataIndex: 'standardState_dictText',
|
||||
width: 100,
|
||||
scopedSlots: { customRender: 'text' },
|
||||
show: () => {
|
||||
@@ -200,7 +192,7 @@ export default {
|
||||
{ // 代替标准编号
|
||||
title: this.$t('dashboard.tableList.substituteStandardNumber'),
|
||||
align: 'left',
|
||||
dataIndex: 'standardNumber2',
|
||||
dataIndex: 'substituteStandardNumber',
|
||||
width: 100,
|
||||
scopedSlots: { customRender: 'text' },
|
||||
show: () => {
|
||||
@@ -395,7 +387,7 @@ export default {
|
||||
let func = null
|
||||
switch (this.warningTab) {
|
||||
case 'lastStorageStandards': // 最新入库标准
|
||||
func = null
|
||||
func = getNewestEnterStandard
|
||||
break
|
||||
case 'marketUpdates': // 市场更新情况
|
||||
func = getMarketRegulationsList
|
||||
@@ -403,13 +395,13 @@ export default {
|
||||
params.homeFlag = '1' // 标识首页的查询
|
||||
break
|
||||
case 'lastStorageEnterpriseStandard': // 最新入库企标
|
||||
func = null
|
||||
func = getNewestEnterEnStandard
|
||||
break
|
||||
case 'latestInterpretationStandards': // 最新解读标准
|
||||
func = getHomeNewStandard
|
||||
break
|
||||
case 'implementStandards': // 将实施标准
|
||||
func = null
|
||||
func = getWillImplementStandards
|
||||
break
|
||||
}
|
||||
func(params).then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user