组件优化

This commit is contained in:
bb_pan 2025-06-26 10:43:14 +08:00
parent 35c2208bf9
commit bea2bb2048
10 changed files with 19 additions and 62 deletions

View File

@ -274,11 +274,11 @@ export function applyRemove(ids) {
} }
// 获取机具类型树 // 获取机具类型树
export function equipmentTypeTree(query) { export function equipmentTypeTree(data) {
return request({ return request({
url: '/material/ma_type/equipmentType', url: '/material/material_lease_apply_info/equipmentType',
method: 'get', method: 'post',
params: query data
}) })
} }

View File

@ -1013,9 +1013,9 @@ export default {
// overflow-y: auto; // overflow-y: auto;
// } // }
.highlight-text { ::v-deep .highlight-text {
background-color: #ffd04b; background-color: #ffd04b;
color: #000; color: #000;
} }
::v-deep .el-input-group__append { ::v-deep .el-input-group__append {
@ -1046,11 +1046,6 @@ export default {
} }
} }
.highlight-text {
background-color: #ffd04b;
color: #000;
}
.el-input-group__append { .el-input-group__append {
padding: 0; padding: 0;
.el-button { .el-button {

View File

@ -1276,7 +1276,7 @@ export default {
if (this.currentMatchIndex === -1 || !this.matchedOptions.length) return if (this.currentMatchIndex === -1 || !this.matchedOptions.length) return
const option = this.matchedOptions[this.currentMatchIndex] const option = this.matchedOptions[this.currentMatchIndex]
const selectDom = this.$el.querySelector('.el-select-dropdown__wrap') const selectDom = this.$el.querySelector('.type-select-dropdown')
const optionDom = selectDom?.querySelector(`[data-key="${option.typeId}"]`) const optionDom = selectDom?.querySelector(`[data-key="${option.typeId}"]`)
if (optionDom) { if (optionDom) {
@ -1358,7 +1358,7 @@ export default {
// overflow-y: auto; // overflow-y: auto;
// } // }
.highlight-text { ::v-deep .highlight-text {
background-color: #ffd04b; background-color: #ffd04b;
color: #000; color: #000;
} }
@ -1391,11 +1391,6 @@ export default {
} }
} }
.highlight-text {
background-color: #ffd04b;
color: #000;
}
.el-input-group__append { .el-input-group__append {
padding: 0; padding: 0;
.el-button { .el-button {

View File

@ -1351,7 +1351,7 @@ export default {
if (this.currentMatchIndex === -1 || !this.matchedOptions.length) return if (this.currentMatchIndex === -1 || !this.matchedOptions.length) return
const option = this.matchedOptions[this.currentMatchIndex] const option = this.matchedOptions[this.currentMatchIndex]
const selectDom = this.$el.querySelector('.el-select-dropdown__wrap') const selectDom = this.$el.querySelector('.type-select-dropdown')
const optionDom = selectDom?.querySelector(`[data-key="${option.typeId}"]`) const optionDom = selectDom?.querySelector(`[data-key="${option.typeId}"]`)
if (optionDom) { if (optionDom) {
@ -1422,9 +1422,9 @@ export default {
overflow-y: auto; overflow-y: auto;
} }
.highlight-text { ::v-deep .highlight-text {
background-color: #ffd04b; background-color: #ffd04b;
color: #000; color: #000;
} }
::v-deep .el-input-group__append { ::v-deep .el-input-group__append {
@ -1455,11 +1455,6 @@ export default {
} }
} }
.highlight-text {
background-color: #ffd04b;
color: #000;
}
.el-input-group__append { .el-input-group__append {
padding: 0; padding: 0;
.el-button { .el-button {

View File

@ -1257,10 +1257,6 @@ export default {
} }
} }
.highlight-text {
background-color: #ffd04b;
color: #000;
}
.el-input-group__append { .el-input-group__append {
padding: 0; padding: 0;

View File

@ -1433,10 +1433,6 @@ export default {
} }
} }
.highlight-text {
background-color: #ffd04b;
color: #000;
}
.el-input-group__append { .el-input-group__append {
padding: 0; padding: 0;

View File

@ -996,7 +996,7 @@ export default {
if (this.currentMatchIndex === -1 || !this.matchedOptions.length) return if (this.currentMatchIndex === -1 || !this.matchedOptions.length) return
const option = this.matchedOptions[this.currentMatchIndex] const option = this.matchedOptions[this.currentMatchIndex]
const selectDom = this.$el.querySelector('.el-select-dropdown__wrap') const selectDom = this.$el.querySelector('.type-select-dropdown')
const optionDom = selectDom?.querySelector(`[data-key="${option.typeId}"]`) const optionDom = selectDom?.querySelector(`[data-key="${option.typeId}"]`)
if (optionDom) { if (optionDom) {
@ -1054,7 +1054,7 @@ export default {
// overflow-y: auto; // overflow-y: auto;
// } // }
.highlight-text { ::v-deep .highlight-text {
background-color: #ffd04b; background-color: #ffd04b;
color: #000; color: #000;
} }
@ -1087,11 +1087,6 @@ export default {
} }
} }
.highlight-text {
background-color: #ffd04b;
color: #000;
}
.el-input-group__append { .el-input-group__append {
padding: 0; padding: 0;
.el-button { .el-button {

View File

@ -943,7 +943,7 @@ export default {
overflow-y: auto; overflow-y: auto;
} }
.highlight-text { ::v-deep .highlight-text {
background-color: #ffd04b; background-color: #ffd04b;
color: #000; color: #000;
} }
@ -976,11 +976,6 @@ export default {
} }
} }
.highlight-text {
background-color: #ffd04b;
color: #000;
}
.el-input-group__append { .el-input-group__append {
padding: 0; padding: 0;
.el-button { .el-button {

View File

@ -412,7 +412,7 @@ export default {
}, },
/** 机具类型 */ /** 机具类型 */
equipmentType() { equipmentType() {
equipmentTypeTree().then(response => { equipmentTypeTree({ agreementId: this.agreementId }).then(response => {
this.equipmentTypeList = response.data this.equipmentTypeList = response.data
// //
this.flattenTypeOptions = this.processTypeData(response.data) this.flattenTypeOptions = this.processTypeData(response.data)
@ -782,7 +782,7 @@ export default {
// overflow-y: auto; // overflow-y: auto;
// } // }
.highlight-text { ::v-deep .highlight-text {
background-color: #ffd04b; background-color: #ffd04b;
color: #000; color: #000;
} }
@ -815,11 +815,6 @@ export default {
} }
} }
.highlight-text {
background-color: #ffd04b;
color: #000;
}
.el-input-group__append { .el-input-group__append {
padding: 0; padding: 0;
.el-button { .el-button {

View File

@ -858,7 +858,7 @@ export default {
// overflow-y: auto; // overflow-y: auto;
// } // }
.highlight-text { ::v-deep .highlight-text {
background-color: #ffd04b; background-color: #ffd04b;
color: #000; color: #000;
} }
@ -891,11 +891,6 @@ export default {
} }
} }
.highlight-text {
background-color: #ffd04b;
color: #000;
}
.el-input-group__append { .el-input-group__append {
padding: 0; padding: 0;
.el-button { .el-button {