Giter Site home page Giter Site logo

ids4-manager-vue's Introduction

ids4-manager-vue

基于 vue 的 ids4 管理,可作为 abp 前后端分离直接使用并开发

欢迎大家参与维护,作者本人技术栈转为 react 了将之前版本开源出来给大家

项目框架是基于 vue antd 使用方法 在 src/utils/server 里面配置对应的登录地址与应用程序网关

const FileServerUrl = 'http://localhost:65115'
const AuthUrlApi = 'http://localhost:64999'
const BaseUrlApi = 'http://localhost:65115'

运行方法

  • 运行命令 yarn 安装依赖包
  • 运行 yarn serve 即可运行

如果发现登录不成功在 src/login.js 内配置好自己的认证信息

export function tenantLogin(parameter) {
  /*ids3.x */
  let formData = new FormData()
  formData.append('grant_type', 'password')
  // 这里配置作用域
  formData.append('scope', 'BackendAdminAppGateway OrderService ProductService PriceService AgentService CorpService')
  formData.append('username', parameter.username)
  formData.append('password', parameter.password)
  // 这里配置client
  formData.append('client_id', 'authserver')
  formData.append('client_secret', '1q2w3e*')

  return axios.post('/connect/token', formData, {
    baseURL: server.AuthUrlApi,
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
  })

  /*ids4.x */
  //let param = {
  //    grant_type: 'password',
  //    scope: 'BackendAdminAppGateway OrderService ProductService PriceService AgentService CorpService',
  //    username: parameter.username,
  //    password: parameter.password,
  //    client_id: 'authserver',
  //    client_secret: '1q2w3e*'
  //}
  //return axios.post('/connect/token', Qs.stringify(param), {
  //    baseURL: server.AuthUrlApi,
  //    headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
  //});
}

ids4-manager-vue's People

Contributors

nameisbad avatar thk-liu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.