bug修复

This commit is contained in:
hongchao 2025-06-16 09:01:34 +08:00
parent 5e37447903
commit 17526ed048
6 changed files with 8 additions and 6 deletions

View File

@ -1177,11 +1177,11 @@ export default {
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download( this.download(
'system/dict/type/export', '/material/workSite//export',
{ {
...this.queryParams, ...this.queryParams,
}, },
`type_${new Date().getTime()}.xlsx`, `工地直转_${new Date().getTime()}.xlsx`,
) )
}, },
}, },

View File

@ -1283,6 +1283,7 @@ export default {
}, },
// //
highlightText(text, keyword) { highlightText(text, keyword) {
console.log("vvvvvvvvvvv",text,keyword)
if (!keyword) return text if (!keyword) return text
const reg = new RegExp(keyword, 'gi') const reg = new RegExp(keyword, 'gi')
return text.replace(reg, match => `<span class="highlight-text">${match}</span>`) return text.replace(reg, match => `<span class="highlight-text">${match}</span>`)

View File

@ -1100,6 +1100,7 @@ export default {
// //
highlightText(text, keyword) { highlightText(text, keyword) {
console.log("yyyyyyyyyyyyy",text,keyword)
if (!keyword) return text; if (!keyword) return text;
const reg = new RegExp(keyword, 'gi'); const reg = new RegExp(keyword, 'gi');
return text.replace(reg, match => `<span class="highlight-text">${match}</span>`); return text.replace(reg, match => `<span class="highlight-text">${match}</span>`);

View File

@ -294,8 +294,8 @@ export default {
const currentTime = formatTime(new Date()); const currentTime = formatTime(new Date());
this.download( this.download(
"/material/lease_apply_info/exportDetails", "/material/scrap_apply_details/exportDetails",
{ id: this.id }, {'taskId':this.taskId,'keyWord':this.maForm.keyWord},
`盘点报废详情_${currentTime}.xlsx` `盘点报废详情_${currentTime}.xlsx`
); );
}, },

View File

@ -152,7 +152,7 @@ export default {
// //
jumpList() { jumpList() {
const obj = { path: "/repair/scrapLedger" }; const obj = { path: "/scrap/scrapLedger" };
this.$tab.closeOpenPage(obj); this.$tab.closeOpenPage(obj);
}, },

View File

@ -136,7 +136,7 @@ import { getToken } from '@/utils/auth'
console.log(row) console.log(row)
let query = { "month":row.month,isView:"true" } let query = { "month":row.month,isView:"true" }
this.$tab.closeOpenPage({ this.$tab.closeOpenPage({
path: '/repair/scrapLedgerDetail', path: '/scrap/scrapLedgerDetail',
query, query,
}) })
}, },