优化搜索
This commit is contained in:
parent
749c1afc3e
commit
2a3974b860
|
|
@ -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
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -769,7 +769,7 @@ export default {
|
|||
// 搜索处理函数
|
||||
handleSearchImpl(query) {
|
||||
if (!query) {
|
||||
// this.filteredOptions = [...this.flattenTypeOptions]
|
||||
this.filteredOptions = [...this.flattenTypeOptions]
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -770,7 +770,7 @@ export default {
|
|||
// 搜索处理函数
|
||||
handleSearchImpl(query) {
|
||||
if (!query) {
|
||||
// this.filteredOptions = [...this.flattenTypeOptions];
|
||||
this.filteredOptions = [...this.flattenTypeOptions];
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -650,7 +650,7 @@ export default {
|
|||
// 搜索处理函数
|
||||
handleSearchImpl(query) {
|
||||
if (!query) {
|
||||
// this.filteredOptions = [...this.flattenTypeOptions]
|
||||
this.filteredOptions = [...this.flattenTypeOptions]
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -733,7 +733,7 @@ export default {
|
|||
// 搜索处理函数
|
||||
handleSearchImpl(query) {
|
||||
if (!query) {
|
||||
// this.filteredOptions = [...this.flattenTypeOptions]
|
||||
this.filteredOptions = [...this.flattenTypeOptions]
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -410,7 +410,7 @@ export default {
|
|||
// 搜索处理函数
|
||||
handleSearchImpl(query) {
|
||||
if (!query) {
|
||||
// this.filteredOptions = [...this.flattenTypeOptions]
|
||||
this.filteredOptions = [...this.flattenTypeOptions]
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -520,7 +520,7 @@ export default {
|
|||
// 搜索处理函数
|
||||
handleSearchImpl(query) {
|
||||
if (!query) {
|
||||
// this.filteredOptions = [...this.flattenTypeOptions]
|
||||
this.filteredOptions = [...this.flattenTypeOptions]
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -532,7 +532,7 @@ export default {
|
|||
// 搜索处理函数
|
||||
handleSearchImpl(query) {
|
||||
if (!query) {
|
||||
// this.filteredOptions = [...this.flattenTypeOptions]
|
||||
this.filteredOptions = [...this.flattenTypeOptions]
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue