Skip to content

Commit

Permalink
测试问题修复 (#1347)
Browse files Browse the repository at this point in the history
* Merge pull request #1337 from benero/bugfix_user_profile

minor: 移除用户敏感信息
, # Reviewed, transaction id: 9596

* fix: 默认项目无法编辑修复 --bug=125474537
# Reviewed, transaction id: 9612

* fix: 连续点击创建服务按钮会创建多个相同服务问题修复 --bug=125474587
# Reviewed, transaction id: 9663

* fix: 服务列表页按照类型搜索参数key不正确问题修复 --bug=125474563
# Reviewed, transaction id: 9666

* fix: 关单、挂起单据操作弹窗原因表单增加最大字符长度为1000限制
# Reviewed, transaction id: 9668

* refactor: 更新版本发布信息
# Reviewed, transaction id: 9671
  • Loading branch information
luofann authored Jun 12, 2024
1 parent 6e51698 commit 92c28f6
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ author: 蓝鲸智云
category: 办公应用
introduction: 流程服务是蓝鲸推出的轻量级ITSM,通过可自定义设计的流程模块,覆盖IT服务中的不同管理活动或应用场景。帮助企业用户规范内部管理流程,提升沟通及管理效率。
introduction_en: bk_itsm is a lightweight ITSM created by Blueking. It covers different application scenarios in IT services through customizable workflows and help enterprise users to implement standardize IT workflow, improve communication and management efficiency.
version: 2.6.20
version: 2.6.21
language: python
is_use_celery: True
is_use_celery_with_gevent: False
Expand Down
2 changes: 1 addition & 1 deletion app_desc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spec_version: 2
app_version: "2.6.20"
app_version: "2.6.21"
app:
region: default
bk_app_code: bk_itsm
Expand Down
8 changes: 7 additions & 1 deletion docs/RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog
## [Version: 2.6.20] - 2024-06-6
## [Version: 2.6.21] - 2024-06-12
【修复】默认项目无法编辑修复
【修复】连续点击创建服务按钮会创建多个相同服务问题修复
【修复】服务列表页按照类型搜索参数key不正确问题修复
【修复】关单、挂起单据操作弹窗原因表单增加最大字符长度为1000限制

## [Version: 2.6.20] - 2024-06-06
【修复】运营分析页面时间控件位置计算不准确修复
【修复】单据评论编辑弹窗去掉评论类型切换icon
【修复】移除工单接口人员信息
Expand Down
8 changes: 7 additions & 1 deletion docs/RELEASE_EN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog
## [Version: 2.6.20] - 2024-06-6
## [Version: 2.6.21] - 2024-06-12
【Fixed】Fixed the issue where the default project could not be edited.
【Fixed】Fixed the issue where multiple identical services could be created by repeatedly clicking the Create Service button.
【Fixed】Fixed the issue where the search parameter key was incorrect when filtering the service list by type.
【Fixed】Added a maximum character limit of 1000 to the reason form in the close and suspend document operation pop-ups.

## [Version: 2.6.20] - 2024-06-06
【Fixed】Fixed the issue where the time control position on the Operations Analysis page was calculated inaccurately.
【Fixed】Removed the comment type switch icon from the document comment edit popup.
【Fix】Remove personnel information from the work order interface.
Expand Down
4 changes: 2 additions & 2 deletions frontend/pc/src/views/project/editProjectDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@
trigger: 'blur',
},
{
regex: /^[a-z][a-z0-9-_]+$/,
message: '由小写字母,数字,下划线,横线组成,必须以英文字母开头',
regex: /^[a-z0-9-_]+$/,
message: '由小写字母,数字,下划线,横线组成',
trigger: 'blur',
},
{
Expand Down
24 changes: 15 additions & 9 deletions frontend/pc/src/views/service/editService/ServiceFormStep.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
:mask-close="false"
:title="$t(`m['创建服务']`)"
:auto-close="false"
:loading="isSubmitting"
@confirm="onBasicFormSubmit"
@cancel="onBasicFormCancel">
<bk-form
Expand Down Expand Up @@ -473,22 +474,27 @@
this.detailLoading = false;
});
},
onBasicFormSubmit() {
if (this.isSubmitting) {
return;
}
this.$refs.basicForm.validate().then(async () => {
async onBasicFormSubmit() {
try {
if (this.isSubmitting) {
return;
}
this.isSubmitting = true;
console.log(this.isSubmitting);
await this.$refs.basicForm.validate();
const params = JSON.parse(JSON.stringify(this.formData));
params.id = this.serviceId || undefined;
params.project_key = this.$store.state.project.id;
this.isSubmitting = true;
if (this.type === 'edit') {
await this.updateServiceInfo(params);
} else {
await this.createService(params);
}
} catch (e) {
console.error(e);
} finally {
this.isSubmitting = false;
});
}
},
onBasicFormCancel() {
if (this.type === 'new') {
Expand Down Expand Up @@ -518,7 +524,7 @@
},
// 创建服务
createService(params) {
this.$store.dispatch('serviceEntry/createService', params).then(res => {
return this.$store.dispatch('serviceEntry/createService', params).then(res => {
this.$bkMessage({
message: this.$t('m.deployPage["保存成功"]'),
theme: 'success',
Expand All @@ -542,7 +548,7 @@
},
// 修改服务
updateServiceInfo(params) {
this.$store.dispatch('serviceEntry/updateService', params).then(res => {
return this.$store.dispatch('serviceEntry/updateService', params).then(res => {
this.$bkMessage({
message: this.$t('m.serviceConfig["修改成功"]'),
theme: 'success',
Expand Down
2 changes: 1 addition & 1 deletion frontend/pc/src/views/service/serviceList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@
{
name: this.$t('m.serviceConfig["类型"]'),
type: 'select',
typeKey: 'key',
typeKey: 'service_key',
value: '',
list: [],
},
Expand Down
2 changes: 2 additions & 0 deletions frontend/pc/src/views/ticket/details/StepSubmitDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
:placeholder="$t(`m.newCommon['请输入挂起原因']`)"
:type="'textarea'"
:rows="3"
:maxlength="1000"
v-model="formInfo.suspend_message"
>
</bk-input>
Expand Down Expand Up @@ -91,6 +92,7 @@
:placeholder="$t(`m.newCommon['请输入关闭原因']`)"
:type="'textarea'"
:rows="3"
:maxlength="1000"
v-model="formInfo.close_message"
>
</bk-input>
Expand Down

0 comments on commit 92c28f6

Please sign in to comment.