fix 在表头上加一个*表示必填
This commit is contained in:
+26
-15
@@ -134,17 +134,11 @@
|
||||
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
|
||||
<!--责任单位-->
|
||||
<template v-slot:depart="{text, record, index}">
|
||||
<j-select-depart v-if="record.canAssignFlag + '' === '1'"
|
||||
multi
|
||||
:back-depart="true"
|
||||
:value="record.responsibleUnits"
|
||||
@change="value => handleDepartChange(value, record, index)" />
|
||||
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
|
||||
<!--责任单位负责人-->
|
||||
<template v-slot:customTitleResponsibleUnitLeaders>
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('workCenter.projectComplianceEvaluationProcess.responsibleUnitHead') }}
|
||||
</template>
|
||||
<template v-slot:user="{text, record, index}">
|
||||
<user-selection v-if="record.canAssignFlag + '' === '1'"
|
||||
:name-str="record.responsibleUnitLeaders_dictText"
|
||||
@@ -157,6 +151,10 @@
|
||||
</template>
|
||||
|
||||
<!--模块负责人-->
|
||||
<template v-slot:customTitleModuleOwner>
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('workCenter.standardConsultationProcess.moduleOwner') }}
|
||||
</template>
|
||||
<template v-slot:moduleOwner="{text, record, index}">
|
||||
<!--不涉及不需要选模块负责人,需要填写不涉及理由-->
|
||||
<user-selection :name-str="record.moduleOwners_dictText"
|
||||
@@ -170,6 +168,10 @@
|
||||
</template>
|
||||
|
||||
<!--设计工程师-->
|
||||
<template v-slot:customTitleDesignEngineers>
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('workCenter.standardConsultationProcess.designEngineer') }}
|
||||
</template>
|
||||
<template v-slot:designEngineers="{text, record, index}">
|
||||
<!--不涉及不需要选模块负责人,需要填写不涉及理由-->
|
||||
<user-selection :name-str="record.designEngineers_dictText"
|
||||
@@ -220,6 +222,10 @@
|
||||
</template>
|
||||
|
||||
<!--评估反馈-->
|
||||
<template v-slot:customTitleEvaluationFeedback>
|
||||
<span class="table-header-required" v-if="!expandTableDisabled">*</span>
|
||||
{{ $t('workCenter.projectComplianceEvaluationProcess.evaluationFeedback') }}
|
||||
</template>
|
||||
<template v-slot:evaluationFeedback="{text, record, index}">
|
||||
<j-dict-select-tag
|
||||
v-if="!expandTableDisabled && record.canAssignFlag + '' === '1'"
|
||||
@@ -713,7 +719,8 @@ export default {
|
||||
return this.basicColumns.concat([
|
||||
// 责任单位负责人
|
||||
{
|
||||
title: this.$t('workCenter.projectComplianceEvaluationProcess.responsibleUnitHead'),
|
||||
// title: this.$t('workCenter.projectComplianceEvaluationProcess.responsibleUnitHead'),
|
||||
slots: { title: 'customTitleResponsibleUnitLeaders' },
|
||||
dataIndex: 'responsibleUnitLeaders',
|
||||
width: 350,
|
||||
scopedSlots: { customRender: 'user' }
|
||||
@@ -738,7 +745,8 @@ export default {
|
||||
},
|
||||
// 模块负责人
|
||||
{
|
||||
title: this.$t('workCenter.standardConsultationProcess.moduleOwner'),
|
||||
// title: this.$t('workCenter.standardConsultationProcess.moduleOwner'),
|
||||
slots: { title: 'customTitleModuleOwner' },
|
||||
dataIndex: 'moduleOwners',
|
||||
width: 200,
|
||||
scopedSlots: { customRender: 'moduleOwner' }
|
||||
@@ -757,7 +765,8 @@ export default {
|
||||
return this.basicColumns.concat([
|
||||
// 设计工程师
|
||||
{
|
||||
title: this.$t('workCenter.standardConsultationProcess.designEngineer'),
|
||||
// title: this.$t('workCenter.standardConsultationProcess.designEngineer'),
|
||||
slots: { title: 'customTitleDesignEngineers' },
|
||||
dataIndex: 'designEngineers',
|
||||
width: 350,
|
||||
scopedSlots: { customRender: 'designEngineers' }
|
||||
@@ -784,7 +793,8 @@ export default {
|
||||
},
|
||||
// 评估反馈
|
||||
{
|
||||
title: this.$t('workCenter.projectComplianceEvaluationProcess.evaluationFeedback'),
|
||||
// title: this.$t('workCenter.projectComplianceEvaluationProcess.evaluationFeedback'),
|
||||
slots: { title: 'customTitleEvaluationFeedback' },
|
||||
dataIndex: 'evaluationFeedback_dictText',
|
||||
width: 150,
|
||||
align: 'center',
|
||||
@@ -806,7 +816,8 @@ export default {
|
||||
},
|
||||
// 评估反馈
|
||||
{
|
||||
title: this.$t('projectLibrary.vehicleItemLibrary.evaluationResult'),
|
||||
// title: this.$t('projectLibrary.vehicleItemLibrary.evaluationResult'),
|
||||
slots: { title: 'customTitleEvaluationFeedback' },
|
||||
dataIndex: 'evaluationFeedback_dictText',
|
||||
width: 150,
|
||||
align: 'center',
|
||||
|
||||
+10
-1
@@ -5,6 +5,14 @@
|
||||
<div class="process-part-title">{{ $t('workCenter.standardCompliance.projectApproval') }}</div>
|
||||
<j-table :columns="columns" :data-source="dataSource" :pagination="ipagination" :scroll="{x: '100%'}" @change="handleTableChange">
|
||||
|
||||
<!--表头插槽 start-->
|
||||
<!--是否立项-->
|
||||
<template v-slot:customTitleProjectApprovalFlag>
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('projectLibrary.specialProjectLibrary.whetherToApproveAProjectOrNot') }}
|
||||
</template>
|
||||
<!--表头插槽 end-->
|
||||
|
||||
<!--是否立项-->
|
||||
<template v-slot:projectApprovalFlag="{text,record,index}">
|
||||
<j-dict-select-tag v-model="record.projectApprovalFlag" dict-code="yn" style="width: 100%" />
|
||||
@@ -100,7 +108,8 @@ export default {
|
||||
// 是否立项
|
||||
{
|
||||
dataIndex: 'projectApprovalFlag',
|
||||
title: this.$t('projectLibrary.specialProjectLibrary.whetherToApproveAProjectOrNot'),
|
||||
// title: this.$t('projectLibrary.specialProjectLibrary.whetherToApproveAProjectOrNot'),
|
||||
slots: { title: 'customTitleProjectApprovalFlag' },
|
||||
width: 120,
|
||||
scopedSlots: { customRender: 'projectApprovalFlag' }
|
||||
},
|
||||
|
||||
+10
-1
@@ -17,6 +17,14 @@
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||
@change="handleTableChange">
|
||||
|
||||
<!--表头插槽 start-->
|
||||
<!--模块负责人-->
|
||||
<template v-slot:customTitleModuleOwner>
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('workCenter.standardCompliance.moduleOwner') }}
|
||||
</template>
|
||||
<!--表头插槽 end-->
|
||||
|
||||
<!--选择模块负责人-->
|
||||
<template v-slot:moduleOwner="{text,record}">
|
||||
<user-selection :show-btn="false"
|
||||
@@ -102,7 +110,8 @@ export default {
|
||||
},
|
||||
// 模块责任人
|
||||
{
|
||||
title: this.$t('workCenter.standardCompliance.moduleOwner'),
|
||||
// title: this.$t('workCenter.standardCompliance.moduleOwner'),
|
||||
slots: { title: 'customTitleModuleOwner' },
|
||||
dataIndex: 'contact',
|
||||
width: 250,
|
||||
scopedSlots: { customRender: 'moduleOwner' }
|
||||
|
||||
@@ -18,6 +18,14 @@
|
||||
:data-source="dataSource"
|
||||
@change="handleTableChange">
|
||||
|
||||
<!--表头插槽 start-->
|
||||
<!--评估结果-->
|
||||
<template v-slot:customTitleEvaluationResult>
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('projectLibrary.vehicleItemLibrary.evaluationResult') }}
|
||||
</template>
|
||||
<!--表头插槽 end-->
|
||||
|
||||
<template slot="text" slot-scope="text">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
@@ -156,7 +164,8 @@ export default {
|
||||
// 评估结果
|
||||
{
|
||||
dataIndex: 'assessResults_dictText',
|
||||
title: this.$t('projectLibrary.vehicleItemLibrary.evaluationResult'),
|
||||
// title: this.$t('projectLibrary.vehicleItemLibrary.evaluationResult'),
|
||||
slots: { title: 'customTitleEvaluationResult' },
|
||||
width: 120,
|
||||
align: 'center',
|
||||
scopedSlots: { customRender: 'evaluationResult' }
|
||||
|
||||
@@ -22,6 +22,14 @@
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||
@change="handleTableChange">
|
||||
|
||||
<!--表头插槽 start-->
|
||||
<!--责任单位联络人-->
|
||||
<template v-slot:customTitleResponsibleUnitLeader>
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('workCenter.standardCompliance.responsibleUnitContactPerson') }}
|
||||
</template>
|
||||
<!--表头插槽 end-->
|
||||
|
||||
<!--选择责任单位联络人-->
|
||||
<template v-slot:contact="{text,record}">
|
||||
<user-selection
|
||||
@@ -175,7 +183,8 @@ export default {
|
||||
},
|
||||
// 责任单位联络人
|
||||
{
|
||||
title: this.$t('workCenter.standardCompliance.responsibleUnitContactPerson'),
|
||||
// title: this.$t('workCenter.standardCompliance.responsibleUnitContactPerson'),
|
||||
slots: { title: 'customTitleResponsibleUnitLeader' },
|
||||
dataIndex: 'responsibleUnitLeader_dictText',
|
||||
width: 150,
|
||||
scopedSlots: { customRender: 'contact' }
|
||||
|
||||
+8
-1
@@ -15,6 +15,12 @@
|
||||
<div>
|
||||
<j-table :columns="columns" :data-source="dataSource" :pagination="false" :scroll="{x: '100%'}">
|
||||
|
||||
<!--分解单来源-->
|
||||
<template v-slot:customTitleSalvageSource>
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('workCenter.projectComplianceEvaluationProcess.salvageListSource') }}
|
||||
</template>
|
||||
|
||||
<!--跳转标准详情-->
|
||||
<template v-slot:detail="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
@@ -105,7 +111,8 @@ export default {
|
||||
},
|
||||
// 分解单来源
|
||||
{
|
||||
title: this.$t('workCenter.projectComplianceEvaluationProcess.salvageListSource'),
|
||||
// title: this.$t('workCenter.projectComplianceEvaluationProcess.salvageListSource'),
|
||||
slots: { title: 'customTitleSalvageSource' },
|
||||
dataIndex: 'salvageSource',
|
||||
width: 150,
|
||||
scopedSlots: { customRender: 'salvageListSource' }
|
||||
|
||||
+10
-1
@@ -17,6 +17,14 @@
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||
@change="handleTableChange">
|
||||
|
||||
<!--表头插槽 start-->
|
||||
<!--设计工程师-->
|
||||
<template v-slot:customTitleModuleOwner>
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('workCenter.standardConsultationProcess.designEngineer') }}
|
||||
</template>
|
||||
<!--表头插槽 end-->
|
||||
|
||||
<!--选择设计工程师-->
|
||||
<template v-slot:moduleOwner="{text,record,index}">
|
||||
<user-selection :show-btn="false"
|
||||
@@ -101,7 +109,8 @@ export default {
|
||||
},
|
||||
// 设计工程师
|
||||
{
|
||||
title: this.$t('workCenter.standardConsultationProcess.designEngineer'),
|
||||
// title: this.$t('workCenter.standardConsultationProcess.designEngineer'),
|
||||
slots: { title: 'customTitleModuleOwner' },
|
||||
dataIndex: 'designEngineer_dictText',
|
||||
width: 150,
|
||||
scopedSlots: { customRender: 'moduleOwner' }
|
||||
|
||||
+17
-2
@@ -22,6 +22,19 @@
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||
@change="handleTableChange">
|
||||
|
||||
<!--表头插槽 start-->
|
||||
<!--是否立项-->
|
||||
<template v-slot:customTitleProjectApprovalFlag>
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('projectLibrary.specialProjectLibrary.whetherToApproveAProjectOrNot') }}
|
||||
</template>
|
||||
<!--抄送人员-->
|
||||
<template v-slot:customTitleProjectCarbonCopyPersonnels>
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('workCenter.projectComplianceEvaluationProcess.ccPerson') }}
|
||||
</template>
|
||||
<!--表头插槽 end-->
|
||||
|
||||
<!--评估详情(下方列表)-->
|
||||
<template v-slot:evaluateDetail="{text, record}">
|
||||
<div class="table-text can-click-table-text" @click="loadSubTable(record)" v-if="text">
|
||||
@@ -169,7 +182,8 @@ export default {
|
||||
// 是否立项
|
||||
{
|
||||
dataIndex: 'projectApprovalFlag',
|
||||
title: this.$t('projectLibrary.specialProjectLibrary.whetherToApproveAProjectOrNot'),
|
||||
// title: this.$t('projectLibrary.specialProjectLibrary.whetherToApproveAProjectOrNot'),
|
||||
slots: { title: 'customTitleProjectApprovalFlag' },
|
||||
width: 150,
|
||||
scopedSlots: { customRender: 'projectApprovalFlag' }
|
||||
},
|
||||
@@ -182,7 +196,8 @@ export default {
|
||||
},
|
||||
// 抄送人员
|
||||
{
|
||||
title: this.$t('workCenter.projectComplianceEvaluationProcess.ccPerson'),
|
||||
// title: this.$t('workCenter.projectComplianceEvaluationProcess.ccPerson'),
|
||||
slots: { title: 'customTitleProjectCarbonCopyPersonnels' },
|
||||
dataIndex: 'carbonCopyPersonnels',
|
||||
width: 150,
|
||||
scopedSlots: { customRender: 'carbonCopyPersonnels' }
|
||||
|
||||
@@ -221,6 +221,14 @@
|
||||
:all-disabled="disabledConsultationList"
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }">
|
||||
|
||||
<!--表头插槽 start-->
|
||||
<!--意见-->
|
||||
<template v-slot:customTitleOpinion>
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('workCenter.esInspectionPlan.opinion') }}
|
||||
</template>
|
||||
<!--表头插槽 end-->
|
||||
|
||||
<!--修改前、修改后、修改理由弹框显示内容-->
|
||||
<template v-slot:modalDetail="{text, record}">
|
||||
<div class="table-text can-click" @click="showContent(text)" v-if="text">{{ text }}</div>
|
||||
@@ -577,7 +585,8 @@ export default {
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 意见
|
||||
title: this.$t('workCenter.esInspectionPlan.opinion'),
|
||||
// title: this.$t('workCenter.esInspectionPlan.opinion'),
|
||||
slots: { title: 'customTitleOpinion' },
|
||||
width: 180,
|
||||
align: 'center',
|
||||
dataIndex: 'isAdopt_dictText',
|
||||
@@ -735,7 +744,7 @@ export default {
|
||||
dataIndex: 'designEngineerName',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 意见
|
||||
{ // 模块负责人意见
|
||||
title: this.$t('workCenter.standardConsultationProcess.moduleOwner') + this.$t('workCenter.esInspectionPlan.opinion'),
|
||||
width: 180,
|
||||
align: 'center',
|
||||
|
||||
Reference in New Issue
Block a user