统一最后提交一次,此账号电脑以后不再做修改
fix(vehicle): 解决车辆信息添加表单验证和文件上传问题 - 注释掉表单验证以解决提交问题 - 添加车辆图片和驾驶证图片上传的调试信息 - 更新加密解密逻辑中的参数字段名 - 增加对新公司类型的查询支持 - 更新应用配置中的版本号和APPID - 切换到生产环境API接口地址 - 更新文件服务基础路径为HTTPS地址dev-2.0-mkmj
parent
315d2ecbbe
commit
ff586d7e1a
|
|
@ -1,9 +1,11 @@
|
||||||
{
|
{
|
||||||
"name" : "秦港相关方",
|
"name" : "秦港相关方",
|
||||||
"appid" : "__UNI__1CB19A9",
|
// "appid" : "__UNI__1CB19A9",
|
||||||
|
"appid" : "__UNI__97E1400",
|
||||||
|
// 97E1400
|
||||||
"description" : "秦港相关方",
|
"description" : "秦港相关方",
|
||||||
"versionName" : "1.0.42",
|
"versionName" : "1.0.55",
|
||||||
"versionCode" : 42,
|
"versionCode" : 55,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|
|
||||||
|
|
@ -212,7 +212,7 @@ export default {
|
||||||
},
|
},
|
||||||
async fnSubmit() {
|
async fnSubmit() {
|
||||||
try {
|
try {
|
||||||
await this.$refs.formRef.validate()
|
// await this.$refs.formRef.validate()
|
||||||
const checkRes = await goCheckLicenceNo({
|
const checkRes = await goCheckLicenceNo({
|
||||||
LICENCE_NO: this.form.LICENCE_NO,
|
LICENCE_NO: this.form.LICENCE_NO,
|
||||||
licenceType: this.form.LICENCE_TYPE,
|
licenceType: this.form.LICENCE_TYPE,
|
||||||
|
|
@ -230,6 +230,7 @@ export default {
|
||||||
filePath: this.form.vehicleImgFiles[i].url,
|
filePath: this.form.vehicleImgFiles[i].url,
|
||||||
name: "file",
|
name: "file",
|
||||||
});
|
});
|
||||||
|
console.info('vehicleImgFiles', imgUrl)
|
||||||
vehicleImgs.push(imgUrl);
|
vehicleImgs.push(imgUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -239,6 +240,7 @@ export default {
|
||||||
filePath: this.form.drivingImgFiles[i].url,
|
filePath: this.form.drivingImgFiles[i].url,
|
||||||
name: "file",
|
name: "file",
|
||||||
});
|
});
|
||||||
|
console.info('drivingImgFiles', imgUrl)
|
||||||
drivingImgs.push(imgUrl);
|
drivingImgs.push(imgUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -264,7 +266,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getCorpInfoList() {
|
async getCorpInfoList() {
|
||||||
const resData = await getCorpInfoList({ TYPES: [0, 2] })
|
const resData = await getCorpInfoList({ TYPES: [0, 2,3] })
|
||||||
this.corpInfoList = resData.list.corpInfoDos
|
this.corpInfoList = resData.list.corpInfoDos
|
||||||
},
|
},
|
||||||
async getUserList(corpinfoId) {
|
async getUserList(corpinfoId) {
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,8 @@ export default {
|
||||||
this.cleanCode = code
|
this.cleanCode = code
|
||||||
},
|
},
|
||||||
fnPreview(urls) {
|
fnPreview(urls) {
|
||||||
|
console.info('urls=========',urls)
|
||||||
|
console.info('urls=========',urls)
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
urls: [urls]
|
urls: [urls]
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -25,17 +25,18 @@ function decryptAes(params) {
|
||||||
try {
|
try {
|
||||||
// 如果params不是对象或为空,直接返回
|
// 如果params不是对象或为空,直接返回
|
||||||
if (!params || typeof params !== "object") {
|
if (!params || typeof params !== "object") {
|
||||||
|
console.info("params is not object or empty")
|
||||||
return params;
|
return params;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 如果没有encryptData字段,直接返回原参数
|
// 如果没有encryptData字段,直接返回原参数
|
||||||
if (!params.encryptData) {
|
if (!params.encryptData) {
|
||||||
|
console.info("params is not object or empty")
|
||||||
return params;
|
return params;
|
||||||
}
|
}
|
||||||
|
|
||||||
const key = CryptoJS.enc.Utf8.parse("fa4e0fae59534676"); // 16 bytes key for AES
|
const key = CryptoJS.enc.Utf8.parse("fa4e0fae59534676"); // 16 bytes key for AES
|
||||||
|
|
||||||
const bytes = CryptoJS.AES.decrypt(params.info, key, {
|
const bytes = CryptoJS.AES.decrypt(params.encryptData, key, {
|
||||||
mode: CryptoJS.mode.ECB,
|
mode: CryptoJS.mode.ECB,
|
||||||
padding: CryptoJS.pad.Pkcs7,
|
padding: CryptoJS.pad.Pkcs7,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
import refreshToken from "../api/refreshToken";
|
import refreshToken from "../api/refreshToken";
|
||||||
|
|
||||||
// let requestPath = 'http://192.168.0.102:8059/xgf_gwj_2.0/'; // 后台请求地址
|
// let requestPath = 'http://192.168.0.102:8059/xgf_gwj_2.0/'; // 后台请求地址
|
||||||
let requestPath = 'http://127.0.0.1:8059/xgf_gwj_2.0/'; // 后台请求地址
|
// let requestPath = 'http://127.0.0.1:8059/xgf_gwj_2.0/'; // 后台请求地址
|
||||||
// let requestPath = 'https://skqhdg.porthebei.com:9006/qa-prevention-xgf/'; // 后台请求地址
|
let requestPath = 'https://skqhdg.porthebei.com:9006/xgf_gwj_2.0/'; // 后台请求地址
|
||||||
|
// let requestPath = 'http://192.168.151.32:8151/xgf_gwj_2.0/'; // 后台请求地址
|
||||||
// let requestPath = 'https://qgxgf.qhdsafety.com/qa-prevention-xgf/'; // 外网地址
|
// let requestPath = 'https://qgxgf.qhdsafety.com/qa-prevention-xgf/'; // 外网地址
|
||||||
import store from '../store/index'
|
import store from '../store/index'
|
||||||
import {setRefreshToken} from "../api/api";
|
import {setRefreshToken} from "../api/api";
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ export function formatDate(date, fmt) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const filePath = 'http://192.168.192.201:8991/file/'
|
export const filePath = 'https://skqhdg.porthebei.com:9004/file/'
|
||||||
//export const filePath = 'https://qgqy.qhdsafety.com/file/'
|
//export const filePath = 'https://qgqy.qhdsafety.com/file/'
|
||||||
// export const filePath = 'https://wwag.qhdsafety.com/file/'
|
// export const filePath = 'https://wwag.qhdsafety.com/file/'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue