[update] 首页标准预警

This commit is contained in:
lideqin
2024-07-22 11:35:26 +08:00
parent f6e3b93b11
commit 0f04abbcb6
2 changed files with 24 additions and 23 deletions
+11 -2
View File
@@ -47,8 +47,14 @@ const getAdvancedSearchClause = (params) => postAction('/home/lawsHomeSearch/get
// 高级检索-导出 // 高级检索-导出
const exportAdvancedSearch = (params) => postDownFile('/home/lawsHomeSearch/advancedSearchExportExcel', params) const exportAdvancedSearch = (params) => postDownFile('/home/lawsHomeSearch/advancedSearchExportExcel', params)
// 最新入库标准 // 最新解读标准
const getHomeNewStandard = (params) => getAction('/process/standardInterpretFlow/homeNewestStandardInterpret', params) const getHomeNewStandard = (params) => getAction('/process/standardInterpretFlow/homeNewestStandardInterpret', params)
// 最新入库标准
const getNewestEnterStandard = (params) => getAction('/laws/localTool/standardEarlyWarning/newAddStandard', params)
// 最新入库企标
const getNewestEnterEnStandard = (params) => getAction('/laws/localTool/standardEarlyWarning/newAddEsStandard', params)
// 将实施标准
const getWillImplementStandards = (params) => getAction('/laws/localTool/standardEarlyWarning/latestImplement', params)
export { export {
getSearchHistoryData, getSearchHistoryData,
@@ -72,5 +78,8 @@ export {
getAdvancedSearchAll, getAdvancedSearchAll,
getAdvancedSearchClause, getAdvancedSearchClause,
exportAdvancedSearch, exportAdvancedSearch,
getHomeNewStandard getHomeNewStandard,
getNewestEnterStandard,
getNewestEnterEnStandard,
getWillImplementStandards
} }
@@ -55,7 +55,12 @@
<script> <script>
import { StandardSource } from '@/enums/commonEnums' import { StandardSource } from '@/enums/commonEnums'
import { getMarketRegulationsList } from '../../../api/api' import { getMarketRegulationsList } from '../../../api/api'
import { getHomeNewStandard } from '@api/dashboard' import {
getHomeNewStandard,
getNewestEnterStandard,
getNewestEnterEnStandard,
getWillImplementStandards
} from '@api/dashboard'
import StandardResolutionSheetModal import StandardResolutionSheetModal
from '@views/standardRegulationLibrary/foreignStandard/detail/modules/StandardResolutionSheetModal' from '@views/standardRegulationLibrary/foreignStandard/detail/modules/StandardResolutionSheetModal'
@@ -79,19 +84,6 @@ export default {
warningTab: '', // 预警当前tab warningTab: '', // 预警当前tab
loading: false, loading: false,
columns: [ 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'), title: this.$t('standardNumber'),
align: 'left', align: 'left',
@@ -137,7 +129,7 @@ export default {
{ // 新生产车实施日期 { // 新生产车实施日期
title: this.$t('dashboard.advancedSearch.newProduceMaterialDate'), title: this.$t('dashboard.advancedSearch.newProduceMaterialDate'),
align: 'left', align: 'left',
dataIndex: 'newProduceModelImplementationDate', dataIndex: 'newProductImplDate',
width: 140, width: 140,
scopedSlots: { customRender: 'text' }, scopedSlots: { customRender: 'text' },
show: () => { show: () => {
@@ -149,7 +141,7 @@ export default {
{ // 新认证车实施日期 { // 新认证车实施日期
title: this.$t('dashboard.advancedSearch.newAttestationMaterialDate'), title: this.$t('dashboard.advancedSearch.newAttestationMaterialDate'),
align: 'left', align: 'left',
dataIndex: 'newAuthenticationModelImplementationDate', dataIndex: 'newAuthImplDate',
width: 140, width: 140,
scopedSlots: { customRender: 'text' }, scopedSlots: { customRender: 'text' },
show: () => { show: () => {
@@ -186,7 +178,7 @@ export default {
{ // 标准状态 { // 标准状态
title: this.$t('standardState'), title: this.$t('standardState'),
align: 'left', align: 'left',
dataIndex: 'status_dictText', dataIndex: 'standardState_dictText',
width: 100, width: 100,
scopedSlots: { customRender: 'text' }, scopedSlots: { customRender: 'text' },
show: () => { show: () => {
@@ -200,7 +192,7 @@ export default {
{ // 代替标准编号 { // 代替标准编号
title: this.$t('dashboard.tableList.substituteStandardNumber'), title: this.$t('dashboard.tableList.substituteStandardNumber'),
align: 'left', align: 'left',
dataIndex: 'standardNumber2', dataIndex: 'substituteStandardNumber',
width: 100, width: 100,
scopedSlots: { customRender: 'text' }, scopedSlots: { customRender: 'text' },
show: () => { show: () => {
@@ -395,7 +387,7 @@ export default {
let func = null let func = null
switch (this.warningTab) { switch (this.warningTab) {
case 'lastStorageStandards': // 最新入库标准 case 'lastStorageStandards': // 最新入库标准
func = null func = getNewestEnterStandard
break break
case 'marketUpdates': // 市场更新情况 case 'marketUpdates': // 市场更新情况
func = getMarketRegulationsList func = getMarketRegulationsList
@@ -403,13 +395,13 @@ export default {
params.homeFlag = '1' // 标识首页的查询 params.homeFlag = '1' // 标识首页的查询
break break
case 'lastStorageEnterpriseStandard': // 最新入库企标 case 'lastStorageEnterpriseStandard': // 最新入库企标
func = null func = getNewestEnterEnStandard
break break
case 'latestInterpretationStandards': // 最新解读标准 case 'latestInterpretationStandards': // 最新解读标准
func = getHomeNewStandard func = getHomeNewStandard
break break
case 'implementStandards': // 将实施标准 case 'implementStandards': // 将实施标准
func = null func = getWillImplementStandards
break break
} }
func(params).then((res) => { func(params).then((res) => {