优化搜索

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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