diff --git a/back/src/mixins/view-module.js b/back/src/mixins/view-module.js index 98b075fb..edd9378c 100644 --- a/back/src/mixins/view-module.js +++ b/back/src/mixins/view-module.js @@ -107,7 +107,6 @@ export default { } else { this.total = this.mixinViewModuleOptions.getDataListIsPage ? res.data.total : 0 } - console.log('数据列表', this.dataList, this.mixinViewModuleOptions.getDataListURL) if (this.dataList[0].type === '组件服务') { this.dataList.map(val => { diff --git a/back/src/router/index.js b/back/src/router/index.js index c386dc1b..08f69ea5 100644 --- a/back/src/router/index.js +++ b/back/src/router/index.js @@ -104,7 +104,7 @@ router.beforeEach((to, from, next) => { Vue.prototype.$message.error(res.msg) return next({ name: 'login' }) } - window.SITE_CONFIG.menuList = res.data + window.SITE_CONFIG.menuList = res.data.filter(item => item.site === 0) fnAddDynamicMenuRoutes(window.SITE_CONFIG.menuList) next({ ...to, replace: true }) }).catch(() => { diff --git a/back/src/utils/location.js b/back/src/utils/location.js index 82fc8775..25cd9f33 100644 --- a/back/src/utils/location.js +++ b/back/src/utils/location.js @@ -1,12 +1,12 @@ /* * @Author: hisense.guoyue * @Date: 2022-08-23 10:30:11 - * @LastEditors: hisense.guoyue - * @LastEditTime: 2022-10-02 14:47:05 + * @LastEditors: hisense.wuhongjian + * @LastEditTime: 2022-10-18 17:44:33 * @Description: 判断当前环境是西海岸还是青岛市局 */ const returnLocationStr = () => { - return CONFIGITEM.version + return CONFIGITEM.version === 'xihaian' ? 'xihaian' : 'qingdao' } export default returnLocationStr diff --git a/back/src/views/main-sidebar.vue b/back/src/views/main-sidebar.vue index 7a2f1d0e..78596756 100644 --- a/back/src/views/main-sidebar.vue +++ b/back/src/views/main-sidebar.vue @@ -1,8 +1,8 @@ @@ -25,7 +25,7 @@ :menu="menu" > sdddd - + @@ -35,71 +35,72 @@ diff --git a/back/src/views/modules/devtools/generator-menu.vue b/back/src/views/modules/devtools/generator-menu.vue index f940b8c5..c68eec82 100644 --- a/back/src/views/modules/devtools/generator-menu.vue +++ b/back/src/views/modules/devtools/generator-menu.vue @@ -81,7 +81,7 @@ export default { init () { this.visible = true this.$nextTick(() => { - this.$refs['dataForm'].resetFields() + this.$refs.dataForm.resetFields() this.iconList = getIconList() this.dataForm.parentName = this.$t('menu.parentNameDefault') this.getMenuList() @@ -89,11 +89,12 @@ export default { }, // 获取菜单列表 getMenuList () { + console.log('获取菜单位置1') return this.$http.get('/sys/menu/list?type=0').then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } - this.menuList = res.data + this.menuList = res.data.filter(item => item.site === 0) }).catch(() => {}) }, // 上级菜单树, 设置默认值 @@ -114,11 +115,11 @@ export default { }, // 表单提交 dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { + this.$refs.dataForm.validate((valid) => { if (!valid) { return false } - this.$http['post']('/devtools/menu', this.dataForm).then(({ data: res }) => { + this.$http.post('/devtools/menu', this.dataForm).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } @@ -133,7 +134,7 @@ export default { }) }).catch(() => {}) }) - }, 1000, { 'leading': true, 'trailing': false }) + }, 1000, { leading: true, trailing: false }) } } @@ -174,4 +175,4 @@ export default { } } } - \ No newline at end of file + diff --git a/back/src/views/modules/sys/menu-add-or-update.vue b/back/src/views/modules/sys/menu-add-or-update.vue index ed7ddd49..318254cb 100644 --- a/back/src/views/modules/sys/menu-add-or-update.vue +++ b/back/src/views/modules/sys/menu-add-or-update.vue @@ -123,11 +123,12 @@ export default { }, // 获取菜单列表 getMenuList () { + console.log('获取菜单位置2') return this.$http.get('/sys/menu/list?type=0').then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } - this.menuList = res.data + this.menuList = res.data.filter(item => item.site === 0) }).catch(() => {}) }, // 获取信息 diff --git a/back/src/views/modules/sys/menu.vue b/back/src/views/modules/sys/menu.vue index 4fe46da1..bbc70ae3 100644 --- a/back/src/views/modules/sys/menu.vue +++ b/back/src/views/modules/sys/menu.vue @@ -1,3 +1,10 @@ + diff --git a/front/src/views/home/components/integrationServiceOrder.vue b/front/src/views/home/components/integrationServiceOrder.vue index 0c62dfb6..fc13a08c 100644 --- a/front/src/views/home/components/integrationServiceOrder.vue +++ b/front/src/views/home/components/integrationServiceOrder.vue @@ -47,6 +47,7 @@ const integrationOrder = reactive({ // 融合服务--排序 const changeOrder = (i, val, type) => { + console.log('i, val, type------------>', i, val, type); integrationOrder.orderField = val integrationOrder.orderType = type; diff --git a/front/src/views/home/components/searchResultList.vue b/front/src/views/home/components/searchResultList.vue index 96d345a2..99d22fcc 100644 --- a/front/src/views/home/components/searchResultList.vue +++ b/front/src/views/home/components/searchResultList.vue @@ -230,6 +230,21 @@ +
+ 发布时间: + + +
发布时间: