123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <script setup>
- import { propertyData } from "../configs/properites";
- import TitleHeader from "@/views/modules/project-config/com/titleHeader.vue";
- const emits = defineEmits(["onClickItem"]);
- // 当点击了项目
- const handleClickItem = (item) => {
- emits("onClickItem", item);
- };
- const router = useRouter();
- const goGlobalConfig = () => {
- router.push({ path: "/main/global-config" });
- };
- </script>
- <template>
- <div class="project-message-col">
- <TitleHeader> 工程信息</TitleHeader>
- <div class="project-msg-item">
- <span class="text-l">产品:</span>
- <span class="text-r">{{ "控制面板" }}</span>
- <span class="edit">
- <svg-icon icon-class="homeIcon2" />
- </span>
- </div>
- <div class="project-msg-item">
- <span class="text-l">工程类型:</span
- ><span class="text-r">{{ "控制面板" }}</span>
- </div>
- <div class="project-msg-item">
- <span class="text-l">版本:</span
- ><span class="text-r">{{ "控制面板" }}</span>
- </div>
- <div class="project-msg-item">
- <span class="text-l">创建时间:</span
- ><span class="text-r">{{ "控制面板" }}</span>
- </div>
- <div class="project-all-config" @click="goGlobalConfig">
- <svg-icon icon-class="project-config" />
- 全局配置
- </div>
- <div class="project-test-btn">
- <div class="name">测试项目</div>
- <div class="btn">
- <span>-</span>
- <span>+</span>
- </div>
- </div>
- <div class="project-list-cont">
- <div
- class="project-list-item"
- v-for="item in 10"
- :key="index"
- @click="handleClickItem(item)"
- >
- {{ item }}
- </div>
- </div>
- </div>
- </template>
- <style scoped lang="scss">
- .project-message-col {
- width: 200px;
- flex-shrink: 0;
- height: calc(100vh - $main-header-height);
- background-color: $hj-black-2;
- border-right: 1px solid $hj-white-4;
- .project-msg-item {
- position: relative;
- padding: 0 11px;
- margin-bottom: 10px;
- .text-l {
- font-size: var(--hj-fs-12);
- color: var(--fc-color-3);
- }
- .text-r {
- font-size: var(--hj-fs-14);
- color: var(--hj-white-1);
- }
- .edit {
- cursor: pointer;
- position: absolute;
- right: 20px;
- color: var(--hj-white-1);
- }
- }
- .project-all-config {
- width: 130px;
- height: 36px;
- line-height: 36px;
- margin: 0 auto;
- background: var(--fc-color-7);
- color: var(--hj-white-1);
- text-align: center;
- border-radius: 4px 4px 4px 4px;
- cursor: pointer;
- }
- .project-test-btn {
- display: flex;
- justify-content: space-between;
- margin: 0 12px;
- margin-top: 12px;
- position: relative;
- padding: 14px 0;
- &::before {
- position: absolute;
- top: 0;
- content: "";
- display: block;
- width: 100%;
- height: 1px;
- background-color: var(--hj-white-4);
- }
- .name {
- font-size: var(--hj-fs-14);
- font-weight: 400;
- color: var(--hj-white-1);
- }
- .btn {
- span {
- cursor: pointer;
- display: inline-block;
- width: 18px;
- height: 18px;
- text-align: center;
- line-height: 16px;
- border-radius: 0px 0px 0px 0px;
- border: 2px solid #ffffff;
- color: var(--hj-white-1);
- &:nth-of-type(2) {
- margin-left: 12px;
- }
- }
- }
- }
- .project-list-cont {
- height: 300px;
- overflow-y: auto;
- .project-list-item {
- cursor: pointer;
- font-size: var(--hj-fs-12);
- color: var(--hj-white-1);
- margin: 0 12px;
- margin-bottom: 12px;
- height: 36px;
- line-height: 36px;
- text-align: center;
- background: rgba(59, 124, 255, 0.5);
- border-radius: 4px 4px 4px 4px;
- border: 1px solid #3b7cff;
- }
- }
- }
- </style>
|