|
|
|
@ -145,11 +145,11 @@
|
|
|
|
|
|
|
|
|
|
<p style="text-indent: 2em;">if (response.errors.length > 0) {</p>
|
|
|
|
|
|
|
|
|
|
<p style="text-indent: 4em;">this.e(response.errors[0].message);</p>
|
|
|
|
|
<p style="text-indent: 4em;">nav.e(response.errors[0].message);</p>
|
|
|
|
|
|
|
|
|
|
<p style="text-indent: 2em;">} else {</p>
|
|
|
|
|
|
|
|
|
|
<p style="text-indent: 4em;">this.i("Ajax调用成功!");</p>
|
|
|
|
|
<p style="text-indent: 4em;">nav.i("Ajax调用成功!");</p>
|
|
|
|
|
|
|
|
|
|
<p style="text-indent: 2em;">}</p>
|
|
|
|
|
|
|
|
|
@ -179,13 +179,13 @@
|
|
|
|
|
|
|
|
|
|
<p style="text-indent: 4em;">req.onError();</p>
|
|
|
|
|
|
|
|
|
|
<p style="text-indent: 4em;">this.e(response.errors[0].message);</p>
|
|
|
|
|
<p style="text-indent: 4em;">nav.e(response.errors[0].message);</p>
|
|
|
|
|
|
|
|
|
|
<p style="text-indent: 2em;">} else {</p>
|
|
|
|
|
|
|
|
|
|
<p style="text-indent: 4em;">req.onSuccess();</p>
|
|
|
|
|
|
|
|
|
|
<p style="text-indent: 4em;">this.i("文件上传成功!");</p>
|
|
|
|
|
<p style="text-indent: 4em;">nav.i("文件上传成功!");</p>
|
|
|
|
|
|
|
|
|
|
<p style="text-indent: 2em;">}</p>
|
|
|
|
|
|
|
|
|
@ -1030,9 +1030,9 @@
|
|
|
|
|
doAjax: function () {
|
|
|
|
|
this.$ajax.login({}).then(function (response) {
|
|
|
|
|
if (response.errors.length > 0) {
|
|
|
|
|
this.e(response.errors[0].message);
|
|
|
|
|
nav.e(response.errors[0].message);
|
|
|
|
|
} else {
|
|
|
|
|
this.i("Ajax调用成功!");
|
|
|
|
|
nav.i("Ajax调用成功!");
|
|
|
|
|
}
|
|
|
|
|
}.bind(this))
|
|
|
|
|
},
|
|
|
|
@ -1056,10 +1056,10 @@
|
|
|
|
|
this.$ajax.upload(req.file).then(function (response) {
|
|
|
|
|
if (response.errors.length > 0) {
|
|
|
|
|
req.onError();
|
|
|
|
|
this.e(response.errors[0].message);
|
|
|
|
|
nav.e(response.errors[0].message);
|
|
|
|
|
} else {
|
|
|
|
|
req.onSuccess();
|
|
|
|
|
this.i("文件上传成功!");
|
|
|
|
|
nav.i("文件上传成功!");
|
|
|
|
|
}
|
|
|
|
|
}.bind(this))
|
|
|
|
|
},
|
|
|
|
@ -1077,7 +1077,7 @@
|
|
|
|
|
this.$refs[formName].resetFields();
|
|
|
|
|
},
|
|
|
|
|
handleEdit: function (index, row) {
|
|
|
|
|
this.i("编辑");
|
|
|
|
|
nav.i("编辑");
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
showMessage: function () {
|
|
|
|
|