|
@@ -88,6 +88,7 @@
|
|
|
},
|
|
|
sure() {
|
|
|
let requestParams = {};
|
|
|
+ // console.log('this.btnInfo',this.btnInfo);
|
|
|
let _value = this.value;
|
|
|
this.btnInfo.params.map(item => {
|
|
|
if (item.valueKey) {
|
|
@@ -98,9 +99,10 @@
|
|
|
)[item.valueKey];
|
|
|
} else if (item.value) {
|
|
|
requestParams[item.paramsKey] = item.value;
|
|
|
- } else {
|
|
|
+ } else {
|
|
|
+ // console.log('this.filePath',this.filePath,'item.paramsKey',item.paramsKey);
|
|
|
switch (item.paramsKey) {
|
|
|
- case 'imgPath': // 上传图片
|
|
|
+ case 'improveUrl': // 上传图片
|
|
|
requestParams[item.paramsKey] = this.filePath.join(',');
|
|
|
break;
|
|
|
case 'textarea': // 回复内容
|
|
@@ -115,7 +117,8 @@
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
+ // console.log({requestParams})
|
|
|
this.$emit('comRequest', requestParams);
|
|
|
}
|
|
|
}
|