1、文件上传功能重构
2、实现签到删除 3、实现签到表格处弹性布局 4、库存删除问题修正
This commit is contained in:
@@ -225,7 +225,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>
|
||||
@@ -585,7 +587,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>
|
||||
@@ -742,6 +746,7 @@ export default {
|
||||
//点击添加按钮状态
|
||||
addBottomStatus: false,
|
||||
openForm: false,
|
||||
downLoadUrl :process.env.VUE_APP_BASE_API+'/common/download' ,
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 按钮loading
|
||||
@@ -1069,6 +1074,12 @@ export default {
|
||||
} else {
|
||||
callback()
|
||||
}
|
||||
},
|
||||
|
||||
/** 下载文件 */
|
||||
downloadFile(filePath){
|
||||
this.$download.resource(filePath)
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user