From 14b539bbef4e6a06046fa64168c2eec3dbb10062 Mon Sep 17 00:00:00 2001 From: Xu Zhimeng Date: Thu, 18 May 2023 18:42:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20scheduling=E5=AF=B9=E6=8E=A5=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=EF=BC=8C=E5=AE=8C=E6=88=90=E5=A2=9E=E5=88=A0=E6=94=B9?= =?UTF-8?q?=E5=92=8C=E6=8B=96=E6=8B=BD=E4=BA=A4=E6=8D=A2=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=8C=E4=BC=98=E5=8C=96=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CustomPopoverSearch/index.vue | 90 +++- src/components/SearchForm/index.vue | 1 + src/style.less | 27 +- src/views/system/DataBase.vue | 4 +- src/views/system/Scheduling.vue | 497 ++++++++++++++----- src/views/system/UserList.vue | 2 +- src/views/user/Login.vue | 1 + 7 files changed, 473 insertions(+), 149 deletions(-) diff --git a/src/components/CustomPopoverSearch/index.vue b/src/components/CustomPopoverSearch/index.vue index d40471a..12e983e 100644 --- a/src/components/CustomPopoverSearch/index.vue +++ b/src/components/CustomPopoverSearch/index.vue @@ -1,7 +1,13 @@ @@ -39,11 +57,16 @@ export default { }, value: { type: Array + }, + keyword: { + type: String + }, + placeholder: { + type: String } }, data() { return { - keyword: '', visible: false, width: 0, isLoading: true, @@ -60,6 +83,15 @@ export default { await this.remoteMethod() this.isLoading = false } + }, + onSelect(option) { + option.checked = !option.checked + }, + onAdd() { + const selectedOptions = this.innerOptions.filter(option => option.checked).map(option => option.value) + this.$emit('add', selectedOptions) + this.visible = false + this.innerKeyWord = '' } }, watch: { @@ -71,6 +103,16 @@ export default { this.innerOptions = options } } + }, + computed: { + innerKeyWord: { + set(val) { + this.$emit('update:keyword', val) + }, + get() { + return this.keyword + } + } } } @@ -92,4 +134,28 @@ export default { } } } +.ant-spin { + height: 150px; + line-height: 150px; + width: 100%; + text-align: center; +} +.btn-group { + height: 30px; + line-height: 30px; + text-align: center; + cursor: pointer; + border-top: 1px solid #0da397; +} + + diff --git a/src/components/SearchForm/index.vue b/src/components/SearchForm/index.vue index 6bf847f..5766b3e 100644 --- a/src/components/SearchForm/index.vue +++ b/src/components/SearchForm/index.vue @@ -78,6 +78,7 @@ export default { .ant-form-item-label, .ant-form-item-control { line-height: 32px; + height: 32px; } .ant-form-item-label { flex-shrink: 0; diff --git a/src/style.less b/src/style.less index c1c0951..b565a04 100644 --- a/src/style.less +++ b/src/style.less @@ -176,6 +176,24 @@ body { } } } + + &-date { + &:hover { + background-color: @primary-color; + color: #fff; + } + } + + &-selected-day { + .ant-calendar-date { + background-color: @primary-color; + } + } + &-today { + .ant-calendar-date { + color: #fff; + } + } } // 日历 @@ -193,8 +211,7 @@ body { &-content { margin-top: 10px; - height: 98px; - background-color: rgba(140, 255, 229, 0.1); + height: 98px !important; &::-webkit-scrollbar { width: 4px !important; } @@ -647,6 +664,9 @@ body { &-message { color: #fff; } + &-close { + color: #fff !important; + } } } @@ -680,9 +700,6 @@ body { .ant-popover { &-inner { background-color: #03353f; - &-content { - padding: 0; - } } &-arrow { border-left-color: #03353f !important; diff --git a/src/views/system/DataBase.vue b/src/views/system/DataBase.vue index 9065527..45b6d26 100644 --- a/src/views/system/DataBase.vue +++ b/src/views/system/DataBase.vue @@ -43,7 +43,7 @@ const columns = [ title: 'SITE DET CODE', align: 'center', dataIndex: 'siteDetCode', - width: 120 + width: 130 }, { title: 'SAMPLE ID', @@ -120,7 +120,7 @@ const columns = [ { title: 'ACQ.REAL(S)', align: 'center', - width: 100, + width: 120, dataIndex: 'acquisitionRealSec' }, { diff --git a/src/views/system/Scheduling.vue b/src/views/system/Scheduling.vue index 5566ff3..38b1194 100644 --- a/src/views/system/Scheduling.vue +++ b/src/views/system/Scheduling.vue @@ -10,12 +10,16 @@
-
+

- fanyq - + + {{ item.username }} + + + +

-
+
@@ -25,7 +29,17 @@
- ARP01、ARP02、ARP03、ARP04、ARP05、 ARP06、ARP07、ARP08 +
@@ -35,12 +49,13 @@
+
- + -