Commit d2baf485 by LJM

batchUpdateSku

parent 0b6ca0df
...@@ -417,7 +417,7 @@ ...@@ -417,7 +417,7 @@
</el-dialog> </el-dialog>
<!--批量修改--> <!--批量修改-->
<el-dialog title="批量修改" :close-on-click-modal="false" :visible.sync="dialogVisibleBatchModify" width="500px"> <el-dialog title="批量修改" :close-on-click-modal="false" :visible.sync="dialogVisibleBatchModify" width="500px">
<el-upload drag action="/api/sku/batchUpdateSku" :on-success="handleUploadSuccess" :on-error="handleUploadError" accept=".csv" :show-file-list="false"> <el-upload drag :action="uploadUrl" :headers="uploadHeaders" :on-success="handleUploadSuccess" :on-error="handleUploadError" accept=".csv" :show-file-list="false">
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div> <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
<div class="el-upload__tip" slot="tip"> <div class="el-upload__tip" slot="tip">
...@@ -457,6 +457,7 @@ import Vue from 'vue'; ...@@ -457,6 +457,7 @@ import Vue from 'vue';
import Menu from "@/components/menu.vue"; import Menu from "@/components/menu.vue";
import {Autocomplete, Button, DatePicker, Dialog, Dropdown, DropdownItem, DropdownMenu, Form, FormItem, Input, Link, Message, Option, Pagination, Popover, Select, Table, TableColumn, Tag, Tooltip, Upload} from 'element-ui' import {Autocomplete, Button, DatePicker, Dialog, Dropdown, DropdownItem, DropdownMenu, Form, FormItem, Input, Link, Message, Option, Pagination, Popover, Select, Table, TableColumn, Tag, Tooltip, Upload} from 'element-ui'
import Util from "@/tool"; import Util from "@/tool";
import {NODE_ENVS} from "@/ajax";
Vue.prototype.$message = Message Vue.prototype.$message = Message
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Tooltip).use(Autocomplete).use(Tag).use(Link) Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Tooltip).use(Autocomplete).use(Tag).use(Link)
...@@ -506,6 +507,10 @@ export default { ...@@ -506,6 +507,10 @@ export default {
skuRankList: {},//sku的型号统计排名列表 skuRankList: {},//sku的型号统计排名列表
pickerOptions: { pickerOptions: {
disabledDate: this.disabledDate disabledDate: this.disabledDate
},
uploadUrl: NODE_ENVS + '/api/sku/batchUpdateSku',
uploadHeaders: {
'Authorization': 'Bearer ' + Util.getCookie('token')
} }
}; };
}, },
......
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 sign in to comment