fix : 修复上传费用输入框垂直居中、台账时间搜索
This commit is contained in:
@@ -37,17 +37,6 @@ const schema = computed(() => {
|
|||||||
})
|
})
|
||||||
const baseForm = ref()
|
const baseForm = ref()
|
||||||
const searchConfig = reactive([
|
const searchConfig = reactive([
|
||||||
{
|
|
||||||
label: '项目名称',
|
|
||||||
prop: 'projectName',
|
|
||||||
component: 'el-input',
|
|
||||||
props: {
|
|
||||||
placeholder: '请输入项目名称查询',
|
|
||||||
clearable: true,
|
|
||||||
filterable: true,
|
|
||||||
checkStrictly: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: '时间',
|
label: '时间',
|
||||||
prop: 'time',
|
prop: 'time',
|
||||||
@@ -79,7 +68,7 @@ const searchConfig = reactive([
|
|||||||
clearable: true,
|
clearable: true,
|
||||||
filterable: true,
|
filterable: true,
|
||||||
checkStrictly: true,
|
checkStrictly: true,
|
||||||
cacheKey: 'research_stage',
|
cacheKey: 'fee_stage',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -194,7 +183,6 @@ const handleUploadFee = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const search = (val) => {
|
const search = (val) => {
|
||||||
console.log('val', val)
|
|
||||||
tableConfig.params = {...val, projectId: route.query.id}
|
tableConfig.params = {...val, projectId: route.query.id}
|
||||||
tableIns.value.refresh()
|
tableIns.value.refresh()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ const tableConfig = reactive({
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflowTooltip: false,
|
showOverflowTooltip: false,
|
||||||
currentRender: ({row, index}) => {
|
currentRender: ({row, index}) => {
|
||||||
if (row.projectType !== null) {
|
if (row.projectType && row.projectType !== null && row.projectType !== undefined) {
|
||||||
return (<Tag dictType={'project_type'} value={row.projectType}/>)
|
return (<Tag dictType={'project_type'} value={row.projectType}/>)
|
||||||
} else {
|
} else {
|
||||||
return '--'
|
return '--'
|
||||||
@@ -174,7 +174,7 @@ const tableConfig = reactive({
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflowTooltip: false,
|
showOverflowTooltip: false,
|
||||||
currentRender: ({row, index}) => {
|
currentRender: ({row, index}) => {
|
||||||
if (row.rdSubject !== null) {
|
if (row.rdSubject && row.rdSubject !== null && row.rdSubject !== undefined) {
|
||||||
return (<Tag dictType={'rd_subject'} value={row.rdSubject}/>)
|
return (<Tag dictType={'rd_subject'} value={row.rdSubject}/>)
|
||||||
} else {
|
} else {
|
||||||
return '--'
|
return '--'
|
||||||
@@ -187,7 +187,7 @@ const tableConfig = reactive({
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflowTooltip: false,
|
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}/>)
|
||||||
} else {
|
} else {
|
||||||
return '--'
|
return '--'
|
||||||
@@ -200,7 +200,7 @@ const tableConfig = reactive({
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflowTooltip: false,
|
showOverflowTooltip: false,
|
||||||
currentRender: ({row, index}) => {
|
currentRender: ({row, index}) => {
|
||||||
if (row.projectImpact !== null) {
|
if (row.projectImpact && row.projectImpact !== null && row.projectImpact !== undefined) {
|
||||||
return (<Tag dictType={'project_impact'} value={row.projectImpact}/>)
|
return (<Tag dictType={'project_impact'} value={row.projectImpact}/>)
|
||||||
} else {
|
} else {
|
||||||
return '--'
|
return '--'
|
||||||
@@ -234,7 +234,7 @@ const tableConfig = reactive({
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflowTooltip: false,
|
showOverflowTooltip: false,
|
||||||
currentRender: ({row, index}) => {
|
currentRender: ({row, index}) => {
|
||||||
if (row.state !== null) {
|
if (row.state && row.state !== null && row.state !== undefined) {
|
||||||
return (<Tag dictType={'project_implementation'} value={row.state}/>)
|
return (<Tag dictType={'project_implementation'} value={row.state}/>)
|
||||||
} else {
|
} else {
|
||||||
return '--'
|
return '--'
|
||||||
|
|||||||
@@ -184,4 +184,15 @@ const handleBack = () => {
|
|||||||
history.back()
|
history.back()
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<style scoped lang="scss">
|
||||||
|
:deep(.el-table--enable-row-transition) {
|
||||||
|
.el-table__body td.el-table__cell {
|
||||||
|
.cell {
|
||||||
|
.el-form-item {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user