fix: 部分 bug 修复

This commit is contained in:
baiqi 2024-07-23 15:38:46 +08:00 committed by Craftsman
parent 1342a56ff5
commit 269922dd1c
5 changed files with 9 additions and 5 deletions

View File

@ -27,7 +27,7 @@
v-if="props.activeFolderType === 'folder'"
v-model:model-value="fileType"
type="button"
class="file-show-type min-w-[92px]"
class="file-show-type min-w-[96px]"
@change="changeFileType"
>
<a-radio value="module" class="show-type-icon">{{ t('project.fileManagement.module') }}</a-radio>

View File

@ -75,7 +75,12 @@
></a-input>
</a-form-item>
<a-form-item :label="t('project.fileManagement.storagePlatform')" field="platform" asterisk-position="end">
<a-radio-group v-model:model-value="activeStorageForm.platform" type="button" @change="platformChange">
<a-radio-group
v-model:model-value="activeStorageForm.platform"
type="button"
:disabled="isEdit"
@change="platformChange"
>
<a-radio v-for="item of gitPlatformTypes" :key="item" :value="item">{{ item }}</a-radio>
</a-radio-group>
</a-form-item>

View File

@ -13,6 +13,7 @@
:ok-permission="['PROJECT_APPLICATION_BUG:UPDATE']"
@cancel="handleCancel(false)"
@confirm="handleConfirm"
@close="handleCancel(false)"
>
<a-form ref="formRef" class="rounded-[4px]" :model="form" layout="vertical">
<a-form-item field="platformKey" :label="t('project.menu.platformLabel')">
@ -183,6 +184,7 @@
const handleCancel = (shouldSearch: boolean) => {
emit('cancel', shouldSearch);
resetForm();
form.PLATFORM_KEY = '';
};
const handlePlatformChange = async (value: SelectValue) => {
platformRules.value = [];

View File

@ -63,7 +63,6 @@
import { TaskCenterEnum } from '@/enums/taskCenter';
import type { ExtractedKeys } from './utils';
import { on } from 'events';
const { t } = useI18n();

View File

@ -5,8 +5,6 @@
</template>
<script setup lang="ts">
import { ref } from 'vue';
import MsCard from '@/components/pure/ms-card/index.vue';
import TaskCenter from '@/views/project-management/taskCenter/component/taskCom.vue';
</script>