Newer
Older
dcms_front / README-zh.md

智慧城管系统基础子系统前端

智慧城管系统基础子系统WEB前端.

相关项目

本项目源于vue-admin-template,一个极简的 vue admin 管理后台 它只包含了 Element UI & axios & iconfont & permission control & lint,这些搭建后台必要的东西。

vue-admin-template

vue-element-admin

electron-vue-admin

vue-typescript-admin-template

安装前提

  1. 安装nodejs

nodejs官网下载安装包

安装完成之后,在cmd中检查Node.js版本,输出版本号则表示安装成功

node --version

安装步骤

# 克隆项目
git clone http://111.198.10.15:12003/gitbucket/git/wangxiaoying/dcms_front.git

# 安装依赖
npm install

# 建议不要用cnpm  安装有各种诡异的bug 可以通过如下操作解决npm速度慢的问题
npm install --registry=https://registry.npm.taobao.org

# Serve with hot reload at localhost:9528
npm run dev

# Build for production with minification
npm run build

# Build for production and view the bundle analyzer report
npm run build --report

配置文件属性解释

static/project.config.json

{
  "title": "智慧城管平台",
  "baseUrl": "http://111.198.10.15:11409/",
  "sameWindow": true,
  "city":"崇仁县",
  "mapUrl":"https://t0.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=216ee92889e17ab1b083fae665d522b8",
  "labelUrl":"https://t0.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=216ee92889e17ab1b083fae665d522b8",
  "center":[27.75962, 116.06021],
  "zoom":15
}
  • title: 系统名称
  • baseUrl: 后台地址
  • sameWindow: 是否要在同一个窗口打开子系统,true为是,false为否,选择false将在新窗口打开子系统
  • city: 城市,暂无用处
  • mapUrl: 地图地址
  • labelUrl: 地图标注地址
  • center: 默认地图中心坐标 [纬度,经度]
  • zoom: 默认缩放级别,数字

浏览器支持情况

主流浏览器和IE 10+.

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
IE10, IE11, Edge last 2 versions last 2 versions last 2 versions

License

Copyright (c) 2019-present WangXiaoying