qgb-process 0.1.87 → 0.1.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qgb-process",
3
- "version": "0.1.87",
3
+ "version": "0.1.88",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "",
@@ -1,6 +1,6 @@
1
1
  import request from "@/http"
2
- // let baseUrl = 'http://192.168.2.100:9090'
3
- const baseUrl = process.env.VUE_APP_APIUSER
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const baseUrl = base.VUE_APP_APIUSER
4
4
 
5
5
  // 用车记录列表
6
6
  export const getCarRecordList = async(params) => request.post(baseUrl + "/v3/api/carApply/applyCarList", params)
@@ -1,5 +1,6 @@
1
1
  import request from "@/http"
2
- const url = process.env.VUE_APP_APIUSER
2
+ const base = JSON.parse(localStorage.getItem("env"))
3
+ const url = base.VUE_APP_APIUSER
3
4
  const apiFund = {
4
5
  getFundRecordList: (data) => request.get(`${url}/v1/api/CurrentPayment/currentPaymentAccountlist`, data),
5
6
  getFundRecordDetail: (no) => request.get(`${url}/v1/api/CurrentPayment/detail/${no}`),
@@ -1,4 +1,3 @@
1
- // let api = 'http://192.168.100.244:9099/'
2
- // VUE_APP_APIUSER = http://192.168.100.244:9099
3
- const api = process.env.VUE_APP_APIMACHINERY
1
+ const base = JSON.parse(localStorage.getItem("env"))
2
+ const api = base.VUE_APP_APIMACHINERY
4
3
  export default api
@@ -2,7 +2,8 @@
2
2
  // import api from '@/api/apiMachine/api'
3
3
  import http from "@/http/type.js"
4
4
  import api from "@/api/apiMachine/api"
5
- const menuUrl = process.env.VUE_APP_MENUURL
5
+ const base = JSON.parse(localStorage.getItem("env"))
6
+ const menuUrl = base.VUE_APP_MENUURL
6
7
  // getMachineryList: (params) => http.get(api + 'sysMachineryType/getMachineryList', params),
7
8
 
8
9
  const apiRentInfoData = {
@@ -1,2 +1,3 @@
1
- const url = process.env.VUE_APP_APIMACHINERY
1
+ const base = JSON.parse(localStorage.getItem("env"))
2
+ const url = base.VUE_APP_APIMACHINERY
2
3
  export default url
@@ -2,8 +2,9 @@ import cookie from "@/storage/cookies"
2
2
  import { Message } from "element-ui"
3
3
  // let that = this
4
4
  /* 富文本编辑图片上传配置 */
5
+ const base = JSON.parse(localStorage.getItem("env"))
5
6
  const uploadConfig = {
6
- action: process.env.VUE_APP_APIMATERIALS,
7
+ action: base.VUE_APP_APIMATERIALS,
7
8
  methods: "POST", // 必填参数 图片上传方式
8
9
  token: cookie.cookieRead("token"), // 可选参数 如果需要token验证,假设你的token有存放在sessionStorage
9
10
  name: "file", // 必填参数 文件的参数名
@@ -365,7 +365,7 @@ export default {
365
365
  "automaticPass": this.workFlowDef.automaticPass ? 1 : 0, // 重复审批人问题
366
366
  "creator": this.userInfo.no, // 用户no this.$store.state.user.no
367
367
  "companyId": this.userInfo.companyNo, // 公司id this.$store.state.user.companyNo
368
- "type": this.queryInfo.type, // 流程类型 this.$route.query.type
368
+ "type": this.type, // 流程类型 this.$route.query.type 或者表单类型
369
369
  "processName": this.queryInfo.name, // 流程名称 ""this.$route.query.name
370
370
  "describe": this.queryInfo.name // 流程描述 this.$route.query.name
371
371
  }