[update] 表格中必填项表头增加*
This commit is contained in:
+7
-1
@@ -35,6 +35,11 @@
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
|
||||
<template slot="customTitleHandlingSuggestion">
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('workCenter.enStandardRevision.handlingSuggestion') }}
|
||||
</template>
|
||||
|
||||
</j-table>
|
||||
</div>
|
||||
<comment-modal ref="commentModal" @ok="modalFormOk"></comment-modal>
|
||||
@@ -116,10 +121,11 @@ export default {
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 处理意见
|
||||
title: this.$t('workCenter.enStandardRevision.handlingSuggestion'),
|
||||
// title: this.$t('workCenter.enStandardRevision.handlingSuggestion'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'handleAdvice',
|
||||
slots: { title: 'customTitleHandlingSuggestion' },
|
||||
customRender: (text, row, index) => {
|
||||
const obj = {
|
||||
children: <a-select v-model={row.handleAdvice}
|
||||
|
||||
+4
-10
@@ -383,16 +383,10 @@ export default {
|
||||
await this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
if (this.formInline.inspectFlag === '1' && this.dataSource && this.dataSource.length > 0) {
|
||||
if (this.dataSource.map(item => item.rectificationDepartment).every(item => !!item)) {
|
||||
// 每一个的整改部门都填了
|
||||
// 有数据可以抛出
|
||||
data = Object.assign({}, this.formInline)
|
||||
data.inspectContents = this.dataSource || []
|
||||
data.onEditFile = this.onEditFile
|
||||
} else {
|
||||
this.$message.warning(this.$t('pleaseCompleteTableInfo'))
|
||||
data = false
|
||||
}
|
||||
// 有数据可以抛出
|
||||
data = Object.assign({}, this.formInline)
|
||||
data.inspectContents = this.dataSource || []
|
||||
data.onEditFile = this.onEditFile
|
||||
} else if (this.formInline.inspectFlag === '0') {
|
||||
// 有数据可以抛出
|
||||
data = Object.assign({}, this.formInline)
|
||||
|
||||
@@ -23,6 +23,17 @@
|
||||
rowKey="id"
|
||||
:pagination="false"
|
||||
>
|
||||
<!-- 评分 -->
|
||||
<template slot="customTitleGrade">
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('enterpriseStandardLibrary.reviewMeeting.grade') }}
|
||||
</template>
|
||||
<!-- 扣分理由 -->
|
||||
<template slot="customTitleGroundsForDemerit">
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('enterpriseStandardLibrary.reviewMeeting.groundsForDemerit') }}
|
||||
</template>
|
||||
|
||||
<template slot="text" slot-scope="text">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
@@ -246,11 +257,12 @@ export default {
|
||||
return obj
|
||||
}
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.reviewMeeting.grade'),
|
||||
{ // 评分
|
||||
// title: this.$t('enterpriseStandardLibrary.reviewMeeting.grade'),
|
||||
align: 'center',
|
||||
width: 150,
|
||||
dataIndex: 'evaluateScore',
|
||||
slots: { title: 'customTitleGrade' },
|
||||
customRender: (text, row, index) => {
|
||||
const obj = {
|
||||
children: <a-input-number v-model={this.dataSource[index].evaluateScore}
|
||||
@@ -278,10 +290,11 @@ export default {
|
||||
}
|
||||
},
|
||||
{ // 扣分理由
|
||||
title: this.$t('enterpriseStandardLibrary.reviewMeeting.groundsForDemerit'),
|
||||
// title: this.$t('enterpriseStandardLibrary.reviewMeeting.groundsForDemerit'),
|
||||
align: 'center',
|
||||
width: 300,
|
||||
dataIndex: 'deductionScoreReason',
|
||||
slots: { title: 'customTitleGroundsForDemerit' },
|
||||
customRender: (text, row, index) => {
|
||||
const obj = {
|
||||
// children: <a-input v-model={this.dataSource[index].deductionScoreReason} maxLength={50}
|
||||
|
||||
Reference in New Issue
Block a user