修改文档详情得文件显示
This commit is contained in:
@@ -54,11 +54,9 @@
|
||||
:title="ol.value">{{ol.value ? ol.value : '--'}}</span>
|
||||
<span class="text-field-right" v-else-if="ol.field_show_type == 7">
|
||||
<a-button type="primary" class="button-text"
|
||||
v-if="ol.value"
|
||||
v-if="ol.value && ol.value.length > 0"
|
||||
@click="clickButtonToUpload(ol.value)">
|
||||
{{ (ol.value === 'null' || ol.value === '' ||
|
||||
ol.value == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||
}}
|
||||
{{$t('viewUploadedFiles')}}
|
||||
</a-button>
|
||||
<span v-else>--</span>
|
||||
</span>
|
||||
@@ -144,11 +142,9 @@
|
||||
:title="ol.value">{{ol.value ? ol.value : '--'}}</span>
|
||||
<span class="text-field-right" v-else-if="ol.field_show_type == 7">
|
||||
<a-button type="primary" class="button-text"
|
||||
v-if="ol.value"
|
||||
v-if="ol.value && ol.value.length > 0"
|
||||
@click="clickButtonToUpload(ol.value)">
|
||||
{{ (ol.value === 'null' || ol.value === '' ||
|
||||
ol.value == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||
}}
|
||||
{{$t('viewUploadedFiles')}}
|
||||
</a-button>
|
||||
<span v-else>--</span>
|
||||
</span>
|
||||
@@ -306,7 +302,7 @@
|
||||
clickButtonToUpload(item) {
|
||||
this.$refs.uploadFile.perentHandleFunc()
|
||||
this.$refs.uploadFile.visible = true
|
||||
getAction('sys/common/getFileInfos', { id: item.id }).then((res) => {
|
||||
getAction('sys/common/getFileInfos', { id: item.join(',') }).then((res) => {
|
||||
if (res.success) {
|
||||
this.$refs.uploadFile.perentHandleFunc(res.result)
|
||||
} else {
|
||||
@@ -621,7 +617,7 @@
|
||||
}
|
||||
|
||||
.text-field-right-color {
|
||||
color: #00B3BE!important;
|
||||
color: #00B3BE !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user