diff --git a/src/App.vue b/src/App.vue index 44c9b39..9140ff4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -31,3 +31,6 @@ onMounted(() => { }); }); + diff --git a/src/assets/fonts/MicrosoftYaHei.ttf b/src/assets/fonts/MicrosoftYaHei.ttf new file mode 100644 index 0000000..aa23ae1 Binary files /dev/null and b/src/assets/fonts/MicrosoftYaHei.ttf differ diff --git a/src/assets/fonts/font.css b/src/assets/fonts/font.css new file mode 100644 index 0000000..6e42902 --- /dev/null +++ b/src/assets/fonts/font.css @@ -0,0 +1,6 @@ +@font-face { + font-family: 'MicrosoftYaHei'; + src: url('MicrosoftYaHei.ttf'); + font-weight: normal; + font-style: normal; +} diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 8540b3c..70bcf2d 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -11,6 +11,22 @@ -ms-user-select: none; /*IE10*/ -khtml-user-select: none; /*早期浏览器*/ user-select: none; + font-family: "MicrosoftYaHei", "微软雅黑", "Helvetica Neue", Helvetica, Arial, + sans-serif; +} + +body { + background-color: #f5f5f5; +} + +.el-container { + height: 100%; +} + +.el-aside { + background-color: #ffffff; + height: 100%; + overflow: auto; } a { diff --git a/src/views/site/index.vue b/src/views/site/index.vue index 1cc1881..4b8d49d 100644 --- a/src/views/site/index.vue +++ b/src/views/site/index.vue @@ -235,7 +235,9 @@ const handleSubmit = (instance) => { // }) } const handleChooseAll=()=>{ - console.log('全选') + siteList.value.map(item=>{ + item.checked=!item.checked + }) } const handleMoreDelete = () => { if (siteIds.value.length === 0) { diff --git a/src/views/tunnel-manage/index.vue b/src/views/tunnel-manage/index.vue index 6c8abef..e6eac53 100644 --- a/src/views/tunnel-manage/index.vue +++ b/src/views/tunnel-manage/index.vue @@ -10,7 +10,7 @@
添加
-
+
全选
@@ -19,7 +19,7 @@
-
+
{{ item.tunnelName }} 施工长度500米 隧道长度10公里 @@ -99,7 +99,7 @@ import {ElMessage, ElMessageBox} from "element-plus"; const router = useRouter() const showAddIcon = ref(true) const siteId = reactive(router.currentRoute.value.params.siteId) -const siteList = ref([ +const tunnelList = ref([ { tunnelName: '一号隧道', num: 1, @@ -219,7 +219,11 @@ const form = ref({ tunnelLength: '', remarks: '' }); - +const handleChooseAll=()=>{ + tunnelList.value.map(item=>{ + item.checked=!item.checked + }) +} const handleEdit = () => { title.value = '编辑隧道' isVisited.value = true diff --git a/src/views/user/index.vue b/src/views/user/index.vue index d01563d..2591f93 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -7,7 +7,7 @@
-
+
全选
@@ -28,34 +28,111 @@ 搜索
用户管理
-
添加用户
+
添加用户
- - +
+ +
+ {{ title }} +
+ + + + + + + + + + + + + + + +
+
\ No newline at end of file + :deep(.el-dialog) { + border: 2px solid #05FEFF; + background: #0D6578; + border-radius: 20px; + padding: 30px 40px; + box-sizing: border-box; + margin: 458px auto 0 auto; + + .el-dialog__header { + padding: 0; + display: none; + } + } + + :deep(.el-form-item) { + margin-top: 40px; + } + + :deep(.el-form-item__label) { + font-size: 38px; + font-family: MicrosoftYaHei; + color: #FFFFFF; + margin-right: 12px; + line-height: 50px; + } + + :deep(.el-input) { + height: 75px; + + .el-input__wrapper { + background-color: transparent; + border: 1px solid #08B7B8; + + .el-input__inner { + height: auto; + color: #fff; + font-size: 38px; + } + } + } + :deep(.el-checkbox-group){ + margin-top: 10px; + } +:deep(.el-checkbox__label){ + color: #FFFFFF; + font-size: 38px; +} + .pagination { + position: absolute; + left: 50%; + transform: translate(-50%, -50%); + bottom: 290px; + display: flex; + align-items: center; + color: #60DDDE; + font-size: 38px; + font-weight: bold; + + > span:first-child { + cursor: pointer; + margin-right: 60px; + } + + > span:last-child { + cursor: pointer; + margin-left: 71px; + } + + :deep(.btn-prev) { + background-color: transparent; + font-size: 38px; + font-family: MicrosoftYaHei, MicrosoftYaHei; + font-weight: bold; + color: #60DDDE; + margin-right: 20px; + } + + :deep(.btn-next) { + background-color: transparent; + font-size: 38px; + font-family: MicrosoftYaHei, MicrosoftYaHei; + font-weight: bold; + color: #60DDDE; + margin-left: 30px; + } + + :deep(.el-pager li.is-active ) { + width: 70px; + height: 70px; + background: #60DDDE; + border-radius: 50%; + color: #071F40; + font-size: 38px; + font-family: MicrosoftYaHei, MicrosoftYaHei; + font-weight: bold; + } + + :deep(.el-pager li) { + margin-left: 40px; + } + + :deep(.el-pager li:not(.is-active) ) { + width: 70px; + height: 70px; + border: 1px solid #60DDDE; + border-radius: 50%; + background-color: transparent; + font-size: 38px; + font-family: MicrosoftYaHei, MicrosoftYaHei; + font-weight: bold; + color: #60DDDE; + } + } +} +