|
|
@@ -265,19 +265,18 @@ export default {
|
|
|
_format += "_";
|
|
|
}
|
|
|
}
|
|
|
- console.log(_format)
|
|
|
formData.append("format", _format);
|
|
|
- // request({
|
|
|
- // url: '/gorse/bulk/items',
|
|
|
- // method: 'put',
|
|
|
- // data: formData
|
|
|
- // }).then(res => {
|
|
|
- // if(res.data && res.data.RowAffected) {
|
|
|
- // _this.$message.success(`成功导入${res.data.RowAffected}条记录`);
|
|
|
- // } else {
|
|
|
- // _this.$message.warning("导入异常");
|
|
|
- // }
|
|
|
- // });
|
|
|
+ request({
|
|
|
+ url: '/gorse/bulk/items',
|
|
|
+ method: 'put',
|
|
|
+ data: formData
|
|
|
+ }).then(res => {
|
|
|
+ if(res.data && res.data.RowAffected) {
|
|
|
+ _this.$message.success(`成功导入${res.data.RowAffected}条记录`);
|
|
|
+ } else {
|
|
|
+ _this.$message.warning("导入异常");
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
backBtn() {
|