|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div style="position: relative">
|
|
<div style="position: relative">
|
|
|
- <el-card :bordered="false" class="proCard" style="position: relative">
|
|
|
|
|
|
|
+ <div class="top-content">
|
|
|
|
|
+ <!-- <el-card :bordered="false" class="proCard" style="position: relative; padding: 0px"> -->
|
|
|
<div style="display: flex; position: relative">
|
|
<div style="display: flex; position: relative">
|
|
|
<img src="~@/assets/icons/back.png" alt="" @click="backPage" class="back-btn" />
|
|
<img src="~@/assets/icons/back.png" alt="" @click="backPage" class="back-btn" />
|
|
|
<el-select
|
|
<el-select
|
|
@@ -17,7 +18,7 @@
|
|
|
/>
|
|
/>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
<div v-if="companySelet" style="display: flex; margin-top: 8px">
|
|
<div v-if="companySelet" style="display: flex; margin-top: 8px">
|
|
|
- <div style="font-size: 20px; margin-left: 29px; margin-right: 4px">选择标签</div>
|
|
|
|
|
|
|
+ <div class="label-workshop">选择标签:</div>
|
|
|
<div>
|
|
<div>
|
|
|
<el-radio-group v-model="label" size="10px" :border="true" style="display: flex">
|
|
<el-radio-group v-model="label" size="10px" :border="true" style="display: flex">
|
|
|
<el-radio-button
|
|
<el-radio-button
|
|
@@ -50,62 +51,84 @@
|
|
|
<el-button type="info" plain class="btn-top-save" @click="saveConfig">保存为主页</el-button>
|
|
<el-button type="info" plain class="btn-top-save" @click="saveConfig">保存为主页</el-button>
|
|
|
<!-- <div>按钮</div> -->
|
|
<!-- <div>按钮</div> -->
|
|
|
</div>
|
|
</div>
|
|
|
- </el-card>
|
|
|
|
|
|
|
+ </div>
|
|
|
<div style="display: flex">
|
|
<div style="display: flex">
|
|
|
<div class="workshop-content">
|
|
<div class="workshop-content">
|
|
|
<div class="workshop-title">车间列表</div>
|
|
<div class="workshop-title">车间列表</div>
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="searchWorkshop"
|
|
v-model="searchWorkshop"
|
|
|
class="w-50 m-2"
|
|
class="w-50 m-2"
|
|
|
- placeholder="搜索功能"
|
|
|
|
|
- :prefix-icon="Search"
|
|
|
|
|
|
|
+ placeholder="请输入搜索内容"
|
|
|
|
|
+ :suffix-icon="Search"
|
|
|
style="width: 255px; margin-top: 11px"
|
|
style="width: 255px; margin-top: 11px"
|
|
|
/>
|
|
/>
|
|
|
- <ul
|
|
|
|
|
|
|
+ <ul v-if="workshopList"
|
|
|
><li
|
|
><li
|
|
|
v-for="item in workshopList"
|
|
v-for="item in workshopList"
|
|
|
:key="item.id"
|
|
:key="item.id"
|
|
|
class="workshop-list"
|
|
class="workshop-list"
|
|
|
:class="{ 'active-workshop': activeId === item.id }"
|
|
:class="{ 'active-workshop': activeId === item.id }"
|
|
|
@click="configWorkshop(item)"
|
|
@click="configWorkshop(item)"
|
|
|
- >{{ item.value }}</li
|
|
|
|
|
|
|
+ ><el-icon><House /></el-icon
|
|
|
|
|
+ ><div style="margin-left: 5px; margin-top: -4px">{{ item.value }}</div></li
|
|
|
></ul
|
|
></ul
|
|
|
>
|
|
>
|
|
|
|
|
+ <div v-else class="workshop-tip">提示:请先选择相应公司和照片</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|
|
|
<div class="upload" :class="{ 'avatar-show': imageUrl }">
|
|
<div class="upload" :class="{ 'avatar-show': imageUrl }">
|
|
|
<el-upload
|
|
<el-upload
|
|
|
class="avatar-uploader"
|
|
class="avatar-uploader"
|
|
|
- list-type="picture-card"
|
|
|
|
|
:auto-upload="false"
|
|
:auto-upload="false"
|
|
|
:on-change="onSelectfile"
|
|
:on-change="onSelectfile"
|
|
|
:before-upload="beforeAvatarUpload"
|
|
:before-upload="beforeAvatarUpload"
|
|
|
>
|
|
>
|
|
|
- <div>
|
|
|
|
|
- <el-icon class="avatar-uploader-icon"><Plus /></el-icon>
|
|
|
|
|
- <div class="uploader-text">上传照片</div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <!-- <el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon> -->
|
|
|
|
|
|
|
+ <template #trigger>
|
|
|
|
|
+ <img src="~@/assets/icons/upload.png" alt="" class="upload-pic" />
|
|
|
|
|
+ </template>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
- <div class="upload-tip">只支持.jpg格式</div></div
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <!-- <div class="upload-tip">只支持.jpg格式</div> -->
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
<img v-if="imageUrl" :src="imageUrl" class="preview-image" />
|
|
<img v-if="imageUrl" :src="imageUrl" class="preview-image" />
|
|
|
<!-- <div>222</div> -->
|
|
<!-- <div>222</div> -->
|
|
|
</div></div
|
|
</div></div
|
|
|
>
|
|
>
|
|
|
- <ConfigDrawer
|
|
|
|
|
|
|
+ <el-tooltip
|
|
|
|
|
+ class="box-item position-tooltip"
|
|
|
|
|
+ effect="dark"
|
|
|
|
|
+ content="显示侧边栏"
|
|
|
|
|
+ offset="12"
|
|
|
|
|
+ placement="left"
|
|
|
|
|
+ @click="showEditConfig"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-if="leftShow"
|
|
|
|
|
+ class="circle-rectangle"
|
|
|
|
|
+ :class="{ 'shape-shadow': shadow }"
|
|
|
|
|
+ @mouseover="shadowAdd"
|
|
|
|
|
+ @mouseout="shadowRemove"
|
|
|
|
|
+ @click="dialogReopen"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-icon class="left-icon" size="16px"><ArrowLeftBold /></el-icon>
|
|
|
|
|
+ <el-icon style="margin-top: 7px" size="16px"><ArrowLeftBold /></el-icon>
|
|
|
|
|
+ <!-- <el-icon class="left-icon"><DArrowLeft /></el-icon> -->
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- <img src="~@/assets/icons/slide.png" alt="" class="dialog-btn" /> -->
|
|
|
|
|
+ </el-tooltip>
|
|
|
|
|
+
|
|
|
|
|
+ <ConfigDialog
|
|
|
ref="configDrawer"
|
|
ref="configDrawer"
|
|
|
:title="configTitle"
|
|
:title="configTitle"
|
|
|
- @on-close="visibleDrawer = false"
|
|
|
|
|
|
|
+ @on-close="onClose"
|
|
|
class="drawer-position"
|
|
class="drawer-position"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
import { ref } from 'vue';
|
|
import { ref } from 'vue';
|
|
|
- import { Refresh, Search, Delete, Plus } from '@element-plus/icons-vue';
|
|
|
|
|
- import ConfigDrawer from './component/ConfigDrawer.vue';
|
|
|
|
|
|
|
+ import { Refresh, Search, ArrowLeftBold, House } from '@element-plus/icons-vue';
|
|
|
|
|
+ import ConfigDialog from './component/ConfigDrawer.vue';
|
|
|
// import { picList } from '../constant';
|
|
// import { picList } from '../constant';
|
|
|
import { labelList, companyList, workshopList } from './constant';
|
|
import { labelList, companyList, workshopList } from './constant';
|
|
|
import { ElMessage, genFileId } from 'element-plus';
|
|
import { ElMessage, genFileId } from 'element-plus';
|
|
@@ -177,12 +200,35 @@
|
|
|
activeId.value = item.id;
|
|
activeId.value = item.id;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ const showEditConfig = () => {};
|
|
|
// const label = ref('');
|
|
// const label = ref('');
|
|
|
|
|
+
|
|
|
|
|
+ const shadow = ref(false);
|
|
|
|
|
+ const shadowAdd = () => {
|
|
|
|
|
+ shadow.value = true;
|
|
|
|
|
+ };
|
|
|
|
|
+ const shadowRemove = () => {
|
|
|
|
|
+ shadow.value = false;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ const dialogReopen = () => {
|
|
|
|
|
+ configDrawer.value.openDialog();
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ const leftShow = ref(false);
|
|
|
|
|
+ const onClose = (val) => {
|
|
|
|
|
+ leftShow.value = val;
|
|
|
|
|
+ };
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
- body .proCard .el-card__body {
|
|
|
|
|
|
|
+ // .proCard {
|
|
|
|
|
+ // padding: 0px;
|
|
|
|
|
+ // }
|
|
|
|
|
+ .top-content {
|
|
|
padding: 0px;
|
|
padding: 0px;
|
|
|
|
|
+ background-color: white;
|
|
|
|
|
+ position: relative;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.back-btn {
|
|
.back-btn {
|
|
@@ -194,7 +240,7 @@
|
|
|
|
|
|
|
|
.btn-top-refresh {
|
|
.btn-top-refresh {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
- // margin-top: 19px;
|
|
|
|
|
|
|
+ margin-top: 14px;
|
|
|
right: 137px;
|
|
right: 137px;
|
|
|
// left: 1437px;
|
|
// left: 1437px;
|
|
|
}
|
|
}
|
|
@@ -202,36 +248,70 @@
|
|
|
.btn-top-save {
|
|
.btn-top-save {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
// margin-top: 8px;
|
|
// margin-top: 8px;
|
|
|
|
|
+ margin-top: 6px;
|
|
|
right: 15px;
|
|
right: 15px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ .label-workshop {
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ margin-left: 36px;
|
|
|
|
|
+ margin-top: 6px;
|
|
|
|
|
+ margin-right: 16px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.workshop-content {
|
|
.workshop-content {
|
|
|
- margin-top: 34px;
|
|
|
|
|
- margin-left: 10px;
|
|
|
|
|
|
|
+ margin-top: 10px;
|
|
|
|
|
+ background-color: white;
|
|
|
|
|
+ // padding-left: 15px;
|
|
|
|
|
+ // margin-left: 10px;
|
|
|
margin-right: 10px;
|
|
margin-right: 10px;
|
|
|
width: 271px;
|
|
width: 271px;
|
|
|
- height: 780px;
|
|
|
|
|
|
|
+ height: 800px;
|
|
|
border: 1px solid #b3b3b3;
|
|
border: 1px solid #b3b3b3;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.workshop-title {
|
|
.workshop-title {
|
|
|
- font-size: 20px;
|
|
|
|
|
- margin-top: 15px;
|
|
|
|
|
- margin-left: 13px;
|
|
|
|
|
- font-weight: 900;
|
|
|
|
|
- color: #3d3d3d;
|
|
|
|
|
- opacity: 0.4;
|
|
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ margin-top: 25px;
|
|
|
|
|
+ margin-left: 15px;
|
|
|
|
|
+ font-weight: 500;
|
|
|
|
|
+ color: rgba(0, 0, 0, 0.85);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // .label-select {
|
|
|
|
|
+ // }
|
|
|
|
|
+ // .el-radio-button__inner
|
|
|
|
|
+ ::v-deep.el-radio-button {
|
|
|
|
|
+ margin-right: 8px;
|
|
|
|
|
+ box-shadow: none;
|
|
|
|
|
+ border-radius: 4px !important;
|
|
|
|
|
+ border: 1px solid #d9d9d9 !important;
|
|
|
|
|
+ }
|
|
|
.workshop-list {
|
|
.workshop-list {
|
|
|
- font-size: 20px;
|
|
|
|
|
|
|
+ font-size: 14px;
|
|
|
width: 211px;
|
|
width: 211px;
|
|
|
- margin-top: 15px;
|
|
|
|
|
- margin-left: 13px;
|
|
|
|
|
- font-weight: 350;
|
|
|
|
|
- color: #3d3d3d;
|
|
|
|
|
- opacity: 0.4;
|
|
|
|
|
|
|
+ margin-top: 10px;
|
|
|
|
|
+ margin-left: 15px;
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ color: rgba(0, 0, 0, 0.85);
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .workshop-tip {
|
|
|
|
|
+ margin-left: 15px;
|
|
|
|
|
+ margin-top: 12px;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ color: rgba(0, 0, 0, 0.65);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .upload-pic {
|
|
|
|
|
+ z-index: 99;
|
|
|
|
|
+ width: 593px;
|
|
|
|
|
+ height: 435px;
|
|
|
|
|
+ // margin-left: ;
|
|
|
}
|
|
}
|
|
|
.active-workshop {
|
|
.active-workshop {
|
|
|
background: rgba(24, 144, 255, 0.502);
|
|
background: rgba(24, 144, 255, 0.502);
|
|
@@ -240,8 +320,8 @@
|
|
|
.avatar-uploader .el-upload {
|
|
.avatar-uploader .el-upload {
|
|
|
border: 1px dashed var(--el-border-color);
|
|
border: 1px dashed var(--el-border-color);
|
|
|
border-radius: 6px;
|
|
border-radius: 6px;
|
|
|
- width: 260px;
|
|
|
|
|
- height: 280px;
|
|
|
|
|
|
|
+ width: 593px;
|
|
|
|
|
+ height: 435px;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
@@ -253,29 +333,29 @@
|
|
|
border-color: var(--el-color-primary);
|
|
border-color: var(--el-color-primary);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- .el-icon.avatar-uploader-icon {
|
|
|
|
|
- font-size: 28px;
|
|
|
|
|
- color: #8c939d;
|
|
|
|
|
- width: 178px;
|
|
|
|
|
- height: 178px;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- margin-top: -60px;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // .el-icon.avatar-uploader-icon {
|
|
|
|
|
+ // font-size: 28px;
|
|
|
|
|
+ // color: #8c939d;
|
|
|
|
|
+ // width: 178px;
|
|
|
|
|
+ // height: 178px;
|
|
|
|
|
+ // text-align: center;
|
|
|
|
|
+ // margin-top: -60px;
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
.upload {
|
|
.upload {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
- left: 635px;
|
|
|
|
|
- top: 201px;
|
|
|
|
|
|
|
+ left: 428px;
|
|
|
|
|
+ top: 174px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- .upload-tip {
|
|
|
|
|
- margin-top: 5px;
|
|
|
|
|
- font-size: 22px;
|
|
|
|
|
- font-weight: 350;
|
|
|
|
|
- color: #3d3d3d;
|
|
|
|
|
- opacity: 0.4;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // .upload-tip {
|
|
|
|
|
+ // margin-top: 5px;
|
|
|
|
|
+ // font-size: 22px;
|
|
|
|
|
+ // font-weight: 350;
|
|
|
|
|
+ // color: #3d3d3d;
|
|
|
|
|
+ // opacity: 0.4;
|
|
|
|
|
+ // text-align: center;
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
.uploader-text {
|
|
.uploader-text {
|
|
|
margin-top: -60px;
|
|
margin-top: -60px;
|
|
@@ -304,10 +384,41 @@
|
|
|
|
|
|
|
|
.drawer-position {
|
|
.drawer-position {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
- left: 1150px;
|
|
|
|
|
- top: 80px;
|
|
|
|
|
|
|
+ right: 0px;
|
|
|
|
|
+ // left: 1150px;
|
|
|
|
|
+ top: 74px;
|
|
|
z-index: 99;
|
|
z-index: 99;
|
|
|
opacity: 1;
|
|
opacity: 1;
|
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ .dialog-btn {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ right: 0px;
|
|
|
|
|
+ top: 66px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .position-tooltip {
|
|
|
|
|
+ margin-right: -10px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .circle-rectangle {
|
|
|
|
|
+ width: 40px;
|
|
|
|
|
+ height: 30px;
|
|
|
|
|
+ border-radius: 50% 0% 0% 50%;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ right: 0px;
|
|
|
|
|
+ top: 66px;
|
|
|
|
|
+ background-color: white;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .shape-shadow {
|
|
|
|
|
+ filter: drop-shadow(5px 5px 10px rgb(102, 100, 100));
|
|
|
|
|
+ }
|
|
|
|
|
+ .left-icon {
|
|
|
|
|
+ margin-top: 7px;
|
|
|
|
|
+ margin-left: 8px;
|
|
|
|
|
+ margin-right: -7px;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|