修改禅道已知bug

This commit is contained in:
qq787203167
2022-08-16 09:29:31 +08:00
parent b82460ad3b
commit 0bff8017c7
3 changed files with 41 additions and 2 deletions
@@ -10,6 +10,8 @@
</div> </div>
<a-select :placeholder="$t('PleaseSelect')+$t('applicableMarket')" <a-select :placeholder="$t('PleaseSelect')+$t('applicableMarket')"
:disabled="false" :disabled="false"
style="z-index: 100"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
v-model="queryParam.applyMarket"> v-model="queryParam.applyMarket">
<a-select-option v-for="(item, key) in applyMarketList" <a-select-option v-for="(item, key) in applyMarketList"
:key="key" :key="key"
@@ -20,6 +20,7 @@
<span>{{$t('applicableMarket')}}</span> <span>{{$t('applicableMarket')}}</span>
</div> </div>
<a-select class="box-input" <a-select class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
:placeholder="$t('PleaseSelect')+$t('applicableMarket')" :placeholder="$t('PleaseSelect')+$t('applicableMarket')"
style="width: 100%" style="width: 100%"
v-model="queryParam.applyMarket"> v-model="queryParam.applyMarket">
@@ -39,6 +40,7 @@
<span>{{$t('releaseStatus')}}</span> <span>{{$t('releaseStatus')}}</span>
</div> </div>
<a-select class="box-input" <a-select class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
:placeholder="$t('PleaseSelect')+$t('releaseStatus')" :placeholder="$t('PleaseSelect')+$t('releaseStatus')"
style="width: 100%" style="width: 100%"
v-model="queryParam.releaseStatus"> v-model="queryParam.releaseStatus">
@@ -35,6 +35,39 @@
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:columns="columns" :columns="columns"
> >
<span slot="vehicleInProductionDate" slot-scope="text,result">
<span v-if="result.xin1_che1_xing2_shi2_shi1_ri4_qi1 == 'yellow'">
{{text}}
</span>
<span v-else-if="result.xin1_che1_xing2_shi2_shi1_ri4_qi1 == 'red'">
{{text}}
</span>
<span v-else>
{{text}}
</span>
</span>
<span slot="ImplementationDate" slot-scope="text,result">
<span v-if="result.new_colour == 'yellow'" style="color: #fdd835">
{{text}}
</span>
<span v-else-if="result.new_colour == 'red'" style="color: red">
{{text}}
</span>
<span v-else>
{{text}}
</span>
</span>
<span slot="vehicleInProductionDate" slot-scope="text,result">
<span v-if="result.implement_colour == 'yellow'" style="color: #fdd835">
{{text}}
</span>
<span v-else-if="result.implement_colour == 'red'" style="color: red">
{{text}}
</span>
<span v-else>
{{text}}
</span>
</span>
</a-table> </a-table>
<div class="page" v-if="dataSource && dataSource.length > 0"> <div class="page" v-if="dataSource && dataSource.length > 0">
<a-pagination <a-pagination
@@ -138,14 +171,16 @@
align: 'center', align: 'center',
ellipsis: true, ellipsis: true,
width: 210, width: 210,
dataIndex: 'implement_time' dataIndex: 'implement_time',
scopedSlots: { customRender: 'vehicleInProductionDate' }
}, },
{ {
title: this.$t('ImplementationDate'), title: this.$t('ImplementationDate'),
align: 'center', align: 'center',
ellipsis: true, ellipsis: true,
width: 210, width: 210,
dataIndex: 'xin1_che1_xing2_shi2_shi1_ri4_qi1' dataIndex: 'xin1_che1_xing2_shi2_shi1_ri4_qi1',
scopedSlots: { customRender: 'ImplementationDate' }
} }
] ]
} }