eoss-ui 0.7.14 → 0.7.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.7.14",
3
+ "version": "0.7.15",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -87,6 +87,7 @@ export default {
87
87
  methods: {
88
88
  quit() {
89
89
  this.$emit('cancel');
90
+ this.$parent.$emit('cancel');
90
91
  },
91
92
  subMit() {
92
93
  if (!this.nextNode.nextCurrentOrgObj && !this.nextNode.nextOtherOrgObj)
@@ -102,8 +103,9 @@ export default {
102
103
  };
103
104
  this.loading = util.loading(this.$loading, '加载中...');
104
105
  util.ajax(param).then((res) => {
106
+ this.loading.close();
105
107
  if (res.rCode == 0 || res.status == 'success') {
106
- this.loading.close();
108
+
107
109
  if (!this.simpleTips) {
108
110
  this.$alert('提交成功', '', {
109
111
  confirmButtonText: '确定',
@@ -115,6 +117,8 @@ export default {
115
117
  } else {
116
118
  this.$parent.$emit('success');
117
119
  }
120
+ }else{
121
+ this.$message.error(res.message || res.msg || '系统错误,请联系管理员!');
118
122
  }
119
123
  });
120
124
  },
package/src/index.js CHANGED
@@ -125,7 +125,7 @@ if (typeof window !== 'undefined' && window.Vue) {
125
125
  }
126
126
 
127
127
  export default {
128
- version: '0.7.14',
128
+ version: '0.7.15',
129
129
  install,
130
130
  Button,
131
131
  ButtonGroup,