|
|
@@ -103,12 +103,16 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['getLevel']),
|
|
|
- fileUpSuccess(){
|
|
|
- this.$notify({ title: '提交成功', message: 'success', type: 'success'})
|
|
|
- let that = this
|
|
|
- setTimeout(() => {
|
|
|
- that.$router.push({path:'/order/list'})
|
|
|
- }, 1000)
|
|
|
+ fileUpSuccess(response){
|
|
|
+ if(response.code == 1){
|
|
|
+ this.$notify({ title: '提交成功', message: 'success', type: 'success'})
|
|
|
+ let that = this
|
|
|
+ setTimeout(() => {
|
|
|
+ that.$router.push({path:'/order/list'})
|
|
|
+ }, 1000)
|
|
|
+ }else{
|
|
|
+ this.$message.error(response.msg)
|
|
|
+ }
|
|
|
},
|
|
|
changeText(){
|
|
|
this.app.refresh({ type: this.tabIndex,name:this.name })
|