摘要: 实现效果根据刷选年份返回对应年份作为部分列 1. 处理接口数据 接口返回数据格式 需要处理成 处理过程 data.message && data.message.forEach((item:any)=>{ let obj = {} for(var key in item){ if(Number(ke 阅读全文
posted @ 2024-05-17 14:08 番茄西红柿u 阅读(29) 评论(0) 推荐(0) 编辑
摘要: toDaohang(point){ let that = this //打开高德 Dialog.confirm({ title: '', message: '打开高德地图', }) .then(() => { let str = [] if(point!=''){ str = point.split 阅读全文
posted @ 2023-12-08 10:58 番茄西红柿u 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 1. 下载 npm install -S echarts 2.使用 方法一(推荐使用) <div class="echart_box" ref="echartDom"></div> <script setup lang="ts"> import * as echarts from "echarts" 阅读全文
posted @ 2023-10-09 17:12 番茄西红柿u 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 1、 安装引入 npm install pinia main.ts中挂载 import { createPinia } from 'pinia' const pinia = createPinia(); app.use(pinia); 2、src下新建 store 文件夹(不同模块建立不同文件,在i 阅读全文
posted @ 2023-09-22 14:08 番茄西红柿u 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 项目中有些时候会调用不同的的环境接口地址,统一进行管理便于切换 1. static文件夹下新建 config.js: (static/ 目录下的文件并不会被Webpack处理:它们会直接被复制到最终的打包目录(默认是dist/static)下) const URLList = { hotel:{ b 阅读全文
posted @ 2023-02-13 11:32 番茄西红柿u 阅读(78) 评论(0) 推荐(0) 编辑
摘要: eventBus.js import Vue from 'vue'; const EventBus = new Vue() export { EventBus } navHead.vue(收到通知 触发orderService.vue中的列表) import {EventBus} from '@/u 阅读全文
posted @ 2022-12-26 11:39 番茄西红柿u 阅读(23) 评论(0) 推荐(0) 编辑
摘要: Mock 文件夹下新建 mockServe.js import Mock from "mockjs"; import testData from './test.js' import goodData from './goods.js' import infoData from './info.js 阅读全文
posted @ 2022-11-18 10:40 番茄西红柿u 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 见:http://pgs98.com/ 无缝滚动: vue3-seamless-scroll 阅读全文
posted @ 2022-09-23 16:45 番茄西红柿u 阅读(10) 评论(0) 推荐(0) 编辑
摘要: main.js Vue.directive('has', { inserted: function (el, binding, vnode) { let btnPermissions = vnode.context.$route.meta.btnPermissions if (!Vue.protot 阅读全文
posted @ 2022-08-25 15:33 番茄西红柿u 阅读(24) 评论(0) 推荐(0) 编辑
摘要: menuFormat.js(格式化路由表) export const initMenu = (data) => { let list = []; data.forEach(router => { let { path, component, name, meta, // icon, children 阅读全文
posted @ 2022-08-25 15:19 番茄西红柿u 阅读(665) 评论(0) 推荐(0) 编辑