diff --git a/src/App.vue b/src/App.vue index 6d4dd8c..569a43c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,13 +1,32 @@ \ No newline at end of file diff --git a/src/components/uni-navbar/uni-navbar.vue b/src/components/uni-navbar/uni-navbar.vue new file mode 100644 index 0000000..fba904e --- /dev/null +++ b/src/components/uni-navbar/uni-navbar.vue @@ -0,0 +1,41 @@ + + + + + \ No newline at end of file diff --git a/src/components/uni-tarea/uni-tarea.vue b/src/components/uni-tarea/uni-tarea.vue new file mode 100644 index 0000000..a830629 --- /dev/null +++ b/src/components/uni-tarea/uni-tarea.vue @@ -0,0 +1,86 @@ + + + + + \ No newline at end of file diff --git a/src/components/uni-tree-comp/uni-tree-comp.vue b/src/components/uni-tree-comp/uni-tree-comp.vue new file mode 100644 index 0000000..5510208 --- /dev/null +++ b/src/components/uni-tree-comp/uni-tree-comp.vue @@ -0,0 +1,538 @@ + + + + + \ No newline at end of file diff --git a/src/components/uni-tree/uni-tree.vue b/src/components/uni-tree/uni-tree.vue new file mode 100644 index 0000000..6b3f49d --- /dev/null +++ b/src/components/uni-tree/uni-tree.vue @@ -0,0 +1,512 @@ + + + + + \ No newline at end of file diff --git a/src/config.js b/src/config.js index 6bad183..9cd56c4 100644 --- a/src/config.js +++ b/src/config.js @@ -1,7 +1,7 @@ // 应用全局配置 const config = { // baseUrl: 'https://vue.ruoyi.vip/prod-api', - baseUrl: 'http://203.0.105.106:8288', + baseUrl: 'http://203.0.105.106:82/prod-api', // baseUrl: 'http://localhost:8080', //cloud后台网关地址 // baseUrl: 'http://192.168.10.3:8080', diff --git a/src/env.d.ts b/src/env.d.ts index ff58896..ed9effd 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -8,4 +8,5 @@ declare module '*.vue' { export default component } declare module "uview-plus"; +declare module "uview-ui"; declare module 'mqtt/dist/mqtt'; \ No newline at end of file diff --git a/src/manifest.json b/src/manifest.json index b6206f2..7736cf7 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,5 +1,5 @@ { - "name" : "ruoyi-vue3", + "name" : "intc-invest-vue3", "appid" : "__UNI__3DD118D", "description" : "", "versionName" : "1.0.0", diff --git a/src/pages.json b/src/pages.json index 065c533..bb5f83c 100644 --- a/src/pages.json +++ b/src/pages.json @@ -84,10 +84,23 @@ } , { - "path": "pages/work/heartJourney/index", + "path": "pages/work/heartJourney/list", "style": { "navigationBarTitleText": "心路历程" } + } , + { + "path": "pages/work/heartJourney/details", + "style": { + "navigationBarTitleText": "心路历程详情" + } + } + , + { + "path": "pages/work/heartJourney/addEdit", + "style": { + "navigationBarTitleText": "心路历程添加修改" + } } ], "subPackages": [ diff --git a/src/pages/index.vue b/src/pages/index.vue index 7b0b72a..2508bf5 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -666,17 +666,17 @@ onMounted(() => { display: flex; position: relative; align-items: center; - margin: 10px 30px 10px 30px; + margin: 5px 10px 5px 10px; .title { margin-left: 10px; color: rgb(133, 133, 148); margin-bottom: 8px; - font-size: 15px; + font-size: 14px; } .num { margin-left: 10px; font-weight: bold; - font-size: 18px; + font-size: 15px; } } img { @@ -692,7 +692,7 @@ onMounted(() => { display: flex; justify-content: space-between; align-items: center; - font-size: 20px; + font-size: 18px; } } diff --git a/src/pages/work/heartJourney/addEdit.vue b/src/pages/work/heartJourney/addEdit.vue new file mode 100644 index 0000000..4131381 --- /dev/null +++ b/src/pages/work/heartJourney/addEdit.vue @@ -0,0 +1,168 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/heartJourney/details.vue b/src/pages/work/heartJourney/details.vue new file mode 100644 index 0000000..49f4c52 --- /dev/null +++ b/src/pages/work/heartJourney/details.vue @@ -0,0 +1,76 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/heartJourney/index.vue b/src/pages/work/heartJourney/index.vue deleted file mode 100644 index 367c2b6..0000000 --- a/src/pages/work/heartJourney/index.vue +++ /dev/null @@ -1,8 +0,0 @@ - \ No newline at end of file diff --git a/src/pages/work/heartJourney/list.vue b/src/pages/work/heartJourney/list.vue new file mode 100644 index 0000000..ad2fa19 --- /dev/null +++ b/src/pages/work/heartJourney/list.vue @@ -0,0 +1,378 @@ + + + + + \ No newline at end of file diff --git a/src/pages/work/index.vue b/src/pages/work/index.vue index 4eb2a80..5eac0d7 100644 --- a/src/pages/work/index.vue +++ b/src/pages/work/index.vue @@ -87,7 +87,7 @@ import auth from "@/plugins/auth"; // 建议使用auth进行鉴权操作 { path: '/pages/page1/page1', text: '账户交易记录', icon: 'paperclip', permission: 'invest:accountDealRecord:list' } ]) const heartJourneyGridList=ref([ - { path: '/pages/work/heartJourney/index', text: '心路历程', icon: 'heart', permission: 'invest:heartJourney:list' } + { path: '/pages/work/heartJourney/list', text: '心路历程', icon: 'heart', permission: 'invest:heartJourney:list' } ]) function navigateTo(path) { uni.navigateTo({ diff --git a/src/store/index.ts b/src/store/index.ts index 7f06d64..b8e1078 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -1,4 +1,6 @@ import { createPinia } from "pinia" +import piniaPluginPersist from 'pinia-plugin-persist' //++++ const store = createPinia() +store.use(piniaPluginPersist) //++++ export default store \ No newline at end of file diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7a97fdf..753776e 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -1,7 +1,7 @@ import { defineStore } from "pinia"; const useDictStore = defineStore("dict", { state: () => ({ - dict: new Array(), + dict: Array(), }), actions: { // 获取字典 @@ -50,6 +50,9 @@ const useDictStore = defineStore("dict", { // 初始字典 initDict() {}, }, + persist: { + enabled: true, // 开启数据缓存 +++++++ + } }); export default useDictStore; diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index e6b1a2a..e4a1331 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -83,6 +83,9 @@ const useUserStore = defineStore("user", { }); }, }, + persist: { + enabled: true, // 开启数据缓存 +++++++ +} }); export default useUserStore;