对接法规月报
This commit is contained in:
+15
-6
@@ -97,14 +97,23 @@
|
|||||||
{
|
{
|
||||||
title: this.$t('RegulationMonthlyName'),
|
title: this.$t('RegulationMonthlyName'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'RegulationMonthlyName',
|
dataIndex: 'name',
|
||||||
width: 170
|
width: 190,
|
||||||
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('monthlyLanguage'),
|
title: this.$t('monthlyLanguage'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'monthlyLanguage',
|
dataIndex: 'language',
|
||||||
width: 170
|
width: 170,
|
||||||
|
ellipsis: true,
|
||||||
|
customRender: function(t, r, index) {
|
||||||
|
if (t == 1) {
|
||||||
|
return this.$t('chinese')
|
||||||
|
} else {
|
||||||
|
return this.$t('English')
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('releaseStatus'),
|
title: this.$t('releaseStatus'),
|
||||||
@@ -118,14 +127,14 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 170,
|
width: 170,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
dataIndex: 'uploadTime'
|
dataIndex: 'createTime'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('uploadedBy'),
|
title: this.$t('uploadedBy'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170,
|
width: 170,
|
||||||
dataIndex: 'uploadedBy'
|
dataIndex: 'createBy'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('operation'),
|
title: this.$t('operation'),
|
||||||
|
|||||||
+6
-2
@@ -35,7 +35,7 @@
|
|||||||
<span class="Required">*</span>
|
<span class="Required">*</span>
|
||||||
<span class="title-text-text" :title="$t('monthlyLanguage')">{{$t('monthlyLanguage')}}</span>
|
<span class="title-text-text" :title="$t('monthlyLanguage')">{{$t('monthlyLanguage')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="useExplain">
|
<a-form-model-item class="itemModel" prop="language">
|
||||||
<a-select :placeholder="$t('PleaseSelect')+$t('monthlyLanguage')"
|
<a-select :placeholder="$t('PleaseSelect')+$t('monthlyLanguage')"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
class="box-input"
|
class="box-input"
|
||||||
@@ -153,14 +153,18 @@
|
|||||||
/** 上传文件的回调 */
|
/** 上传文件的回调 */
|
||||||
uploadSuccess(data) {
|
uploadSuccess(data) {
|
||||||
let attIdList = []
|
let attIdList = []
|
||||||
|
let attNameList = []
|
||||||
if (data && data.length > 0) {
|
if (data && data.length > 0) {
|
||||||
data.map(item => {
|
data.map(item => {
|
||||||
attIdList.push(item.id || data.name)
|
attIdList.push(item.id || data.name)
|
||||||
|
attNameList.push(item.fileName)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
/** 赋值给当前对应的表单文件 */
|
/** 赋值给当前对应的表单文件 */
|
||||||
this.formInline[this.uploadName] = attIdList.join(',')
|
this.formInline[this.uploadName] = attNameList.join(',')
|
||||||
|
this.formInline['fileId'] = attIdList.join(',')
|
||||||
this.formInline = { ...this.formInline }
|
this.formInline = { ...this.formInline }
|
||||||
|
this.$refs.ruleForm.clearValidate(['name'])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user