Coder Social home page Coder Social logo

ionic-otrs-app's Introduction

ionic-otrs-app

a otrs(Open-source Ticket Request System) app base on ionic
基于Ionic开发的Otrs(http://www.otrs.com/?lang=zh-hans IT运维管理/客服系统)手机客户端
主要实现客户查询工单、投诉、加急处理的功能

##0.安装开发环境

##1.运行程序 ###下载源码 git clone https://github.com/little51/ionic-otrs-app.git
或download zip ###下载依赖包

  • 在ionic-otrs-app目录下执行:npm install
  • 为了使用gulp,还需要执行:npm install gulp -g
  • 最新版的gulp-connect在windows上由于对盘符大小写判断有误,会出现403错误(ubuntu上正常),具体解决方法如下 修改ionic-otrs-app\node_modules\gulp-connect\node_modules\connect\node_modules\serve-static\node_modules\send\lib\send.js
    注释掉第413行,return this.error(403)

###启动程序 gulp

###运行App(在浏览器中测试) 为了解决跨域访问问题

  • Linux:chromium-browser --disable-web-security&
  • Window:chrome浏览器启动项加 --disable-web-security
  • http://localhost:8080
  • 用户名:640001 口令:0000

##2.将ionic-otrs-app用于您的otrs ###导入GenericTicketConnector webservice接口 http://yourhost/otrs/index.pl?Action=AdminGenericInterfaceWebservice
导入 ionic-otrs-app\ws\GenericTicketConnector.yml
###修改app中webservice调用指向 修改 ionic-otrs-app\www\js\app.js中的wsUrl变量值

##3.用到的技术要点

  • gulp管理包依赖关系
  • gulp-connect 实现web监听(浏览器环境下)
  • GenericInterfaceWebservice 实现App调用otrs后台
  • locationChangeStart event拦截实现Session控制
  • $window.localStorage 实现Session的本地持久
  • ion-infinite-scroll 实现分页

##4.文件列表 index.html 主页面 js:

  • app.js 路由和模块引入
  • authservices.js 登录控制
  • common.js xml转json
  • controllers.js 控制器
  • ticketservices.js工单查询服务 templates:
  • about.html 关于
  • login.html 登录
  • myinfo.html 我的
  • tabs.html Tab
  • ticket-detail.html 工单详细
  • ticket-index.html 工单索引

##5.license MIT license

ionic-otrs-app's People

Contributors

little51 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.