1.0.10 • Published 3 years ago

th-network-industry-power v1.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

项目名称

非抢指挥 th-network-industry-power

项目背景

配网一张图对各个模块进行可视化于地图的基础之上,并各个模块独立成包供展示层项目使用,依赖于公共代码包和GIS包,如此便于管理和按需求供给客户现场

如何安装

npm i element-ui -S npm i xlsx -S npm i th-vue-component -S npm i th-vue-business -S npm i th-vue-echarts -S npm i th-gis -S npm i th-network-common -S npm i th-network-industry-power -S

如何使用

在安装成功后,在项目或者包项目的入口文件中加入引用

  import ThNetworkIndustryPower from 'th-network-industry-power'
  import 'th-network-industry-power/lib/th-network-industry-power.css'
  Vue.use(ThNetworkIndustryPower)

然后使用模块组件

  <th-industry-power-module v-if="isShow" v-bind="repairConductProp" />
  <script>
  import { MapViewVo } from 'th-gis'
  export default {
    name: 'IndustryPower',
    data() {
      return {
        isShow: true
      }
    },
    computed: {
      industryPowerProp() {
        const mapViewVo = new MapViewVo()
        const rcProp = {
          mapParam: {
            thMap: mapViewVo.map, // 所需地图对象
            mapType: 'baidu'
          },
          apiParam: {
            isOrigin: true, // 是否是原服务, false是微服务
            serverUrl: 'http://192.168.20.214:9000', // 服务的域名
            egisServerUrl: 'http://192.168.20.214:9000'
          },
          dialogLinkParam: { // 链接弹窗链接到供服页面所需要的参数
            iscUserId: '8a6a88f25b858e47015bf522ab45133b',
            baseUrl: 'http://192.168.20.214:9000/sgpssc/thFrame/accommodate.jsp',
            pmsYwId: '8a6a8b324ac8bc72014bd863458a3b36'
          },
          otherParam: {
            sysCurrOrgId: ''
          },
          isModuleShow: this.isShow
        }
        return rcProp
      }
    }
  }
  </script>

相关项目

依赖

th-network-common th-vue-component element-ui echarts moment

兄弟模块项目

th-network-repair-conduct th-network-ops

指令说明

# 启动DEMO开发模式
npm run dev

# 打包组件
npm run build

# 发布(npm adduser && npm login)
npm run deploy

主要项目负责人

@huangfengnv

参与贡献方式

开源协议