diff --git a/frontend/src/components/gridTable/index.vue b/frontend/src/components/gridTable/index.vue index 536dcd454e..cf787bc41b 100644 --- a/frontend/src/components/gridTable/index.vue +++ b/frontend/src/components/gridTable/index.vue @@ -59,7 +59,7 @@ export default { paginationEvent: {}, paginationDefalut: { currentPage: 1, - pageSizes: [10, 20, 30, 40], + pageSizes: [10, 20, 50, 100], pageSize: 10, layout: "total, prev, pager, next, sizes, jumper", total: 0, diff --git a/frontend/src/directive/index.js b/frontend/src/directive/index.js index 346a665ab9..edb3f4f522 100644 --- a/frontend/src/directive/index.js +++ b/frontend/src/directive/index.js @@ -75,24 +75,17 @@ const closePress = { } } -// const btnPress = { -// inserted: function (el) { -// el.onmousedown = function () { -// el.style.background = '#EFF0F1'; -// } -// el.onmouseenter = function () { -// el.style.background = '#F5F6F7 !important'; -// } -// el.onmouseleave = function () { -// el.style.background = 'none'; -// } -// el.onmouseup = function () { -// el.style.background = 'none'; -// } -// } -// } +const btnPress = { + update: function (el, binding) { + el.onmousedown = function (e) { + e.currentTarget.style.setProperty('background', binding.value || '#EFF0F1', 'important'); + } + el.onmouseup = function (e) { + e.currentTarget.style.background = 'none'; + } + }, +} -// #EFF0F1 export default { install(Vue) { @@ -102,7 +95,7 @@ export default { Vue.directive('right-to-left-drag', right2LeftDrag) Vue.directive('bottom-to-top-drag', bottom2TopDrag) Vue.directive('closePress', closePress) - // Vue.directive('btnPress', btnPress) + Vue.directive('btnPress', btnPress) } } diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scss index 3bb994c7a4..aa45c442db 100644 --- a/frontend/src/styles/index.scss +++ b/frontend/src/styles/index.scss @@ -853,3 +853,21 @@ div:focus { .view-select-option { display: none !important; } + +.el-checkbox__input.is-checked + .el-checkbox__label { + color: #1F2329 !important; +} + +.el-dialog__title { + font-weight: 500; +} + +.el-tabs__nav-wrap::after { + height: 1px !important; + background-color: rgba(31, 35, 41, 0.15) !important; +} + +.el-tabs__item:not(.is-active) { + font-weight: 400 !important; +} + diff --git a/frontend/src/views/system/datasource/ApiHttpRequestForm.vue b/frontend/src/views/system/datasource/ApiHttpRequestForm.vue index c6ebdc874c..6f47410375 100644 --- a/frontend/src/views/system/datasource/ApiHttpRequestForm.vue +++ b/frontend/src/views/system/datasource/ApiHttpRequestForm.vue @@ -391,9 +391,4 @@ export default { float: right; margin-right: 45px; } - -::v-deep .el-tabs__nav-wrap::after, -::v-deep .el-tabs__active-bar { - height: 1px !important; -} diff --git a/frontend/src/views/system/user/filterUser.vue b/frontend/src/views/system/user/filterUser.vue index 79c7a8f098..7e5e0bea02 100644 --- a/frontend/src/views/system/user/filterUser.vue +++ b/frontend/src/views/system/user/filterUser.vue @@ -11,6 +11,7 @@ 状态
组织
- + 更多 + + 更多
@@ -74,6 +76,7 @@
- - + 更多 + + 更多
@@ -128,6 +130,7 @@ export default { roleCahe: [], deptCahe: [], roles: [], + filterTextMap: [], status: [{ id: 1, label: '启用' @@ -165,6 +168,17 @@ export default { this.initRoles(); }, methods: { + clearFilter() { + Array(3).fill(1).forEach((_, index) => { + this.clearOneFilter(index) + }) + this.$emit('search', [], []) + }, + clearOneFilter(index) { + (this.filterTextMap[index] || []).forEach(ele => { + this[ele] = [] + }) + }, // 获取弹窗内部门数据 treeByDeptId() { treeByDeptId(0).then((res) => { @@ -259,16 +273,20 @@ export default { this.$emit('search', this.formatCondition(), this.formatText()) }, formatText() { + this.filterTextMap = []; const params = []; if (this.activeStatus.length) { let str = `状态:${this.activeStatus.reduce((pre,next) => (this.status.find(ele => ele.id === next) || {}).label + '、' + pre, '')}`; params.push(str.slice(0, str.length - 1 )) + this.filterTextMap.push(['activeStatus']) } if (this.activeDept.length) { - params.push(`组织:${this.selectDeptsCahe.reduce((pre,next) => pre.label + '、' + next.label)}`) + params.push(`组织:${this.selectDeptsCahe.map(ele => ele.label).join('、')}`) + this.filterTextMap.push(['activeDept', 'selectDepts', 'selectDeptsCahe', 'deptCahe']) } if (this.activeRole.length) { - params.push(`角色:${this.rolesValueCopy.reduce((pre,next) => pre.label + '、' + next.labele)}`) + params.push(`角色:${this.rolesValueCopy.map(ele => ele.name).join('、')}`) + this.filterTextMap.push(['rolesValue', 'activeRole', 'roleCahe']) } return params; }, @@ -290,10 +308,8 @@ export default { this.userDrawer = true; }, reset() { - this.activeStatus = []; - this.activeRole = []; - this.activeDept = []; - this.search() + this.userDrawer = false; + this.clearFilter() }, }, }; @@ -349,8 +365,10 @@ export default { font-size: 14px; } .filter-item { - span { + .item, + .more { font-family: PingFang SC; + white-space: nowrap; font-size: 14px; font-weight: 400; line-height: 24px; @@ -360,20 +378,16 @@ export default { background: #f5f6f7; border-radius: 2px; cursor: pointer; - span { - margin-right: 0; - padding: 0; - span { - margin-right: 0; - padding: 0; - } - } } - .active { + .active, + .more:hover{ background: rgba(51, 112, 255, 0.1); color: #0c296e; } + .more { + white-space: nowrap; + } } } .btn { diff --git a/frontend/src/views/system/user/index.vue b/frontend/src/views/system/user/index.vue index 67c7638800..f4dec62274 100644 --- a/frontend/src/views/system/user/index.vue +++ b/frontend/src/views/system/user/index.vue @@ -26,15 +26,16 @@ 筛选 - + - 列表项 @@ -49,9 +50,12 @@ v-model="checkedColumnNames" @change="handleCheckedColumnNamesChange" > - {{ - $t(column.label) - }} + {{ $t(column.label) }} @@ -60,15 +64,26 @@
{{ paginationConfig.total }} 个结果 - -

{{ ele }}

+ + +
+

+ {{ ele }} +

+
+ {{ $t("user.create") }} + type="text" + class="clear-btn" + icon="el-icon-delete" + @click="clearFilter" + >清空条件
-
+
- +