|
@@ -23,12 +23,14 @@ export default {
|
|
|
opttype:e.dataformat.type,
|
|
|
required:e.required,
|
|
|
dataSource:async (data)=>{
|
|
|
- if (e.request.cotparam) {
|
|
|
- e.request.cotparam.forEach((cot)=>{
|
|
|
- e.request.content[cot] = data[cot]
|
|
|
- })
|
|
|
+ let rq = JSON.stringify(e.request)
|
|
|
+ for(var prop in data){
|
|
|
+ if(data.hasOwnProperty(prop)){
|
|
|
+ var re = new RegExp('&' + prop + '&', 'g');
|
|
|
+ rq = rq.replace(re, data[prop]);
|
|
|
+ }
|
|
|
}
|
|
|
- console.log(e.request)
|
|
|
+ console.log(rq)
|
|
|
const res = await Api.requested(e.request)
|
|
|
let arr = res.data.map(rs=>{
|
|
|
return {
|