1、文件上传功能重构
2、实现签到删除 3、实现签到表格处弹性布局 4、库存删除问题修正
This commit is contained in:
@@ -313,7 +313,9 @@
|
||||
</template>
|
||||
<!--附件-->
|
||||
<template v-if="form.accessory">
|
||||
<ImageOss :name="form.accessory"/>
|
||||
<el-tooltip class="item" effect="dark" content="点击下载" placement="bottom">
|
||||
<el-link type="primary" @click="downloadFile(form.accessory)">{{form.accessory.match('[^/]+(?!.*/)')[0]}}</el-link>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<template v-else>
|
||||
<span style="color: #999999">暂无附件</span>
|
||||
@@ -634,7 +636,9 @@
|
||||
</template>
|
||||
<!--附件-->
|
||||
<template v-if="item.accessory">
|
||||
<ImageOss :name="item.accessory"/>
|
||||
<el-tooltip class="item" effect="dark" content="点击下载" placement="bottom">
|
||||
<el-link type="primary" @click="downloadFile(form.accessory)">{{form.accessory.match('[^/]+(?!.*/)')[0]}}</el-link>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<template v-else>
|
||||
<span style="color: #999999">暂无附件</span>
|
||||
@@ -887,7 +891,9 @@
|
||||
</template>
|
||||
<!--附件-->
|
||||
<template v-if="contractForm.accessory">
|
||||
<ImageOss :name="contractForm.accessory"/>
|
||||
<el-tooltip class="item" effect="dark" content="点击下载" placement="bottom">
|
||||
<el-link type="primary" @click="downloadFile(form.accessory)">{{form.accessory.match('[^/]+(?!.*/)')[0]}}</el-link>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<template v-else>
|
||||
<span style="color: #999999">暂无附件</span>
|
||||
@@ -1165,7 +1171,9 @@
|
||||
</template>
|
||||
<!--附件-->
|
||||
<template v-if="contractForm.accessory">
|
||||
<ImageOss :name="contractForm.accessory"/>
|
||||
<el-tooltip class="item" effect="dark" content="点击下载" placement="bottom">
|
||||
<el-link type="primary" @click="downloadFile(form.accessory)">{{form.accessory.match('[^/]+(?!.*/)')[0]}}</el-link>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<template v-else>
|
||||
<span style="color: #999999">暂无附件</span>
|
||||
@@ -1520,6 +1528,11 @@ export default {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 下载文件 */
|
||||
downloadFile(filePath){
|
||||
this.$download.resource(filePath)
|
||||
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.searchTime = [];
|
||||
|
||||
Reference in New Issue
Block a user