提交 4380eae2 authored 作者: 陆's avatar

导入

上级 63577cbd
......@@ -23,6 +23,19 @@
<i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
<i-button type="primary" @click="modal = true"><i class="fa fa-chevron-up"></i>导入
<Modal
v-model="modal"
title="商品导入"
@on-ok="ok"
@on-cancel="cancel">
<template>
<Upload action="../tbcfstationitem/importExcel/">
<i-Button icon="ios-cloud-upload-outline">请选择</i-Button>
</Upload>
</template>
</Modal>
</i-button>
</div>
</Row>
<div id="speedp"></div>
......
......@@ -34,6 +34,7 @@ let vm = new Vue({
uploadList:[],
showList: true,
title: null,
modal: false,
virtualUser: {},
ruleValidate: {
name: [
......@@ -132,6 +133,11 @@ let vm = new Vue({
// 限制上传文件的宽高
// return this.checkImageWH(file,750,320);
},
ok() {
vm.reload();
},
cancel() {
},
// 限制上传图片的宽高
checkImageWH: function (file, width, height) {
let self = this;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论