Commit cab2e1b4 authored by wangxl's avatar wangxl

333

parent 136f8ab3
......@@ -7,20 +7,12 @@
<a-icon type="delete" class="hover-pointer d-icon" @click="deletefile(file)" style="margin: 0px 2px;" />
</div>
<div v-else>
<div v-if="isUpload">
<a-form-model-item :prop="name+'downloadUrl'" :rules="{required: isRequired, message: message,trigger: 'blur',}">
<input type="file" ref="fileElem1" class="visually-hidden" @change="handleFiles">
<a-button @click="fileSelect">
<a-icon type="upload" />选择文件
</a-button>
</a-form-model-item>
</div>
<div v-else>
<input type="file" ref="fileElem2" class="visually-hidden" @change="handleFiles">
<a-form-model-item :prop="name+'downloadUrl'" :rules="{required: isRequired, message: message,trigger: 'blur',}">
<input type="file" ref="fileElem" class="visually-hidden" @change="handleFiles">
<a-button @click="fileSelect">
<a-icon type="upload" />选择文件
</a-button>
</div>
</a-form-model-item>
</div>
</div>
</template>
......
......@@ -2,9 +2,9 @@
<div class="app-content" style="height: 65vh;overflow: auto;">
<a-spin :spinning="loading" style="width: 100%;height: 100%;">
<div style="width:100%; height: 36px;">
<a :href="url" download="memberInfo.xlsx">
<!-- <a :href="url" download="memberInfo.xlsx">
<a-icon type="download"></a-icon>&nbsp;<span style="color:green;text-decoration:underline;">项目组成员模板下载</span>
</a>
</a> -->
<up-load @beforeUpload="beforeUpload" :format="['xls', 'xlsx']"/>
</div>
<div style="width:100%;height: calc(100% - 72px);overflow: auto;">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment