优化搜索

This commit is contained in:
bb_pan 2025-09-14 21:06:27 +08:00
parent 749c1afc3e
commit 2a3974b860
8 changed files with 14 additions and 10 deletions

View File

@ -383,7 +383,7 @@
</el-row>
<!-- 弹框 -->
<el-dialog title="领用申请" :visible.sync="dialogVisible" width="60%">
<el-dialog title="领用申请" :visible.sync="dialogVisible" width="60%" v-loading="loading">
<el-form ref="dialogForm" :model="maForm" label-width="120px" inline>
<el-form-item label="领用单位:" prop="unitName">
<span>{{ maForm.unitName }}</span>
@ -1013,7 +1013,7 @@ export default {
//
handleSearchImpl(query) {
if (!query) {
// this.filteredOptions = [...this.flattenTypeOptions]
this.filteredOptions = [...this.flattenTypeOptions]
return
}
@ -1173,21 +1173,23 @@ export default {
}
if (this.isEdit) {
try {
this.loading = true
const res = await editLeaseTask(params)
if (res.code === 200) {
this.$modal.msgSuccess('操作成功')
//
this.$tab.closePage()
}
this.loading = false
} catch (error) {
console.log('🚀 ~ error:', error)
} finally {
this.loading = false
}
} else if (!this.isEdit) {
console.log('新增')
console.log(this.equipmentList)
try {
this.loading = true
const res = await addLeaseTask(params)
if (res.code === 200) {
this.$modal.msgSuccess('操作成功')
@ -1198,6 +1200,8 @@ export default {
}
} catch (error) {
console.log('🚀 ~ error:', error)
} finally {
this.loading = false
}
}
})

View File

@ -769,7 +769,7 @@ export default {
//
handleSearchImpl(query) {
if (!query) {
// this.filteredOptions = [...this.flattenTypeOptions]
this.filteredOptions = [...this.flattenTypeOptions]
return
}

View File

@ -770,7 +770,7 @@ export default {
//
handleSearchImpl(query) {
if (!query) {
// this.filteredOptions = [...this.flattenTypeOptions];
this.filteredOptions = [...this.flattenTypeOptions];
return;
}

View File

@ -650,7 +650,7 @@ export default {
//
handleSearchImpl(query) {
if (!query) {
// this.filteredOptions = [...this.flattenTypeOptions]
this.filteredOptions = [...this.flattenTypeOptions]
return
}

View File

@ -733,7 +733,7 @@ export default {
//
handleSearchImpl(query) {
if (!query) {
// this.filteredOptions = [...this.flattenTypeOptions]
this.filteredOptions = [...this.flattenTypeOptions]
return
}

View File

@ -410,7 +410,7 @@ export default {
//
handleSearchImpl(query) {
if (!query) {
// this.filteredOptions = [...this.flattenTypeOptions]
this.filteredOptions = [...this.flattenTypeOptions]
return
}

View File

@ -520,7 +520,7 @@ export default {
//
handleSearchImpl(query) {
if (!query) {
// this.filteredOptions = [...this.flattenTypeOptions]
this.filteredOptions = [...this.flattenTypeOptions]
return
}

View File

@ -532,7 +532,7 @@ export default {
//
handleSearchImpl(query) {
if (!query) {
// this.filteredOptions = [...this.flattenTypeOptions]
this.filteredOptions = [...this.flattenTypeOptions]
return
}