feat(theme): themeStyle
This commit is contained in:
parent
d8bc26d26b
commit
1067525dfd
Binary file not shown.
Before Width: | Height: | Size: 7.7 KiB |
|
@ -513,9 +513,12 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
.arco-menu-light {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
.arco-menu-vertical {
|
.arco-menu-vertical {
|
||||||
.menu-wrapper {
|
.menu-wrapper {
|
||||||
background-color: var(--color-bg-3);
|
background-color: var(--color-text-fff);
|
||||||
}
|
}
|
||||||
.arco-menu-inner {
|
.arco-menu-inner {
|
||||||
@apply flex flex-col justify-between;
|
@apply flex flex-col justify-between;
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<a-tag
|
<a-tag
|
||||||
style="border-color: #00c261; color: #00c261; background-color: transparent"
|
style="border-color: rgb(var(--success-6)); color: rgb(var(--success-6)); background-color: transparent"
|
||||||
bordered
|
bordered
|
||||||
@click="openScheduleModal(record)"
|
@click="openScheduleModal(record)"
|
||||||
>{{ t('apiScenario.schedule.abbreviation') }}
|
>{{ t('apiScenario.schedule.abbreviation') }}
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
<div v-if="record.scheduleConfig && !record.scheduleConfig.enable" class="float-right">
|
<div v-if="record.scheduleConfig && !record.scheduleConfig.enable" class="float-right">
|
||||||
<a-tooltip :content="t('apiScenario.schedule.table.tooltip.disable')" position="top">
|
<a-tooltip :content="t('apiScenario.schedule.table.tooltip.disable')" position="top">
|
||||||
<a-tag
|
<a-tag
|
||||||
style="border-color: #d4d4d8; color: #323233; background-color: transparent"
|
style="border-color: var(--color-text-n8); color: var(--color-text-1); background-color: transparent"
|
||||||
bordered
|
bordered
|
||||||
@click="openScheduleModal(record)"
|
@click="openScheduleModal(record)"
|
||||||
>{{ t('apiScenario.schedule.abbreviation') }}
|
>{{ t('apiScenario.schedule.abbreviation') }}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div v-if="projectDetail?.deleted" class="mb-6">
|
<div v-if="projectDetail?.deleted" class="mb-6">
|
||||||
<a-alert type="error">{{ t('project.basicInfo.alertDescription') }}</a-alert>
|
<a-alert type="error">{{ t('project.basicInfo.alertDescription') }}</a-alert>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrapper mb-6 flex justify-between">
|
<div class="wrapper mb-[16px] flex justify-between border-b border-[var(--color-text-n8)] pb-[16px]">
|
||||||
<span class="font-medium text-[var(--color-text-1)]">{{ t('project.basicInfo.basicInfo') }}</span>
|
<span class="font-medium text-[var(--color-text-1)]">{{ t('project.basicInfo.basicInfo') }}</span>
|
||||||
<a-button
|
<a-button
|
||||||
v-show="!projectDetail?.deleted"
|
v-show="!projectDetail?.deleted"
|
||||||
|
@ -12,39 +12,44 @@
|
||||||
>{{ t('project.basicInfo.edit') }}</a-button
|
>{{ t('project.basicInfo.edit') }}</a-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="project-info mb-6 h-[112px] bg-[var(--color-text-fff)] p-1">
|
<div class="detail-info mb-[16px] flex items-center gap-[12px]">
|
||||||
<div class="inner-wrapper rounded-md p-4">
|
<div class="flex items-center rounded-[var(--border-radius-small)] bg-[rgb(var(--primary-1))] p-[9px]">
|
||||||
<div class="detail-info flex flex-col justify-between rounded-md p-4">
|
<MsIcon type="icon-icon_project" class="text-[rgb(var(--primary-4))]" :size="22" />
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-col">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<span class="one-line-text mr-1 max-w-[300px] font-medium text-[var(--color-text-1)]">{{
|
<a-tooltip :content="projectDetail?.name">
|
||||||
projectDetail?.name
|
<div class="one-line-text mr-1 max-w-[300px] font-medium text-[var(--color-text-1)]">
|
||||||
}}</span>
|
{{ projectDetail?.name }}
|
||||||
<span class="button mr-1" :class="[projectDetail?.deleted ? 'delete-button' : 'enable-button']">
|
</div>
|
||||||
|
</a-tooltip>
|
||||||
|
<div class="button mr-1" :class="[projectDetail?.deleted ? 'delete-button' : 'enable-button']">
|
||||||
{{ projectDetail?.deleted ? t('project.basicInfo.deleted') : t('project.basicInfo.enable') }}
|
{{ projectDetail?.deleted ? t('project.basicInfo.deleted') : t('project.basicInfo.enable') }}
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div class="one-line-text text-[12px] text-[--color-text-4]">{{ projectDetail?.description }}</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<a-tooltip v-if="projectDetail?.description" :content="projectDetail?.description">
|
||||||
|
<div class="one-line-text text-[12px] text-[--color-text-4]">{{ 'projectDetail?.description' }}</div>
|
||||||
|
</a-tooltip>
|
||||||
</div>
|
</div>
|
||||||
<div class="ml-1 flex flex-col">
|
</div>
|
||||||
|
<div class="ml-1 grid grid-cols-2 gap-[16px] rounded-[var(--border-radius-small)] bg-[var(--color-text-n9)] p-[16px]">
|
||||||
<div class="label-item">
|
<div class="label-item">
|
||||||
<span class="label">{{ t('project.basicInfo.createBy') }}</span>
|
<span class="label">{{ t('project.basicInfo.createBy') }}:</span>
|
||||||
<a-tooltip v-if="translateTextToPX(projectDetail?.createUser) > 300" :content="projectDetail?.createUser">
|
<a-tooltip v-if="translateTextToPX(projectDetail?.createUser) > 300" :content="projectDetail?.createUser">
|
||||||
<span class="one-line-text" style="max-width: 300px">{{ projectDetail?.createUser }}</span>
|
<span class="one-line-text" style="max-width: 300px">{{ projectDetail?.createUser }}</span>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<span v-else>{{ projectDetail?.createUser }}</span>
|
<span v-else>{{ projectDetail?.createUser }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="label-item">
|
<div class="label-item">
|
||||||
<span class="label">{{ t('project.basicInfo.organization') }}</span>
|
<span class="label">{{ t('project.basicInfo.organization') }}:</span>
|
||||||
<MsTag>{{ projectDetail?.organizationName }}</MsTag>
|
<MsTag>{{ projectDetail?.organizationName }}</MsTag>
|
||||||
</div>
|
</div>
|
||||||
<div class="label-item">
|
<div class="label-item">
|
||||||
<span class="label">{{ t('project.basicInfo.resourcePool') }}</span>
|
<span class="label">{{ t('project.basicInfo.resourcePool') }}:</span>
|
||||||
<MsTag v-for="pool of projectDetail?.resourcePoolList" :key="pool.id">{{ pool.name }}</MsTag>
|
<MsTag v-for="pool of projectDetail?.resourcePoolList" :key="pool.id">{{ pool.name }}</MsTag>
|
||||||
</div>
|
</div>
|
||||||
<div class="label-item">
|
<div class="label-item">
|
||||||
<span class="label">{{ t('project.basicInfo.createTime') }}</span>
|
<span class="label">{{ t('project.basicInfo.createTime') }}:</span>
|
||||||
<span>{{ dayjs(projectDetail?.createTime).format('YYYY-MM-DD HH:mm:ss') }}</span>
|
<span>{{ dayjs(projectDetail?.createTime).format('YYYY-MM-DD HH:mm:ss') }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -58,6 +63,7 @@
|
||||||
import { inject, onBeforeMount, ref } from 'vue';
|
import { inject, onBeforeMount, ref } from 'vue';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
|
||||||
|
import MsIcon from '@/components/pure/ms-icon-font/index.vue';
|
||||||
import MsTag from '@/components/pure/ms-tag/ms-tag.vue';
|
import MsTag from '@/components/pure/ms-tag/ms-tag.vue';
|
||||||
import UpdateProjectModal from './components/updateProjectModal.vue';
|
import UpdateProjectModal from './components/updateProjectModal.vue';
|
||||||
|
|
||||||
|
@ -106,21 +112,13 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
.project-info {
|
|
||||||
border-radius: 4px;
|
|
||||||
box-shadow: 0 0 10px rgb(120 56 135/5%);
|
|
||||||
.inner-wrapper {
|
|
||||||
height: 100%;
|
|
||||||
background: rgb(var(--primary-1));
|
|
||||||
.detail-info {
|
.detail-info {
|
||||||
height: 100%;
|
|
||||||
background: url('@/assets/images/basic_bg.png');
|
|
||||||
background-size: cover;
|
|
||||||
.button {
|
.button {
|
||||||
|
padding: 0 4px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
@apply inline-block px-2 py-1;
|
@apply inline-block;
|
||||||
}
|
}
|
||||||
.enable-button {
|
.enable-button {
|
||||||
color: rgb(var(--success-5));
|
color: rgb(var(--success-5));
|
||||||
|
@ -135,17 +133,10 @@
|
||||||
background: rgb(var(--danger-1));
|
background: rgb(var(--danger-1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
.label-item {
|
.label-item {
|
||||||
margin-bottom: 16px;
|
|
||||||
height: 22px;
|
height: 22px;
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
span {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
.label {
|
.label {
|
||||||
margin-right: 16px;
|
|
||||||
width: 120px;
|
width: 120px;
|
||||||
color: var(--color-text-3);
|
color: var(--color-text-3);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue