|
|
@@ -49,6 +49,8 @@
|
|
|
},
|
|
|
/** 创建 */
|
|
|
createDemand() {
|
|
|
+ this.addDemand['route']=window.location.href;
|
|
|
+ this.addDemand['title']=document.title.replace('BsWAS','');
|
|
|
let url = '{{url('apiLocal/demand/store')}}';
|
|
|
window.tempTip.setIndex(1999);
|
|
|
window.tempTip.setDuration(3000);
|
|
|
@@ -57,6 +59,8 @@
|
|
|
let file = document.querySelector('#add-demand-file-create').files[0];
|
|
|
if(this.addDemand['authority_id'])formData.append('authority_id', this.addDemand['authority_id']);
|
|
|
if(this.addDemand['type'])formData.append('type', this.addDemand['type']);
|
|
|
+ if(this.addDemand['route'])formData.append('route', this.addDemand['route']);
|
|
|
+ if(this.addDemand['title'])formData.append('title', this.addDemand['title']);
|
|
|
if(this.addDemand['description'])formData.append('description', this.addDemand['description']);
|
|
|
if(file)formData.append('file', file);
|
|
|
|