Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
chore: batch clone service
Browse files Browse the repository at this point in the history
  • Loading branch information
hibig committed Aug 24, 2023
1 parent f5c6af0 commit c2248a0
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 13 deletions.
2 changes: 2 additions & 0 deletions src/assets/style/arco-reset/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
.arco-form-item-extra .tips {
color: var(--color-text-3);
font-size: 12px;
line-height: 16px;
opacity: 0.7;
}

Expand All @@ -57,6 +58,7 @@
}

.arco-form-item-extra {
margin-top: 0;
text-align: left;
}
}
4 changes: 4 additions & 0 deletions src/assets/style/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
.arco-form-item-extra {
display: none;
}

.arco-form-item-message {
line-height: 16px;
}
}
}
// .arco-textarea-word-limit,.arco-input-word-limit {
Expand Down
5 changes: 4 additions & 1 deletion src/components/hint-input/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
></span
>
<a-tooltip v-if="popupInfo" :content="popupInfo">
<icon-info-circle style="stroke-linecap: initial; cursor: default" />
<icon-info-circle
style="stroke-linecap: initial; cursor: default"
class="m-l-2"
/>
</a-tooltip>
</span>
<input
Expand Down
1 change: 0 additions & 1 deletion src/components/hint-input/style/input.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
left: @paddingLeft;
display: flex;
align-items: center;
justify-content: space-between;
color: var(--color-text-3);
font-size: 12px;
transform: translateY(calc(-50% + 1px));
Expand Down
1 change: 0 additions & 1 deletion src/components/seal-form/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
z-index: 5;
display: flex;
align-items: center;
justify-content: space-between;
color: var(--color-text-3);
font-size: 12px;
transform: translateY(calc(-50% + 1px));
Expand Down
13 changes: 5 additions & 8 deletions src/views/application-management/services/pages/clone.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,8 @@
:loading="formData.environmentID === item.id && submitLoading"
:status="setStatus(item.id)"
>
<icon-check-circle-fill
v-if="_.includes(succeedList, item.id)"
/>
<icon-close-circle-fill
v-if="_.includes(failedList, item.id)"
/>
<span v-if="_.includes(failedList, item.id)">
<icon-check-circle-fill v-if="succeedList.has(item.id)" />
<span v-if="failedList.has(item.id) && !submitLoading">
<a-tooltip :content="errorMap.get(item.id)">
<i class="iconfont icon-warning-filling mleft-5"></i>
</a-tooltip>
Expand Down Expand Up @@ -168,6 +163,7 @@
});
const setStatus = (id) => {
if (submitLoading.value) return 'normal';
if (succeedList.value.has(id)) {
return 'success';
}
Expand Down Expand Up @@ -265,12 +261,13 @@
}
};
onBeforeRouteLeave(async (to, from) => {
if (!_.isEqual(copyFormData, formData)) {
if (!_.isEqual(copyFormData, formData) || failedList.value.size) {
beforeLeaveCallback({
to,
from,
onOk: () => {
copyFormData = _.cloneDeep(formData);
failedList.value.clear();
router.push({
name: to.name as string
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
value: 'Gitlab'
}
];
const sealCatalog = 'https://github.com/terraform-seal-modules';
const sealCatalog = 'https://github.com/walrus-catalog';
const emit = defineEmits(['save', 'update:show', 'update:dataInfo']);
const formref = ref();
const loading = ref(false);
Expand Down
3 changes: 2 additions & 1 deletion src/views/operation-hub/templates/pages/detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
:hide-label="pageAction === PageAction.EDIT"
:disabled="!!id"
:validate-trigger="['change']"
:style="{ width: `${InputWidth.LARGE}px` }"
:rules="[
{
required: true,
Expand All @@ -63,7 +64,7 @@
formData.name || '-'
}}</span>
<template v-if="pageAction === PageAction.EDIT" #extra>
<span class="tips">{{ $t('common.validate.labelName') }}</span>
<div class="tips">{{ $t('common.validate.labelName') }}</div>
</template>
</a-form-item>
<a-form-item
Expand Down

0 comments on commit c2248a0

Please sign in to comment.