Commit 2e31690d by 伍思炜

脱敏处理+更改图片获取接口

parent 9e32a10b
......@@ -37,7 +37,6 @@
{"value":"未下单","name":"未下单"},
{"value":"提交中","name":"提交中"},
{"value":"审核中","name":"审核中"},
{"value":"审核中","name":"审核中"},
{"value":"已完成","name":"已完成"},
{"value":"异常单","name":"异常单"}
]
......
......@@ -29,6 +29,8 @@ let setKuanDiData = (params) => postAction(prefix +"order/setKuanDiData" , param
let reportList = (params) => postAction(prefix + "order/getHhrOrderInfo",params);
let reportDownload = (params) => downFilePost(prefix + "order/outputHhrOrder",params);
let images = (params) => postAction(prefix + "/images" , params);
export {
......@@ -48,5 +50,6 @@ export {
updateSendType,
updateIccid,
setUpgradeStatus,
setKuanDiData
setKuanDiData,
images
}
......@@ -6,9 +6,11 @@ let excelOut = (params) => downFilePost(prefix + "/studentCardVerify/excelOut" ,
let list = (params) => postAction(prefix + "/studentCardVerify/list" , params);
let update = (params) => postAction(prefix + "/studentCardVerify/update" , params);
let queryById = (params) => postAction(prefix + "/studentCardVerify/queryById" , params);
let images = (params) => postAction(prefix + "/images" , params);
export {
excelOut,
list,
update,
queryById
queryById,
images
}
......@@ -9,10 +9,13 @@ let getSchoolNames = (params) => postAction(prefix + "/newUser/getSchoolNames"
let initUsers = (params) => postAction(prefix + "/newUser/initUsers" , params);
let list = (params) => postAction(prefix + "/newUser/list" , params);
let update = (params) => postAction(prefix + "/newUser/update" , params);
let images = (params) => postAction(prefix + "/images" , params);
export {
initUsers,
initSubstName,
getSchoolNames,
list,
update,
images
}
......@@ -87,6 +87,12 @@ const err = (error) => {
// request interceptor
service.interceptors.request.use(config => {
const path = location.hash.substr(1);
let publicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCAcsbUyeRD2lQGPEnu5LbXOL2lycUJwK/8BsoZD3b932l4JehAvOKR/YNzs6EG4gnZ7gaXLCnWbE5kB1wuUooo6bv8fSAg0W5QmM1TH8zaIImdAaN6c8mw5dUS/2VJ/2GHI54R1NJziX9VHecpf2DrHnWngETsNytmXaVl3JiXywIDAQAB";
let encrypt = new window.JSEncrypt();
encrypt.setPublicKey(publicKey);
config.headers[ 'security'] = encrypt.encryptLong(path);
console.log(config)
if(config.url.indexOf('school-center-ui.json')!= -1){
config.baseURL =''
}
......
......@@ -210,7 +210,7 @@
<script>
import STable from '@/components/table';
import ImportBtn from "../../../components/sysmanage/ImportBtn";
import {list, excelOut,update,queryById} from "../../../api/school-center/uploadVerify/studentCardVerifyAPI"
import {list, excelOut,update,queryById,images} from "../../../api/school-center/uploadVerify/studentCardVerifyAPI"
import {cloneObject, exportFile} from '@/utils/util';
import ConstantActivity from "@/constant/ConstantActivity";
import Vue from 'vue';
......@@ -405,8 +405,12 @@
this.visiblepicture = false;
},
imgClick(res) {
this.imgInfo = this.baseuploadUrl() + res
this.imgInfo = this.replaceUrl(this.imgInfo);
let imgInfo = this.baseuploadUrl() + res
//imgInfo = this.replaceUrl(imgInfo);
images({url: imgInfo}).then(response => {
this.imgInfo = 'data:image/jpg;base64,' + response
})
this.visiblepicture = true
},
replaceUrl(res){
......
......@@ -137,7 +137,7 @@
<script>
import STable from '@/components/table';
import ImportBtn from "../../../components/sysmanage/ImportBtn";
import {list,update,getSchoolNames, initSubstName} from "../../../api/school-center/userManager/newUserAPI"
import {list,update,getSchoolNames, initSubstName,images} from "../../../api/school-center/userManager/newUserAPI"
import {cloneObject} from '@/utils/util';
import ConstantActivity from "@/constant/ConstantActivity";
import Vue from 'vue';
......@@ -257,7 +257,11 @@
this.visiblepicture = false;
},
imgClick(res) {
this.imgInfo = this.apis + (res != null ? res.replace("manager", "app") : "");
let imgInfo = this.apis + (res != null ? res : "");
//imgInfo = this.replaceUrl(imgInfo);
images({url: imgInfo}).then(response => {
this.imgInfo = 'data:image/jpg;base64,' + response
})
this.visiblepicture = true
},
imgUrl(res){
......
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 to comment