Commit fcf8a01e by 钟乾明

u: id编码

parent 8bc84814
...@@ -323,8 +323,8 @@ export default { ...@@ -323,8 +323,8 @@ export default {
this.updateCurrentPageType(type) this.updateCurrentPageType(type)
this.updateFlowId(params.fdId) this.updateFlowId(params.fdId)
this.updateTodoId(params.todoId) this.updateTodoId(params.todoId)
this.updateBillId(params.billId) this.updateBillId(encodeURIComponent(params.billId))
this.updateFid(params.billId) this.updateFid(encodeURIComponent(params.billId))
this.fetchExtraDataSuccess = true this.fetchExtraDataSuccess = true
} }
} else { } else {
......
...@@ -4,8 +4,7 @@ import { MAS } from '@/plugins/mas' ...@@ -4,8 +4,7 @@ import { MAS } from '@/plugins/mas'
const masConfig = process.env.PACK_ENV === 'prod' const masConfig = process.env.PACK_ENV === 'prod'
? { ? {
// baseUrl: 'https://jffcvp.cndrealty.com:4433', // 正式环境 baseUrl: 'https://jffcvp.cndrealty.com:4433', // 正式环境
baseUrl: 'https://mxytest.cndrealty.com:4433', // 测试环境
tokenKey: 'accessToken', tokenKey: 'accessToken',
code: 'cndvp-api' code: 'cndvp-api'
} }
......
...@@ -134,6 +134,7 @@ function request (opt) { ...@@ -134,6 +134,7 @@ function request (opt) {
data: opt.data || {}, data: opt.data || {},
dataType: opt.dataType, dataType: opt.dataType,
success: function (resp) { success: function (resp) {
console.log('qing 请求成功>>', opt.url, resp)
var response = { var response = {
data: resp.data, data: resp.data,
status: resp.statusCode, status: resp.statusCode,
...@@ -158,6 +159,7 @@ function request (opt) { ...@@ -158,6 +159,7 @@ function request (opt) {
} }
}, },
error: function (e) { error: function (e) {
console.log('qing 请求失败>>', opt.url, e)
var error = new Error(e) var error = new Error(e)
error.config = opt error.config = opt
reject(error) reject(error)
......
...@@ -175,7 +175,7 @@ export default { ...@@ -175,7 +175,7 @@ export default {
if (isGradeNode) { if (isGradeNode) {
let arr = [] let arr = []
response.data.rows.forEach(v => { response.data.rows.forEach(v => {
arr.push(getReviewFormInfo({billId: Coder.replace(v.id)})) arr.push(getReviewFormInfo({billId: encodeURIComponent(Coder.replace(v.id))}))
}) })
Promise.all(arr) Promise.all(arr)
.then(resultArr => { .then(resultArr => {
...@@ -194,7 +194,7 @@ export default { ...@@ -194,7 +194,7 @@ export default {
} else { } else {
let arr = [] let arr = []
response.data.rows.forEach(v => { response.data.rows.forEach(v => {
arr.push(getReviewSummaryInfo({billId: Coder.replace(v.id)})) arr.push(getReviewSummaryInfo({billId: encodeURIComponent(Coder.replace(v.id))}))
}) })
Promise.all(arr) Promise.all(arr)
.then(resultArr => { .then(resultArr => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment