From 732897a665d4fc1e3d0667e7503e1edc66d21bc8 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 24 Aug 2023 18:23:43 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E6=B7=BB=E5=8A=A0=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E3=80=81=E7=BB=84=E7=BB=87=E6=9C=BA=E6=9E=84?= =?UTF-8?q?=E5=BC=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/color.less | 2 +- src/assets/less/common.less | 52 +- src/common/lang/zh-cn.js | 11 +- src/components/customField/Search.vue | 10 +- src/components/selection/CurrencySearch.vue | 222 ++++---- .../selection/StandardSelection.vue | 2 +- .../selection/UserOrOrganSelection.vue | 62 +++ .../selection/UserOrganSelectModal.vue | 522 ++++++++++++++++++ src/defaultSettings.js | 2 +- src/mixins/ConfigurableTableMixin.js | 6 +- src/views/dashboard/Analysis.vue | 14 +- src/views/system/RoleUserList.vue | 6 +- src/views/system/UserList.vue | 20 +- vue.config.js | 8 +- 14 files changed, 791 insertions(+), 148 deletions(-) create mode 100644 src/components/selection/UserOrOrganSelection.vue create mode 100644 src/components/selection/UserOrganSelectModal.vue diff --git a/public/color.less b/public/color.less index 0f799c1d..e4493e29 100644 --- a/public/color.less +++ b/public/color.less @@ -1,4 +1,4 @@ -@primary-color: #1890ff; +@primary-color: #D52C26; /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable */ diff --git a/src/assets/less/common.less b/src/assets/less/common.less index 015d4dc3..3c92d40c 100644 --- a/src/assets/less/common.less +++ b/src/assets/less/common.less @@ -273,8 +273,8 @@ width: calc(100% - 100px); line-height: 38px; background: #fff; - border: 1px #1890ff solid; - color: #1890ff; + border: 1px #D52C26 solid; + color: #D52C26; } // 新增编辑表单样式--完 @@ -312,3 +312,51 @@ overflow: hidden; text-overflow: ellipsis; } + +/* switch的样式 */ +.table-operator-tab { + width: fit-content; + background-color: #F0F2F4; + border-radius: 4px; + overflow: hidden; +} + +.table-operator-tab a { + border-radius: 4px; + display: inline-flex; + justify-content: center; + align-items: center; + width: 94px; + height: 32px; + color: #4E5969; +} + +.table-operator-tab a.table-operator-tab-active { + background-color: #D52C26; + color: #FFFFFF; +} + +.table-operator-tab a:not(:first-child) { + //transform: translateX(-8px); + margin-left: -8px; +} +/* switch的样式--end */ + +/*分页的样式start*/ +/deep/ .ant-pagination-item-active { + background: #D52C26; + border-radius: 3px 3px 3px 3px; + border: none; + color: #FFFFFF; +} + +/deep/ .ant-pagination-item { + min-width: 24px; + height: 24px; + line-height: 24px !important; + color: #1D2129; + font-weight: 400; + border: 1px solid #E5E6EB; +} + +/*分页的样式end*/ diff --git a/src/common/lang/zh-cn.js b/src/common/lang/zh-cn.js index e46b955f..110836d1 100644 --- a/src/common/lang/zh-cn.js +++ b/src/common/lang/zh-cn.js @@ -409,7 +409,7 @@ module.exports = { addQuantity: '添加数量', enterQuantity: '请输入数量', numberRows: '行数', - numberColumns: '列数', + numberColumns: '列数' }, comparison: { releaseSituation: '发布情况', @@ -471,6 +471,15 @@ module.exports = { standardSelect: { standardSelection: '标准选择' }, + // 用户/组织结构选择器 + userOrOrganSelect: { + select: '选择', + selectUserOrOrgan: '选择用户/机构', + organization: '组织机构', + name: '姓名', + secondLevel: '二级', + threeLevel: '三级' + }, // 弹框上传附件 uploadFile: { clickUpload: '点击上传', diff --git a/src/components/customField/Search.vue b/src/components/customField/Search.vue index 16f8eaf7..23262afe 100644 --- a/src/components/customField/Search.vue +++ b/src/components/customField/Search.vue @@ -42,14 +42,14 @@ - + - + @@ -62,6 +62,7 @@ + + @@ -82,12 +84,14 @@ v-model="queryParam[item.db_field_name]"> + + + + - - - {{item.db_field_txt}} - - - - - - {{item.db_field_txt}} - - - - - - {{item.db_field_txt}} - - - - - - {{item.db_field_txt}} - - - - - - {{item.db_field_txt}} - - - - - - {{item.db_field_txt}} - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - {{item.db_field_txt}} - - - - - - {{item.db_field_txt}} - - - - - - {{item.db_field_txt}} - - - - - - {{item.db_field_txt}} - - - - - - {{item.db_field_txt}} - - - - - - {{item.db_field_txt}} - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{item.label}} + + + {{this.$t('userOrOrganSelect.select')}} + + + + + + + + + diff --git a/src/components/selection/UserOrganSelectModal.vue b/src/components/selection/UserOrganSelectModal.vue new file mode 100644 index 00000000..f4f98cb4 --- /dev/null +++ b/src/components/selection/UserOrganSelectModal.vue @@ -0,0 +1,522 @@ + + + + + + + + + + + + {{$t('reset')}} + {{$t('query')}} + + + + + + + + + + + + + + + + + + + + + + {{$t('reset')}} + {{$t('query')}} + + + + + + + + 选择 + + 组织机构 + + 用户列表 + + + + + + + + + + + 选择 + + + + {{ $t('delete') }} + + + + + {{ $t('delete') }} + + + + + + + + + + diff --git a/src/defaultSettings.js b/src/defaultSettings.js index f7b756b6..1c0d5abc 100644 --- a/src/defaultSettings.js +++ b/src/defaultSettings.js @@ -14,7 +14,7 @@ */ export default { - primaryColor: '#1890FF', // primary color of ant design + primaryColor: '#D52C26', // primary color of ant design navTheme: 'light', // theme for nav menu layout: 'sidemenu', // nav menu position: sidemenu or topmenu contentWidth: 'Fixed', // layout of content: Fluid or Fixed, only works when layout is topmenu diff --git a/src/mixins/ConfigurableTableMixin.js b/src/mixins/ConfigurableTableMixin.js index fde758e6..1f28c587 100644 --- a/src/mixins/ConfigurableTableMixin.js +++ b/src/mixins/ConfigurableTableMixin.js @@ -67,9 +67,9 @@ export const ConfigurableTableMixin = { this.getTableHeader() this.loadData() // 过滤没有权限的按钮 - if (this.needFilterTableBtn) { - this.operationList = this.operationList.filter(item => isHasPermission(item.has)) - } + // if (this.needFilterTableBtn) { + // this.operationList = this.operationList.filter(item => isHasPermission(item.has)) + // } }, methods: { /** diff --git a/src/views/dashboard/Analysis.vue b/src/views/dashboard/Analysis.vue index 6b88a26c..44d365de 100644 --- a/src/views/dashboard/Analysis.vue +++ b/src/views/dashboard/Analysis.vue @@ -1,17 +1,15 @@ - 打开预览onlyOffice - 打开编辑onlyOffice - + diff --git a/src/views/system/RoleUserList.vue b/src/views/system/RoleUserList.vue index 3203e670..fc1924e4 100644 --- a/src/views/system/RoleUserList.vue +++ b/src/views/system/RoleUserList.vue @@ -48,6 +48,7 @@ {{ $t('empty') }} diff --git a/vue.config.js b/vue.config.js index db88fadf..b5e5e6cc 100644 --- a/vue.config.js +++ b/vue.config.js @@ -65,8 +65,8 @@ module.exports = { less: { modifyVars: { /* less 变量覆盖,用于自定义 ant design 主题 */ - 'primary-color': '#1890FF', - 'link-color': '#1890FF', + 'primary-color': '#D52C26', + 'link-color': '#D52C26', 'border-radius-base': '4px' }, javascriptEnabled: true @@ -75,7 +75,7 @@ module.exports = { }, devServer: { - port: 23084, + port: 3334, proxy: { /* '/api': { target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统 @@ -86,7 +86,7 @@ module.exports = { } }, */ '/laws-sinotruk': { - target: 'http://localhost:23085', + target: 'http://localhost:8184', ws: false, changeOrigin: true, pathRewrite: {
选择