Merge remote-tracking branch 'origin/master' into master
This commit is contained in:
commit
117a1c0e98
|
@ -119,13 +119,15 @@ public class APITestService {
|
||||||
out = new FileOutputStream(file);
|
out = new FileOutputStream(file);
|
||||||
FileUtil.copyStream(in, out);
|
FileUtil.copyStream(in, out);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
LogUtil.error(e);
|
||||||
|
MSException.throwException(Translator.get("upload_fail"));
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
in.close();
|
in.close();
|
||||||
out.close();
|
out.close();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
LogUtil.error(e);
|
||||||
|
MSException.throwException(Translator.get("upload_fail"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -168,7 +170,8 @@ public class APITestService {
|
||||||
try {
|
try {
|
||||||
FileUtil.copyDir(sourceFile, new File(targetDir));
|
FileUtil.copyDir(sourceFile, new File(targetDir));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
LogUtil.error(e);
|
||||||
|
MSException.throwException(Translator.get("upload_fail"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@ error=error
|
||||||
connection_failed=Connection failed
|
connection_failed=Connection failed
|
||||||
delete_fail=Delete fail
|
delete_fail=Delete fail
|
||||||
start_engine_fail=Start fail
|
start_engine_fail=Start fail
|
||||||
|
upload_fail=Upload fail
|
||||||
#user related
|
#user related
|
||||||
user_email_already_exists=User email already exists
|
user_email_already_exists=User email already exists
|
||||||
user_id_is_null=User ID cannot be null
|
user_id_is_null=User ID cannot be null
|
||||||
|
|
|
@ -7,6 +7,7 @@ row=行
|
||||||
error=出错
|
error=出错
|
||||||
delete_fail=删除失败
|
delete_fail=删除失败
|
||||||
start_engine_fail=启动失败
|
start_engine_fail=启动失败
|
||||||
|
upload_fail=文件上传失败
|
||||||
#user related
|
#user related
|
||||||
user_email_already_exists=用户邮箱已存在
|
user_email_already_exists=用户邮箱已存在
|
||||||
user_id_is_null=用户ID不能为空
|
user_id_is_null=用户ID不能为空
|
||||||
|
|
|
@ -8,6 +8,7 @@ error=出錯
|
||||||
connection_failed=連接失敗
|
connection_failed=連接失敗
|
||||||
delete_fail=刪除失敗
|
delete_fail=刪除失敗
|
||||||
start_engine_fail=啟動失敗
|
start_engine_fail=啟動失敗
|
||||||
|
upload_fail=文件上傳失敗
|
||||||
#user related
|
#user related
|
||||||
user_email_already_exists=用戶郵箱已存在
|
user_email_already_exists=用戶郵箱已存在
|
||||||
user_id_is_null=用戶ID不能為空
|
user_id_is_null=用戶ID不能為空
|
||||||
|
|
|
@ -32,7 +32,7 @@ export default {
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'item',
|
trigger: 'item',
|
||||||
formatter: '{a} <br/>{b} : {c} ({d}%)'
|
formatter: '{a} <br/>({d}%)'
|
||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
orient: 'vertical',
|
orient: 'vertical',
|
||||||
|
@ -46,7 +46,15 @@ export default {
|
||||||
radius: ['40%', '70%'],
|
radius: ['40%', '70%'],
|
||||||
// roseType: 'angle',
|
// roseType: 'angle',
|
||||||
data: this.data,
|
data: this.data,
|
||||||
animation: false
|
animation: false,
|
||||||
|
label: {
|
||||||
|
normal: {
|
||||||
|
show: true,
|
||||||
|
position: 'outside',
|
||||||
|
formatter: '{b}:{c}'
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue