[update 拆分] 拆分查看页调整

This commit is contained in:
danshihao
2024-07-01 16:24:10 +08:00
parent c368e20b4a
commit a126b41e82
3 changed files with 145 additions and 117 deletions
+16 -10
View File
@@ -188,7 +188,13 @@
<div v-else class="table-text">{{ global.emptyLine }}</div>
</a-tooltip>
</template>
<!--条文内容-->
<template slot="item_content" slot-scope="{text, record}">
<div class="table-text" v-if="text || text === 0" @click="showContent('item_content', text,record)">
{{ text && text !== 'null' ? text.replace(/<.*?>/ig, ' ') : '' }}
</div>
<div class="table-text" v-else>{{ global.emptyLine }}</div>
</template>
</j-table>
</div>
</div>
@@ -348,7 +354,7 @@ export default {
align: 'center',
width: 180,
dataIndex: 'item_content',
scopedSlots: { customRender: 'text' }
scopedSlots: { customRender: 'item_content' }
},
{ // 适用零部件
title: this.$t('dashboard.advancedSearch.applicableComponents'),
@@ -389,56 +395,56 @@ export default {
title: this.$t('dashboard.advancedSearch.responsibleDepartment'),
align: 'center',
width: 180,
dataIndex: 'responsible_department',
dataIndex: 'responsible_department_dictText',
scopedSlots: { customRender: 'text' }
},
{ // 责任部门专业模块
title: this.$t('dashboard.advancedSearch.responsibleDepartmentModule'),
align: 'center',
width: 180,
dataIndex: 'responsible_module',
dataIndex: 'responsible_module_dictText',
scopedSlots: { customRender: 'text' }
},
{ // 关联部门
title: this.$t('dashboard.advancedSearch.relatedDepartments'),
align: 'center',
width: 180,
dataIndex: 'related_department',
dataIndex: 'related_department_dictText',
scopedSlots: { customRender: 'text' }
},
{ // 关联部门专业模块
title: this.$t('dashboard.advancedSearch.relatedDepartmentModule'),
align: 'center',
width: 180,
dataIndex: 'related_module',
dataIndex: 'related_module_dictText',
scopedSlots: { customRender: 'text' }
},
{ // 适用车型
title: this.$t('dashboard.advancedSearch.applications'),
align: 'center',
width: 180,
dataIndex: 'applications',
dataIndex: 'applications_dictText',
scopedSlots: { customRender: 'text' }
},
{ // 动力类型
title: this.$t('dashboard.advancedSearch.powerType'),
align: 'center',
width: 180,
dataIndex: 'power_type',
dataIndex: 'power_type_dictText',
scopedSlots: { customRender: 'text' }
},
{ // 专业领域
title: this.$t('dashboard.advancedSearch.professionalField'),
align: 'center',
width: 180,
dataIndex: 'domain_area',
dataIndex: 'domain_area_dictText',
scopedSlots: { customRender: 'text' }
},
{ // 配置需求
title: this.$t('dashboard.advancedSearch.configurationRequirements'),
align: 'center',
width: 180,
dataIndex: 'configuration_requirements',
dataIndex: 'configuration_requirements_dictText',
scopedSlots: { customRender: 'text' }
}
],
@@ -24,7 +24,7 @@ export default {
<style scoped lang="less">
.split-content {
height: 100vh;
padding: 20px;
padding: 20px 0 20px 20px;
background-color: #eff1f4;
}