|
|
@@ -58,6 +58,7 @@
|
|
|
|
|
|
<script>
|
|
|
import importFile from './modules/importFile.vue'
|
|
|
+import {Message} from "element-ui";
|
|
|
export default {
|
|
|
components:{
|
|
|
importFile
|
|
|
@@ -142,13 +143,22 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
if (res.data !== '成功') {
|
|
|
- this.errorUrl = res.msg
|
|
|
+ this.errorUrl = res.data
|
|
|
res.msg = this.$t('失败')
|
|
|
+ Message({
|
|
|
+ message:res.msg,
|
|
|
+ type: 'error',
|
|
|
+ duration:3000,
|
|
|
+ showClose:true
|
|
|
+ });
|
|
|
+ this.$refs.basicLayout.listData()
|
|
|
+ }else {
|
|
|
+ this.tool.showMessage(res,() => {
|
|
|
+ this.$refs.basicLayout.listData()
|
|
|
+ })
|
|
|
}
|
|
|
/*res.msg = '失败'*/
|
|
|
- this.tool.showMessage(res,() => {
|
|
|
- this.$refs.basicLayout.listData()
|
|
|
- })
|
|
|
+
|
|
|
},
|
|
|
},
|
|
|
mounted () {
|