查看标段

This commit is contained in:
cwchen 2025-11-26 13:20:48 +08:00
parent 3dc9edac42
commit 388c95a347
3 changed files with 15 additions and 9 deletions

View File

@ -13,11 +13,16 @@
:showRightTools="false" :showRightTools="false"
ref="analysisTableRef" ref="analysisTableRef"
:columnsList="bidListColumnsList" :columnsList="bidListColumnsList"
:request-api="listAPI" :request-api="getBidListAPI"
:sendParams="sendParams" :sendParams="sendParams"
:handleColWidth="200" :handleColWidth="200"
:isShowtableCardStyle="false" :isShowtableCardStyle="false"
> >
<template slot="parsingState" slot-scope="{ data }">
<el-tag v-if="data.parsingState === '0'" type="info">解析中</el-tag>
<el-tag v-else-if="data.parsingState === '1'" type="success">解析成功</el-tag>
<el-tag v-else-if="data.parsingState === '2'" type="danger">解析失败</el-tag>
</template>
<template slot="tableTitle"> <template slot="tableTitle">
<h3>数据列表</h3> <h3>数据列表</h3>
</template> </template>
@ -40,7 +45,8 @@
import TableModel from '@/components/TableModel2' import TableModel from '@/components/TableModel2'
import { bidListColumnsList, bidFormLabel } from '../config' import { bidListColumnsList, bidFormLabel } from '../config'
import { encryptWithSM4 } from '@/utils/sm' import { encryptWithSM4 } from '@/utils/sm'
import { listAPI, delDataAPI } from '@/api/analysis/analysis' import { getBidListAPI, delDataAPI } from '@/api/analysis/analysis'
import { decryptWithSM4 } from '@/utils/sm'
export default { export default {
name: 'AnalysisBidIndex', name: 'AnalysisBidIndex',
components: { components: {
@ -50,9 +56,9 @@ export default {
return { return {
bidFormLabel, bidFormLabel,
bidListColumnsList, bidListColumnsList,
listAPI, getBidListAPI,
sendParams: { sendParams: {
enterpriseId: 2 proId: decryptWithSM4(this.$route.query.proId)
}, },
} }
}, },

View File

@ -30,7 +30,7 @@ export const bidFormLabel = [
isShow: false, // 是否展示label isShow: false, // 是否展示label
f_type: 'ipt', f_type: 'ipt',
f_label: '标的名称', f_label: '标的名称',
f_model: 'proName', f_model: 'markName',
f_max: 32, f_max: 32,
f_width: '250px', f_width: '250px',
}, },
@ -38,7 +38,7 @@ export const bidFormLabel = [
isShow: false, // 是否展示label isShow: false, // 是否展示label
f_type: 'ipt', f_type: 'ipt',
f_label: '标段名称', f_label: '标段名称',
f_model: 'personName', f_model: 'bidName',
f_max: 32, f_max: 32,
f_width: '250px', f_width: '250px',
}, },
@ -46,7 +46,7 @@ export const bidFormLabel = [
isShow: false, // 是否展示label isShow: false, // 是否展示label
f_type: 'sel', f_type: 'sel',
f_label: '解析状态', f_label: '解析状态',
f_model: 'analysisStatus', f_model: 'parsingState',
f_selList: [ f_selList: [
{ label: '解析中', value: 0 }, { label: '解析中', value: 0 },
{ label: '解析成功', value: 1 }, { label: '解析成功', value: 1 },
@ -90,5 +90,5 @@ export const bidListColumnsList = [
{ t_props: 'bidBond', t_label: '投标保证金(万元)' }, { t_props: 'bidBond', t_label: '投标保证金(万元)' },
{ t_props: 'duration', t_label: '工期' }, { t_props: 'duration', t_label: '工期' },
{ t_props: 'biddingStage', t_label: '招标阶段' }, { t_props: 'biddingStage', t_label: '招标阶段' },
{ t_props: 'parsingState', t_label: '解析状态' } { t_slot: 'parsingState', t_label: '解析状态' }
] ]

View File

@ -164,7 +164,7 @@ export default {
this.$router.push({ this.$router.push({
name: 'AnalysisBidIndex', name: 'AnalysisBidIndex',
query: { query: {
proId: encryptWithSM4('2'), proId: encryptWithSM4(row.proId + '' || '0'),
}, },
}) })
}, },