diff --git a/src/App.vue b/src/App.vue index a5375d1..9d1131f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -31,4 +31,5 @@ export default { } diff --git a/src/assets/home/footer.png b/src/assets/home/footer.png new file mode 100644 index 0000000..081b35a Binary files /dev/null and b/src/assets/home/footer.png differ diff --git a/src/assets/home/left_main.png b/src/assets/home/left_main.png new file mode 100644 index 0000000..48418ff Binary files /dev/null and b/src/assets/home/left_main.png differ diff --git a/src/assets/home/main-left-bg.png b/src/assets/home/main-left-bg.png new file mode 100644 index 0000000..219eac8 Binary files /dev/null and b/src/assets/home/main-left-bg.png differ diff --git a/src/assets/home/top_bg.png b/src/assets/home/top_bg.png new file mode 100644 index 0000000..f95e193 Binary files /dev/null and b/src/assets/home/top_bg.png differ diff --git a/src/config/net.config.js b/src/config/net.config.js index f8258a8..223c560 100644 --- a/src/config/net.config.js +++ b/src/config/net.config.js @@ -5,7 +5,7 @@ const network = { // 默认的接口地址 如果是开发环境和生产环境走vab-mock-server,当然你也可以选择自己配置成需要的接口地址 baseURL: process.env.NODE_ENV === 'development' - ? 'http://192.168.10.25:8097/fu-hsi-server' + ? 'http://192.168.10.137:8097/fu-hsi-server' : '/fuHsiApi', // 配后端数据的接收方式application/json;charset=UTF-8或者application/x-www-form-urlencoded;charset=UTF-8 contentType: 'application/json;charset=UTF-8', diff --git a/src/layouts/components/SideBar/components/VabSideBarItem.vue b/src/layouts/components/SideBar/components/VabSideBarItem.vue index f233665..20f330c 100644 --- a/src/layouts/components/SideBar/components/VabSideBarItem.vue +++ b/src/layouts/components/SideBar/components/VabSideBarItem.vue @@ -43,7 +43,7 @@ export default { this.handleChildren(this.item.children, this.item) && (!this.routeChildren.children || this.routeChildren.notShowChildren) && - !this.item.alwaysShow || this.item.meta.title === '首页' + !this.item.alwaysShow || this.item.meta.title === '首页' || this.item.meta.title === '信息分析' ) { // if (this.item.meta.title === '首页') return 'VabSubmenu' return 'VabMenuItem' diff --git a/src/layouts/components/TabsBar/index.vue b/src/layouts/components/TabsBar/index.vue index 07294ab..7712fbb 100644 --- a/src/layouts/components/TabsBar/index.vue +++ b/src/layouts/components/TabsBar/index.vue @@ -286,10 +286,17 @@ export default { color: $base-color-default; } ::v-deep { + .el-tabs__nav-prev { + left: 10px; + } + .el-tabs__nav-wrap.is-scrollable { + padding: 0 30px !important; + } .el-tabs__nav-next, .el-tabs__nav-prev { height: 40px; line-height: 40px; + font-size: 20px; } .el-tabs__header { border-bottom: 0; diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 8e487d6..51931b2 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -10,10 +10,14 @@ +
+ {{ time }} + +
- +
@@ -24,13 +28,15 @@ import { mapActions, mapGetters } from 'vuex' import { tokenName } from '@/config' import TopBar from '@/layouts/components/TopBar/index.vue' -import HoverButton from "@/layouts/components/HoverButton/index.vue"; +import HoverButton from '@/layouts/components/HoverButton/index.vue' +import moment from 'moment' export default { name: 'Layout', - components: {HoverButton, TopBar }, + components: { HoverButton, TopBar }, data() { return { // colorBgc: this.$store.baseColor + time: moment().format('YYYY-MM-DD HH:mm:ss') } }, computed: { @@ -78,6 +84,10 @@ export default { handleIsMobile() { return document.body.getBoundingClientRect().width - 1 < 992 }, + reset() { + this.$store.dispatch('settings/changeRefresh', true) + this.time = moment().format('YYYY-MM-DD HH:mm:ss') + }, handleResize() { if (!document.hidden) { const isMobile = this.handleIsMobile() @@ -110,5 +120,21 @@ export default { transition: margin-left 0.28s; position: relative; } + .home-top { + height: 53px; + background: rgba(255,255,255,0.5); + border-radius: 8px 8px 8px 8px; + // width: 100%; + padding: 0 24px; + margin: 0 2%; + margin-bottom: 16px; + display: flex; + flex-direction: row-reverse; + align-items: center; + font-weight: 400; + font-size: 16px; + color: #666666; + cursor: pointer; + } } diff --git a/src/router/index.js b/src/router/index.js index f6da9db..a1615e9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -79,6 +79,23 @@ export const asyncRoutes = [ } ] }, + { + path: '/infoAnalysis', + name: 'InfoAnalysis', + component: Layout, + redirect: '/infoAnalysis', + meta: { title: '信息分析' }, + permission: 'p_home', + children: [ + { + path: '/infoAnalysis', + name: 'InfoAnalysis', + permission: 'p_home', + component: () => import('@/views/infoAnalysis/index.vue'), + meta: { title: '信息分析', affix: false } + } + ] + }, { path: '/rule', name: 'Rule', diff --git a/src/store/modules/settings.js b/src/store/modules/settings.js index bd6bb88..dfe741a 100644 --- a/src/store/modules/settings.js +++ b/src/store/modules/settings.js @@ -15,6 +15,7 @@ const state = () => ({ tagsView: theme.tagsView || true, header: theme?.header || header, device: 'desktop', + refresh: false, layout: theme.layout || layout, themeBar }) @@ -25,7 +26,8 @@ const getters = { tagsView: (state) => state.tagsView, tabsBar: (state) => state.tabsBar, themeBar: (state) => state.themeBar, - layout: (state) => state.layout + layout: (state) => state.layout, + refresh: (state) => state.refresh, } const mutations = { changeLayout: (state, layout) => { @@ -42,6 +44,9 @@ const mutations = { }, toggleDevice: (state, device) => { state.device = device + }, + changeRefresh: (state, refresh) => { + state.refresh = refresh } } const actions = { @@ -59,6 +64,9 @@ const actions = { }, toggleDevice({ commit }, device) { commit('toggleDevice', device) + }, + changeRefresh({ commit }, refresh) { + commit('changeRefresh', refresh) } } export default { state, getters, mutations, actions } diff --git a/src/styles/vab.scss b/src/styles/vab.scss index 4f6c936..a61431d 100644 --- a/src/styles/vab.scss +++ b/src/styles/vab.scss @@ -96,6 +96,7 @@ html { font-family: "微软雅黑", Avenir, Helvetica, Arial, sans-serif; font-size: $base-font-size-default; color: #2c3e50; + overflow: hidden; background: $base-body-background; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; diff --git a/src/views/caseDetails/components/AddEvidence/EvidenceProofread.vue b/src/views/caseDetails/components/AddEvidence/EvidenceProofread.vue index 3179cad..5de990b 100644 --- a/src/views/caseDetails/components/AddEvidence/EvidenceProofread.vue +++ b/src/views/caseDetails/components/AddEvidence/EvidenceProofread.vue @@ -58,8 +58,8 @@ @@ -210,7 +210,9 @@ export default { this.$baseMessage.error('证据名称不能为空!') return } + const loading = this.$baseLoading(1, '保存中...') saveEvidence(this.dataList).then(res => { + loading.close() if (res.code === 200) { this.$store.dispatch( 'tabsBar/delRoute', @@ -330,7 +332,7 @@ box-shadow: none; margin-bottom: 16px; border-radius: 6px 6px 6px 6px; border: 1px solid #D1D3D6; - cursor: pointer; + cursor: move; } } .boder1 { diff --git a/src/views/caseDetails/components/AddEvidence/index.vue b/src/views/caseDetails/components/AddEvidence/index.vue index 42bba2e..2aee4fa 100644 --- a/src/views/caseDetails/components/AddEvidence/index.vue +++ b/src/views/caseDetails/components/AddEvidence/index.vue @@ -1,5 +1,5 @@ + diff --git a/src/views/ruleEngine/indexRule/components/ChangeRules.vue b/src/views/ruleEngine/indexRule/components/ChangeRules.vue index 364fb78..c9467a6 100644 --- a/src/views/ruleEngine/indexRule/components/ChangeRules.vue +++ b/src/views/ruleEngine/indexRule/components/ChangeRules.vue @@ -23,7 +23,7 @@ { + item.atomicData.map((subItem) => { + if (!this.getListValueFlag(subItem.atomicIndex)) { + subItem.atomicIndex = "" + } + }) + }) }, methods: { // 添加 @@ -182,6 +178,15 @@ export default { indexResult: '' }) }, + getListValueFlag(val) { + let flag = false + for (const item of this.atomicIndexData) { + if (item.id === val) { + flag = true + } + } + return flag + }, // 添加单个条件 handleAddRow(val) { val.atomicData.push({ diff --git a/src/views/ruleEngine/indexRule/components/EditRule.vue b/src/views/ruleEngine/indexRule/components/EditRule.vue index c7a676d..0dba981 100644 --- a/src/views/ruleEngine/indexRule/components/EditRule.vue +++ b/src/views/ruleEngine/indexRule/components/EditRule.vue @@ -114,7 +114,7 @@

{{ `[${indexTypeName}] ${ruleForm['name']}` }}

- +
@@ -179,7 +179,6 @@ export default { // 是否是编辑 isEdit: false, // 是否修改过 - isChange: false } }, methods: { @@ -188,7 +187,6 @@ export default { this.activeStep = 0 this.isEdit = isEdit this.drawerOption.show = true - this.isChange = false this.$nextTick(() => { const _this = this _this.ruleForm = isEdit ? JSON.parse(JSON.stringify(data)) : {} @@ -202,7 +200,6 @@ export default { }, delItem(index) { this.ruleForm['atomicIndexList'].splice(index, 1) - this.isChange = true }, // 指标类型选择 handleChange(val) { @@ -216,7 +213,6 @@ export default { handleAtomicSubmit(data) { this.$refs.form.clearValidate('atomicIndexList') this.$set(this.ruleForm, 'atomicIndexList', data) - this.isChange = true }, // 重置 handleReset() {