修改空格转码

This commit is contained in:
haozq 2024-04-20 14:46:14 +08:00
parent 6764990fda
commit cd630cc77b
3 changed files with 8 additions and 6 deletions

View File

@ -53,9 +53,9 @@ export function tansParams(params) {
}
}
} else {
result += part + encodeURIComponent(value) + "&";
result += part + encodeURIComponent(value).replaceAll("%20"," ") + "&";
}
}
}
return result
}
}

View File

@ -72,8 +72,8 @@
:on-remove="handleRemoveFile"
action="#"
:auto-upload="false"
:file-list="fileList"
>
:file-list="fileList">
<el-button size="small" type="primary">点击上传</el-button>
</el-upload>
</el-form-item>

View File

@ -20,7 +20,7 @@
class="filter-item ml-20"
value-format="yyyy-MM-dd"
type="daterange"
range-separator=""
range-separator=" - "
start-placeholder="开始日期"
end-placeholder="结束日期"
/>
@ -136,7 +136,9 @@ export default {
getList() {
this.listLoading = true
const reqData = _.cloneDeep(this.listQuery)
reqData.wordDay = (this.listQuery.wordDay?.length) ? this.listQuery.wordDay?.join(' - ') : ''
console.log(this.listQuery.wordDay);
reqData.workDay = (this.listQuery.wordDay?.length) ? this.listQuery.wordDay?.join(' - ') : '';
console.log(reqData.workDay);
getDailyTaskList(reqData).then((response) => {
this.list = response.rows.map(item => {
return item