|
@@ -540,7 +540,23 @@ export default {
|
|
|
{
|
|
|
...this.parameter,
|
|
|
pageSize: -1,
|
|
|
- params: querylist,
|
|
|
+ params: querylist.map(item => {
|
|
|
+ if (
|
|
|
+ item.compare === '=' &&
|
|
|
+ typeof item.value == 'string' &&
|
|
|
+ (~item.value.indexOf(',') || ~item.value.indexOf(','))
|
|
|
+ ) {
|
|
|
+ // 去除换行
|
|
|
+ var str = item.value.replace(/\\n/g, '')
|
|
|
+ // 去除空格
|
|
|
+ str = str.replace(/[\t\r\f\n\s]*/g, '')
|
|
|
+ // 转中文逗号
|
|
|
+ str = str.replace(/,/g, ',')
|
|
|
+ // 切割为数组
|
|
|
+ item.value = str.split(',')
|
|
|
+ }
|
|
|
+ return item
|
|
|
+ }),
|
|
|
exportFields: data
|
|
|
},
|
|
|
`${this.moduleName}.xlsx`
|