From 2ed32e97db14fe956f6dd10ee54c6d7cec713712 Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Thu, 14 Jul 2022 14:17:20 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=90=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=9C=9F=E5=AE=9E=E5=A7=93=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/public/static/config/location.js | 6 ++-- front/src/store/modules/user.js | 2 +- front/src/views/home/components/header.vue | 35 +++++++++++++--------- 3 files changed, 25 insertions(+), 18 deletions(-) diff --git a/front/public/static/config/location.js b/front/public/static/config/location.js index 0fc99b77..66106bcf 100644 --- a/front/public/static/config/location.js +++ b/front/public/static/config/location.js @@ -2,7 +2,7 @@ * @Author: hisense.wuhongjian * @Date: 2020-07-07 16:03:23 * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-07-13 18:05:38 + * @LastEditTime: 2022-07-14 10:01:08 * @Description: 数据资源参数配置 */ const newLocation = 'qingdao' @@ -32,12 +32,12 @@ if (newLocation === 'qingdao') { { name: '能力统计', key: 'abilityStatistics' }, // { name: '开发指南', key: 'developmentGuide' }, { name: '指导手册', key: 'instructionManual' }, - { name: '需求中心', key: 'demandCenter' }, + // { name: '需求中心', key: 'demandCenter' }, // { name: '个人中心', key: 'personalCenter' }, { name: '区市站点', key: 'mapTest' }, // { name: '后台管理', key: 'houtaiguanli' }, { name: '赋能案例', key: 'assignCase' }, - // { name: '融合服务', key: 'integrationServices' }, + { name: '融合服务', key: 'integrationServices' }, ] footerDataList.footerList = { company: { diff --git a/front/src/store/modules/user.js b/front/src/store/modules/user.js index e37acb80..f3b183ff 100644 --- a/front/src/store/modules/user.js +++ b/front/src/store/modules/user.js @@ -120,7 +120,7 @@ return false } // debugger - commit('setUsername', data.data.username) + commit('setUsername', data.data.realName) commit('setRole', data.data.roleIdList.length) commit('setUserId', data.data.id) // TODO 获取用户信息,后续执行部分操作 diff --git a/front/src/views/home/components/header.vue b/front/src/views/home/components/header.vue index eaac12de..2f67446f 100644 --- a/front/src/views/home/components/header.vue +++ b/front/src/views/home/components/header.vue @@ -113,7 +113,7 @@ import { ref, onMounted, onBeforeUnmount, defineProps } from 'vue' import { recordRoute } from '@/config' import { useRoute, useRouter } from 'vue-router' - import { getUser, mynotice } from '@/api/home' + import { mynotice } from '@/api/home' import { useStore } from 'vuex' import { getSgcTotal } from '@/api/home' import mybus from '@/myplugins/mybus' @@ -132,22 +132,25 @@ // // { name: '后台管理', key: 'houtaiguanli' }, // { name: '赋能案例', key: 'assignCase' }, // ]) - const user = ref({}) + const user = ref({ + username: store.getters['user/username'], + }) + // user.username.value = store.getters(['user/username']) const select = ref(router.currentRoute.value.name) const mynoticeFlag = ref(false) const mynoticeData = ref([]) - console.log('navListManagement------------>', navListManagement); + console.log('navListManagement------------>', navListManagement) // eslint-disable-next-line no-undef const navList = ref(navListManagement.navList) const props = defineProps({ showView: { type: String, default: '' }, }) - // 获取用户信息 - getUser().then((res) => { - user.value = res.data.data - // console.log('user===============>', user.value) - }) + // // 获取用户信息 + // getUser().then((res) => { + // user.value = res.data.data + // // console.log('user===============>', user.value) + // }) // 退出登录 const logout = async () => { await store.dispatch('user/logout') @@ -221,9 +224,9 @@ router.push({ path: '/integrationServices', // path: '/DetailsPageconetent', - query: { - select: '融合服务', - }, + query: { + select: '融合服务', + }, }) break default: @@ -323,7 +326,7 @@ display: flex; justify-content: center; align-items: center; - padding: 0 1rem; + // padding: 0 1rem; background-color: rgba(0, 0, 25, 0.7); position: fixed; z-index: 1000; @@ -362,7 +365,7 @@ color: #fff !important; } .info { - width: 2rem; + // width: 2rem; margin-left: 0.2rem; display: flex; justify-content: center; @@ -381,7 +384,11 @@ font-size: 0.16rem; } .name { - max-width: 0.75rem; + max-width: 3.3rem; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 1; + -webkit-box-orient: vertical; overflow: hidden; } .out { From deb886a254aa1ef57212b53ab9b4415743876065 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Thu, 14 Jul 2022 14:55:49 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E6=8A=80=E6=9C=AF=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/modules/sys/log-operation.vue | 2 +- .../components/PutOnTheShelf.vue | 17 +++-- .../Algorithm/AlgorithmUsageMode.vue | 6 +- .../components/Business/BusinessUsageMode.vue | 6 +- ...operOwningDepartmentAndServiceProvider.vue | 4 +- .../LayerService/LayerServiceUsageMode.vue | 6 +- .../views/personalCenter/VueTemplateDemo.vue | 75 ++++++++++++++++--- 7 files changed, 80 insertions(+), 36 deletions(-) diff --git a/back/src/views/modules/sys/log-operation.vue b/back/src/views/modules/sys/log-operation.vue index 3a6cafa8..ba1808bd 100644 --- a/back/src/views/modules/sys/log-operation.vue +++ b/back/src/views/modules/sys/log-operation.vue @@ -232,7 +232,7 @@ export default { startDate: '', endDate: '', operation: '', - operationType: 'all' + operationType: '' } this.value1 = '' // 格式化日期 this.operationType = '' // 操作类型转化 diff --git a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue index 518634ed..ccb76044 100644 --- a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue +++ b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue @@ -162,6 +162,13 @@ @click="showTextFunction()" > 编辑富文本 +
+ +
-
- -
diff --git a/front/src/views/detailsAll/components/Developer/DeveloperApplicationScenarios.vue b/front/src/views/detailsAll/components/Developer/DeveloperApplicationScenarios.vue index 016bb3ee..436aec93 100644 --- a/front/src/views/detailsAll/components/Developer/DeveloperApplicationScenarios.vue +++ b/front/src/views/detailsAll/components/Developer/DeveloperApplicationScenarios.vue @@ -35,7 +35,7 @@