Merge pull request 'fix : 修复项目费用显示bug' (#344) from dj into master
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/344
This commit is contained in:
@@ -36,7 +36,7 @@ const searchConfig = reactive([
|
|||||||
colProps: {}
|
colProps: {}
|
||||||
}, {
|
}, {
|
||||||
label: '项目费用',
|
label: '项目费用',
|
||||||
prop: 'requirementName',
|
prop: 'projectCost',
|
||||||
component: shallowRef(fvSelect),
|
component: shallowRef(fvSelect),
|
||||||
props: {
|
props: {
|
||||||
placeholder: '请选择项目费用查询',
|
placeholder: '请选择项目费用查询',
|
||||||
|
|||||||
@@ -58,9 +58,10 @@ const searchConfig = reactive([
|
|||||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||||
},
|
},
|
||||||
colProps: {}
|
colProps: {}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
label: '项目费用',
|
label: '项目费用',
|
||||||
prop: 'requirementName',
|
prop: 'projectCost',
|
||||||
component: shallowRef(fvSelect),
|
component: shallowRef(fvSelect),
|
||||||
props: {
|
props: {
|
||||||
placeholder: '请选择项目费用查询',
|
placeholder: '请选择项目费用查询',
|
||||||
@@ -68,7 +69,8 @@ const searchConfig = reactive([
|
|||||||
filterable: true,
|
filterable: true,
|
||||||
cacheKey: 'project_cost',
|
cacheKey: 'project_cost',
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
label: '项目阶段',
|
label: '项目阶段',
|
||||||
prop: 'researchStage',
|
prop: 'researchStage',
|
||||||
component: shallowRef(fvSelect),
|
component: shallowRef(fvSelect),
|
||||||
@@ -121,13 +123,10 @@ const tableConfig = reactive({
|
|||||||
prop: 'projectCost',
|
prop: 'projectCost',
|
||||||
label: '项目费用',
|
label: '项目费用',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
currentRender: ({row, index}) => {
|
currentRender: ({row, index}) => {
|
||||||
if (row.projectCost !== null && row.projectCost !== null && row.projectCost !== undefined) {
|
if (row.projectCost !== null && row.projectCost !== null && row.projectCost !== undefined) {
|
||||||
if(typeof Number(row.projectCost) === 'number'){
|
|
||||||
return '--'
|
|
||||||
}else {
|
|
||||||
return (<Tag dictType={'project_cost'} value={row.projectCost}/>)
|
return (<Tag dictType={'project_cost'} value={row.projectCost}/>)
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
return '--'
|
return '--'
|
||||||
}
|
}
|
||||||
@@ -137,6 +136,7 @@ const tableConfig = reactive({
|
|||||||
prop: 'researchStage',
|
prop: 'researchStage',
|
||||||
label: '项目阶段',
|
label: '项目阶段',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
currentRender: ({row, index}) => {
|
currentRender: ({row, index}) => {
|
||||||
if (row.researchStage && row.researchStage !== null && row.researchStage !== undefined) {
|
if (row.researchStage && row.researchStage !== null && row.researchStage !== undefined) {
|
||||||
return (<Tag dictType={'research_stage'} value={row.researchStage}/>)
|
return (<Tag dictType={'research_stage'} value={row.researchStage}/>)
|
||||||
@@ -195,7 +195,7 @@ const handleUploadFee = () => {
|
|||||||
|
|
||||||
const search = (val) => {
|
const search = (val) => {
|
||||||
console.log('val', val)
|
console.log('val', val)
|
||||||
tableConfig.params = {...val}
|
tableConfig.params = {...val, projectId: route.query.id}
|
||||||
tableIns.value.refresh()
|
tableIns.value.refresh()
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user