refactor: i18n
This commit is contained in:
parent
4598c10864
commit
1858ef5857
|
@ -89,9 +89,7 @@ public class ZentaoPlatform extends AbstractIssuePlatform {
|
||||||
ResponseEntity<String> responseEntity = restTemplate.exchange(url + "api-getModel-bug-getById-bugID={bugId}?zentaosid=" + session,
|
ResponseEntity<String> responseEntity = restTemplate.exchange(url + "api-getModel-bug-getById-bugID={bugId}?zentaosid=" + session,
|
||||||
HttpMethod.POST, requestEntity, String.class, bugId);
|
HttpMethod.POST, requestEntity, String.class, bugId);
|
||||||
String body = responseEntity.getBody();
|
String body = responseEntity.getBody();
|
||||||
System.out.println(body);
|
|
||||||
JSONObject obj = JSONObject.parseObject(body);
|
JSONObject obj = JSONObject.parseObject(body);
|
||||||
System.out.println(obj);
|
|
||||||
if (obj != null) {
|
if (obj != null) {
|
||||||
JSONObject bug = obj.getJSONObject("data");
|
JSONObject bug = obj.getJSONObject("data");
|
||||||
String id = bug.getString("id");
|
String id = bug.getString("id");
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
<el-form-item :label="$t('project.jira_key')" v-if="jira">
|
<el-form-item :label="$t('project.jira_key')" v-if="jira">
|
||||||
<el-input v-model="form.jiraKey" autocomplete="off"></el-input>
|
<el-input v-model="form.jiraKey" autocomplete="off"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Zentao项目ID" v-if="zentao">
|
<el-form-item :label="$t('project.zentao_id')" v-if="zentao">
|
||||||
<el-input v-model="form.zentaoId" autocomplete="off"></el-input>
|
<el-input v-model="form.zentaoId" autocomplete="off"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
|
@ -294,6 +294,7 @@ export default {
|
||||||
special_characters_are_not_supported: 'Incorrect format (special characters are not supported and cannot end with \'-\')',
|
special_characters_are_not_supported: 'Incorrect format (special characters are not supported and cannot end with \'-\')',
|
||||||
tapd_id: 'TAPD Project ID',
|
tapd_id: 'TAPD Project ID',
|
||||||
jira_key: 'JIRA Project key',
|
jira_key: 'JIRA Project key',
|
||||||
|
zentao_id: 'Zentao Project ID',
|
||||||
},
|
},
|
||||||
member: {
|
member: {
|
||||||
create: 'Create',
|
create: 'Create',
|
||||||
|
|
|
@ -293,6 +293,7 @@ export default {
|
||||||
special_characters_are_not_supported: '格式错误(不支持特殊字符,且不能以\'-\'开头结尾)',
|
special_characters_are_not_supported: '格式错误(不支持特殊字符,且不能以\'-\'开头结尾)',
|
||||||
tapd_id: 'TAPD项目ID',
|
tapd_id: 'TAPD项目ID',
|
||||||
jira_key: 'JIRA项目key',
|
jira_key: 'JIRA项目key',
|
||||||
|
zentao_id: 'Zentao项目ID',
|
||||||
},
|
},
|
||||||
member: {
|
member: {
|
||||||
create: '添加成员',
|
create: '添加成员',
|
||||||
|
|
|
@ -295,6 +295,7 @@ export default {
|
||||||
special_characters_are_not_supported: '格式錯誤(不支持特殊字符,且不能以\'-\'開頭結尾)',
|
special_characters_are_not_supported: '格式錯誤(不支持特殊字符,且不能以\'-\'開頭結尾)',
|
||||||
tapd_id: 'TAPD項目ID',
|
tapd_id: 'TAPD項目ID',
|
||||||
jira_key: 'JIRA項目key',
|
jira_key: 'JIRA項目key',
|
||||||
|
zentao_id: 'Zentao項目ID',
|
||||||
},
|
},
|
||||||
member: {
|
member: {
|
||||||
create: '添加成員',
|
create: '添加成員',
|
||||||
|
|
Loading…
Reference in New Issue