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