fix(全局): bugFix

This commit is contained in:
baiqi 2024-06-26 14:39:47 +08:00 committed by 刘瑞斌
parent cf807e0b11
commit b1ad7f87d8
11 changed files with 35 additions and 10 deletions

View File

@ -281,7 +281,13 @@
width: 100%; width: 100%;
border: 1px solid var(--color-text-n8); border: 1px solid var(--color-text-n8);
background-color: var(--color-text-fff); background-color: var(--color-text-fff);
&:not(:disabled, .arco-input-tag-disabled, .arco-input-disabled, .arco-select-view-disabled):hover { &:not(
:disabled,
.arco-input-tag-disabled,
.arco-input-disabled,
.arco-textarea-disabled,
.arco-select-view-disabled
):hover {
border-color: rgb(var(--primary-5)) !important; border-color: rgb(var(--primary-5)) !important;
background-color: white; background-color: white;
} }
@ -291,10 +297,16 @@
} }
.arco-input-tag-disabled, .arco-input-tag-disabled,
.arco-select-view-disabled, .arco-select-view-disabled,
.arco-textarea-disabled,
.arco-input-disabled { .arco-input-disabled {
border-color: var(--color-text-n8) !important; border-color: var(--color-text-n8) !important;
background-color: var(--color-text-n8) !important; background-color: var(--color-text-n8) !important;
} }
.arco-textarea-disabled {
.arco-textarea {
@apply cursor-not-allowed;
}
}
.arco-select, .arco-select,
.arco-input-tag { .arco-input-tag {
.arco-icon { .arco-icon {

View File

@ -3,6 +3,7 @@
v-model="inputValue" v-model="inputValue"
:placeholder="placeholder" :placeholder="placeholder"
:default-visibility="true" :default-visibility="true"
:disabled="props.disabled"
allow-clear allow-clear
@clear="clearHandler" @clear="clearHandler"
@input="inputHandler" @input="inputHandler"
@ -12,9 +13,10 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, watch } from 'vue'; import { ref, watch } from 'vue';
defineProps<{ const props = defineProps<{
placeholder?: string; placeholder?: string;
value?: string; value?: string;
disabled?: boolean;
}>(); }>();
const inputValue = ref(''); const inputValue = ref('');
const emits = defineEmits<{ const emits = defineEmits<{

View File

@ -43,6 +43,7 @@
formRule: FormItem[]; // formRule: FormItem[]; //
formItem: FormRuleItem[]; // formItem: FormRuleItem[]; //
api: any; // api: any; //
disabled?: boolean; //
}>(); }>();
const emit = defineEmits(['update:api', 'update', 'update:formItem', 'change', 'mounted']); const emit = defineEmits(['update:api', 'update', 'update:formItem', 'change', 'mounted']);
@ -328,6 +329,9 @@
function handleMounted() { function handleMounted() {
// setValue(); // setValue();
if (props.disabled) {
fApi.value.disabled(true);
}
emit('mounted'); emit('mounted');
} }

View File

@ -6,6 +6,7 @@
allow-search allow-search
allow-clear allow-clear
:multiple="props.multiple" :multiple="props.multiple"
:disabled="props.disabled"
@search="searchHandler" @search="searchHandler"
> >
<a-option v-for="opt of optionsList" :key="opt.value" :value="opt.value">{{ opt.label }}</a-option> <a-option v-for="opt of optionsList" :key="opt.value" :value="opt.value">{{ opt.label }}</a-option>
@ -37,6 +38,7 @@
options?: { label: string; value: string }[]; options?: { label: string; value: string }[];
multiple?: boolean; // multiple?: boolean; //
placeholder?: string; placeholder?: string;
disabled?: boolean;
}>(), }>(),
{ {
inputSearch: false, inputSearch: false,

View File

@ -0,0 +1,5 @@
export default {
'ms.json.schema.name': '参数名称',
'ms.json.schema.type': '类型',
'ms.json.schema.value': '参数值',
};

View File

@ -166,8 +166,8 @@ export default {
'common.resourceDeleted': 'Resource has been deleted', 'common.resourceDeleted': 'Resource has been deleted',
'common.resourceExpired': 'Link has failed, please get it again', 'common.resourceExpired': 'Link has failed, please get it again',
'common.refresh': 'Refresh', 'common.refresh': 'Refresh',
'common.searchByIdName': 'Search by ID or name', 'common.searchByIdName': 'Search by ID/name',
'common.searchByNameAndId': 'Search by ID, name, or tag', 'common.searchByIDNameTag': 'Search by ID/name/tag',
'common.archive': 'archive', 'common.archive': 'archive',
'common.running': 'Running', 'common.running': 'Running',
'common.unExecute': 'Pending', 'common.unExecute': 'Pending',

View File

@ -656,6 +656,9 @@
onBeforeMount(() => { onBeforeMount(() => {
initProtocolList(); initProtocolList();
if (props.selectedProtocols.length > 0) {
loadApiList(true);
}
}); });
const tableSelected = ref<(string | number)[]>([]); const tableSelected = ref<(string | number)[]>([]);

View File

@ -17,10 +17,7 @@
@change="handelFormCreateChange" @change="handelFormCreateChange"
/> />
<!-- 自定义字段结束 --> <!-- 自定义字段结束 -->
<div <div v-if="!props.isPlatformDefaultTemplate" class="baseItem">
v-if="!props.isPlatformDefaultTemplate && hasAnyPermission(['PROJECT_BUG:READ+UPDATE'])"
class="baseItem"
>
<a-form <a-form
:model="{}" :model="{}"
:label-col-props="{ :label-col-props="{

View File

@ -17,7 +17,7 @@
</a-button> </a-button>
<a-button <a-button
v-if="currentPlatform !== 'Local'" v-if="currentPlatform !== 'Local'"
v-permission="['PROJECT_BUG:READ+ADD']" v-permission="['PROJECT_BUG:READ+UPDATE']"
:loading="!isComplete" :loading="!isComplete"
type="outline" type="outline"
@click="handleSync" @click="handleSync"

View File

@ -261,7 +261,7 @@ export default {
'caseManagement.featureCase.zentao': '禅道', 'caseManagement.featureCase.zentao': '禅道',
'caseManagement.featureCase.jira': 'JIRA', 'caseManagement.featureCase.jira': 'JIRA',
'caseManagement.featureCase.tapd': 'TAPD', 'caseManagement.featureCase.tapd': 'TAPD',
'caseManagement.featureCase.searchPlaceholder': '通过ID、名称或标签搜索', 'caseManagement.featureCase.searchPlaceholder': '通过 ID/名称/标签搜索',
'caseManagement.featureCase.ModuleOwned': '所属模块', 'caseManagement.featureCase.ModuleOwned': '所属模块',
'caseManagement.featureCase.excelImportTip': '仅支持 xls/xlsx 格式的文件', 'caseManagement.featureCase.excelImportTip': '仅支持 xls/xlsx 格式的文件',
'caseManagement.featureCase.xmindImportTip': '仅支持xmind格式的文件', 'caseManagement.featureCase.xmindImportTip': '仅支持xmind格式的文件',