切换导航条
此项目
正在载入...
登录
朱兆平
/
vue_cli
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
小范
3 years ago
提交
66d66f4fc30f5c86f241ee2e7fd0544015353db1
1 个父辈
c6eca879
进港快件数据导入界面新增loading
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
23 行增加
和
2 行删除
src/views/nmms_fast/DataImport.vue
src/views/nmms_fast/DataImport.vue
查看文件 @
66d66f4
...
...
@@ -18,7 +18,12 @@
:limit=1
:on-exceed="fileExceed"
accept="application/vnd.ms-excel,application/vnd.ms-excels"
ref="fileupload">
ref="fileupload"
v-loading.fullscreen.lock="loading"
element-loading-text="正在上传原始数据"
element-loading-spinner="el-icon-loading"
element-loading-background="rgba(0,0,0,0.3)"
>
<el-button size="medium" type="primary">点击上传原始数据</el-button>
<div slot="tip" class="el-upload__tip">只能上传excel文件</div>
</el-upload>
...
...
@@ -31,7 +36,11 @@
:limit=1
:on-exceed="fileExceed2"
accept="application/vnd.ms-excel,application/vnd.ms-excels"
ref="fileupload">
ref="fileupload"
v-loading.fullscreen.lock="loadings"
element-loading-text="正在上传理货数据"
element-loading-spinner="el-icon-loading"
element-loading-background="rgba(0,0,0,0.3)">
<el-button size="medium" type="success">点击上传理货数据</el-button>
<div slot="tip" class="el-upload__tip">只能上传excel文件</div>
</el-upload>
...
...
@@ -47,6 +56,10 @@
p{font-size:25px;font-weight: bold;}
.row-bg{padding:30px 0;}
.el-form-item {margin-bottom: 0px;}
.el-loading-spinner{
top:60%;
width: 120%;
}
</style>
<script>
...
...
@@ -54,6 +67,8 @@
export default {
data() {
return {
loading:false,
loadings:false,
fileList: [],
};
},
...
...
@@ -64,12 +79,15 @@
},
// 自定义上传 excel
uploadOri (item) {
this.loading = true;
const form = new FormData()
form.append('file', item.file);
upfile(form).then(res =>{
if(res.data.count >0){
this.loading = false;
return this.$message.error('主单导入失败')
}else {
this.loading = false;
this.$message.success('主单导入成功')
}
}).catch((e) => {})
...
...
@@ -80,12 +98,15 @@
},
// 自定义上传 excel
uploadTal (item) {
this.loadings = true;
const form = new FormData()
form.append('file', item.file);
upfiles(form).then(res =>{
if(res.data.count >0){
this.loadings = false;
return this.$message.error('主单导入失败')
}else {
this.loadings = false;
this.$message.success('主单导入成功')
}
}).catch((e) => {})
...
...
请
注册
或
登录
后发表评论