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